@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/index.mjs CHANGED
@@ -8741,32 +8741,32 @@ var feesTheme = {
8741
8741
  ]))
8742
8742
  };
8743
8743
  var EditorActions = styled12.div.withConfig({
8744
- componentId: "sc-a4d52175-0"
8744
+ componentId: "sc-bd9a89cb-0"
8745
8745
  })([
8746
8746
  `display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
8747
8747
  ]);
8748
8748
  var EditGroup = styled12.div.withConfig({
8749
- componentId: "sc-a4d52175-1"
8749
+ componentId: "sc-bd9a89cb-1"
8750
8750
  })([
8751
8751
  `display:flex;flex-direction:column;gap:6px;`
8752
8752
  ]);
8753
8753
  var HeaderGroup = styled12(EditGroup).withConfig({
8754
- componentId: "sc-a4d52175-2"
8754
+ componentId: "sc-bd9a89cb-2"
8755
8755
  })([
8756
8756
  `gap:8px;`
8757
8757
  ]);
8758
8758
  var HeaderTitle = styled12.div.withConfig({
8759
- componentId: "sc-a4d52175-3"
8759
+ componentId: "sc-bd9a89cb-3"
8760
8760
  })([
8761
8761
  `display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
8762
8762
  ]);
8763
8763
  var HeaderActions = styled12.div.withConfig({
8764
- componentId: "sc-a4d52175-4"
8764
+ componentId: "sc-bd9a89cb-4"
8765
8765
  })([
8766
8766
  `display:flex;align-items:center;min-height:24px;`
8767
8767
  ]);
8768
8768
  var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
8769
- componentId: "sc-a4d52175-5"
8769
+ componentId: "sc-bd9a89cb-5"
8770
8770
  })([
8771
8771
  `&[data-editable] th{vertical-align:top;}--fees-row-background:`,
8772
8772
  `;--fees-stripe-background:`,
@@ -8799,14 +8799,14 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
8799
8799
  }
8800
8800
  `).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);
8801
8801
  var FeesCellContent = styled12.span.withConfig({
8802
- componentId: "sc-a4d52175-6"
8802
+ componentId: "sc-bd9a89cb-6"
8803
8803
  })([
8804
8804
  `display:block;text-align:`,
8805
8805
  `;@media (max-width:767px){text-align:`,
8806
8806
  `;}`
8807
8807
  ], ({ $align, $alignRight }) => $align ?? ($alignRight ? "right" : "left"), ({ $align }) => $align ?? "left");
8808
8808
  var EditorButton = styled12.button.withConfig({
8809
- componentId: "sc-a4d52175-7"
8809
+ componentId: "sc-bd9a89cb-7"
8810
8810
  })([
8811
8811
  `padding:7px 12px;border:1px solid `,
8812
8812
  `;border-radius:6px;background:`,
@@ -8815,17 +8815,17 @@ var EditorButton = styled12.button.withConfig({
8815
8815
  `;}&:disabled{cursor:default;opacity:.4;}`
8816
8816
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8817
8817
  var OrderActions = styled12.div.withConfig({
8818
- componentId: "sc-a4d52175-8"
8818
+ componentId: "sc-bd9a89cb-8"
8819
8819
  })([
8820
8820
  `display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
8821
8821
  ]);
8822
8822
  var PositionLabel = styled12.label.withConfig({
8823
- componentId: "sc-a4d52175-9"
8823
+ componentId: "sc-bd9a89cb-9"
8824
8824
  })([
8825
8825
  `display:inline-flex;align-items:center;gap:6px;font-size:12px;`
8826
8826
  ]);
8827
8827
  var PositionInput = styled12.input.withConfig({
8828
- componentId: "sc-a4d52175-10"
8828
+ componentId: "sc-bd9a89cb-10"
8829
8829
  })([
8830
8830
  `width:56px;padding:5px;border:1px solid `,
8831
8831
  `;border-radius:4px;background:`,
@@ -8834,17 +8834,18 @@ var PositionInput = styled12.input.withConfig({
8834
8834
  `;}`
8835
8835
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8836
8836
  var ColumnRow = styled12.div.withConfig({
8837
- componentId: "sc-a4d52175-11"
8837
+ componentId: "sc-bd9a89cb-11"
8838
8838
  })([
8839
8839
  `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;}`
8840
8840
  ]);
8841
8841
  var PaginationControls = styled12(FeesAndMarginPagination).withConfig({
8842
- componentId: "sc-a4d52175-12"
8842
+ componentId: "sc-bd9a89cb-12"
8843
8843
  })([
8844
- `align-items:center;flex-wrap:wrap;gap:16px 24px;`
8845
- ]);
8844
+ `align-items:center;flex-wrap:wrap;gap:16px 24px;color:`,
8845
+ `;`
8846
+ ], ({ theme }) => theme.colors.text.primary);
8846
8847
  var PageSizeLabel = styled12.div.withConfig({
8847
- componentId: "sc-a4d52175-13"
8848
+ componentId: "sc-bd9a89cb-13"
8848
8849
  })([
8849
8850
  `display:inline-flex;align-items:center;gap:8px;color:`,
8850
8851
  `;font:inherit;font-size:13px;`
@@ -8872,12 +8873,12 @@ function Position({ value: value4, max, label, onMove }) {
8872
8873
  });
8873
8874
  }
8874
8875
  var DeleteButton = styled12(EditorButton).withConfig({
8875
- componentId: "sc-a4d52175-14"
8876
+ componentId: "sc-bd9a89cb-14"
8876
8877
  })([
8877
8878
  `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;}`
8878
8879
  ]);
8879
8880
  var CellEditorInput = styled12.textarea.withConfig({
8880
- componentId: "sc-a4d52175-15"
8881
+ componentId: "sc-bd9a89cb-15"
8881
8882
  })([
8882
8883
  `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:`,
8883
8884
  `;}&:focus{outline:1px solid `,
@@ -9451,12 +9452,48 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
9451
9452
  "aria-label": english ? "Rows per page" : "S\u1ED1 d\xF2ng m\u1ED7i trang"
9452
9453
  },
9453
9454
  MenuProps: {
9454
- container: () => tableRoot.current?.ownerDocument.body ?? document.body
9455
+ container: () => tableRoot.current?.ownerDocument.body ?? document.body,
9456
+ // The menu is portaled to body, so theme its paper explicitly too.
9457
+ slotProps: {
9458
+ paper: {
9459
+ sx: {
9460
+ color: feesTheme.colors.text.primary,
9461
+ bgcolor: feesTheme.colors.background.popup,
9462
+ backgroundImage: "none",
9463
+ border: `1px solid ${feesTheme.colors.border.line}`,
9464
+ "& .MuiMenuItem-root": {
9465
+ fontFamily: "var(--font-manrope, Manrope), Arial, Helvetica, sans-serif",
9466
+ fontSize: 13,
9467
+ "&:hover, &.Mui-focusVisible": {
9468
+ bgcolor: feesTheme.colors.background.hover
9469
+ },
9470
+ "&.Mui-selected, &.Mui-selected:hover, &.Mui-selected.Mui-focusVisible": {
9471
+ bgcolor: feesTheme.colors.accent.primary,
9472
+ color: feesTheme.colors.accent.foreground
9473
+ }
9474
+ }
9475
+ }
9476
+ }
9477
+ }
9455
9478
  },
9456
9479
  sx: {
9457
9480
  minWidth: 80,
9458
9481
  fontSize: 13,
9459
- fontFamily: "inherit"
9482
+ fontFamily: "inherit",
9483
+ color: feesTheme.colors.text.primary,
9484
+ bgcolor: feesTheme.colors.background.canvas,
9485
+ "& .MuiSelect-icon": {
9486
+ color: feesTheme.colors.text.secondary
9487
+ },
9488
+ "& .MuiOutlinedInput-notchedOutline": {
9489
+ borderColor: feesTheme.colors.border.line
9490
+ },
9491
+ "&:hover .MuiOutlinedInput-notchedOutline": {
9492
+ borderColor: feesTheme.colors.text.secondary
9493
+ },
9494
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
9495
+ borderColor: feesTheme.colors.accent.primary
9496
+ }
9460
9497
  },
9461
9498
  onChange: (event) => {
9462
9499
  setPageSize(Number(event.target.value));