@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 +57 -20
- package/dist/fees.js.map +1 -1
- package/dist/fees.mjs +57 -20
- package/dist/fees.mjs.map +1 -1
- package/dist/index.js +57 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +57 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8796,32 +8796,32 @@ var feesTheme = {
|
|
|
8796
8796
|
]))
|
|
8797
8797
|
};
|
|
8798
8798
|
var EditorActions = import_styled_components12.default.div.withConfig({
|
|
8799
|
-
componentId: "sc-
|
|
8799
|
+
componentId: "sc-bd9a89cb-0"
|
|
8800
8800
|
})([
|
|
8801
8801
|
`display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
|
|
8802
8802
|
]);
|
|
8803
8803
|
var EditGroup = import_styled_components12.default.div.withConfig({
|
|
8804
|
-
componentId: "sc-
|
|
8804
|
+
componentId: "sc-bd9a89cb-1"
|
|
8805
8805
|
})([
|
|
8806
8806
|
`display:flex;flex-direction:column;gap:6px;`
|
|
8807
8807
|
]);
|
|
8808
8808
|
var HeaderGroup = (0, import_styled_components12.default)(EditGroup).withConfig({
|
|
8809
|
-
componentId: "sc-
|
|
8809
|
+
componentId: "sc-bd9a89cb-2"
|
|
8810
8810
|
})([
|
|
8811
8811
|
`gap:8px;`
|
|
8812
8812
|
]);
|
|
8813
8813
|
var HeaderTitle = import_styled_components12.default.div.withConfig({
|
|
8814
|
-
componentId: "sc-
|
|
8814
|
+
componentId: "sc-bd9a89cb-3"
|
|
8815
8815
|
})([
|
|
8816
8816
|
`display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
|
|
8817
8817
|
]);
|
|
8818
8818
|
var HeaderActions = import_styled_components12.default.div.withConfig({
|
|
8819
|
-
componentId: "sc-
|
|
8819
|
+
componentId: "sc-bd9a89cb-4"
|
|
8820
8820
|
})([
|
|
8821
8821
|
`display:flex;align-items:center;min-height:24px;`
|
|
8822
8822
|
]);
|
|
8823
8823
|
var AlignedFeesTable = (0, import_styled_components12.default)(FeesAndMarginTable).withConfig({
|
|
8824
|
-
componentId: "sc-
|
|
8824
|
+
componentId: "sc-bd9a89cb-5"
|
|
8825
8825
|
})([
|
|
8826
8826
|
`&[data-editable] th{vertical-align:top;}--fees-row-background:`,
|
|
8827
8827
|
`;--fees-stripe-background:`,
|
|
@@ -8854,14 +8854,14 @@ var AlignedFeesTable = (0, import_styled_components12.default)(FeesAndMarginTabl
|
|
|
8854
8854
|
}
|
|
8855
8855
|
`).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);
|
|
8856
8856
|
var FeesCellContent = import_styled_components12.default.span.withConfig({
|
|
8857
|
-
componentId: "sc-
|
|
8857
|
+
componentId: "sc-bd9a89cb-6"
|
|
8858
8858
|
})([
|
|
8859
8859
|
`display:block;text-align:`,
|
|
8860
8860
|
`;@media (max-width:767px){text-align:`,
|
|
8861
8861
|
`;}`
|
|
8862
8862
|
], ({ $align, $alignRight }) => $align ?? ($alignRight ? "right" : "left"), ({ $align }) => $align ?? "left");
|
|
8863
8863
|
var EditorButton = import_styled_components12.default.button.withConfig({
|
|
8864
|
-
componentId: "sc-
|
|
8864
|
+
componentId: "sc-bd9a89cb-7"
|
|
8865
8865
|
})([
|
|
8866
8866
|
`padding:7px 12px;border:1px solid `,
|
|
8867
8867
|
`;border-radius:6px;background:`,
|
|
@@ -8870,17 +8870,17 @@ var EditorButton = import_styled_components12.default.button.withConfig({
|
|
|
8870
8870
|
`;}&:disabled{cursor:default;opacity:.4;}`
|
|
8871
8871
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8872
8872
|
var OrderActions = import_styled_components12.default.div.withConfig({
|
|
8873
|
-
componentId: "sc-
|
|
8873
|
+
componentId: "sc-bd9a89cb-8"
|
|
8874
8874
|
})([
|
|
8875
8875
|
`display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
|
|
8876
8876
|
]);
|
|
8877
8877
|
var PositionLabel = import_styled_components12.default.label.withConfig({
|
|
8878
|
-
componentId: "sc-
|
|
8878
|
+
componentId: "sc-bd9a89cb-9"
|
|
8879
8879
|
})([
|
|
8880
8880
|
`display:inline-flex;align-items:center;gap:6px;font-size:12px;`
|
|
8881
8881
|
]);
|
|
8882
8882
|
var PositionInput = import_styled_components12.default.input.withConfig({
|
|
8883
|
-
componentId: "sc-
|
|
8883
|
+
componentId: "sc-bd9a89cb-10"
|
|
8884
8884
|
})([
|
|
8885
8885
|
`width:56px;padding:5px;border:1px solid `,
|
|
8886
8886
|
`;border-radius:4px;background:`,
|
|
@@ -8889,17 +8889,18 @@ var PositionInput = import_styled_components12.default.input.withConfig({
|
|
|
8889
8889
|
`;}`
|
|
8890
8890
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8891
8891
|
var ColumnRow = import_styled_components12.default.div.withConfig({
|
|
8892
|
-
componentId: "sc-
|
|
8892
|
+
componentId: "sc-bd9a89cb-11"
|
|
8893
8893
|
})([
|
|
8894
8894
|
`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;}`
|
|
8895
8895
|
]);
|
|
8896
8896
|
var PaginationControls = (0, import_styled_components12.default)(FeesAndMarginPagination).withConfig({
|
|
8897
|
-
componentId: "sc-
|
|
8897
|
+
componentId: "sc-bd9a89cb-12"
|
|
8898
8898
|
})([
|
|
8899
|
-
`align-items:center;flex-wrap:wrap;gap:16px 24px
|
|
8900
|
-
|
|
8899
|
+
`align-items:center;flex-wrap:wrap;gap:16px 24px;color:`,
|
|
8900
|
+
`;`
|
|
8901
|
+
], ({ theme }) => theme.colors.text.primary);
|
|
8901
8902
|
var PageSizeLabel = import_styled_components12.default.div.withConfig({
|
|
8902
|
-
componentId: "sc-
|
|
8903
|
+
componentId: "sc-bd9a89cb-13"
|
|
8903
8904
|
})([
|
|
8904
8905
|
`display:inline-flex;align-items:center;gap:8px;color:`,
|
|
8905
8906
|
`;font:inherit;font-size:13px;`
|
|
@@ -8927,12 +8928,12 @@ function Position({ value: value4, max, label, onMove }) {
|
|
|
8927
8928
|
});
|
|
8928
8929
|
}
|
|
8929
8930
|
var DeleteButton = (0, import_styled_components12.default)(EditorButton).withConfig({
|
|
8930
|
-
componentId: "sc-
|
|
8931
|
+
componentId: "sc-bd9a89cb-14"
|
|
8931
8932
|
})([
|
|
8932
8933
|
`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;}`
|
|
8933
8934
|
]);
|
|
8934
8935
|
var CellEditorInput = import_styled_components12.default.textarea.withConfig({
|
|
8935
|
-
componentId: "sc-
|
|
8936
|
+
componentId: "sc-bd9a89cb-15"
|
|
8936
8937
|
})([
|
|
8937
8938
|
`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:`,
|
|
8938
8939
|
`;}&:focus{outline:1px solid `,
|
|
@@ -9506,12 +9507,48 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
9506
9507
|
"aria-label": english ? "Rows per page" : "S\u1ED1 d\xF2ng m\u1ED7i trang"
|
|
9507
9508
|
},
|
|
9508
9509
|
MenuProps: {
|
|
9509
|
-
container: () => tableRoot.current?.ownerDocument.body ?? document.body
|
|
9510
|
+
container: () => tableRoot.current?.ownerDocument.body ?? document.body,
|
|
9511
|
+
// The menu is portaled to body, so theme its paper explicitly too.
|
|
9512
|
+
slotProps: {
|
|
9513
|
+
paper: {
|
|
9514
|
+
sx: {
|
|
9515
|
+
color: feesTheme.colors.text.primary,
|
|
9516
|
+
bgcolor: feesTheme.colors.background.popup,
|
|
9517
|
+
backgroundImage: "none",
|
|
9518
|
+
border: `1px solid ${feesTheme.colors.border.line}`,
|
|
9519
|
+
"& .MuiMenuItem-root": {
|
|
9520
|
+
fontFamily: "var(--font-manrope, Manrope), Arial, Helvetica, sans-serif",
|
|
9521
|
+
fontSize: 13,
|
|
9522
|
+
"&:hover, &.Mui-focusVisible": {
|
|
9523
|
+
bgcolor: feesTheme.colors.background.hover
|
|
9524
|
+
},
|
|
9525
|
+
"&.Mui-selected, &.Mui-selected:hover, &.Mui-selected.Mui-focusVisible": {
|
|
9526
|
+
bgcolor: feesTheme.colors.accent.primary,
|
|
9527
|
+
color: feesTheme.colors.accent.foreground
|
|
9528
|
+
}
|
|
9529
|
+
}
|
|
9530
|
+
}
|
|
9531
|
+
}
|
|
9532
|
+
}
|
|
9510
9533
|
},
|
|
9511
9534
|
sx: {
|
|
9512
9535
|
minWidth: 80,
|
|
9513
9536
|
fontSize: 13,
|
|
9514
|
-
fontFamily: "inherit"
|
|
9537
|
+
fontFamily: "inherit",
|
|
9538
|
+
color: feesTheme.colors.text.primary,
|
|
9539
|
+
bgcolor: feesTheme.colors.background.canvas,
|
|
9540
|
+
"& .MuiSelect-icon": {
|
|
9541
|
+
color: feesTheme.colors.text.secondary
|
|
9542
|
+
},
|
|
9543
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
9544
|
+
borderColor: feesTheme.colors.border.line
|
|
9545
|
+
},
|
|
9546
|
+
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
9547
|
+
borderColor: feesTheme.colors.text.secondary
|
|
9548
|
+
},
|
|
9549
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
9550
|
+
borderColor: feesTheme.colors.accent.primary
|
|
9551
|
+
}
|
|
9515
9552
|
},
|
|
9516
9553
|
onChange: (event) => {
|
|
9517
9554
|
setPageSize(Number(event.target.value));
|