@majoo-ui/react 1.61.10 → 1.61.11-rc.2

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/index.esm.js CHANGED
@@ -44,7 +44,7 @@ import { MapContainer, Circle, TileLayer, useMapEvents } from '@monsonjeremy/rea
44
44
  import 'leaflet/dist/leaflet.css';
45
45
  import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css';
46
46
  import 'leaflet-defaulticon-compatibility';
47
- import { ResponsiveContainer, LineChart as LineChart$1, XAxis, YAxis, CartesianGrid, Tooltip as Tooltip$2, Line as Line$2, BarChart, Legend, Bar, Cell, LabelList, PieChart, Pie, Sector } from 'recharts';
47
+ import { ResponsiveContainer, LineChart as LineChart$1, XAxis, YAxis, CartesianGrid, Tooltip as Tooltip$2, Line as Line$2, BarChart, Legend, Bar, Cell as Cell$1, LabelList, PieChart, Pie, Sector } from 'recharts';
48
48
  import { EditorState } from 'draft-js';
49
49
  import { Editor } from 'react-draft-wysiwyg';
50
50
  import { ContextMenuTrigger as ContextMenuTrigger$1, ContextMenu as ContextMenu$1, MenuItem } from 'react-contextmenu';
@@ -59,10 +59,12 @@ import SignaturePad from 'react-signature-pad-wrapper';
59
59
 
60
60
  var _jsxFileName$13 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
61
61
  function ThemeProvider({
62
+ name,
62
63
  theme,
63
64
  children
64
65
  }) {
65
66
  return /*#__PURE__*/React__default.createElement("div", {
67
+ id: name,
66
68
  className: theme,
67
69
  __self: this,
68
70
  __source: {
@@ -73,9 +75,13 @@ function ThemeProvider({
73
75
  }, children);
74
76
  }
75
77
  ThemeProvider.propTypes = {
78
+ name: PropTypes.string,
76
79
  theme: PropTypes.object.isRequired,
77
80
  children: PropTypes.node.isRequired
78
81
  };
82
+ ThemeProvider.defaultProps = {
83
+ name: 'default'
84
+ };
79
85
 
80
86
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
81
87
 
@@ -1226,8 +1232,18 @@ const {
1226
1232
  });
1227
1233
  createTheme({
1228
1234
  colors: {
1229
- bgWhite: '#000000',
1230
- bgDark: '#FFFFFF'
1235
+ bgWhite: '#003030',
1236
+ bgGray: '#003030',
1237
+ bgDark: '#FFFFFF',
1238
+ textPrimary: '#FFFFFF',
1239
+ textSecondary: '#FFFFFF',
1240
+ bgHeader: '#004a48',
1241
+ btnPrimary: '#001f1f',
1242
+ btnSecondary: '#003030',
1243
+ primary50: '#001f1f',
1244
+ primary100: '#001f1f',
1245
+ iconPrimary: '#FFFFFF',
1246
+ bgBorder: '#004a49'
1231
1247
  }
1232
1248
  });
1233
1249
  const colors$8 = foundations.colors;
@@ -1403,6 +1419,7 @@ const applyGlobalStyles = additionaStyles => {
1403
1419
  var _jsxFileName$12 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
1404
1420
  function MajooProvider({
1405
1421
  children,
1422
+ name,
1406
1423
  theme: theme$1 = theme,
1407
1424
  extendStyle,
1408
1425
  disableGlobalStyle
@@ -1413,6 +1430,7 @@ function MajooProvider({
1413
1430
  } = useTranslation();
1414
1431
  moment.locale(i18n && i18n.language ? i18n.language : 'id');
1415
1432
  return /*#__PURE__*/React__default.createElement(ThemeProvider, {
1433
+ name: name,
1416
1434
  theme: theme$1,
1417
1435
  __self: this,
1418
1436
  __source: {
@@ -1423,11 +1441,18 @@ function MajooProvider({
1423
1441
  }, children);
1424
1442
  }
1425
1443
  MajooProvider.propTypes = {
1444
+ name: PropTypes.string,
1426
1445
  theme: PropTypes.object.isRequired,
1427
1446
  children: PropTypes.node.isRequired,
1428
1447
  extendStyle: PropTypes.object,
1429
1448
  disableGlobalStyle: PropTypes.bool
1430
1449
  };
1450
+ MajooProvider.defaultProps = {
1451
+ name: 'default',
1452
+ theme: theme,
1453
+ extendStyle: {},
1454
+ disableGlobalStyle: false
1455
+ };
1431
1456
 
1432
1457
  const Box = styled('div', {
1433
1458
  variants: {
@@ -22412,6 +22437,9 @@ const PaginationButton = ({
22412
22437
  buttonType: "secondary",
22413
22438
  disabled: currentPage === 1,
22414
22439
  onClick: () => handleSelectPage(1),
22440
+ css: {
22441
+ color: '$iconPrimary'
22442
+ },
22415
22443
  __self: undefined,
22416
22444
  __source: {
22417
22445
  fileName: _jsxFileName$l,
@@ -22419,11 +22447,11 @@ const PaginationButton = ({
22419
22447
  columnNumber: 17
22420
22448
  }
22421
22449
  }, /*#__PURE__*/React__default.createElement(ArrowLeftOutline, {
22422
- color: currentPage === 1 ? colors$8.iconDisable : colors$8.iconPrimary,
22450
+ color: "currentColor",
22423
22451
  __self: undefined,
22424
22452
  __source: {
22425
22453
  fileName: _jsxFileName$l,
22426
- lineNumber: 191,
22454
+ lineNumber: 194,
22427
22455
  columnNumber: 19
22428
22456
  }
22429
22457
  })), isLg ? /*#__PURE__*/React__default.createElement(PrevNextButtonIcon, {
@@ -22435,7 +22463,7 @@ const PaginationButton = ({
22435
22463
  __self: undefined,
22436
22464
  __source: {
22437
22465
  fileName: _jsxFileName$l,
22438
- lineNumber: 195,
22466
+ lineNumber: 198,
22439
22467
  columnNumber: 17
22440
22468
  }
22441
22469
  }) : /*#__PURE__*/React__default.createElement(PrevNextButton, {
@@ -22446,7 +22474,7 @@ const PaginationButton = ({
22446
22474
  __self: undefined,
22447
22475
  __source: {
22448
22476
  fileName: _jsxFileName$l,
22449
- lineNumber: 203,
22477
+ lineNumber: 206,
22450
22478
  columnNumber: 17
22451
22479
  }
22452
22480
  }, t('previousButton', 'Sebelumnya'))), generatePages().map((page, index) => {
@@ -22457,7 +22485,7 @@ const PaginationButton = ({
22457
22485
  __self: undefined,
22458
22486
  __source: {
22459
22487
  fileName: _jsxFileName$l,
22460
- lineNumber: 216,
22488
+ lineNumber: 219,
22461
22489
  columnNumber: 15
22462
22490
  }
22463
22491
  }, page);
@@ -22470,7 +22498,7 @@ const PaginationButton = ({
22470
22498
  __self: undefined,
22471
22499
  __source: {
22472
22500
  fileName: _jsxFileName$l,
22473
- lineNumber: 228,
22501
+ lineNumber: 231,
22474
22502
  columnNumber: 17
22475
22503
  }
22476
22504
  }) : /*#__PURE__*/React__default.createElement(PrevNextButton, {
@@ -22481,7 +22509,7 @@ const PaginationButton = ({
22481
22509
  __self: undefined,
22482
22510
  __source: {
22483
22511
  fileName: _jsxFileName$l,
22484
- lineNumber: 236,
22512
+ lineNumber: 239,
22485
22513
  columnNumber: 17
22486
22514
  }
22487
22515
  }, t('nextButton', 'Selanjutnya')), !isLg && /*#__PURE__*/React__default.createElement(IconButton, {
@@ -22489,18 +22517,21 @@ const PaginationButton = ({
22489
22517
  buttonType: "secondary",
22490
22518
  disabled: currentPage === totalPages,
22491
22519
  onClick: () => handleSelectPage(totalPages),
22520
+ css: {
22521
+ color: '$iconPrimary'
22522
+ },
22492
22523
  __self: undefined,
22493
22524
  __source: {
22494
22525
  fileName: _jsxFileName$l,
22495
- lineNumber: 247,
22526
+ lineNumber: 250,
22496
22527
  columnNumber: 17
22497
22528
  }
22498
22529
  }, /*#__PURE__*/React__default.createElement(ArrowRightOutline, {
22499
- color: currentPage === totalPages ? colors$8.iconDisable : colors$8.iconPrimary,
22530
+ color: "currentColor",
22500
22531
  __self: undefined,
22501
22532
  __source: {
22502
22533
  fileName: _jsxFileName$l,
22503
- lineNumber: 253,
22534
+ lineNumber: 259,
22504
22535
  columnNumber: 19
22505
22536
  }
22506
22537
  })))), !hideInputPageSection && totalPages > 1 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Separator$2, {
@@ -22513,7 +22544,7 @@ const PaginationButton = ({
22513
22544
  __self: undefined,
22514
22545
  __source: {
22515
22546
  fileName: _jsxFileName$l,
22516
- lineNumber: 262,
22547
+ lineNumber: 268,
22517
22548
  columnNumber: 13
22518
22549
  }
22519
22550
  }), /*#__PURE__*/React__default.createElement(Box, {
@@ -22526,7 +22557,7 @@ const PaginationButton = ({
22526
22557
  __self: undefined,
22527
22558
  __source: {
22528
22559
  fileName: _jsxFileName$l,
22529
- lineNumber: 270,
22560
+ lineNumber: 276,
22530
22561
  columnNumber: 13
22531
22562
  }
22532
22563
  }, /*#__PURE__*/React__default.createElement(Text$1, {
@@ -22543,7 +22574,7 @@ const PaginationButton = ({
22543
22574
  __self: undefined,
22544
22575
  __source: {
22545
22576
  fileName: _jsxFileName$l,
22546
- lineNumber: 271,
22577
+ lineNumber: 277,
22547
22578
  columnNumber: 15
22548
22579
  }
22549
22580
  }, t('gotoPageText', 'Ke Halaman')), isMobilePagination ? /*#__PURE__*/React__default.createElement(GoToPageBox, {
@@ -22556,7 +22587,7 @@ const PaginationButton = ({
22556
22587
  __self: undefined,
22557
22588
  __source: {
22558
22589
  fileName: _jsxFileName$l,
22559
- lineNumber: 283,
22590
+ lineNumber: 289,
22560
22591
  columnNumber: 17
22561
22592
  }
22562
22593
  }, goToPage) : /*#__PURE__*/React__default.createElement(InputNumber, {
@@ -22583,14 +22614,14 @@ const PaginationButton = ({
22583
22614
  __self: undefined,
22584
22615
  __source: {
22585
22616
  fileName: _jsxFileName$l,
22586
- lineNumber: 287,
22617
+ lineNumber: 293,
22587
22618
  columnNumber: 17
22588
22619
  }
22589
22620
  })))), /*#__PURE__*/React__default.createElement(ModalDialog, {
22590
22621
  __self: undefined,
22591
22622
  __source: {
22592
22623
  fileName: _jsxFileName$l,
22593
- lineNumber: 315,
22624
+ lineNumber: 321,
22594
22625
  columnNumber: 7
22595
22626
  }
22596
22627
  }, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
@@ -22600,7 +22631,7 @@ const PaginationButton = ({
22600
22631
  __self: undefined,
22601
22632
  __source: {
22602
22633
  fileName: _jsxFileName$l,
22603
- lineNumber: 316,
22634
+ lineNumber: 322,
22604
22635
  columnNumber: 9
22605
22636
  }
22606
22637
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -22608,21 +22639,21 @@ const PaginationButton = ({
22608
22639
  __self: undefined,
22609
22640
  __source: {
22610
22641
  fileName: _jsxFileName$l,
22611
- lineNumber: 317,
22642
+ lineNumber: 323,
22612
22643
  columnNumber: 11
22613
22644
  }
22614
22645
  })), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
22615
22646
  __self: undefined,
22616
22647
  __source: {
22617
22648
  fileName: _jsxFileName$l,
22618
- lineNumber: 319,
22649
+ lineNumber: 325,
22619
22650
  columnNumber: 9
22620
22651
  }
22621
22652
  }, t('gotoPageText', 'Ke Halaman')), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
22622
22653
  __self: undefined,
22623
22654
  __source: {
22624
22655
  fileName: _jsxFileName$l,
22625
- lineNumber: 320,
22656
+ lineNumber: 326,
22626
22657
  columnNumber: 9
22627
22658
  }
22628
22659
  }, /*#__PURE__*/React__default.createElement("form", {
@@ -22634,7 +22665,7 @@ const PaginationButton = ({
22634
22665
  __self: undefined,
22635
22666
  __source: {
22636
22667
  fileName: _jsxFileName$l,
22637
- lineNumber: 321,
22668
+ lineNumber: 327,
22638
22669
  columnNumber: 11
22639
22670
  }
22640
22671
  }, /*#__PURE__*/React__default.createElement(InputNumber, {
@@ -22651,14 +22682,14 @@ const PaginationButton = ({
22651
22682
  __self: undefined,
22652
22683
  __source: {
22653
22684
  fileName: _jsxFileName$l,
22654
- lineNumber: 327,
22685
+ lineNumber: 333,
22655
22686
  columnNumber: 13
22656
22687
  }
22657
22688
  }))), /*#__PURE__*/React__default.createElement(ModalDialogFooter, {
22658
22689
  __self: undefined,
22659
22690
  __source: {
22660
22691
  fileName: _jsxFileName$l,
22661
- lineNumber: 336,
22692
+ lineNumber: 342,
22662
22693
  columnNumber: 9
22663
22694
  }
22664
22695
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -22669,7 +22700,7 @@ const PaginationButton = ({
22669
22700
  __self: undefined,
22670
22701
  __source: {
22671
22702
  fileName: _jsxFileName$l,
22672
- lineNumber: 337,
22703
+ lineNumber: 343,
22673
22704
  columnNumber: 11
22674
22705
  }
22675
22706
  }, /*#__PURE__*/React__default.createElement(Button$4, {
@@ -22684,7 +22715,7 @@ const PaginationButton = ({
22684
22715
  __self: undefined,
22685
22716
  __source: {
22686
22717
  fileName: _jsxFileName$l,
22687
- lineNumber: 338,
22718
+ lineNumber: 344,
22688
22719
  columnNumber: 13
22689
22720
  }
22690
22721
  }, t('btnCancelText', 'Batal')), /*#__PURE__*/React__default.createElement(Button$4, {
@@ -22699,7 +22730,7 @@ const PaginationButton = ({
22699
22730
  __self: undefined,
22700
22731
  __source: {
22701
22732
  fileName: _jsxFileName$l,
22702
- lineNumber: 349,
22733
+ lineNumber: 355,
22703
22734
  columnNumber: 13
22704
22735
  }
22705
22736
  }, t('btnSubmitText', 'Lanjutkan'))))));
@@ -22793,6 +22824,7 @@ function PaginationInfo(_ref) {
22793
22824
  columnNumber: 13
22794
22825
  }
22795
22826
  }, /*#__PURE__*/React__default.createElement(Text$1, {
22827
+ color: "primary",
22796
22828
  variant: "status",
22797
22829
  __self: this,
22798
22830
  __source: {
@@ -22820,7 +22852,7 @@ function PaginationInfo(_ref) {
22820
22852
  direction: "column",
22821
22853
  align: "center",
22822
22854
  css: {
22823
- backgroundColor: '$white',
22855
+ backgroundColor: '$bgWhite',
22824
22856
  boxShadow: '$small'
22825
22857
  },
22826
22858
  __self: this,
@@ -22840,6 +22872,7 @@ function PaginationInfo(_ref) {
22840
22872
  columnNumber: 17
22841
22873
  }
22842
22874
  }, /*#__PURE__*/React__default.createElement(Text$1, {
22875
+ color: "primary",
22843
22876
  variant: "status",
22844
22877
  __self: this,
22845
22878
  __source: {
@@ -23479,7 +23512,7 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
23479
23512
  justify: "between",
23480
23513
  gap: 5,
23481
23514
  css: {
23482
- backgroundColor: colors$8.bgGray,
23515
+ backgroundColor: '$bgGray',
23483
23516
  padding: `$spacing-04 $spacing-05 ${'selection' in row.values ? '$spacing-04 $spacing-07' : ''}`,
23484
23517
  borderBottom: '1pt solid $bgBorder',
23485
23518
  alignItems: cell.column.accessor ? getAlign(cellAlign) : 'center'
@@ -23514,7 +23547,7 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
23514
23547
  gap: 3,
23515
23548
  css: {
23516
23549
  height: '40px',
23517
- backgroundColor: colors$8.bgGray,
23550
+ backgroundColor: '$bgGray',
23518
23551
  paddingRight: '$spacing-04'
23519
23552
  }
23520
23553
  }, {
@@ -23862,14 +23895,14 @@ const TableContent$3 = styled('table', {
23862
23895
  borderSpacing: 0,
23863
23896
  borderCollapse: 'collapse',
23864
23897
  '& *[data-sticky-td="true"]': {
23865
- backgroundColor: '$bgWhite'
23898
+ backgroundColor: '$bgHeader'
23866
23899
  }
23867
23900
  });
23868
23901
  const TableHead$3 = styled('thead', {
23869
23902
  position: 'sticky',
23870
23903
  top: 0,
23871
23904
  zIndex: '$docked',
23872
- backgroundColor: '$bgWhite',
23905
+ backgroundColor: '$bgHeader',
23873
23906
  boxShadow: '0 4px 4px rgba(0, 0, 0, 0.025)',
23874
23907
  borderBottom: '1pt solid $bgBorder',
23875
23908
  color: '$textPrimary',
@@ -23900,7 +23933,7 @@ const TableHeaderCellContainer = styled(Flex$1, {
23900
23933
  padding: '0 $spacing-03',
23901
23934
  '&::after': {
23902
23935
  size: '16px',
23903
- content: `url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cg fill='%23A5ABAB'%3E%3Cpath d='m9.38 3.95 2.462 3.134c.338.43.098 1.166-.38 1.166H6.538c-.478 0-.718-.736-.38-1.166L8.62 3.95c.21-.267.55-.267.76 0zM9.38 14.05l2.462-3.134c.338-.43.098-1.166-.38-1.166H6.538c-.478 0-.718.736-.38 1.166L8.62 14.05c.21.267.55.267.76 0z'/%3E%3C/g%3E%3C/svg%3E")`,
23936
+ content: `url(data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cg fill='%23A5ABAB'%3E%3Cpath d='m9.38 3.95 2.462 3.134c.338.43.098 1.166-.38 1.166H6.538c-.478 0-.718-.736-.38-1.166L8.62 3.95c.21-.267.55-.267.76 0zM9.38 14.05l2.462-3.134c.338-.43.098-1.166-.38-1.166H6.538c-.478 0-.718.736-.38 1.166L8.62 14.05c.21.267.55.267.76 0z'/%3E%3C/g%3E%3C/svg%3E")`,
23904
23937
  margin: '0 $spacing-02 $spacing-01 0',
23905
23938
  opacity: 1,
23906
23939
  '@lg': {
@@ -23977,6 +24010,16 @@ const TableHeaderCellContainer = styled(Flex$1, {
23977
24010
  opacity: 1
23978
24011
  }
23979
24012
  }
24013
+ },
24014
+ darkTheme: {
24015
+ true: {
24016
+ '&::after': {
24017
+ content: `url(data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='m9.38 3.95 2.462 3.134c.338.43.098 1.166-.38 1.166H6.538c-.478 0-.718-.736-.38-1.166L8.62 3.95c.21-.267.55-.267.76 0zM9.38 14.05l2.462-3.134c.338-.43.098-1.166-.38-1.166H6.538c-.478 0-.718.736-.38 1.166L8.62 14.05c.21.267.55.267.76 0z'/%3E%3C/g%3E%3C/svg%3E")`,
24018
+ '@lg': {
24019
+ content: `url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='m9.38 3.95 2.462 3.134c.338.43.098 1.166-.38 1.166H6.538c-.478 0-.718-.736-.38-1.166L8.62 3.95c.21-.267.55-.267.76 0zM9.38 14.05l2.462-3.134c.338-.43.098-1.166-.38-1.166H6.538c-.478 0-.718.736-.38 1.166L8.62 14.05c.21.267.55.267.76 0z'/%3E%3C/g%3E%3C/svg%3E")`
24020
+ }
24021
+ }
24022
+ }
23980
24023
  }
23981
24024
  },
23982
24025
  compoundVariants: [{
@@ -24000,10 +24043,32 @@ const TableHeaderCellContainer = styled(Flex$1, {
24000
24043
  opacity: 1
24001
24044
  }
24002
24045
  }
24046
+ }, {
24047
+ isSortedDesc: true,
24048
+ darkTheme: true,
24049
+ css: {
24050
+ '&::after': {
24051
+ content: `url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='m12.51,8.27l3.28,4.17c0.45,0.58 0.13,1.56 -0.51,1.56l-6.56,0c-0.64,0 -0.96,-0.98 -0.51,-1.56l3.28,-4.17c0.28,-0.36 0.74,-0.36 1.02,0z'/%3E%3C/g%3E%3C/svg%3E")`,
24052
+ '@lg': {
24053
+ content: `url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='m12.51,8.27l3.28,4.17c0.45,0.58 0.13,1.56 -0.51,1.56l-6.56,0c-0.64,0 -0.96,-0.98 -0.51,-1.56l3.28,-4.17c0.28,-0.36 0.74,-0.36 1.02,0z'/%3E%3C/g%3E%3C/svg%3E")`
24054
+ }
24055
+ }
24056
+ }
24057
+ }, {
24058
+ isSortedDesc: false,
24059
+ darkTheme: true,
24060
+ css: {
24061
+ '&::after': {
24062
+ content: `url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='m12.51,8.27l3.28,4.17c0.45,0.58 0.13,1.56 -0.51,1.56l-6.56,0c-0.64,0 -0.96,-0.98 -0.51,-1.56l3.28,-4.17c0.28,-0.36 0.74,-0.36 1.02,0z' transform='rotate(180 12 10.9998)' /%3E%3C/g%3E%3C/svg%3E")`,
24063
+ '@lg': {
24064
+ content: `url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='m12.51,8.27l3.28,4.17c0.45,0.58 0.13,1.56 -0.51,1.56l-6.56,0c-0.64,0 -0.96,-0.98 -0.51,-1.56l3.28,-4.17c0.28,-0.36 0.74,-0.36 1.02,0z' transform='rotate(180 12 10.9998)' /%3E%3C/g%3E%3C/svg%3E")`
24065
+ }
24066
+ }
24067
+ }
24003
24068
  }]
24004
24069
  });
24005
24070
  const TableHeadCellContent = styled(Heading, {
24006
- backgroundColor: 'white',
24071
+ backgroundColor: 'transparent',
24007
24072
  userSelect: 'none',
24008
24073
  textAlign: 'start',
24009
24074
  position: 'relative',
@@ -24042,6 +24107,7 @@ const TableRow$3 = styled('tr', {
24042
24107
  }
24043
24108
  }
24044
24109
  });
24110
+ const Cell = styled('td');
24045
24111
  const TableCell$3 = styled('td', {
24046
24112
  height: '68px',
24047
24113
  fontSize: '$short-content-regular',
@@ -24294,7 +24360,7 @@ function HeaderMenuOption(props) {
24294
24360
  css: {
24295
24361
  padding: '$spacing-06 $spacing-05',
24296
24362
  boxShadow: '$medium',
24297
- backgroundColor: 'white',
24363
+ backgroundColor: '$bgWhite',
24298
24364
  maxHeight: 300,
24299
24365
  minWidth: 167,
24300
24366
  width: 'max-content',
@@ -24405,6 +24471,7 @@ function Table({
24405
24471
  const [stateSelectedRowIds, setStateSelectedRowIds] = useState(selectedIds ? Object.keys(selectedIds) : []);
24406
24472
  const [filterHeader, setFilterHeader] = useLocalStorageState(`menu:${id}`, []);
24407
24473
  const [filteredHeader, setFilteredHeader] = useState([]);
24474
+ const [hasDarkParent, setHasDarkParent] = useState(false);
24408
24475
  const {
24409
24476
  t
24410
24477
  } = useTranslation('MajooUI/table');
@@ -24525,6 +24592,7 @@ function Table({
24525
24592
  },
24526
24593
  rowsPerPageOptions: rowsPerPageOptions,
24527
24594
  css: {
24595
+ backgroundColor: '$bgWhite',
24528
24596
  padding: '$spacing-04 0',
24529
24597
  '@md': {
24530
24598
  padding: '$spacing-06 $spacing-03'
@@ -24662,7 +24730,8 @@ function Table({
24662
24730
  isSortedDesc: column.isSortedDesc,
24663
24731
  unsortable: column.unsortable,
24664
24732
  isToggleable: !!column.onToggle,
24665
- isToggled: column.isToggled
24733
+ isToggled: column.isToggled,
24734
+ darkTheme: hasDarkParent
24666
24735
  }, {
24667
24736
  children: jsx(TableHeadCellContent, Object.assign({
24668
24737
  heading: "headerTable"
@@ -24762,6 +24831,11 @@ function Table({
24762
24831
  }
24763
24832
  }, [rawData, selectedIds]);
24764
24833
  useEffect(() => {
24834
+ if (scrollerRef.current && scrollerRef.current.parentElement) {
24835
+ const parentElement = scrollerRef.current.parentElement;
24836
+ const darkParentDiv = parentElement.closest('div[id*="dark"]');
24837
+ setHasDarkParent(!!darkParentDiv);
24838
+ }
24765
24839
  const listenStorage = () => {
24766
24840
  const item = JSON.parse(localStorage.getItem(`menu:${id}`));
24767
24841
  onColumnChange === null || onColumnChange === void 0 ? void 0 : onColumnChange(item);
@@ -24783,7 +24857,7 @@ function Table({
24783
24857
  onDragEnd(arrayMove(records, oldIndex, newIndex));
24784
24858
  };
24785
24859
  const cssTableCell = {
24786
- backgroundColor: 'white'
24860
+ backgroundColor: '$bgWhite'
24787
24861
  };
24788
24862
  return jsxs(Box, Object.assign({
24789
24863
  css: Object.assign({
@@ -24851,9 +24925,7 @@ function Table({
24851
24925
  if (filteredHeader.length > 0 || filterHeader.length > 0) {
24852
24926
  visibleHeaders = visibleHeaders.filter(item => filteredHeader.includes(item.id) || filterHeader.includes(item.id));
24853
24927
  }
24854
- return jsx(TableHeadRow$3, Object.assign({
24855
- css: cssTableCell
24856
- }, headerGroup.getHeaderGroupProps(), {
24928
+ return jsx(TableHeadRow$3, Object.assign({}, headerGroup.getHeaderGroupProps(), {
24857
24929
  children: visibleHeaders.map((column, index) => {
24858
24930
  const headerRender = column.render('Header');
24859
24931
  return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props, !column.unsortable ? column.getSortByToggleProps({
@@ -24867,7 +24939,7 @@ function Table({
24867
24939
  minWidth: column.colMinWidth
24868
24940
  }
24869
24941
  }]), {
24870
- css: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, cssTableCell), stickyPositionStyling(column)), stickyShadowStyling(column, tableScrollPosition, scrollAreaWidth)), column.headerCss), {
24942
+ css: Object.assign(Object.assign(Object.assign(Object.assign({}, stickyPositionStyling(column)), stickyShadowStyling(column, tableScrollPosition, scrollAreaWidth)), column.headerCss), {
24871
24943
  position: 'sticky',
24872
24944
  zIndex: !!column.sticky ? '5 !important' : 3,
24873
24945
  top: 0
@@ -24878,6 +24950,7 @@ function Table({
24878
24950
  unsortable: id ? true : column.unsortable,
24879
24951
  isToggleable: !!column.onToggle,
24880
24952
  isToggled: column.isToggled,
24953
+ darkTheme: hasDarkParent,
24881
24954
  css: {
24882
24955
  width: column.colWidth,
24883
24956
  maxWidth: column.colMaxWidth,
@@ -25114,9 +25187,9 @@ function Table({
25114
25187
  }), void 0), row.isExpanded ? subRowCells.map((cell, index) => !cell.column.isCustomSubRow ? jsxs(TableRow$3, Object.assign({
25115
25188
  subRow: true
25116
25189
  }, {
25117
- children: [leftAddOnCells.map((_, index) => jsx("td", {
25118
- style: {
25119
- backgroundColor: colors$8.bgGray
25190
+ children: [leftAddOnCells.map((_, index) => jsx(Cell, {
25191
+ css: {
25192
+ backgroundColor: '$bgGray'
25120
25193
  }
25121
25194
  }, index)), jsxs(React.Fragment, {
25122
25195
  children: [jsx(TableCell$3, Object.assign({
@@ -25216,7 +25289,7 @@ function Table({
25216
25289
  width: 10,
25217
25290
  height: '100%',
25218
25291
  boxShadow: tableScrollPosition === 'end' ? 'none' : '-5px 0px 5px -3px #00000026',
25219
- backgroundColor: 'white'
25292
+ backgroundColor: '$bgWhite'
25220
25293
  }
25221
25294
  }, void 0)]
25222
25295
  }, void 0)]
@@ -25405,6 +25478,7 @@ const rowExpanderColumn = {
25405
25478
  columnNumber: 5
25406
25479
  }
25407
25480
  }), row.isExpanded ? /*#__PURE__*/React__default.createElement(ChevronDownOutline, {
25481
+ color: "currentColor",
25408
25482
  __self: undefined,
25409
25483
  __source: {
25410
25484
  fileName: _jsxFileName$g,
@@ -25412,11 +25486,12 @@ const rowExpanderColumn = {
25412
25486
  columnNumber: 25
25413
25487
  }
25414
25488
  }) : /*#__PURE__*/React__default.createElement(ChevronRightOutline, {
25489
+ color: "currentColor",
25415
25490
  __self: undefined,
25416
25491
  __source: {
25417
25492
  fileName: _jsxFileName$g,
25418
25493
  lineNumber: 19,
25419
- columnNumber: 50
25494
+ columnNumber: 71
25420
25495
  }
25421
25496
  })),
25422
25497
  unsortable: true
@@ -25439,6 +25514,7 @@ const rowExpanderMultipleColumn = {
25439
25514
  columnNumber: 5
25440
25515
  }
25441
25516
  }), row.isExpanded ? /*#__PURE__*/React__default.createElement(ChevronDownOutline, {
25517
+ color: "currentColor",
25442
25518
  __self: undefined,
25443
25519
  __source: {
25444
25520
  fileName: _jsxFileName$f,
@@ -25446,11 +25522,12 @@ const rowExpanderMultipleColumn = {
25446
25522
  columnNumber: 25
25447
25523
  }
25448
25524
  }) : /*#__PURE__*/React__default.createElement(ChevronRightOutline, {
25525
+ color: "currentColor",
25449
25526
  __self: undefined,
25450
25527
  __source: {
25451
25528
  fileName: _jsxFileName$f,
25452
25529
  lineNumber: 14,
25453
- columnNumber: 50
25530
+ columnNumber: 71
25454
25531
  }
25455
25532
  })),
25456
25533
  unsortable: true
@@ -25510,6 +25587,9 @@ const rowMenuColumn = (options, icon, config) => ({
25510
25587
  const contextMenu = (_document$getElements = document.getElementsByClassName('react-contextmenu')) == null ? void 0 : _document$getElements[0];
25511
25588
  contextMenu.style.opacity = 0;
25512
25589
  },
25590
+ css: {
25591
+ color: '$iconPrimary'
25592
+ },
25513
25593
  __self: undefined,
25514
25594
  __source: {
25515
25595
  fileName: _jsxFileName$e,
@@ -25517,17 +25597,18 @@ const rowMenuColumn = (options, icon, config) => ({
25517
25597
  columnNumber: 13
25518
25598
  }
25519
25599
  }, icon || /*#__PURE__*/React__default.createElement(EllipsisHorizontalOutline, {
25600
+ color: "currentColor",
25520
25601
  __self: undefined,
25521
25602
  __source: {
25522
25603
  fileName: _jsxFileName$e,
25523
- lineNumber: 42,
25604
+ lineNumber: 45,
25524
25605
  columnNumber: 24
25525
25606
  }
25526
25607
  })))), /*#__PURE__*/React__default.createElement(DropdownMenuPortal, {
25527
25608
  __self: undefined,
25528
25609
  __source: {
25529
25610
  fileName: _jsxFileName$e,
25530
- lineNumber: 46,
25611
+ lineNumber: 49,
25531
25612
  columnNumber: 9
25532
25613
  }
25533
25614
  }, /*#__PURE__*/React__default.createElement(DropdownMenuContent, {
@@ -25550,7 +25631,7 @@ const rowMenuColumn = (options, icon, config) => ({
25550
25631
  __self: undefined,
25551
25632
  __source: {
25552
25633
  fileName: _jsxFileName$e,
25553
- lineNumber: 47,
25634
+ lineNumber: 50,
25554
25635
  columnNumber: 11
25555
25636
  }
25556
25637
  }, options.map((option, index) => /*#__PURE__*/React__default.createElement(React__default.Fragment, {
@@ -25558,7 +25639,7 @@ const rowMenuColumn = (options, icon, config) => ({
25558
25639
  __self: undefined,
25559
25640
  __source: {
25560
25641
  fileName: _jsxFileName$e,
25561
- lineNumber: 67,
25642
+ lineNumber: 70,
25562
25643
  columnNumber: 15
25563
25644
  }
25564
25645
  }, /*#__PURE__*/React__default.createElement(DropdownMenuItem, {
@@ -25570,7 +25651,7 @@ const rowMenuColumn = (options, icon, config) => ({
25570
25651
  __self: undefined,
25571
25652
  __source: {
25572
25653
  fileName: _jsxFileName$e,
25573
- lineNumber: 68,
25654
+ lineNumber: 71,
25574
25655
  columnNumber: 17
25575
25656
  }
25576
25657
  }, option.title), /*#__PURE__*/React__default.createElement(DropdownMenuSeparator, {
@@ -25581,7 +25662,7 @@ const rowMenuColumn = (options, icon, config) => ({
25581
25662
  __self: undefined,
25582
25663
  __source: {
25583
25664
  fileName: _jsxFileName$e,
25584
- lineNumber: 77,
25665
+ lineNumber: 80,
25585
25666
  columnNumber: 17
25586
25667
  }
25587
25668
  }))))));
@@ -55868,7 +55949,7 @@ function BarChartComponent({
55868
55949
  barSize: 12,
55869
55950
  radius: 50
55870
55951
  }, {
55871
- children: [formattedData.map(item => jsx(Cell, {
55952
+ children: [formattedData.map(item => jsx(Cell$1, {
55872
55953
  fill: item.color || colors$1.chartGreen
55873
55954
  }, item.name)), (label === null || label === void 0 ? void 0 : label.show) && jsx(LabelList, {
55874
55955
  style: {
@@ -56142,7 +56223,7 @@ const PieChartComponent = ({
56142
56223
  },
56143
56224
  labelLine: false
56144
56225
  }, {
56145
- children: [formattedData.map(item => jsx(Cell, {
56226
+ children: [formattedData.map(item => jsx(Cell$1, {
56146
56227
  fill: item.color || colors.chartGreen
56147
56228
  }, item.name)), (label === null || label === void 0 ? void 0 : label.show) && !label.render && jsx(LabelList, {
56148
56229
  stroke: "0",
@@ -57490,4 +57571,4 @@ const useToggle = initialValue => {
57490
57571
  return useReducer(toggleReducer, initialValue);
57491
57572
  };
57492
57573
 
57493
- export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, ResourceList as InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSignature, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_30_DAYS, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowExpanderMultipleColumn as RowExpanderMultipleColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, rowSelectionWithCallbackColumn as RowSelectionWithCallbackColumn, SINGLE_PICKER, ScrollSync, ScrollSyncNode, SelectBox, SelectContainer, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagList, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, ToastProvider, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
57574
+ export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, Cell, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, ResourceList as InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSignature, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_30_DAYS, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowExpanderMultipleColumn as RowExpanderMultipleColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, rowSelectionWithCallbackColumn as RowSelectionWithCallbackColumn, SINGLE_PICKER, ScrollSync, ScrollSyncNode, SelectBox, SelectContainer, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagList, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, ToastProvider, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };