@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.mjs CHANGED
@@ -961,32 +961,32 @@ var feesTheme = {
961
961
  ]))
962
962
  };
963
963
  var EditorActions = styled6.div.withConfig({
964
- componentId: "sc-a4d52175-0"
964
+ componentId: "sc-bd9a89cb-0"
965
965
  })([
966
966
  `display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
967
967
  ]);
968
968
  var EditGroup = styled6.div.withConfig({
969
- componentId: "sc-a4d52175-1"
969
+ componentId: "sc-bd9a89cb-1"
970
970
  })([
971
971
  `display:flex;flex-direction:column;gap:6px;`
972
972
  ]);
973
973
  var HeaderGroup = styled6(EditGroup).withConfig({
974
- componentId: "sc-a4d52175-2"
974
+ componentId: "sc-bd9a89cb-2"
975
975
  })([
976
976
  `gap:8px;`
977
977
  ]);
978
978
  var HeaderTitle = styled6.div.withConfig({
979
- componentId: "sc-a4d52175-3"
979
+ componentId: "sc-bd9a89cb-3"
980
980
  })([
981
981
  `display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
982
982
  ]);
983
983
  var HeaderActions = styled6.div.withConfig({
984
- componentId: "sc-a4d52175-4"
984
+ componentId: "sc-bd9a89cb-4"
985
985
  })([
986
986
  `display:flex;align-items:center;min-height:24px;`
987
987
  ]);
988
988
  var AlignedFeesTable = styled6(FeesAndMarginTable).withConfig({
989
- componentId: "sc-a4d52175-5"
989
+ componentId: "sc-bd9a89cb-5"
990
990
  })([
991
991
  `&[data-editable] th{vertical-align:top;}--fees-row-background:`,
992
992
  `;--fees-stripe-background:`,
@@ -1019,14 +1019,14 @@ var AlignedFeesTable = styled6(FeesAndMarginTable).withConfig({
1019
1019
  }
1020
1020
  `).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);
1021
1021
  var FeesCellContent = styled6.span.withConfig({
1022
- componentId: "sc-a4d52175-6"
1022
+ componentId: "sc-bd9a89cb-6"
1023
1023
  })([
1024
1024
  `display:block;text-align:`,
1025
1025
  `;@media (max-width:767px){text-align:`,
1026
1026
  `;}`
1027
1027
  ], ({ $align, $alignRight }) => $align ?? ($alignRight ? "right" : "left"), ({ $align }) => $align ?? "left");
1028
1028
  var EditorButton = styled6.button.withConfig({
1029
- componentId: "sc-a4d52175-7"
1029
+ componentId: "sc-bd9a89cb-7"
1030
1030
  })([
1031
1031
  `padding:7px 12px;border:1px solid `,
1032
1032
  `;border-radius:6px;background:`,
@@ -1035,17 +1035,17 @@ var EditorButton = styled6.button.withConfig({
1035
1035
  `;}&:disabled{cursor:default;opacity:.4;}`
1036
1036
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
1037
1037
  var OrderActions = styled6.div.withConfig({
1038
- componentId: "sc-a4d52175-8"
1038
+ componentId: "sc-bd9a89cb-8"
1039
1039
  })([
1040
1040
  `display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
1041
1041
  ]);
1042
1042
  var PositionLabel = styled6.label.withConfig({
1043
- componentId: "sc-a4d52175-9"
1043
+ componentId: "sc-bd9a89cb-9"
1044
1044
  })([
1045
1045
  `display:inline-flex;align-items:center;gap:6px;font-size:12px;`
1046
1046
  ]);
1047
1047
  var PositionInput = styled6.input.withConfig({
1048
- componentId: "sc-a4d52175-10"
1048
+ componentId: "sc-bd9a89cb-10"
1049
1049
  })([
1050
1050
  `width:56px;padding:5px;border:1px solid `,
1051
1051
  `;border-radius:4px;background:`,
@@ -1054,17 +1054,18 @@ var PositionInput = styled6.input.withConfig({
1054
1054
  `;}`
1055
1055
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
1056
1056
  var ColumnRow = styled6.div.withConfig({
1057
- componentId: "sc-a4d52175-11"
1057
+ componentId: "sc-bd9a89cb-11"
1058
1058
  })([
1059
1059
  `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;}`
1060
1060
  ]);
1061
1061
  var PaginationControls = styled6(FeesAndMarginPagination).withConfig({
1062
- componentId: "sc-a4d52175-12"
1062
+ componentId: "sc-bd9a89cb-12"
1063
1063
  })([
1064
- `align-items:center;flex-wrap:wrap;gap:16px 24px;`
1065
- ]);
1064
+ `align-items:center;flex-wrap:wrap;gap:16px 24px;color:`,
1065
+ `;`
1066
+ ], ({ theme }) => theme.colors.text.primary);
1066
1067
  var PageSizeLabel = styled6.div.withConfig({
1067
- componentId: "sc-a4d52175-13"
1068
+ componentId: "sc-bd9a89cb-13"
1068
1069
  })([
1069
1070
  `display:inline-flex;align-items:center;gap:8px;color:`,
1070
1071
  `;font:inherit;font-size:13px;`
@@ -1092,12 +1093,12 @@ function Position({ value, max, label, onMove }) {
1092
1093
  });
1093
1094
  }
1094
1095
  var DeleteButton = styled6(EditorButton).withConfig({
1095
- componentId: "sc-a4d52175-14"
1096
+ componentId: "sc-bd9a89cb-14"
1096
1097
  })([
1097
1098
  `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;}`
1098
1099
  ]);
1099
1100
  var CellEditorInput = styled6.textarea.withConfig({
1100
- componentId: "sc-a4d52175-15"
1101
+ componentId: "sc-bd9a89cb-15"
1101
1102
  })([
1102
1103
  `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:`,
1103
1104
  `;}&:focus{outline:1px solid `,
@@ -1671,12 +1672,48 @@ function FeesTable({ value, editable = false, onChange, labels: labels2, size =
1671
1672
  "aria-label": english ? "Rows per page" : "S\u1ED1 d\xF2ng m\u1ED7i trang"
1672
1673
  },
1673
1674
  MenuProps: {
1674
- container: () => tableRoot.current?.ownerDocument.body ?? document.body
1675
+ container: () => tableRoot.current?.ownerDocument.body ?? document.body,
1676
+ // The menu is portaled to body, so theme its paper explicitly too.
1677
+ slotProps: {
1678
+ paper: {
1679
+ sx: {
1680
+ color: feesTheme.colors.text.primary,
1681
+ bgcolor: feesTheme.colors.background.popup,
1682
+ backgroundImage: "none",
1683
+ border: `1px solid ${feesTheme.colors.border.line}`,
1684
+ "& .MuiMenuItem-root": {
1685
+ fontFamily: "var(--font-manrope, Manrope), Arial, Helvetica, sans-serif",
1686
+ fontSize: 13,
1687
+ "&:hover, &.Mui-focusVisible": {
1688
+ bgcolor: feesTheme.colors.background.hover
1689
+ },
1690
+ "&.Mui-selected, &.Mui-selected:hover, &.Mui-selected.Mui-focusVisible": {
1691
+ bgcolor: feesTheme.colors.accent.primary,
1692
+ color: feesTheme.colors.accent.foreground
1693
+ }
1694
+ }
1695
+ }
1696
+ }
1697
+ }
1675
1698
  },
1676
1699
  sx: {
1677
1700
  minWidth: 80,
1678
1701
  fontSize: 13,
1679
- fontFamily: "inherit"
1702
+ fontFamily: "inherit",
1703
+ color: feesTheme.colors.text.primary,
1704
+ bgcolor: feesTheme.colors.background.canvas,
1705
+ "& .MuiSelect-icon": {
1706
+ color: feesTheme.colors.text.secondary
1707
+ },
1708
+ "& .MuiOutlinedInput-notchedOutline": {
1709
+ borderColor: feesTheme.colors.border.line
1710
+ },
1711
+ "&:hover .MuiOutlinedInput-notchedOutline": {
1712
+ borderColor: feesTheme.colors.text.secondary
1713
+ },
1714
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
1715
+ borderColor: feesTheme.colors.accent.primary
1716
+ }
1680
1717
  },
1681
1718
  onChange: (event) => {
1682
1719
  setPageSize(Number(event.target.value));