@majoo-ui/react 1.54.8 → 1.54.10
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/components/pageDialog/PageDialog.d.ts +0 -18
- package/index.esm.js +87 -59
- package/index.umd.js +91 -63
- package/package.json +1 -1
|
@@ -403,24 +403,6 @@ interface PageDialogProps extends IDialog, DialogContentProps {
|
|
|
403
403
|
*/
|
|
404
404
|
disabledCloseButton?: boolean;
|
|
405
405
|
}
|
|
406
|
-
/**
|
|
407
|
-
* PageDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.
|
|
408
|
-
* https://react-majoo-ui.mangkujagat.com/?path=/story/core-components-pagedialog--default
|
|
409
|
-
* @param size - default fullsize
|
|
410
|
-
* @param layer - z-index default 1400
|
|
411
|
-
* @param isMobile - force mobile/desktop view, default is responsive
|
|
412
|
-
* @param onOpenAutoFocus - set default open behaviour
|
|
413
|
-
*
|
|
414
|
-
* @example
|
|
415
|
-
* // Uncontrolled Example
|
|
416
|
-
* <PageDialog>
|
|
417
|
-
* <PageDialogTrigger>Button Trigger</PageDialogTrigger>
|
|
418
|
-
* <PageDialogTitle>Title</PageDialogTitle>
|
|
419
|
-
* <PageDialogContent>Content</PageDialogContent>
|
|
420
|
-
* <PageDialogFooter>Footer</PageDialogFooter>
|
|
421
|
-
* </PageDialog>
|
|
422
|
-
* @component
|
|
423
|
-
*/
|
|
424
406
|
export declare const PageDialog: {
|
|
425
407
|
(props: PageDialogProps): JSX.Element;
|
|
426
408
|
Trigger: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
package/index.esm.js
CHANGED
|
@@ -36,7 +36,6 @@ import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
|
36
36
|
import { EditableInput, ColorWrap, Saturation, Hue, Alpha, Swatch } from 'react-color/lib/components/common';
|
|
37
37
|
import * as color from 'react-color/lib/helpers/color';
|
|
38
38
|
import StepWizard$1 from 'react-step-wizard';
|
|
39
|
-
import ScrollSpy from 'react-ui-scrollspy';
|
|
40
39
|
import { useJsApiLoader, GoogleMap, StandaloneSearchBox } from '@react-google-maps/api';
|
|
41
40
|
import request from 'superagent';
|
|
42
41
|
import { ResponsiveContainer, LineChart as LineChart$1, XAxis, YAxis, CartesianGrid, Tooltip as Tooltip$2, Line as Line$1 } from 'recharts';
|
|
@@ -45,6 +44,7 @@ import { Editor } from 'react-draft-wysiwyg';
|
|
|
45
44
|
import { ContextMenuTrigger as ContextMenuTrigger$1, ContextMenu as ContextMenu$1, MenuItem } from 'react-contextmenu';
|
|
46
45
|
import ReactSkeleton, { SkeletonTheme } from 'react-loading-skeleton';
|
|
47
46
|
import 'react-loading-skeleton/dist/skeleton.css';
|
|
47
|
+
import ScrollSpy from 'react-ui-scrollspy';
|
|
48
48
|
import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
|
|
49
49
|
import imageCompressionComponent from 'browser-image-compression';
|
|
50
50
|
import { useSticky } from 'react-table-sticky';
|
|
@@ -17114,7 +17114,6 @@ function InputDatePicker({
|
|
|
17114
17114
|
}) {
|
|
17115
17115
|
const [value, setValue] = useState(date || dateValue);
|
|
17116
17116
|
const [defaultValue, setDefaultValue] = useState(defaultDate || defaultDateValue);
|
|
17117
|
-
console.log(placement);
|
|
17118
17117
|
useEffect(() => {
|
|
17119
17118
|
setValue(date || dateValue);
|
|
17120
17119
|
}, [date, dateValue]);
|
|
@@ -18045,8 +18044,6 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
18045
18044
|
|
|
18046
18045
|
if (customRowsStyle && customRowsStyle(row.values).length) {
|
|
18047
18046
|
for (let i = 0; i < customRowsStyle(row.values).length; i++) {
|
|
18048
|
-
console.log(customRowsStyle(row.values)[i]);
|
|
18049
|
-
|
|
18050
18047
|
if (customRowsStyle(row.values)[i].predicate) {
|
|
18051
18048
|
customStyle = customRowsStyle(row.values)[i].css;
|
|
18052
18049
|
}
|
|
@@ -19923,16 +19920,18 @@ const ContentWrapper = styled(Box, {
|
|
|
19923
19920
|
variants: {
|
|
19924
19921
|
wrapperSize: {
|
|
19925
19922
|
md: {
|
|
19926
|
-
padding: '40px 24px
|
|
19923
|
+
padding: '40px 24px',
|
|
19927
19924
|
marginLeft: 'auto',
|
|
19928
19925
|
marginRight: 'auto',
|
|
19929
|
-
|
|
19926
|
+
//982 + padding horizontal
|
|
19927
|
+
maxWidth: 1030
|
|
19930
19928
|
},
|
|
19931
19929
|
lg: {
|
|
19932
|
-
padding: '40px 24px
|
|
19930
|
+
padding: '40px 24px',
|
|
19933
19931
|
marginLeft: 'auto',
|
|
19934
19932
|
marginRight: 'auto',
|
|
19935
|
-
|
|
19933
|
+
//1318 + padding horizontal
|
|
19934
|
+
maxWidth: 1366
|
|
19936
19935
|
}
|
|
19937
19936
|
}
|
|
19938
19937
|
}
|
|
@@ -19960,25 +19959,6 @@ const findNodeChild = (array, displayName) => {
|
|
|
19960
19959
|
const FOOTER_HEIGHT = 64;
|
|
19961
19960
|
const HEADER_HEIGHT = 56;
|
|
19962
19961
|
const HEADER_HEIGHT_MOBILE = 76;
|
|
19963
|
-
/**
|
|
19964
|
-
* PageDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.
|
|
19965
|
-
* https://react-majoo-ui.mangkujagat.com/?path=/story/core-components-pagedialog--default
|
|
19966
|
-
* @param size - default fullsize
|
|
19967
|
-
* @param layer - z-index default 1400
|
|
19968
|
-
* @param isMobile - force mobile/desktop view, default is responsive
|
|
19969
|
-
* @param onOpenAutoFocus - set default open behaviour
|
|
19970
|
-
*
|
|
19971
|
-
* @example
|
|
19972
|
-
* // Uncontrolled Example
|
|
19973
|
-
* <PageDialog>
|
|
19974
|
-
* <PageDialogTrigger>Button Trigger</PageDialogTrigger>
|
|
19975
|
-
* <PageDialogTitle>Title</PageDialogTitle>
|
|
19976
|
-
* <PageDialogContent>Content</PageDialogContent>
|
|
19977
|
-
* <PageDialogFooter>Footer</PageDialogFooter>
|
|
19978
|
-
* </PageDialog>
|
|
19979
|
-
* @component
|
|
19980
|
-
*/
|
|
19981
|
-
|
|
19982
19962
|
const PageDialog = props => {
|
|
19983
19963
|
var _a, _b;
|
|
19984
19964
|
|
|
@@ -20153,6 +20133,7 @@ const PageDialog = props => {
|
|
|
20153
20133
|
}, void 0)
|
|
20154
20134
|
}), void 0)]
|
|
20155
20135
|
}), void 0), pageDialogChildren && jsx(Box, Object.assign({}, pageDialogChildren.props, {
|
|
20136
|
+
ref: pageDialogChildren === null || pageDialogChildren === void 0 ? void 0 : pageDialogChildren.ref,
|
|
20156
20137
|
children: jsx(ConditionalWrapper, Object.assign({
|
|
20157
20138
|
condition: !isMobile && ((_a = pageDialogChildren.props) === null || _a === void 0 ? void 0 : _a.wrapperSize),
|
|
20158
20139
|
wrapper: child => {
|
|
@@ -23383,7 +23364,7 @@ const Upload = ({
|
|
|
23383
23364
|
} else {
|
|
23384
23365
|
imageCompressionComponent(blob, {
|
|
23385
23366
|
maxSizeMB,
|
|
23386
|
-
maxWidthOrHeight:
|
|
23367
|
+
maxWidthOrHeight: 1000,
|
|
23387
23368
|
maxIteration: 10,
|
|
23388
23369
|
useWebWorker: true,
|
|
23389
23370
|
alwaysKeepResolution: true
|
|
@@ -27844,7 +27825,7 @@ const Navigation = props => {
|
|
|
27844
27825
|
const isComplete = props.isComplete[i - 1]; // eslint-disable-next-line no-lone-blocks
|
|
27845
27826
|
|
|
27846
27827
|
{
|
|
27847
|
-
var _data$title,
|
|
27828
|
+
var _data$title, _data2, _data3, _data4, _data5, _data6, _data7, _data$title2, _data8, _data9, _data10, _data11, _data12;
|
|
27848
27829
|
|
|
27849
27830
|
!isMobile ? stepItems.push( /*#__PURE__*/React__default.createElement(StepperItem, {
|
|
27850
27831
|
css: {
|
|
@@ -27855,7 +27836,9 @@ const Navigation = props => {
|
|
|
27855
27836
|
align: "center",
|
|
27856
27837
|
key: `step-${i}`,
|
|
27857
27838
|
onClick: () => {
|
|
27858
|
-
|
|
27839
|
+
var _data;
|
|
27840
|
+
|
|
27841
|
+
if (props.onNavClicked && !((_data = data[i - 1]) != null && _data.disabled)) props.onNavClicked(i);
|
|
27859
27842
|
|
|
27860
27843
|
if (!forbidClickNav && isComplete && !isHide) {
|
|
27861
27844
|
props.goToStep(i);
|
|
@@ -27889,9 +27872,9 @@ const Navigation = props => {
|
|
|
27889
27872
|
lineNumber: 123,
|
|
27890
27873
|
columnNumber: 17
|
|
27891
27874
|
}
|
|
27892
|
-
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (
|
|
27875
|
+
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (_data2 = data[i - 1]).title) == null ? void 0 : _data$title.call(_data2), ((_data3 = data[i - 1]) == null ? void 0 : _data3.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
27893
27876
|
align: "center",
|
|
27894
|
-
label: (
|
|
27877
|
+
label: (_data4 = data[i - 1]) == null ? void 0 : _data4.tooltipsContents,
|
|
27895
27878
|
__self: undefined,
|
|
27896
27879
|
__source: {
|
|
27897
27880
|
fileName: _jsxFileName$4,
|
|
@@ -27910,9 +27893,9 @@ const Navigation = props => {
|
|
|
27910
27893
|
lineNumber: 128,
|
|
27911
27894
|
columnNumber: 19
|
|
27912
27895
|
}
|
|
27913
|
-
})), ((
|
|
27896
|
+
})), ((_data5 = data[i - 1]) == null ? void 0 : _data5.comingSoon) && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
27914
27897
|
css: {
|
|
27915
|
-
marginLeft: (
|
|
27898
|
+
marginLeft: (_data6 = data[i - 1]) != null && _data6.withTolltip ? 0 : '$spacing-03'
|
|
27916
27899
|
},
|
|
27917
27900
|
align: "center",
|
|
27918
27901
|
__self: undefined,
|
|
@@ -27971,7 +27954,7 @@ const Navigation = props => {
|
|
|
27971
27954
|
height: 24,
|
|
27972
27955
|
borderRadius: '$round',
|
|
27973
27956
|
border: `4px solid ${isActive ? '$bgGreen' : '$bgInactive'}`,
|
|
27974
|
-
backgroundColor: (
|
|
27957
|
+
backgroundColor: (_data7 = data[i - 1]) != null && _data7.disabled ? '$gray200' : '$white'
|
|
27975
27958
|
},
|
|
27976
27959
|
__self: undefined,
|
|
27977
27960
|
__source: {
|
|
@@ -27989,10 +27972,10 @@ const Navigation = props => {
|
|
|
27989
27972
|
lineNumber: 173,
|
|
27990
27973
|
columnNumber: 15
|
|
27991
27974
|
}
|
|
27992
|
-
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (
|
|
27975
|
+
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (_data8 = data[i - 1]).title) == null ? void 0 : _data$title2.call(_data8) : ''), isActive && ((_data9 = data[i - 1]) == null ? void 0 : _data9.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
27993
27976
|
align: "center",
|
|
27994
27977
|
withClick: true,
|
|
27995
|
-
label: (
|
|
27978
|
+
label: (_data10 = data[i - 1]) == null ? void 0 : _data10.tooltipsContents,
|
|
27996
27979
|
__self: undefined,
|
|
27997
27980
|
__source: {
|
|
27998
27981
|
fileName: _jsxFileName$4,
|
|
@@ -28008,11 +27991,11 @@ const Navigation = props => {
|
|
|
28008
27991
|
lineNumber: 178,
|
|
28009
27992
|
columnNumber: 19
|
|
28010
27993
|
}
|
|
28011
|
-
})), isActive && ((
|
|
27994
|
+
})), isActive && ((_data11 = data[i - 1]) == null ? void 0 : _data11.comingSoon) && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
28012
27995
|
align: "center",
|
|
28013
27996
|
justify: "center",
|
|
28014
27997
|
css: {
|
|
28015
|
-
marginTop: (
|
|
27998
|
+
marginTop: (_data12 = data[i - 1]) != null && _data12.withTolltip ? 0 : '$spacing-03'
|
|
28016
27999
|
},
|
|
28017
28000
|
__self: undefined,
|
|
28018
28001
|
__source: {
|
|
@@ -28397,12 +28380,20 @@ const Separator = styled('div', {
|
|
|
28397
28380
|
}
|
|
28398
28381
|
}
|
|
28399
28382
|
});
|
|
28383
|
+
const StyledCard = styled(Card, {
|
|
28384
|
+
height: 'fit-content',
|
|
28385
|
+
width: 'fit-content',
|
|
28386
|
+
maxWidth: 311,
|
|
28387
|
+
padding: '24px !important',
|
|
28388
|
+
boxShadow: '0px 1px 4px rgba(0, 0, 0, 0.04)'
|
|
28389
|
+
});
|
|
28400
28390
|
|
|
28401
28391
|
function Content({
|
|
28402
28392
|
content,
|
|
28403
28393
|
activeId,
|
|
28404
28394
|
isCollapse,
|
|
28405
|
-
isDialog
|
|
28395
|
+
isDialog,
|
|
28396
|
+
onNavClick
|
|
28406
28397
|
}) {
|
|
28407
28398
|
var _getDatasets;
|
|
28408
28399
|
|
|
@@ -28431,7 +28422,7 @@ function Content({
|
|
|
28431
28422
|
__self: this,
|
|
28432
28423
|
__source: {
|
|
28433
28424
|
fileName: _jsxFileName$2,
|
|
28434
|
-
lineNumber:
|
|
28425
|
+
lineNumber: 106,
|
|
28435
28426
|
columnNumber: 5
|
|
28436
28427
|
}
|
|
28437
28428
|
}, /*#__PURE__*/React__default.createElement(Separator, {
|
|
@@ -28439,7 +28430,7 @@ function Content({
|
|
|
28439
28430
|
__self: this,
|
|
28440
28431
|
__source: {
|
|
28441
28432
|
fileName: _jsxFileName$2,
|
|
28442
|
-
lineNumber:
|
|
28433
|
+
lineNumber: 107,
|
|
28443
28434
|
columnNumber: 7
|
|
28444
28435
|
}
|
|
28445
28436
|
}), /*#__PURE__*/React__default.createElement(ListWrap, {
|
|
@@ -28449,7 +28440,7 @@ function Content({
|
|
|
28449
28440
|
__self: this,
|
|
28450
28441
|
__source: {
|
|
28451
28442
|
fileName: _jsxFileName$2,
|
|
28452
|
-
lineNumber:
|
|
28443
|
+
lineNumber: 108,
|
|
28453
28444
|
columnNumber: 7
|
|
28454
28445
|
}
|
|
28455
28446
|
}, (_getDatasets = getDatasets(content, activeId, isCollapse)) == null ? void 0 : _getDatasets.map((item, index) => {
|
|
@@ -28458,7 +28449,7 @@ function Content({
|
|
|
28458
28449
|
__self: this,
|
|
28459
28450
|
__source: {
|
|
28460
28451
|
fileName: _jsxFileName$2,
|
|
28461
|
-
lineNumber:
|
|
28452
|
+
lineNumber: 111,
|
|
28462
28453
|
columnNumber: 13
|
|
28463
28454
|
}
|
|
28464
28455
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -28477,7 +28468,7 @@ function Content({
|
|
|
28477
28468
|
__self: this,
|
|
28478
28469
|
__source: {
|
|
28479
28470
|
fileName: _jsxFileName$2,
|
|
28480
|
-
lineNumber:
|
|
28471
|
+
lineNumber: 112,
|
|
28481
28472
|
columnNumber: 15
|
|
28482
28473
|
}
|
|
28483
28474
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
@@ -28485,8 +28476,11 @@ function Content({
|
|
|
28485
28476
|
active: (item == null ? void 0 : item.id) === activeId,
|
|
28486
28477
|
href: `#${item == null ? void 0 : item.id}`,
|
|
28487
28478
|
onClick: e => {
|
|
28479
|
+
var _e$currentTarget, _e$currentTarget$href, _e$currentTarget$href2, _e$currentTarget2, _e$currentTarget2$hre, _e$currentTarget2$hre2;
|
|
28480
|
+
|
|
28488
28481
|
e.preventDefault();
|
|
28489
|
-
|
|
28482
|
+
onNavClick == null ? void 0 : onNavClick(e == null ? void 0 : (_e$currentTarget = e.currentTarget) == null ? void 0 : (_e$currentTarget$href = _e$currentTarget.href) == null ? void 0 : (_e$currentTarget$href2 = _e$currentTarget$href.split('#')) == null ? void 0 : _e$currentTarget$href2[1]);
|
|
28483
|
+
const target = window.document.getElementById(e == null ? void 0 : (_e$currentTarget2 = e.currentTarget) == null ? void 0 : (_e$currentTarget2$hre = _e$currentTarget2.href) == null ? void 0 : (_e$currentTarget2$hre2 = _e$currentTarget2$hre.split('#')) == null ? void 0 : _e$currentTarget2$hre2[1]);
|
|
28490
28484
|
|
|
28491
28485
|
if (target) {
|
|
28492
28486
|
var headerOffset = 20;
|
|
@@ -28509,7 +28503,7 @@ function Content({
|
|
|
28509
28503
|
__self: this,
|
|
28510
28504
|
__source: {
|
|
28511
28505
|
fileName: _jsxFileName$2,
|
|
28512
|
-
lineNumber:
|
|
28506
|
+
lineNumber: 126,
|
|
28513
28507
|
columnNumber: 17
|
|
28514
28508
|
}
|
|
28515
28509
|
}, item == null ? void 0 : item.title), item == null ? void 0 : item.icon));
|
|
@@ -28521,7 +28515,8 @@ function TableOfContent({
|
|
|
28521
28515
|
css,
|
|
28522
28516
|
isMobile,
|
|
28523
28517
|
isDialog,
|
|
28524
|
-
activeId
|
|
28518
|
+
activeId,
|
|
28519
|
+
onNavClick
|
|
28525
28520
|
}) {
|
|
28526
28521
|
const [mobileCollapse, setMobileCollapse] = useState(false);
|
|
28527
28522
|
|
|
@@ -28538,7 +28533,7 @@ function TableOfContent({
|
|
|
28538
28533
|
__self: this,
|
|
28539
28534
|
__source: {
|
|
28540
28535
|
fileName: _jsxFileName$2,
|
|
28541
|
-
lineNumber:
|
|
28536
|
+
lineNumber: 169,
|
|
28542
28537
|
columnNumber: 5
|
|
28543
28538
|
}
|
|
28544
28539
|
}, /*#__PURE__*/React__default.createElement(Content, {
|
|
@@ -28546,10 +28541,11 @@ function TableOfContent({
|
|
|
28546
28541
|
isCollapse: mobileCollapse,
|
|
28547
28542
|
isDialog: isDialog,
|
|
28548
28543
|
content: content,
|
|
28544
|
+
onNavClick: onNavClick,
|
|
28549
28545
|
__self: this,
|
|
28550
28546
|
__source: {
|
|
28551
28547
|
fileName: _jsxFileName$2,
|
|
28552
|
-
lineNumber:
|
|
28548
|
+
lineNumber: 170,
|
|
28553
28549
|
columnNumber: 7
|
|
28554
28550
|
}
|
|
28555
28551
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28561,7 +28557,7 @@ function TableOfContent({
|
|
|
28561
28557
|
__self: this,
|
|
28562
28558
|
__source: {
|
|
28563
28559
|
fileName: _jsxFileName$2,
|
|
28564
|
-
lineNumber:
|
|
28560
|
+
lineNumber: 177,
|
|
28565
28561
|
columnNumber: 7
|
|
28566
28562
|
}
|
|
28567
28563
|
}, mobileCollapse ? /*#__PURE__*/React__default.createElement(ChevronUpOutline, {
|
|
@@ -28571,7 +28567,7 @@ function TableOfContent({
|
|
|
28571
28567
|
__self: this,
|
|
28572
28568
|
__source: {
|
|
28573
28569
|
fileName: _jsxFileName$2,
|
|
28574
|
-
lineNumber:
|
|
28570
|
+
lineNumber: 179,
|
|
28575
28571
|
columnNumber: 11
|
|
28576
28572
|
}
|
|
28577
28573
|
}) : /*#__PURE__*/React__default.createElement(ChevronDownOutline, {
|
|
@@ -28581,7 +28577,7 @@ function TableOfContent({
|
|
|
28581
28577
|
__self: this,
|
|
28582
28578
|
__source: {
|
|
28583
28579
|
fileName: _jsxFileName$2,
|
|
28584
|
-
lineNumber:
|
|
28580
|
+
lineNumber: 181,
|
|
28585
28581
|
columnNumber: 11
|
|
28586
28582
|
}
|
|
28587
28583
|
}))) : /*#__PURE__*/React__default.createElement(DesktopContainer, {
|
|
@@ -28590,23 +28586,50 @@ function TableOfContent({
|
|
|
28590
28586
|
__self: this,
|
|
28591
28587
|
__source: {
|
|
28592
28588
|
fileName: _jsxFileName$2,
|
|
28593
|
-
lineNumber:
|
|
28589
|
+
lineNumber: 186,
|
|
28594
28590
|
columnNumber: 5
|
|
28595
28591
|
}
|
|
28592
|
+
}, /*#__PURE__*/React__default.createElement(StyledCard, {
|
|
28593
|
+
showBottomLine: false,
|
|
28594
|
+
__self: this,
|
|
28595
|
+
__source: {
|
|
28596
|
+
fileName: _jsxFileName$2,
|
|
28597
|
+
lineNumber: 187,
|
|
28598
|
+
columnNumber: 7
|
|
28599
|
+
}
|
|
28596
28600
|
}, /*#__PURE__*/React__default.createElement(Content, {
|
|
28597
28601
|
isCollapse: true,
|
|
28598
28602
|
isDialog: isDialog,
|
|
28599
28603
|
content: content,
|
|
28604
|
+
onNavClick: onNavClick,
|
|
28600
28605
|
__self: this,
|
|
28601
28606
|
__source: {
|
|
28602
28607
|
fileName: _jsxFileName$2,
|
|
28603
|
-
lineNumber:
|
|
28604
|
-
columnNumber:
|
|
28608
|
+
lineNumber: 188,
|
|
28609
|
+
columnNumber: 9
|
|
28605
28610
|
}
|
|
28606
|
-
}));
|
|
28611
|
+
})));
|
|
28607
28612
|
}
|
|
28608
28613
|
|
|
28609
|
-
const
|
|
28614
|
+
const StyledPage = styled(Box, {
|
|
28615
|
+
maxWidth: 982
|
|
28616
|
+
});
|
|
28617
|
+
const Page = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(StyledPage, {
|
|
28618
|
+
ref: ref,
|
|
28619
|
+
__self: undefined,
|
|
28620
|
+
__source: {
|
|
28621
|
+
fileName: _jsxFileName$2,
|
|
28622
|
+
lineNumber: 197,
|
|
28623
|
+
columnNumber: 3
|
|
28624
|
+
}
|
|
28625
|
+
}, /*#__PURE__*/React__default.createElement(ScrollSpy, _extends({}, props, {
|
|
28626
|
+
__self: undefined,
|
|
28627
|
+
__source: {
|
|
28628
|
+
fileName: _jsxFileName$2,
|
|
28629
|
+
lineNumber: 198,
|
|
28630
|
+
columnNumber: 5
|
|
28631
|
+
}
|
|
28632
|
+
}))));
|
|
28610
28633
|
Page.displayName = 'TableOfContent.Page';
|
|
28611
28634
|
TableOfContent.Page = Page;
|
|
28612
28635
|
TableOfContent.defaultProps = {
|
|
@@ -28632,7 +28655,12 @@ TableOfContent.propTypes = {
|
|
|
28632
28655
|
/**
|
|
28633
28656
|
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
28634
28657
|
*/
|
|
28635
|
-
activeId: PropTypes.string
|
|
28658
|
+
activeId: PropTypes.string,
|
|
28659
|
+
|
|
28660
|
+
/**
|
|
28661
|
+
Event Callback on navigation click.
|
|
28662
|
+
*/
|
|
28663
|
+
onNavClick: PropTypes.func
|
|
28636
28664
|
};
|
|
28637
28665
|
|
|
28638
28666
|
const TableOfContentPage = props => {
|
package/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types'), require('@stitches/react'), require('@majoo-ui/core'), require('@majoo-ui/icons'), require('react-transition-group'), require('react/jsx-runtime'), require('@majoo-ui/helpers'), require('@radix-ui/react-avatar'), require('@radix-ui/react-tooltip'), require('@radix-ui/react-progress'), require('@radix-ui/react-label'), require('@radix-ui/react-checkbox'), require('@radix-ui/react-radio-group'), require('react-number-format'), require('@radix-ui/react-switch'), require('downshift'), require('react-infinite-scroller'), require('lodash.debounce'), require('otp-input-react'), require('@floating-ui/react-dom-interactions'), require('@radix-ui/react-slider'), require('@radix-ui/react-tabs'), require('@radix-ui/react-separator'), require('@radix-ui/react-toggle-group'), require('@radix-ui/react-dialog'), require('@radix-ui/react-accordion'), require('dayzed'), require('moment'), require('react-table'), require('react-dom'), require('@radix-ui/react-alert-dialog'), require('@radix-ui/react-dropdown-menu'), require('@radix-ui/react-aspect-ratio'), require('react-color/lib/components/common'), require('react-color/lib/helpers/color'), require('react-step-wizard'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types', '@stitches/react', '@majoo-ui/core', '@majoo-ui/icons', 'react-transition-group', 'react/jsx-runtime', '@majoo-ui/helpers', '@radix-ui/react-avatar', '@radix-ui/react-tooltip', '@radix-ui/react-progress', '@radix-ui/react-label', '@radix-ui/react-checkbox', '@radix-ui/react-radio-group', 'react-number-format', '@radix-ui/react-switch', 'downshift', 'react-infinite-scroller', 'lodash.debounce', 'otp-input-react', '@floating-ui/react-dom-interactions', '@radix-ui/react-slider', '@radix-ui/react-tabs', '@radix-ui/react-separator', '@radix-ui/react-toggle-group', '@radix-ui/react-dialog', '@radix-ui/react-accordion', 'dayzed', 'moment', 'react-table', 'react-dom', '@radix-ui/react-alert-dialog', '@radix-ui/react-dropdown-menu', '@radix-ui/react-aspect-ratio', 'react-color/lib/components/common', 'react-color/lib/helpers/color', 'react-step-wizard', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.React = {}, global.React, global.PropTypes, global.react, global.core, global.icons, global.reactTransitionGroup, global.jsxRuntime, global.helpers, global.AvatarPrimitive, global.TooltipPrimitive, global.ProgressPrimitive, global.LabelPrimitive, global.CheckboxPrimitive, global.RadioGroupPrimitive, global.NumberFormat, global.SwitchPrimitive, global.Downshift, global.InfiniteScroll, global.debounce, global.OTPInput, global.reactDomInteractions, global.SliderPrimitive, global.TabsPrimitive, global.SeparatorPrimitive, global.ToggleGroupPrimitive, global.DialogPrimitive, global.AccordionPrimitive, global.dayzed, global.moment, global.reactTable, global.ReactDOM, global.ADialog, global.DropdownMenuPrimitive, global.AspectRatioPrimitive, global.common, global.color, global.StepWizard$1, global.
|
|
5
|
-
})(this, (function (exports, React, PropTypes, react, core, icons, reactTransitionGroup, jsxRuntime, helpers, AvatarPrimitive, TooltipPrimitive, ProgressPrimitive, LabelPrimitive, CheckboxPrimitive, RadioGroupPrimitive, NumberFormat, SwitchPrimitive, Downshift, InfiniteScroll, debounce, OTPInput, reactDomInteractions, SliderPrimitive, TabsPrimitive, SeparatorPrimitive, ToggleGroupPrimitive, DialogPrimitive, AccordionPrimitive, dayzed, moment, reactTable, ReactDOM, ADialog, DropdownMenuPrimitive, AspectRatioPrimitive, common, color, StepWizard$1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types'), require('@stitches/react'), require('@majoo-ui/core'), require('@majoo-ui/icons'), require('react-transition-group'), require('react/jsx-runtime'), require('@majoo-ui/helpers'), require('@radix-ui/react-avatar'), require('@radix-ui/react-tooltip'), require('@radix-ui/react-progress'), require('@radix-ui/react-label'), require('@radix-ui/react-checkbox'), require('@radix-ui/react-radio-group'), require('react-number-format'), require('@radix-ui/react-switch'), require('downshift'), require('react-infinite-scroller'), require('lodash.debounce'), require('otp-input-react'), require('@floating-ui/react-dom-interactions'), require('@radix-ui/react-slider'), require('@radix-ui/react-tabs'), require('@radix-ui/react-separator'), require('@radix-ui/react-toggle-group'), require('@radix-ui/react-dialog'), require('@radix-ui/react-accordion'), require('dayzed'), require('moment'), require('react-table'), require('react-dom'), require('@radix-ui/react-alert-dialog'), require('@radix-ui/react-dropdown-menu'), require('@radix-ui/react-aspect-ratio'), require('react-color/lib/components/common'), require('react-color/lib/helpers/color'), require('react-step-wizard'), require('@react-google-maps/api'), require('superagent'), require('recharts'), require('draft-js'), require('react-draft-wysiwyg'), require('react-contextmenu'), require('react-loading-skeleton'), require('react-loading-skeleton/dist/skeleton.css'), require('react-ui-scrollspy'), require('react-image-crop'), require('browser-image-compression'), require('react-table-sticky')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types', '@stitches/react', '@majoo-ui/core', '@majoo-ui/icons', 'react-transition-group', 'react/jsx-runtime', '@majoo-ui/helpers', '@radix-ui/react-avatar', '@radix-ui/react-tooltip', '@radix-ui/react-progress', '@radix-ui/react-label', '@radix-ui/react-checkbox', '@radix-ui/react-radio-group', 'react-number-format', '@radix-ui/react-switch', 'downshift', 'react-infinite-scroller', 'lodash.debounce', 'otp-input-react', '@floating-ui/react-dom-interactions', '@radix-ui/react-slider', '@radix-ui/react-tabs', '@radix-ui/react-separator', '@radix-ui/react-toggle-group', '@radix-ui/react-dialog', '@radix-ui/react-accordion', 'dayzed', 'moment', 'react-table', 'react-dom', '@radix-ui/react-alert-dialog', '@radix-ui/react-dropdown-menu', '@radix-ui/react-aspect-ratio', 'react-color/lib/components/common', 'react-color/lib/helpers/color', 'react-step-wizard', '@react-google-maps/api', 'superagent', 'recharts', 'draft-js', 'react-draft-wysiwyg', 'react-contextmenu', 'react-loading-skeleton', 'react-loading-skeleton/dist/skeleton.css', 'react-ui-scrollspy', 'react-image-crop', 'browser-image-compression', 'react-table-sticky'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.React = {}, global.React, global.PropTypes, global.react, global.core, global.icons, global.reactTransitionGroup, global.jsxRuntime, global.helpers, global.AvatarPrimitive, global.TooltipPrimitive, global.ProgressPrimitive, global.LabelPrimitive, global.CheckboxPrimitive, global.RadioGroupPrimitive, global.NumberFormat, global.SwitchPrimitive, global.Downshift, global.InfiniteScroll, global.debounce, global.OTPInput, global.reactDomInteractions, global.SliderPrimitive, global.TabsPrimitive, global.SeparatorPrimitive, global.ToggleGroupPrimitive, global.DialogPrimitive, global.AccordionPrimitive, global.dayzed, global.moment, global.reactTable, global.ReactDOM, global.ADialog, global.DropdownMenuPrimitive, global.AspectRatioPrimitive, global.common, global.color, global.StepWizard$1, global.api, global.request, global.recharts, global.draftJs, global.reactDraftWysiwyg, global.reactContextmenu, global.ReactSkeleton, null, global.ScrollSpy, global.ReactCrop, global.imageCompressionComponent, global.reactTableSticky));
|
|
5
|
+
})(this, (function (exports, React, PropTypes, react, core, icons, reactTransitionGroup, jsxRuntime, helpers, AvatarPrimitive, TooltipPrimitive, ProgressPrimitive, LabelPrimitive, CheckboxPrimitive, RadioGroupPrimitive, NumberFormat, SwitchPrimitive, Downshift, InfiniteScroll, debounce, OTPInput, reactDomInteractions, SliderPrimitive, TabsPrimitive, SeparatorPrimitive, ToggleGroupPrimitive, DialogPrimitive, AccordionPrimitive, dayzed, moment, reactTable, ReactDOM, ADialog, DropdownMenuPrimitive, AspectRatioPrimitive, common, color, StepWizard$1, api, request, recharts, draftJs, reactDraftWysiwyg, reactContextmenu, ReactSkeleton, skeleton_css, ScrollSpy, ReactCrop, imageCompressionComponent, reactTableSticky) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespace(AspectRatioPrimitive);
|
|
53
53
|
var color__namespace = /*#__PURE__*/_interopNamespace(color);
|
|
54
54
|
var StepWizard__default = /*#__PURE__*/_interopDefaultLegacy(StepWizard$1);
|
|
55
|
-
var ScrollSpy__default = /*#__PURE__*/_interopDefaultLegacy(ScrollSpy);
|
|
56
55
|
var request__default = /*#__PURE__*/_interopDefaultLegacy(request);
|
|
57
56
|
var ReactSkeleton__default = /*#__PURE__*/_interopDefaultLegacy(ReactSkeleton);
|
|
57
|
+
var ScrollSpy__default = /*#__PURE__*/_interopDefaultLegacy(ScrollSpy);
|
|
58
58
|
var ReactCrop__default = /*#__PURE__*/_interopDefaultLegacy(ReactCrop);
|
|
59
59
|
var imageCompressionComponent__default = /*#__PURE__*/_interopDefaultLegacy(imageCompressionComponent);
|
|
60
60
|
|
|
@@ -17388,7 +17388,6 @@
|
|
|
17388
17388
|
defaultValue = _h[0],
|
|
17389
17389
|
setDefaultValue = _h[1];
|
|
17390
17390
|
|
|
17391
|
-
console.log(placement);
|
|
17392
17391
|
React.useEffect(function () {
|
|
17393
17392
|
setValue(date || dateValue);
|
|
17394
17393
|
}, [date, dateValue]);
|
|
@@ -18333,8 +18332,6 @@
|
|
|
18333
18332
|
|
|
18334
18333
|
if (customRowsStyle && customRowsStyle(row.values).length) {
|
|
18335
18334
|
for (var i = 0; i < customRowsStyle(row.values).length; i++) {
|
|
18336
|
-
console.log(customRowsStyle(row.values)[i]);
|
|
18337
|
-
|
|
18338
18335
|
if (customRowsStyle(row.values)[i].predicate) {
|
|
18339
18336
|
customStyle = customRowsStyle(row.values)[i].css;
|
|
18340
18337
|
}
|
|
@@ -20283,16 +20280,18 @@
|
|
|
20283
20280
|
variants: {
|
|
20284
20281
|
wrapperSize: {
|
|
20285
20282
|
md: {
|
|
20286
|
-
padding: '40px 24px
|
|
20283
|
+
padding: '40px 24px',
|
|
20287
20284
|
marginLeft: 'auto',
|
|
20288
20285
|
marginRight: 'auto',
|
|
20289
|
-
|
|
20286
|
+
//982 + padding horizontal
|
|
20287
|
+
maxWidth: 1030
|
|
20290
20288
|
},
|
|
20291
20289
|
lg: {
|
|
20292
|
-
padding: '40px 24px
|
|
20290
|
+
padding: '40px 24px',
|
|
20293
20291
|
marginLeft: 'auto',
|
|
20294
20292
|
marginRight: 'auto',
|
|
20295
|
-
|
|
20293
|
+
//1318 + padding horizontal
|
|
20294
|
+
maxWidth: 1366
|
|
20296
20295
|
}
|
|
20297
20296
|
}
|
|
20298
20297
|
}
|
|
@@ -20320,25 +20319,6 @@
|
|
|
20320
20319
|
var FOOTER_HEIGHT = 64;
|
|
20321
20320
|
var HEADER_HEIGHT = 56;
|
|
20322
20321
|
var HEADER_HEIGHT_MOBILE = 76;
|
|
20323
|
-
/**
|
|
20324
|
-
* PageDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.
|
|
20325
|
-
* https://react-majoo-ui.mangkujagat.com/?path=/story/core-components-pagedialog--default
|
|
20326
|
-
* @param size - default fullsize
|
|
20327
|
-
* @param layer - z-index default 1400
|
|
20328
|
-
* @param isMobile - force mobile/desktop view, default is responsive
|
|
20329
|
-
* @param onOpenAutoFocus - set default open behaviour
|
|
20330
|
-
*
|
|
20331
|
-
* @example
|
|
20332
|
-
* // Uncontrolled Example
|
|
20333
|
-
* <PageDialog>
|
|
20334
|
-
* <PageDialogTrigger>Button Trigger</PageDialogTrigger>
|
|
20335
|
-
* <PageDialogTitle>Title</PageDialogTitle>
|
|
20336
|
-
* <PageDialogContent>Content</PageDialogContent>
|
|
20337
|
-
* <PageDialogFooter>Footer</PageDialogFooter>
|
|
20338
|
-
* </PageDialog>
|
|
20339
|
-
* @component
|
|
20340
|
-
*/
|
|
20341
|
-
|
|
20342
20322
|
var PageDialog = function PageDialog(props) {
|
|
20343
20323
|
var _a, _b;
|
|
20344
20324
|
|
|
@@ -20515,6 +20495,7 @@
|
|
|
20515
20495
|
}, void 0)
|
|
20516
20496
|
}), void 0)]
|
|
20517
20497
|
}), void 0), pageDialogChildren && jsxRuntime.jsx(Box, __assign({}, pageDialogChildren.props, {
|
|
20498
|
+
ref: pageDialogChildren === null || pageDialogChildren === void 0 ? void 0 : pageDialogChildren.ref,
|
|
20518
20499
|
children: jsxRuntime.jsx(ConditionalWrapper, __assign({
|
|
20519
20500
|
condition: !isMobile && ((_a = pageDialogChildren.props) === null || _a === void 0 ? void 0 : _a.wrapperSize),
|
|
20520
20501
|
wrapper: function (child) {
|
|
@@ -23779,7 +23760,7 @@
|
|
|
23779
23760
|
} else {
|
|
23780
23761
|
imageCompressionComponent__default["default"](blob, {
|
|
23781
23762
|
maxSizeMB,
|
|
23782
|
-
maxWidthOrHeight:
|
|
23763
|
+
maxWidthOrHeight: 1000,
|
|
23783
23764
|
maxIteration: 10,
|
|
23784
23765
|
useWebWorker: true,
|
|
23785
23766
|
alwaysKeepResolution: true
|
|
@@ -28253,7 +28234,7 @@
|
|
|
28253
28234
|
const isComplete = props.isComplete[i - 1]; // eslint-disable-next-line no-lone-blocks
|
|
28254
28235
|
|
|
28255
28236
|
{
|
|
28256
|
-
var _data$title,
|
|
28237
|
+
var _data$title, _data2, _data3, _data4, _data5, _data6, _data7, _data$title2, _data8, _data9, _data10, _data11, _data12;
|
|
28257
28238
|
|
|
28258
28239
|
!isMobile ? stepItems.push( /*#__PURE__*/React__default["default"].createElement(StepperItem, {
|
|
28259
28240
|
css: {
|
|
@@ -28264,7 +28245,9 @@
|
|
|
28264
28245
|
align: "center",
|
|
28265
28246
|
key: `step-${i}`,
|
|
28266
28247
|
onClick: () => {
|
|
28267
|
-
|
|
28248
|
+
var _data;
|
|
28249
|
+
|
|
28250
|
+
if (props.onNavClicked && !((_data = data[i - 1]) != null && _data.disabled)) props.onNavClicked(i);
|
|
28268
28251
|
|
|
28269
28252
|
if (!forbidClickNav && isComplete && !isHide) {
|
|
28270
28253
|
props.goToStep(i);
|
|
@@ -28298,9 +28281,9 @@
|
|
|
28298
28281
|
lineNumber: 123,
|
|
28299
28282
|
columnNumber: 17
|
|
28300
28283
|
}
|
|
28301
|
-
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (
|
|
28284
|
+
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (_data2 = data[i - 1]).title) == null ? void 0 : _data$title.call(_data2), ((_data3 = data[i - 1]) == null ? void 0 : _data3.withTolltip) && /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
|
|
28302
28285
|
align: "center",
|
|
28303
|
-
label: (
|
|
28286
|
+
label: (_data4 = data[i - 1]) == null ? void 0 : _data4.tooltipsContents,
|
|
28304
28287
|
__self: undefined,
|
|
28305
28288
|
__source: {
|
|
28306
28289
|
fileName: _jsxFileName$4,
|
|
@@ -28319,9 +28302,9 @@
|
|
|
28319
28302
|
lineNumber: 128,
|
|
28320
28303
|
columnNumber: 19
|
|
28321
28304
|
}
|
|
28322
|
-
})), ((
|
|
28305
|
+
})), ((_data5 = data[i - 1]) == null ? void 0 : _data5.comingSoon) && /*#__PURE__*/React__default["default"].createElement(Flex$1, {
|
|
28323
28306
|
css: {
|
|
28324
|
-
marginLeft: (
|
|
28307
|
+
marginLeft: (_data6 = data[i - 1]) != null && _data6.withTolltip ? 0 : '$spacing-03'
|
|
28325
28308
|
},
|
|
28326
28309
|
align: "center",
|
|
28327
28310
|
__self: undefined,
|
|
@@ -28380,7 +28363,7 @@
|
|
|
28380
28363
|
height: 24,
|
|
28381
28364
|
borderRadius: '$round',
|
|
28382
28365
|
border: `4px solid ${isActive ? '$bgGreen' : '$bgInactive'}`,
|
|
28383
|
-
backgroundColor: (
|
|
28366
|
+
backgroundColor: (_data7 = data[i - 1]) != null && _data7.disabled ? '$gray200' : '$white'
|
|
28384
28367
|
},
|
|
28385
28368
|
__self: undefined,
|
|
28386
28369
|
__source: {
|
|
@@ -28398,10 +28381,10 @@
|
|
|
28398
28381
|
lineNumber: 173,
|
|
28399
28382
|
columnNumber: 15
|
|
28400
28383
|
}
|
|
28401
|
-
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (
|
|
28384
|
+
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (_data8 = data[i - 1]).title) == null ? void 0 : _data$title2.call(_data8) : ''), isActive && ((_data9 = data[i - 1]) == null ? void 0 : _data9.withTolltip) && /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
|
|
28402
28385
|
align: "center",
|
|
28403
28386
|
withClick: true,
|
|
28404
|
-
label: (
|
|
28387
|
+
label: (_data10 = data[i - 1]) == null ? void 0 : _data10.tooltipsContents,
|
|
28405
28388
|
__self: undefined,
|
|
28406
28389
|
__source: {
|
|
28407
28390
|
fileName: _jsxFileName$4,
|
|
@@ -28417,11 +28400,11 @@
|
|
|
28417
28400
|
lineNumber: 178,
|
|
28418
28401
|
columnNumber: 19
|
|
28419
28402
|
}
|
|
28420
|
-
})), isActive && ((
|
|
28403
|
+
})), isActive && ((_data11 = data[i - 1]) == null ? void 0 : _data11.comingSoon) && /*#__PURE__*/React__default["default"].createElement(Flex$1, {
|
|
28421
28404
|
align: "center",
|
|
28422
28405
|
justify: "center",
|
|
28423
28406
|
css: {
|
|
28424
|
-
marginTop: (
|
|
28407
|
+
marginTop: (_data12 = data[i - 1]) != null && _data12.withTolltip ? 0 : '$spacing-03'
|
|
28425
28408
|
},
|
|
28426
28409
|
__self: undefined,
|
|
28427
28410
|
__source: {
|
|
@@ -28806,12 +28789,20 @@
|
|
|
28806
28789
|
}
|
|
28807
28790
|
}
|
|
28808
28791
|
});
|
|
28792
|
+
const StyledCard = styled(Card, {
|
|
28793
|
+
height: 'fit-content',
|
|
28794
|
+
width: 'fit-content',
|
|
28795
|
+
maxWidth: 311,
|
|
28796
|
+
padding: '24px !important',
|
|
28797
|
+
boxShadow: '0px 1px 4px rgba(0, 0, 0, 0.04)'
|
|
28798
|
+
});
|
|
28809
28799
|
|
|
28810
28800
|
function Content({
|
|
28811
28801
|
content,
|
|
28812
28802
|
activeId,
|
|
28813
28803
|
isCollapse,
|
|
28814
|
-
isDialog
|
|
28804
|
+
isDialog,
|
|
28805
|
+
onNavClick
|
|
28815
28806
|
}) {
|
|
28816
28807
|
var _getDatasets;
|
|
28817
28808
|
|
|
@@ -28840,7 +28831,7 @@
|
|
|
28840
28831
|
__self: this,
|
|
28841
28832
|
__source: {
|
|
28842
28833
|
fileName: _jsxFileName$2,
|
|
28843
|
-
lineNumber:
|
|
28834
|
+
lineNumber: 106,
|
|
28844
28835
|
columnNumber: 5
|
|
28845
28836
|
}
|
|
28846
28837
|
}, /*#__PURE__*/React__default["default"].createElement(Separator, {
|
|
@@ -28848,7 +28839,7 @@
|
|
|
28848
28839
|
__self: this,
|
|
28849
28840
|
__source: {
|
|
28850
28841
|
fileName: _jsxFileName$2,
|
|
28851
|
-
lineNumber:
|
|
28842
|
+
lineNumber: 107,
|
|
28852
28843
|
columnNumber: 7
|
|
28853
28844
|
}
|
|
28854
28845
|
}), /*#__PURE__*/React__default["default"].createElement(ListWrap, {
|
|
@@ -28858,7 +28849,7 @@
|
|
|
28858
28849
|
__self: this,
|
|
28859
28850
|
__source: {
|
|
28860
28851
|
fileName: _jsxFileName$2,
|
|
28861
|
-
lineNumber:
|
|
28852
|
+
lineNumber: 108,
|
|
28862
28853
|
columnNumber: 7
|
|
28863
28854
|
}
|
|
28864
28855
|
}, (_getDatasets = getDatasets(content, activeId, isCollapse)) == null ? void 0 : _getDatasets.map((item, index) => {
|
|
@@ -28867,7 +28858,7 @@
|
|
|
28867
28858
|
__self: this,
|
|
28868
28859
|
__source: {
|
|
28869
28860
|
fileName: _jsxFileName$2,
|
|
28870
|
-
lineNumber:
|
|
28861
|
+
lineNumber: 111,
|
|
28871
28862
|
columnNumber: 13
|
|
28872
28863
|
}
|
|
28873
28864
|
}, /*#__PURE__*/React__default["default"].createElement(Flex$1, {
|
|
@@ -28886,7 +28877,7 @@
|
|
|
28886
28877
|
__self: this,
|
|
28887
28878
|
__source: {
|
|
28888
28879
|
fileName: _jsxFileName$2,
|
|
28889
|
-
lineNumber:
|
|
28880
|
+
lineNumber: 112,
|
|
28890
28881
|
columnNumber: 15
|
|
28891
28882
|
}
|
|
28892
28883
|
}, /*#__PURE__*/React__default["default"].createElement(Title$1, {
|
|
@@ -28894,8 +28885,11 @@
|
|
|
28894
28885
|
active: (item == null ? void 0 : item.id) === activeId,
|
|
28895
28886
|
href: `#${item == null ? void 0 : item.id}`,
|
|
28896
28887
|
onClick: e => {
|
|
28888
|
+
var _e$currentTarget, _e$currentTarget$href, _e$currentTarget$href2, _e$currentTarget2, _e$currentTarget2$hre, _e$currentTarget2$hre2;
|
|
28889
|
+
|
|
28897
28890
|
e.preventDefault();
|
|
28898
|
-
|
|
28891
|
+
onNavClick == null ? void 0 : onNavClick(e == null ? void 0 : (_e$currentTarget = e.currentTarget) == null ? void 0 : (_e$currentTarget$href = _e$currentTarget.href) == null ? void 0 : (_e$currentTarget$href2 = _e$currentTarget$href.split('#')) == null ? void 0 : _e$currentTarget$href2[1]);
|
|
28892
|
+
const target = window.document.getElementById(e == null ? void 0 : (_e$currentTarget2 = e.currentTarget) == null ? void 0 : (_e$currentTarget2$hre = _e$currentTarget2.href) == null ? void 0 : (_e$currentTarget2$hre2 = _e$currentTarget2$hre.split('#')) == null ? void 0 : _e$currentTarget2$hre2[1]);
|
|
28899
28893
|
|
|
28900
28894
|
if (target) {
|
|
28901
28895
|
var headerOffset = 20;
|
|
@@ -28918,7 +28912,7 @@
|
|
|
28918
28912
|
__self: this,
|
|
28919
28913
|
__source: {
|
|
28920
28914
|
fileName: _jsxFileName$2,
|
|
28921
|
-
lineNumber:
|
|
28915
|
+
lineNumber: 126,
|
|
28922
28916
|
columnNumber: 17
|
|
28923
28917
|
}
|
|
28924
28918
|
}, item == null ? void 0 : item.title), item == null ? void 0 : item.icon));
|
|
@@ -28930,7 +28924,8 @@
|
|
|
28930
28924
|
css,
|
|
28931
28925
|
isMobile,
|
|
28932
28926
|
isDialog,
|
|
28933
|
-
activeId
|
|
28927
|
+
activeId,
|
|
28928
|
+
onNavClick
|
|
28934
28929
|
}) {
|
|
28935
28930
|
const [mobileCollapse, setMobileCollapse] = React.useState(false);
|
|
28936
28931
|
|
|
@@ -28947,7 +28942,7 @@
|
|
|
28947
28942
|
__self: this,
|
|
28948
28943
|
__source: {
|
|
28949
28944
|
fileName: _jsxFileName$2,
|
|
28950
|
-
lineNumber:
|
|
28945
|
+
lineNumber: 169,
|
|
28951
28946
|
columnNumber: 5
|
|
28952
28947
|
}
|
|
28953
28948
|
}, /*#__PURE__*/React__default["default"].createElement(Content, {
|
|
@@ -28955,10 +28950,11 @@
|
|
|
28955
28950
|
isCollapse: mobileCollapse,
|
|
28956
28951
|
isDialog: isDialog,
|
|
28957
28952
|
content: content,
|
|
28953
|
+
onNavClick: onNavClick,
|
|
28958
28954
|
__self: this,
|
|
28959
28955
|
__source: {
|
|
28960
28956
|
fileName: _jsxFileName$2,
|
|
28961
|
-
lineNumber:
|
|
28957
|
+
lineNumber: 170,
|
|
28962
28958
|
columnNumber: 7
|
|
28963
28959
|
}
|
|
28964
28960
|
}), /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
@@ -28970,7 +28966,7 @@
|
|
|
28970
28966
|
__self: this,
|
|
28971
28967
|
__source: {
|
|
28972
28968
|
fileName: _jsxFileName$2,
|
|
28973
|
-
lineNumber:
|
|
28969
|
+
lineNumber: 177,
|
|
28974
28970
|
columnNumber: 7
|
|
28975
28971
|
}
|
|
28976
28972
|
}, mobileCollapse ? /*#__PURE__*/React__default["default"].createElement(icons.ChevronUpOutline, {
|
|
@@ -28980,7 +28976,7 @@
|
|
|
28980
28976
|
__self: this,
|
|
28981
28977
|
__source: {
|
|
28982
28978
|
fileName: _jsxFileName$2,
|
|
28983
|
-
lineNumber:
|
|
28979
|
+
lineNumber: 179,
|
|
28984
28980
|
columnNumber: 11
|
|
28985
28981
|
}
|
|
28986
28982
|
}) : /*#__PURE__*/React__default["default"].createElement(icons.ChevronDownOutline, {
|
|
@@ -28990,7 +28986,7 @@
|
|
|
28990
28986
|
__self: this,
|
|
28991
28987
|
__source: {
|
|
28992
28988
|
fileName: _jsxFileName$2,
|
|
28993
|
-
lineNumber:
|
|
28989
|
+
lineNumber: 181,
|
|
28994
28990
|
columnNumber: 11
|
|
28995
28991
|
}
|
|
28996
28992
|
}))) : /*#__PURE__*/React__default["default"].createElement(DesktopContainer, {
|
|
@@ -28999,23 +28995,50 @@
|
|
|
28999
28995
|
__self: this,
|
|
29000
28996
|
__source: {
|
|
29001
28997
|
fileName: _jsxFileName$2,
|
|
29002
|
-
lineNumber:
|
|
28998
|
+
lineNumber: 186,
|
|
29003
28999
|
columnNumber: 5
|
|
29004
29000
|
}
|
|
29001
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledCard, {
|
|
29002
|
+
showBottomLine: false,
|
|
29003
|
+
__self: this,
|
|
29004
|
+
__source: {
|
|
29005
|
+
fileName: _jsxFileName$2,
|
|
29006
|
+
lineNumber: 187,
|
|
29007
|
+
columnNumber: 7
|
|
29008
|
+
}
|
|
29005
29009
|
}, /*#__PURE__*/React__default["default"].createElement(Content, {
|
|
29006
29010
|
isCollapse: true,
|
|
29007
29011
|
isDialog: isDialog,
|
|
29008
29012
|
content: content,
|
|
29013
|
+
onNavClick: onNavClick,
|
|
29009
29014
|
__self: this,
|
|
29010
29015
|
__source: {
|
|
29011
29016
|
fileName: _jsxFileName$2,
|
|
29012
|
-
lineNumber:
|
|
29013
|
-
columnNumber:
|
|
29017
|
+
lineNumber: 188,
|
|
29018
|
+
columnNumber: 9
|
|
29014
29019
|
}
|
|
29015
|
-
}));
|
|
29020
|
+
})));
|
|
29016
29021
|
}
|
|
29017
29022
|
|
|
29018
|
-
const
|
|
29023
|
+
const StyledPage = styled(Box, {
|
|
29024
|
+
maxWidth: 982
|
|
29025
|
+
});
|
|
29026
|
+
const Page = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__default["default"].createElement(StyledPage, {
|
|
29027
|
+
ref: ref,
|
|
29028
|
+
__self: undefined,
|
|
29029
|
+
__source: {
|
|
29030
|
+
fileName: _jsxFileName$2,
|
|
29031
|
+
lineNumber: 197,
|
|
29032
|
+
columnNumber: 3
|
|
29033
|
+
}
|
|
29034
|
+
}, /*#__PURE__*/React__default["default"].createElement(ScrollSpy__default["default"], _extends({}, props, {
|
|
29035
|
+
__self: undefined,
|
|
29036
|
+
__source: {
|
|
29037
|
+
fileName: _jsxFileName$2,
|
|
29038
|
+
lineNumber: 198,
|
|
29039
|
+
columnNumber: 5
|
|
29040
|
+
}
|
|
29041
|
+
}))));
|
|
29019
29042
|
Page.displayName = 'TableOfContent.Page';
|
|
29020
29043
|
TableOfContent.Page = Page;
|
|
29021
29044
|
TableOfContent.defaultProps = {
|
|
@@ -29041,7 +29064,12 @@
|
|
|
29041
29064
|
/**
|
|
29042
29065
|
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
29043
29066
|
*/
|
|
29044
|
-
activeId: PropTypes__default["default"].string
|
|
29067
|
+
activeId: PropTypes__default["default"].string,
|
|
29068
|
+
|
|
29069
|
+
/**
|
|
29070
|
+
Event Callback on navigation click.
|
|
29071
|
+
*/
|
|
29072
|
+
onNavClick: PropTypes__default["default"].func
|
|
29045
29073
|
};
|
|
29046
29074
|
|
|
29047
29075
|
var TableOfContentPage = function TableOfContentPage(props) {
|