@enyxs/wikex-components 0.11.35 → 0.11.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fees.js CHANGED
@@ -997,32 +997,32 @@ var feesTheme = {
997
997
  ]))
998
998
  };
999
999
  var EditorActions = import_styled_components6.default.div.withConfig({
1000
- componentId: "sc-a4d52175-0"
1000
+ componentId: "sc-bd9a89cb-0"
1001
1001
  })([
1002
1002
  `display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
1003
1003
  ]);
1004
1004
  var EditGroup = import_styled_components6.default.div.withConfig({
1005
- componentId: "sc-a4d52175-1"
1005
+ componentId: "sc-bd9a89cb-1"
1006
1006
  })([
1007
1007
  `display:flex;flex-direction:column;gap:6px;`
1008
1008
  ]);
1009
1009
  var HeaderGroup = (0, import_styled_components6.default)(EditGroup).withConfig({
1010
- componentId: "sc-a4d52175-2"
1010
+ componentId: "sc-bd9a89cb-2"
1011
1011
  })([
1012
1012
  `gap:8px;`
1013
1013
  ]);
1014
1014
  var HeaderTitle = import_styled_components6.default.div.withConfig({
1015
- componentId: "sc-a4d52175-3"
1015
+ componentId: "sc-bd9a89cb-3"
1016
1016
  })([
1017
1017
  `display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
1018
1018
  ]);
1019
1019
  var HeaderActions = import_styled_components6.default.div.withConfig({
1020
- componentId: "sc-a4d52175-4"
1020
+ componentId: "sc-bd9a89cb-4"
1021
1021
  })([
1022
1022
  `display:flex;align-items:center;min-height:24px;`
1023
1023
  ]);
1024
1024
  var AlignedFeesTable = (0, import_styled_components6.default)(FeesAndMarginTable).withConfig({
1025
- componentId: "sc-a4d52175-5"
1025
+ componentId: "sc-bd9a89cb-5"
1026
1026
  })([
1027
1027
  `&[data-editable] th{vertical-align:top;}--fees-row-background:`,
1028
1028
  `;--fees-stripe-background:`,
@@ -1055,14 +1055,14 @@ var AlignedFeesTable = (0, import_styled_components6.default)(FeesAndMarginTable
1055
1055
  }
1056
1056
  `).join(""), ({ $typography }) => $typography?.thead?.fontSize ?? 8, ({ $typography }) => $typography?.thead?.fontSize ? 1.4 : "10px", ({ $typography }) => $typography?.tbody?.fontSize ?? 10, ({ $typography }) => $typography?.tbody?.fontSize ? 1.4 : "14px", ({ theme }) => theme.colors.accent.primary);
1057
1057
  var FeesCellContent = import_styled_components6.default.span.withConfig({
1058
- componentId: "sc-a4d52175-6"
1058
+ componentId: "sc-bd9a89cb-6"
1059
1059
  })([
1060
1060
  `display:block;text-align:`,
1061
1061
  `;@media (max-width:767px){text-align:`,
1062
1062
  `;}`
1063
1063
  ], ({ $align, $alignRight }) => $align ?? ($alignRight ? "right" : "left"), ({ $align }) => $align ?? "left");
1064
1064
  var EditorButton = import_styled_components6.default.button.withConfig({
1065
- componentId: "sc-a4d52175-7"
1065
+ componentId: "sc-bd9a89cb-7"
1066
1066
  })([
1067
1067
  `padding:7px 12px;border:1px solid `,
1068
1068
  `;border-radius:6px;background:`,
@@ -1071,17 +1071,17 @@ var EditorButton = import_styled_components6.default.button.withConfig({
1071
1071
  `;}&:disabled{cursor:default;opacity:.4;}`
1072
1072
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
1073
1073
  var OrderActions = import_styled_components6.default.div.withConfig({
1074
- componentId: "sc-a4d52175-8"
1074
+ componentId: "sc-bd9a89cb-8"
1075
1075
  })([
1076
1076
  `display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
1077
1077
  ]);
1078
1078
  var PositionLabel = import_styled_components6.default.label.withConfig({
1079
- componentId: "sc-a4d52175-9"
1079
+ componentId: "sc-bd9a89cb-9"
1080
1080
  })([
1081
1081
  `display:inline-flex;align-items:center;gap:6px;font-size:12px;`
1082
1082
  ]);
1083
1083
  var PositionInput = import_styled_components6.default.input.withConfig({
1084
- componentId: "sc-a4d52175-10"
1084
+ componentId: "sc-bd9a89cb-10"
1085
1085
  })([
1086
1086
  `width:56px;padding:5px;border:1px solid `,
1087
1087
  `;border-radius:4px;background:`,
@@ -1090,17 +1090,18 @@ var PositionInput = import_styled_components6.default.input.withConfig({
1090
1090
  `;}`
1091
1091
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
1092
1092
  var ColumnRow = import_styled_components6.default.div.withConfig({
1093
- componentId: "sc-a4d52175-11"
1093
+ componentId: "sc-bd9a89cb-11"
1094
1094
  })([
1095
1095
  `display:flex;gap:12px;align-items:center;margin:16px 0;> textarea{flex:1;min-width:120px;}@media (max-width:600px){align-items:stretch;flex-direction:column;}`
1096
1096
  ]);
1097
1097
  var PaginationControls = (0, import_styled_components6.default)(FeesAndMarginPagination).withConfig({
1098
- componentId: "sc-a4d52175-12"
1098
+ componentId: "sc-bd9a89cb-12"
1099
1099
  })([
1100
- `align-items:center;flex-wrap:wrap;gap:16px 24px;`
1101
- ]);
1100
+ `align-items:center;flex-wrap:wrap;gap:16px 24px;color:`,
1101
+ `;`
1102
+ ], ({ theme }) => theme.colors.text.primary);
1102
1103
  var PageSizeLabel = import_styled_components6.default.div.withConfig({
1103
- componentId: "sc-a4d52175-13"
1104
+ componentId: "sc-bd9a89cb-13"
1104
1105
  })([
1105
1106
  `display:inline-flex;align-items:center;gap:8px;color:`,
1106
1107
  `;font:inherit;font-size:13px;`
@@ -1128,12 +1129,12 @@ function Position({ value, max, label, onMove }) {
1128
1129
  });
1129
1130
  }
1130
1131
  var DeleteButton = (0, import_styled_components6.default)(EditorButton).withConfig({
1131
- componentId: "sc-a4d52175-14"
1132
+ componentId: "sc-bd9a89cb-14"
1132
1133
  })([
1133
1134
  `align-self:flex-start;padding:4px 8px;border:0;border-radius:4px;background:#d32f2f;color:#fff;font-size:11px;font-weight:600;line-height:16px;white-space:nowrap;text-decoration:none;&:hover{background:#b71c1c;}&:focus-visible{outline:2px solid #d32f2f;outline-offset:2px;}`
1134
1135
  ]);
1135
1136
  var CellEditorInput = import_styled_components6.default.textarea.withConfig({
1136
- componentId: "sc-a4d52175-15"
1137
+ componentId: "sc-bd9a89cb-15"
1137
1138
  })([
1138
1139
  `display:block;box-sizing:border-box;width:100%;min-width:0;padding:3px;border:1px solid transparent;border-radius:3px;color:inherit;background:transparent;font:inherit;line-height:inherit;text-align:inherit;resize:none;overflow:hidden;&:hover{border-color:`,
1139
1140
  `;}&:focus{outline:1px solid `,
@@ -1707,12 +1708,48 @@ function FeesTable({ value, editable = false, onChange, labels: labels2, size =
1707
1708
  "aria-label": english ? "Rows per page" : "S\u1ED1 d\xF2ng m\u1ED7i trang"
1708
1709
  },
1709
1710
  MenuProps: {
1710
- container: () => tableRoot.current?.ownerDocument.body ?? document.body
1711
+ container: () => tableRoot.current?.ownerDocument.body ?? document.body,
1712
+ // The menu is portaled to body, so theme its paper explicitly too.
1713
+ slotProps: {
1714
+ paper: {
1715
+ sx: {
1716
+ color: feesTheme.colors.text.primary,
1717
+ bgcolor: feesTheme.colors.background.popup,
1718
+ backgroundImage: "none",
1719
+ border: `1px solid ${feesTheme.colors.border.line}`,
1720
+ "& .MuiMenuItem-root": {
1721
+ fontFamily: "var(--font-manrope, Manrope), Arial, Helvetica, sans-serif",
1722
+ fontSize: 13,
1723
+ "&:hover, &.Mui-focusVisible": {
1724
+ bgcolor: feesTheme.colors.background.hover
1725
+ },
1726
+ "&.Mui-selected, &.Mui-selected:hover, &.Mui-selected.Mui-focusVisible": {
1727
+ bgcolor: feesTheme.colors.accent.primary,
1728
+ color: feesTheme.colors.accent.foreground
1729
+ }
1730
+ }
1731
+ }
1732
+ }
1733
+ }
1711
1734
  },
1712
1735
  sx: {
1713
1736
  minWidth: 80,
1714
1737
  fontSize: 13,
1715
- fontFamily: "inherit"
1738
+ fontFamily: "inherit",
1739
+ color: feesTheme.colors.text.primary,
1740
+ bgcolor: feesTheme.colors.background.canvas,
1741
+ "& .MuiSelect-icon": {
1742
+ color: feesTheme.colors.text.secondary
1743
+ },
1744
+ "& .MuiOutlinedInput-notchedOutline": {
1745
+ borderColor: feesTheme.colors.border.line
1746
+ },
1747
+ "&:hover .MuiOutlinedInput-notchedOutline": {
1748
+ borderColor: feesTheme.colors.text.secondary
1749
+ },
1750
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
1751
+ borderColor: feesTheme.colors.accent.primary
1752
+ }
1716
1753
  },
1717
1754
  onChange: (event) => {
1718
1755
  setPageSize(Number(event.target.value));