@royaloperahouse/chord 2.4.3-f-chord-development → 2.4.4-a-chord-development
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/CHANGELOG.md +3 -0
- package/dist/chord.cjs.development.js +61 -69
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +61 -69
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/molecules/ReadMore/ReadMore.style.d.ts +3 -0
- package/dist/components/molecules/Table/Table.style.d.ts +1 -2
- package/dist/components/molecules/Table/components/TableCell.d.ts +3 -0
- package/dist/components/molecules/Table/components/TableHelpers.d.ts +4 -0
- package/dist/components/molecules/Table/components/TableRow.d.ts +3 -0
- package/dist/types/tableTypes.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10277,14 +10277,18 @@ var MiniCard = function MiniCard(_ref) {
|
|
|
10277
10277
|
}, title)))));
|
|
10278
10278
|
};
|
|
10279
10279
|
|
|
10280
|
-
var _templateObject$1g, _templateObject2$U, _templateObject3$L, _templateObject4$A;
|
|
10280
|
+
var _templateObject$1g, _templateObject2$U, _templateObject3$L, _templateObject4$A, _templateObject5$s;
|
|
10281
10281
|
var ReadMoreContainer = /*#__PURE__*/styled__default.div(_templateObject$1g || (_templateObject$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0px 0px 12px 0px !important;\n }\n width: 100%;\n"])));
|
|
10282
10282
|
var LinkContainer = /*#__PURE__*/styled__default.div(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-top: 24px;\n gap: 8px;\n\n :hover {\n cursor: pointer;\n }\n\n @media print {\n visibility: hidden;\n }\n"])));
|
|
10283
10283
|
var FullTextContainer = /*#__PURE__*/styled__default.div(_templateObject3$L || (_templateObject3$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n visibility: ", ";\n\n @media print {\n visibility: visible;\n }\n"])), function (_ref) {
|
|
10284
10284
|
var isVisible = _ref.isVisible;
|
|
10285
10285
|
return isVisible ? 'visible' : 'hidden';
|
|
10286
10286
|
});
|
|
10287
|
-
var
|
|
10287
|
+
var IntroTextContainer = /*#__PURE__*/styled__default.div(_templateObject4$A || (_templateObject4$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n visibility: ", ";\n\n @media print {\n visibility: hidden;\n }\n"])), function (_ref2) {
|
|
10288
|
+
var isVisible = _ref2.isVisible;
|
|
10289
|
+
return isVisible ? 'visible' : 'hidden';
|
|
10290
|
+
});
|
|
10291
|
+
var ContentContainer$5 = /*#__PURE__*/styled__default.div(_templateObject5$s || (_templateObject5$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: auto;\n transition: max-height 0.4s ease;\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-weight: var(--font-weight-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n line-height: var(--line-height-body-1);\n text-transform: var(--text-transform-body);\n\n & h1 {\n font-size: var(--font-size-header-4);\n font-family: var(--font-family-header);\n font-feature-settings: var(--font-feature-settings-header);\n font-weight: var(--font-weight-header-4);\n letter-spacing: var(--letter-spacing-header-4);\n line-height: var(--line-height-header-4);\n text-transform: var(--text-transform-header);\n white-space: break-spaces;\n overflow-wrap: break-word;\n }\n\n & h2 {\n font-size: var(--font-size-subtitle-1);\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-weight: var(--font-weight-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n white-space: break-spaces;\n overflow-wrap: break-word;\n }\n\n & em {\n font-family: var(--font-family-body-italics);\n }\n\n & u {\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n }\n @media print {\n visibility: visible;\n max-height: 900px !important;\n }\n\n"])));
|
|
10288
10292
|
|
|
10289
10293
|
var keyDown = function keyDown(e, toggleFunction) {
|
|
10290
10294
|
if (e.key === 'Enter' || e.key === 'Space') {
|
|
@@ -10317,7 +10321,7 @@ var ReadMore = function ReadMore(_ref) {
|
|
|
10317
10321
|
if (readMoreContent != null && readMoreContent.current && initOpen) {
|
|
10318
10322
|
setTextHeight(readMoreContent.current.scrollHeight + "px");
|
|
10319
10323
|
}
|
|
10320
|
-
}, [readMoreContent, initOpen
|
|
10324
|
+
}, [readMoreContent, initOpen]);
|
|
10321
10325
|
|
|
10322
10326
|
var toggleFullText = function toggleFullText() {
|
|
10323
10327
|
if (!fullText) return;
|
|
@@ -10334,8 +10338,8 @@ var ReadMore = function ReadMore(_ref) {
|
|
|
10334
10338
|
var truncatedText = truncate ? truncateReactNodeString(introText != null ? introText : '', INTRO_CHAR_LIMIT, true) : introText;
|
|
10335
10339
|
|
|
10336
10340
|
var IntroText = function IntroText() {
|
|
10337
|
-
return introText ? /*#__PURE__*/React__default.createElement(ContentContainer$5, null, /*#__PURE__*/React__default.createElement(
|
|
10338
|
-
isVisible:
|
|
10341
|
+
return introText ? /*#__PURE__*/React__default.createElement(ContentContainer$5, null, /*#__PURE__*/React__default.createElement(IntroTextContainer, {
|
|
10342
|
+
isVisible: !isFullTextOpen
|
|
10339
10343
|
}, truncate ? /*#__PURE__*/React__default.createElement("div", {
|
|
10340
10344
|
dangerouslySetInnerHTML: {
|
|
10341
10345
|
__html: "" + truncatedText
|
|
@@ -10371,7 +10375,7 @@ var ReadMore = function ReadMore(_ref) {
|
|
|
10371
10375
|
}, isFullTextOpen ? "" + hideText : "" + showMoreText)));
|
|
10372
10376
|
};
|
|
10373
10377
|
|
|
10374
|
-
var _templateObject$1h, _templateObject2$V, _templateObject3$M, _templateObject4$B, _templateObject5$
|
|
10378
|
+
var _templateObject$1h, _templateObject2$V, _templateObject3$M, _templateObject4$B, _templateObject5$t, _templateObject6$n;
|
|
10375
10379
|
var Container$5 = /*#__PURE__*/styled__default.div(_templateObject$1h || (_templateObject$1h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
10376
10380
|
var Sections = /*#__PURE__*/styled__default.div(_templateObject2$V || (_templateObject2$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n"])));
|
|
10377
10381
|
var Section = /*#__PURE__*/styled__default.div(_templateObject3$M || (_templateObject3$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: 2px;\n background-color: ", ";\n"])), function (_ref) {
|
|
@@ -10379,7 +10383,7 @@ var Section = /*#__PURE__*/styled__default.div(_templateObject3$M || (_templateO
|
|
|
10379
10383
|
return "var(--base-color-" + color + ")";
|
|
10380
10384
|
});
|
|
10381
10385
|
var BottomLine = /*#__PURE__*/styled__default.div(_templateObject4$B || (_templateObject4$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: 20px;\n"])));
|
|
10382
|
-
var Text = /*#__PURE__*/styled__default.div(_templateObject5$
|
|
10386
|
+
var Text = /*#__PURE__*/styled__default.div(_templateObject5$t || (_templateObject5$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: ", ";\n"])), function (_ref2) {
|
|
10383
10387
|
var color = _ref2.color;
|
|
10384
10388
|
return "var(--base-color-" + color + ")";
|
|
10385
10389
|
});
|
|
@@ -10469,7 +10473,7 @@ var PasswordStrength = function PasswordStrength(_ref) {
|
|
|
10469
10473
|
}, strengthLabel))));
|
|
10470
10474
|
};
|
|
10471
10475
|
|
|
10472
|
-
var _templateObject$1i, _templateObject2$W, _templateObject3$N, _templateObject4$C, _templateObject5$
|
|
10476
|
+
var _templateObject$1i, _templateObject2$W, _templateObject3$N, _templateObject4$C, _templateObject5$u;
|
|
10473
10477
|
var MenuContainer$2 = /*#__PURE__*/styled__default.nav(_templateObject$1i || (_templateObject$1i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n padding: 0;\n margin: 0;\n"])));
|
|
10474
10478
|
var MenuList = /*#__PURE__*/styled__default.ul(_templateObject2$W || (_templateObject2$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n list-style: none;\n border-right: 1px solid var(--base-color-", ");\n li {\n margin-left: -5px;\n }\n"])), exports.Colors.LightGrey);
|
|
10475
10479
|
var MobileButton = /*#__PURE__*/styled__default.button(_templateObject3$N || (_templateObject3$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n line-height: var(--line-height-navigation);\n font-size: var(--font-size-navigation);\n font-family: var(--font-family-navigation);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--letter-spacing-navigation);\n color: var(--base-color-", ");\n text-transform: uppercase;\n margin: 0;\n padding: 16px 46px 14px 20px;\n background: var(--base-color-", ");\n border: 1px solid var(--base-color-", ");\n border-radius: 0;\n display: block;\n width: 100%;\n text-align: left;\n cursor: pointer;\n position: relative;\n span {\n width: 25px;\n height: 25px;\n position: absolute;\n top: 50%;\n margin-top: -12px;\n right: 10px;\n }\n"])), exports.Colors.Black, exports.Colors.White, exports.Colors.DarkGrey);
|
|
@@ -10477,7 +10481,7 @@ var MenuItem$1 = /*#__PURE__*/styled__default.a(_templateObject4$C || (_template
|
|
|
10477
10481
|
var isActive = _ref.isActive;
|
|
10478
10482
|
return isActive ? "var(--base-color-" + exports.Colors.MidGrey + ")" : 'none';
|
|
10479
10483
|
}, exports.Colors.MidGrey);
|
|
10480
|
-
var MobileMenuList = /*#__PURE__*/styled__default.ul(_templateObject5$
|
|
10484
|
+
var MobileMenuList = /*#__PURE__*/styled__default.ul(_templateObject5$u || (_templateObject5$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n list-style: none;\n display: ", ";\n background: var(--base-color-", ");\n border: 1px solid var(--base-color-", ");\n border-top: 0;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n ", " {\n padding: 16px 20px 15px 20px;\n }\n"])), function (_ref2) {
|
|
10481
10485
|
var isOpen = _ref2.isOpen;
|
|
10482
10486
|
return isOpen ? 'block' : 'none';
|
|
10483
10487
|
}, exports.Colors.White, exports.Colors.DarkGrey, MenuItem$1);
|
|
@@ -10647,27 +10651,28 @@ var AuxiliaryNav = function AuxiliaryNav(_ref6) {
|
|
|
10647
10651
|
});
|
|
10648
10652
|
};
|
|
10649
10653
|
|
|
10650
|
-
var _templateObject$1j, _templateObject2$X, _templateObject3$O, _templateObject4$D, _templateObject5$
|
|
10654
|
+
var _templateObject$1j, _templateObject2$X, _templateObject3$O, _templateObject4$D, _templateObject5$v, _templateObject6$o, _templateObject7$f, _templateObject8$c, _templateObject9$7, _templateObject10$7;
|
|
10651
10655
|
var TableContainer = /*#__PURE__*/styled__default.table(_templateObject$1j || (_templateObject$1j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-collapse: collapse;\n"])));
|
|
10652
10656
|
var Container$6 = /*#__PURE__*/styled__default.div(_templateObject2$X || (_templateObject2$X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: auto;\n"])));
|
|
10653
10657
|
var Wrapper$7 = /*#__PURE__*/styled__default.div(_templateObject3$O || (_templateObject3$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
10654
|
-
var TableHeader = /*#__PURE__*/styled__default.th(_templateObject4$D || (_templateObject4$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: var(--font-size-subtitle-2);\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-weight: var(--font-weight-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n padding: 30px 30px 30px 0;\n text-align: left;\n text-transform: uppercase;\n\n &:last-child {\n white-space: nowrap;\n width: auto;\n }\n\n &:not(:last-child) {\n width: ", ";\n }\n\n @media ", " {\n &:last-child {\n white-space: nowrap;\n }\n }\n\n @media ", " {\n padding: 20px 20px 20px 0;\n\n &:last-child {\n white-space: normal;\n }\n }\n"])), function (props) {
|
|
10658
|
+
var TableHeader = /*#__PURE__*/styled__default.th(_templateObject4$D || (_templateObject4$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: var(--font-size-subtitle-2);\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-weight: var(--font-weight-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n padding: 30px 30px 30px 0;\n text-align: left;\n text-transform: uppercase;\n border-bottom: 1px solid;\n border-top: 1px solid;\n border-color: ", ";\n\n &:last-child {\n white-space: nowrap;\n width: auto;\n }\n\n &:not(:last-child) {\n width: ", ";\n }\n\n @media ", " {\n &:last-child {\n white-space: nowrap;\n }\n }\n\n @media ", " {\n padding: 20px 20px 20px 0;\n\n &:last-child {\n white-space: normal;\n }\n }\n"])), function (props) {
|
|
10659
|
+
return "var(--base-color-" + props.lineColor + ")";
|
|
10660
|
+
}, function (props) {
|
|
10655
10661
|
return "calc(100% / " + (props.columns - 1) + ")";
|
|
10656
10662
|
}, devices.tablet, devices.mobile);
|
|
10657
|
-
var TableCell = /*#__PURE__*/styled__default.td(_templateObject5$
|
|
10663
|
+
var TableCell = /*#__PURE__*/styled__default.td(_templateObject5$v || (_templateObject5$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-weight: var(--font-weight-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n line-height: var(--line-height-body-1);\n padding: 30px 30px 30px 0;\n text-align: left;\n vertical-align: top;\n border-bottom: 1px solid;\n border-color: ", ";\n\n &:last-child {\n width: auto;\n }\n\n &:not(:last-child) {\n width: ", ";\n }\n\n > span > svg {\n width: 24px;\n height: 24px;\n }\n\n @media ", " {\n padding: 20px 20px 20px 0;\n }\n"])), function (props) {
|
|
10664
|
+
return "var(--base-color-" + props.lineColor + ")";
|
|
10665
|
+
}, function (props) {
|
|
10658
10666
|
return "calc(100% / " + (props.columns - 1) + ")";
|
|
10659
10667
|
}, devices.mobile);
|
|
10660
|
-
var
|
|
10661
|
-
|
|
10662
|
-
});
|
|
10663
|
-
var Pagination$1 = /*#__PURE__*/styled__default.div(_templateObject7$f || (_templateObject7$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 40px 0;\n flex-wrap: nowrap;\n flex-direction: row;\n list-style: none;\n max-width: fit-content;\n margin: auto;\n li {\n font-size: var(--font-size-subtitle-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n margin-left: 16px;\n color: var(--base-color-dark-grey);\n display: flex;\n align-items: center;\n border-bottom: none;\n }\n"])));
|
|
10664
|
-
var PageNumber$1 = /*#__PURE__*/styled__default.button(_templateObject8$c || (_templateObject8$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: none;\n border: none;\n padding: 0;\n font-size: inherit;\n color: inherit;\n cursor: pointer;\n display: inline-block;\n margin: 0;\n border-bottom: 1px solid var(--base-color-transparent);\n line-height: var(--base-line-height);\n text-decoration: none;\n font-family: var(--font-family-body-1);\n\n :hover {\n outline: none;\n color: var(--base-color-core);\n border-bottom: 1px solid var(--base-color-core);\n svg > path {\n fill: var(--base-color-core);\n }\n }\n\n /* Active state */\n ", "\n"])), function (_ref) {
|
|
10668
|
+
var Pagination$1 = /*#__PURE__*/styled__default.div(_templateObject6$o || (_templateObject6$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 40px 0;\n flex-wrap: nowrap;\n flex-direction: row;\n list-style: none;\n max-width: fit-content;\n margin: auto;\n li {\n font-size: var(--font-size-subtitle-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n margin-left: 16px;\n color: var(--base-color-dark-grey);\n display: flex;\n align-items: center;\n border-bottom: none;\n }\n"])));
|
|
10669
|
+
var PageNumber$1 = /*#__PURE__*/styled__default.button(_templateObject7$f || (_templateObject7$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: none;\n border: none;\n padding: 0;\n font-size: inherit;\n color: inherit;\n cursor: pointer;\n display: inline-block;\n margin: 0;\n border-bottom: 1px solid var(--base-color-transparent);\n line-height: var(--base-line-height);\n text-decoration: none;\n font-family: var(--font-family-body-1);\n\n :hover {\n outline: none;\n color: var(--base-color-core);\n border-bottom: 1px solid var(--base-color-core);\n svg > path {\n fill: var(--base-color-core);\n }\n }\n\n /* Active state */\n ", "\n"])), function (_ref) {
|
|
10665
10670
|
var active = _ref.active;
|
|
10666
10671
|
return active === 'true' && "\n color: var(--base-color-core);\n border-bottom: 1px solid var(--base-color-core);\n ";
|
|
10667
10672
|
});
|
|
10668
|
-
var Next = /*#__PURE__*/styled__default.span(
|
|
10669
|
-
var ScrollButtons = /*#__PURE__*/styled__default.div(
|
|
10670
|
-
var AriaDescription = /*#__PURE__*/styled__default.span(
|
|
10673
|
+
var Next = /*#__PURE__*/styled__default.span(_templateObject8$c || (_templateObject8$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n width: 25px;\n align-items: center;\n justify-content: center;\n margin-left: 0;\n span {\n height: 1.5em;\n svg > path {\n fill: var(--base-color-dark-grey);\n }\n }\n"])));
|
|
10674
|
+
var ScrollButtons = /*#__PURE__*/styled__default.div(_templateObject9$7 || (_templateObject9$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n padding: 0 0 24px 0;\n\n div:hover {\n background-color: var(--base-color-light-grey);\n }\n\n > div > div {\n background-color: var(--base-color-light-grey);\n }\n\n svg path {\n fill: var(--base-color-black) !important;\n }\n"])));
|
|
10675
|
+
var AriaDescription = /*#__PURE__*/styled__default.span(_templateObject10$7 || (_templateObject10$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n left: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n"])));
|
|
10671
10676
|
|
|
10672
10677
|
var Content = function Content(_ref) {
|
|
10673
10678
|
var content = _ref.content;
|
|
@@ -10677,25 +10682,37 @@ var Content = function Content(_ref) {
|
|
|
10677
10682
|
}
|
|
10678
10683
|
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, content);
|
|
10679
10684
|
};
|
|
10685
|
+
var scrollTable = function scrollTable(tableRef, direction) {
|
|
10686
|
+
if (tableRef.current) {
|
|
10687
|
+
var currentScroll = tableRef.current.scrollLeft;
|
|
10688
|
+
var scrollAmount = direction === 'left' ? -300 : 300;
|
|
10689
|
+
tableRef.current.scrollTo({
|
|
10690
|
+
left: currentScroll + scrollAmount,
|
|
10691
|
+
behavior: 'smooth'
|
|
10692
|
+
});
|
|
10693
|
+
}
|
|
10694
|
+
};
|
|
10680
10695
|
|
|
10681
|
-
var Cell = function Cell(
|
|
10682
|
-
var cell =
|
|
10683
|
-
cellIndex =
|
|
10684
|
-
columns =
|
|
10696
|
+
var Cell = function Cell(_ref) {
|
|
10697
|
+
var cell = _ref.cell,
|
|
10698
|
+
cellIndex = _ref.cellIndex,
|
|
10699
|
+
columns = _ref.columns,
|
|
10700
|
+
lineColor = _ref.lineColor;
|
|
10685
10701
|
return /*#__PURE__*/React__default.createElement(TableCell, {
|
|
10686
10702
|
key: cellIndex,
|
|
10687
10703
|
columns: columns,
|
|
10688
|
-
role: "gridcell"
|
|
10704
|
+
role: "gridcell",
|
|
10705
|
+
lineColor: lineColor
|
|
10689
10706
|
}, /*#__PURE__*/React__default.createElement(Content, {
|
|
10690
10707
|
content: cell
|
|
10691
10708
|
}));
|
|
10692
10709
|
};
|
|
10693
10710
|
|
|
10694
|
-
var Row = function Row(
|
|
10695
|
-
var row =
|
|
10696
|
-
rowIndex =
|
|
10697
|
-
columns =
|
|
10698
|
-
lineColor =
|
|
10711
|
+
var Row = function Row(_ref) {
|
|
10712
|
+
var row = _ref.row,
|
|
10713
|
+
rowIndex = _ref.rowIndex,
|
|
10714
|
+
columns = _ref.columns,
|
|
10715
|
+
lineColor = _ref.lineColor;
|
|
10699
10716
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
10700
10717
|
key: rowIndex
|
|
10701
10718
|
}, /*#__PURE__*/React__default.createElement("tr", null, row.map(function (cell, index) {
|
|
@@ -10703,37 +10720,20 @@ var Row = function Row(_ref3) {
|
|
|
10703
10720
|
key: index,
|
|
10704
10721
|
cell: cell,
|
|
10705
10722
|
cellIndex: index,
|
|
10706
|
-
columns: columns
|
|
10707
|
-
|
|
10708
|
-
})), /*#__PURE__*/React__default.createElement("tr", {
|
|
10709
|
-
"aria-hidden": "true"
|
|
10710
|
-
}, /*#__PURE__*/React__default.createElement("td", {
|
|
10711
|
-
colSpan: columns,
|
|
10712
|
-
"aria-hidden": "true"
|
|
10713
|
-
}, /*#__PURE__*/React__default.createElement(LineContainer$1, {
|
|
10714
|
-
lineColor: lineColor
|
|
10715
|
-
}))));
|
|
10716
|
-
};
|
|
10717
|
-
|
|
10718
|
-
var scrollTable = function scrollTable(tableRef, direction) {
|
|
10719
|
-
if (tableRef.current) {
|
|
10720
|
-
var currentScroll = tableRef.current.scrollLeft;
|
|
10721
|
-
var scrollAmount = direction === 'left' ? -300 : 300;
|
|
10722
|
-
tableRef.current.scrollTo({
|
|
10723
|
-
left: currentScroll + scrollAmount,
|
|
10724
|
-
behavior: 'smooth'
|
|
10723
|
+
columns: columns,
|
|
10724
|
+
lineColor: lineColor
|
|
10725
10725
|
});
|
|
10726
|
-
}
|
|
10726
|
+
})));
|
|
10727
10727
|
};
|
|
10728
10728
|
|
|
10729
|
-
var Table = function Table(
|
|
10730
|
-
var columns =
|
|
10731
|
-
headings =
|
|
10732
|
-
children =
|
|
10733
|
-
lineColors =
|
|
10734
|
-
rowsPerPage =
|
|
10735
|
-
pagination =
|
|
10736
|
-
description =
|
|
10729
|
+
var Table = function Table(_ref) {
|
|
10730
|
+
var columns = _ref.columns,
|
|
10731
|
+
headings = _ref.headings,
|
|
10732
|
+
children = _ref.children,
|
|
10733
|
+
lineColors = _ref.lineColors,
|
|
10734
|
+
rowsPerPage = _ref.rowsPerPage,
|
|
10735
|
+
pagination = _ref.pagination,
|
|
10736
|
+
description = _ref.description;
|
|
10737
10737
|
|
|
10738
10738
|
var _useState = React.useState(0),
|
|
10739
10739
|
currentPage = _useState[0],
|
|
@@ -10754,7 +10754,6 @@ var Table = function Table(_ref4) {
|
|
|
10754
10754
|
|
|
10755
10755
|
horizontalScroll();
|
|
10756
10756
|
window.addEventListener('resize', horizontalScroll);
|
|
10757
|
-
console.log('~~~ horizontal Scroll ~~~');
|
|
10758
10757
|
return function () {
|
|
10759
10758
|
return window.removeEventListener('resize', horizontalScroll);
|
|
10760
10759
|
};
|
|
@@ -10793,19 +10792,12 @@ var Table = function Table(_ref4) {
|
|
|
10793
10792
|
key: index,
|
|
10794
10793
|
role: "columnheader",
|
|
10795
10794
|
scope: "col",
|
|
10796
|
-
columns: columns
|
|
10795
|
+
columns: columns,
|
|
10796
|
+
lineColor: lineColor
|
|
10797
10797
|
}, /*#__PURE__*/React__default.createElement(Content, {
|
|
10798
10798
|
content: heading
|
|
10799
10799
|
}));
|
|
10800
|
-
})), /*#__PURE__*/React__default.createElement("
|
|
10801
|
-
"aria-hidden": "true"
|
|
10802
|
-
}, ' ', /*#__PURE__*/React__default.createElement("td", {
|
|
10803
|
-
colSpan: columns,
|
|
10804
|
-
"aria-hidden": "true"
|
|
10805
|
-
}, /*#__PURE__*/React__default.createElement(LineContainer$1, {
|
|
10806
|
-
lineColor: lineColor,
|
|
10807
|
-
role: "presentation"
|
|
10808
|
-
})))), /*#__PURE__*/React__default.createElement("tbody", {
|
|
10800
|
+
}))), /*#__PURE__*/React__default.createElement("tbody", {
|
|
10809
10801
|
role: "rowgroup"
|
|
10810
10802
|
}, ' ', Array.isArray(currentRows) && currentRows.map(function (row, rowIndex) {
|
|
10811
10803
|
return /*#__PURE__*/React__default.createElement(Row, {
|