@enyxs/wikex-components 0.11.30 → 0.11.31
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/README.md +13 -0
- package/dist/fees-model.d.mts +5 -1
- package/dist/fees-model.d.ts +5 -1
- package/dist/fees-model.js +18 -0
- package/dist/fees-model.js.map +1 -1
- package/dist/fees-model.mjs +16 -0
- package/dist/fees-model.mjs.map +1 -1
- package/dist/fees.d.mts +1 -1
- package/dist/fees.d.ts +1 -1
- package/dist/fees.js +77 -27
- package/dist/fees.js.map +1 -1
- package/dist/fees.mjs +77 -27
- package/dist/fees.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +91 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +91 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5742,39 +5742,39 @@ var benefitTwoWayDown = keyframes2([
|
|
|
5742
5742
|
`0%{transform:translateY(0);}50%{transform:translateY(-3px);}100%{transform:translateY(0);}`
|
|
5743
5743
|
]);
|
|
5744
5744
|
var Hero = styled4.section.withConfig({
|
|
5745
|
-
componentId: "sc-
|
|
5745
|
+
componentId: "sc-8555619f-0"
|
|
5746
5746
|
})([
|
|
5747
5747
|
`position:relative;min-height:820px;overflow:hidden;color:#05080f;background:var( --wikex-hero-background,url("/landing-assets/keyvisual_bg.webp") ) no-repeat center / cover;&::before,&::after{content:"";position:absolute;background:no-repeat center / 100% auto;height:820px;}&::before{top:0;left:-90px;background-image:url("/landing-assets/keyvisual_shape.png");width:50%;opacity:0.8;}@media (min-width:1024px) and (max-width:1329px){min-height:unset;padding-top:80px;padding-bottom:80px;}@media (min-width:768px) and (max-width:1023px){min-height:auto;}@media (max-width:767px){height:unset;min-height:unset;background:var( --wikex-hero-mobile-background,url("/landing-assets/keyvisual-background-mobile@2x.jpg") ) no-repeat center / cover;&::before,&::after{display:none;}.hero-dot-field{display:none;}}`
|
|
5748
5748
|
]);
|
|
5749
5749
|
var HeroInner = styled4.div.withConfig({
|
|
5750
|
-
componentId: "sc-
|
|
5750
|
+
componentId: "sc-8555619f-1"
|
|
5751
5751
|
})([
|
|
5752
5752
|
`position:relative;z-index:1;display:flex;max-width:1230px;padding:0 15px;min-height:820px;justify-content:space-between;margin:0 auto;align-items:center;gap:30px;.specular-button{width:200px;min-height:44px;font-size:16px;font-weight:700;white-space:nowrap;margin-top:32px;}@media (min-width:1480px) and (max-width:1600px){justify-content:space-around;}@media (min-width:1330px) and (max-width:1479px){justify-content:unset;gap:100px;}@media (min-width:1024px) and (max-width:1329px){justify-content:unset;gap:140px;min-height:unset;}@media (min-width:1024px) and (max-width:1111px){gap:80px;}@media (min-width:768px) and (max-width:1023px){min-height:auto;padding:56px 15px 48px;flex-direction:column;align-items:center;gap:40px;}@media (max-width:767px){width:100%;padding:40px 16px;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:35px;overflow:hidden;min-height:unset;.specular-button{order:3;width:100%;min-height:40px;margin-top:0;}}`
|
|
5753
5753
|
]);
|
|
5754
5754
|
var HeroCopy = styled4.div.withConfig({
|
|
5755
|
-
componentId: "sc-
|
|
5755
|
+
componentId: "sc-8555619f-2"
|
|
5756
5756
|
})([
|
|
5757
5757
|
`position:relative;z-index:2;@media (prefers-reduced-motion:no-preference){> *{animation:`,
|
|
5758
5758
|
` 950ms cubic-bezier(0.33,1,0.68,1) backwards;}> :nth-child(1){animation-delay:80ms;}> :nth-child(2){animation-delay:220ms;}> :nth-child(3){animation-delay:360ms;}> :nth-child(4){animation-delay:500ms;}}> p{max-width:570px;margin:18px 0 0;color:#05080f;font-size:16px;font-weight:500;line-height:22px;white-space:pre-line;}@media (max-width:1023px){width:100%;text-align:center;> p{margin-inline:auto;}}@media (max-width:767px){display:contents;> p{order:2;width:100%;max-width:343px;height:72px;min-height:72px;margin:-4px auto 0;flex:0 0 72px;font-size:14px;line-height:18px;text-align:center;}}`
|
|
5759
5759
|
], revealHeroCopy);
|
|
5760
5760
|
var HeroTitle = styled4.h1.withConfig({
|
|
5761
|
-
componentId: "sc-
|
|
5761
|
+
componentId: "sc-8555619f-3"
|
|
5762
5762
|
})([
|
|
5763
5763
|
`color:#05080f;font-size:54px;font-weight:700;line-height:72px;white-space:pre-line;margin:0;@media (max-width:520px){font-size:36px;line-height:46px;br{display:none;}}@media (max-width:767px){order:1;width:100%;min-height:120px;font-size:32px;line-height:40px;text-align:center;br{display:initial;}}`
|
|
5764
5764
|
]);
|
|
5765
5765
|
var HeroMetrics = styled4.div.withConfig({
|
|
5766
|
-
componentId: "sc-
|
|
5766
|
+
componentId: "sc-8555619f-4"
|
|
5767
5767
|
})([
|
|
5768
5768
|
`display:flex;margin-top:62px;.hero-metrics-track,.hero-metrics-group{display:contents;}.hero-metrics-group--duplicate{display:none;}@media (max-width:1023px){margin-top:42px;justify-content:center;}@media (max-width:767px){order:5;width:100%;min-width:100%;margin:0;justify-content:flex-start;overflow:hidden;.hero-metrics-track{display:flex;width:max-content;animation:`,
|
|
5769
5769
|
` 14s linear infinite;will-change:transform;}.hero-metrics-group,.hero-metrics-group--duplicate{display:flex;flex:0 0 auto;gap:16px;padding-right:25px;}}@media (max-width:767px) and (prefers-reduced-motion:reduce){overflow-x:auto;.hero-metrics-track{animation:none;will-change:auto;}.hero-metrics-group{padding-right:0;}.hero-metrics-group--duplicate{display:none;}}`
|
|
5770
5770
|
], moveHeroMetricsMarquee);
|
|
5771
5771
|
var HeroMetric = styled4.div.withConfig({
|
|
5772
|
-
componentId: "sc-
|
|
5772
|
+
componentId: "sc-8555619f-5"
|
|
5773
5773
|
})([
|
|
5774
5774
|
`display:flex;gap:8px;align-items:center;border-right:1px solid #05080f;padding:0 20px;font-size:20px;font-weight:600;line-height:1.25;white-space:pre-line;svg{flex-shrink:0;}&:first-child{padding-left:0;}&:last-child{border-right:0;}@media (min-width:1024px) and (max-width:1329px){font-size:15px;}@media (max-width:767px){width:174px;min-width:174px;min-height:48px;justify-content:flex-start;border-right:0;border-bottom:0;padding:0;gap:10px;font-size:16px;line-height:18px;text-align:left;&:first-child{width:233px;min-width:233px;padding-right:16px;}&:nth-child(2){width:212px;min-width:212px;padding-right:16px;}svg{width:36px;height:36px;}strong{display:block;width:116px;font-weight:600;font-size:20px;line-height:22px;}&:first-child strong{width:159px;}&:nth-child(2) strong{width:138px;}}`
|
|
5775
5775
|
]);
|
|
5776
5776
|
var HeroArt = styled4.div.withConfig({
|
|
5777
|
-
componentId: "sc-
|
|
5777
|
+
componentId: "sc-8555619f-6"
|
|
5778
5778
|
})([
|
|
5779
5779
|
`position:relative;min-height:461px;width:288px;flex-shrink:0;@media (prefers-reduced-motion:no-preference){.hero-phone{animation:`,
|
|
5780
5780
|
` 700ms cubic-bezier(0.33,1,0.68,1) 240ms backwards;}.key-mock-2{animation:`,
|
|
@@ -5782,15 +5782,15 @@ var HeroArt = styled4.div.withConfig({
|
|
|
5782
5782
|
` 560ms cubic-bezier(0.33,1,0.68,1) 920ms backwards;}.label-middle{animation:`,
|
|
5783
5783
|
` 520ms cubic-bezier(0.33,1,0.68,1) 1120ms backwards;}.label-bottom{animation:`,
|
|
5784
5784
|
` 520ms cubic-bezier(0.33,1,0.68,1) 1320ms backwards;}.label-top{animation:`,
|
|
5785
|
-
` 520ms cubic-bezier(0.33,1,0.68,1) 1520ms backwards;}}.key-mock-1,.key-mock-2{position:absolute;width:139px;height:94px;}.key-mock-2{right:-65px;top:24px;}.key-mock-1{left:-28px;top:78px;}.label{--label-height:75px;--label-padding-start:35px;--label-padding-end:35px;position:absolute;display:inline-flex;width:max-content;height:var(--label-height);picture{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;}img{display:block;width:100%;height:100%;}p{position:relative;z-index:1;display:flex;align-items:center;color:#392c12;font-size:20px;font-weight:700;line-height:1.2;white-space:nowrap;margin:0;padding:0 var(--label-padding-end) 6px var(--label-padding-start);}}.label-top{bottom:112px;right:226px;--label-padding-end:60px;}.label-middle{top:148px;left:195px;--label-padding-start:45px;--label-padding-end:24px;}.label-bottom{left:143px;bottom:70px;--label-padding-start:45px;--label-padding-end:24px;p{padding-bottom:14px;}}@media (max-width:767px){.key-mock-1,.key-mock-2{width:67px;height:45px;}.key-mock-1{left:-15px;top:38px;}.key-mock-2{right:-34px;top:10px;}.label{--label-height:36px;p{font-size:10px;}}.label-top{bottom:52px;right:106px;--label-padding-start:15px;--label-padding-end:32px;}.label-middle{top:70px;left:92px;--label-padding-start:24px;--label-padding-end:12px;}.label-bottom{left:67px;bottom:30px;--label-height:33px;--label-padding-start:24px;--label-padding-end:12px;p{padding-top:3px;padding-bottom:6px;}}}@media (min-width:1024px) and (max-width:1230px){.key-mock-1,.key-mock-2{width:120px;height:75px;}.key-mock-2{right:-55px;top:64px;}.key-mock-1{left:-24px;top:108px;}.label{p{font-size:13px;}--label-height:4vw;}.label-top{bottom:142px;right:calc(434px - 18vw);--label-padding-start:2vw;--label-padding-end:3vw;}.label-middle{top:168px;left:155px;--label-padding-start:3vw;--label-padding-end:1.5vw;}.label-bottom{left:calc(273px - 15vw);bottom:108px;--label-padding-start:2.5vw;--label-padding-end:1.5vw;}}@media (max-width:767px){order:4;width:137px;height:219px;min-height:auto;margin:0 auto;}`
|
|
5785
|
+
` 520ms cubic-bezier(0.33,1,0.68,1) 1520ms backwards;}}.key-mock-1,.key-mock-2{position:absolute;width:139px;height:94px;}.key-mock-2{right:-65px;top:24px;}.key-mock-1{left:-28px;top:78px;}.label{--label-height:75px;--label-padding-start:35px;--label-padding-end:35px;position:absolute;display:inline-flex;width:max-content;height:var(--label-height);picture{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;}img{display:block;width:100%;height:100%;}p{position:relative;z-index:1;min-width:max-content;display:flex;align-items:center;color:#392c12;font-size:20px;font-weight:700;line-height:1.2;white-space:nowrap;margin:0;padding:0 var(--label-padding-end) 6px var(--label-padding-start);}}.label-top{bottom:112px;right:226px;--label-padding-end:60px;}.label-middle{top:148px;left:195px;--label-padding-start:45px;--label-padding-end:24px;}.label-bottom{left:143px;bottom:70px;--label-padding-start:45px;--label-padding-end:24px;p{padding-bottom:14px;}}@media (max-width:767px){.key-mock-1,.key-mock-2{width:67px;height:45px;}.key-mock-1{left:-15px;top:38px;}.key-mock-2{right:-34px;top:10px;}.label{--label-height:36px;p{font-size:10px;}}.label-top{bottom:52px;right:106px;--label-padding-start:15px;--label-padding-end:32px;}.label-middle{top:70px;left:92px;--label-padding-start:24px;--label-padding-end:12px;}.label-bottom{left:67px;bottom:30px;--label-height:33px;--label-padding-start:24px;--label-padding-end:12px;p{padding-top:3px;padding-bottom:6px;}}}@media (min-width:1024px) and (max-width:1230px){.key-mock-1,.key-mock-2{width:120px;height:75px;}.key-mock-2{right:-55px;top:64px;}.key-mock-1{left:-24px;top:108px;}.label{p{font-size:13px;}--label-height:4vw;}.label-top{bottom:142px;right:calc(434px - 18vw);--label-padding-start:2vw;--label-padding-end:3vw;}.label-middle{top:168px;left:155px;--label-padding-start:3vw;--label-padding-end:1.5vw;}.label-bottom{left:calc(273px - 15vw);bottom:108px;--label-padding-start:2.5vw;--label-padding-end:1.5vw;}}@media (max-width:767px){order:4;width:137px;height:219px;min-height:auto;margin:0 auto;}`
|
|
5786
5786
|
], revealHeroArtUp, revealHeroArtFromRight, revealHeroArtFromLeft, revealHeroArtUp, revealHeroArtUp, revealHeroArtUp);
|
|
5787
5787
|
var HeroImage = styled4.div.withConfig({
|
|
5788
|
-
componentId: "sc-
|
|
5788
|
+
componentId: "sc-8555619f-7"
|
|
5789
5789
|
})([
|
|
5790
5790
|
`position:absolute;inset:0;.hero-phone-picture{position:absolute;inset:0;display:block;}img{object-fit:contain;}@media (min-width:1024px) and (max-width:1230px){width:80%;}`
|
|
5791
5791
|
]);
|
|
5792
5792
|
var PageShell = styled4.main.withConfig({
|
|
5793
|
-
componentId: "sc-
|
|
5793
|
+
componentId: "sc-8555619f-8"
|
|
5794
5794
|
})([
|
|
5795
5795
|
`--cream:#fffbf3;--faq-answer-color:#4e5560;--faq-card-background:#fff;--faq-card-foreground:#05080f;--faq-card-shadow-accent:#ffe5aa;--faq-card-shadow-ambient:rgb(0 0 0 / 5%);--footer-contact-icon-filter:none;--footer-desktop-icon-background:#e6e7ea;--footer-desktop-icon-filter:none;--footer-store-badge-background:#05080f;--footer-store-badge-foreground:#f9fafb;--footer-store-monochrome-filter:none;--footer-social-background:#e6e7ea;--footer-social-icon-filter:none;--ink:#05080f;--muted:#707580;--yellow:#f9bb3a;box-sizing:border-box;overflow:clip;color:var(--ink);background:var(--cream);font-family:var(--font-inter),Arial,Helvetica,sans-serif;line-height:normal;*,*::before,*::after{box-sizing:border-box;}button,input,textarea,select{font:inherit;}.container{width:min(1200px,calc(100% - 48px));margin-inline:auto;}.section{padding:80px 0;}.benefits{padding-top:80px;}.benefits .section-heading{margin:0 auto 60px;}.benefit-grid{display:flex;flex-wrap:wrap;gap:60px 32px;}.benefit-card{position:relative;flex:0 0 calc((100% - 96px) / 4);min-width:0;min-height:242px;padding:24px 32px 48px;text-align:center;cursor:pointer;&::before{position:absolute;z-index:1;top:-30px;right:-6px;bottom:-14px;left:-14px;background:url("/landing-assets/benefit-card-short.svg") no-repeat center / 100% 100%;content:"";pointer-events:none;}&::after{position:absolute;z-index:0;right:0;bottom:-16px;left:32px;height:52px;background:url("/landing-assets/benefit-card-accent.svg") no-repeat center / 100% 100%;content:"";pointer-events:none;}}.benefit-card--tall{min-height:308px;}.benefit-card--tall::before{background-image:url("/landing-assets/benefit-card-tall.svg");}.benefit-inner{position:relative;z-index:5;display:flex;flex-direction:column;align-items:center;gap:0;}.benefit-body-clip{min-height:0;}.benefit-toggle{display:none;}.benefit-icon{display:block;width:48px;height:48px;flex:0 0 48px;}.benefit-market-line{stroke-dasharray:1;stroke-dashoffset:0;}.benefit-futures-line,.benefit-economy-reveal{transform-box:fill-box;transform-origin:left center;}.benefit-gavel{transform-box:view-box;transform-origin:44px 40px;}.benefit-risk-square{transform-box:fill-box;transform-origin:center;}.benefit-product-segment{transform-box:view-box;transform-origin:24px 24.5px;}@media (hover:hover) and (prefers-reduced-motion:no-preference){.benefit-card:is(:hover,:focus-within){.benefit-market-line{animation:`,
|
|
5796
5796
|
` 120ms linear both;}.benefit-futures-line{animation:`,
|
|
@@ -7574,6 +7574,7 @@ import { Box as Box6, Button as Button7, MenuItem as MenuItem2, Stack as Stack4,
|
|
|
7574
7574
|
var FEES_FONT_SIZE_MIN = 8;
|
|
7575
7575
|
var FEES_FONT_SIZE_MAX = 32;
|
|
7576
7576
|
var FEES_FONT_WEIGHTS = [400, 500, 600, 700, 800];
|
|
7577
|
+
var FEES_TEXT_ALIGNS = ["left", "center", "right"];
|
|
7577
7578
|
var FEES_PAGE_SIZE = 25;
|
|
7578
7579
|
function normalizeFeesSearch(value4) {
|
|
7579
7580
|
return value4.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/đ/g, "d").replace(/Đ/g, "D").toLowerCase().trim();
|
|
@@ -7582,6 +7583,15 @@ function filterFeesRows(data, search, tag) {
|
|
|
7582
7583
|
const query = normalizeFeesSearch(search);
|
|
7583
7584
|
return data.rows.filter((row) => (!tag || row.tags.includes(tag)) && (!query || Object.values(row.cells).some((cell) => normalizeFeesSearch(cell).includes(query))));
|
|
7584
7585
|
}
|
|
7586
|
+
function sortFeesRowsByName(rows, language = "vi") {
|
|
7587
|
+
const collator = new Intl.Collator(language, { sensitivity: "base", numeric: true });
|
|
7588
|
+
return [...rows].sort((a, b) => {
|
|
7589
|
+
const left = (a.cells.name ?? "").trim();
|
|
7590
|
+
const right = (b.cells.name ?? "").trim();
|
|
7591
|
+
if (!left || !right) return left ? -1 : right ? 1 : 0;
|
|
7592
|
+
return collator.compare(left, right);
|
|
7593
|
+
});
|
|
7594
|
+
}
|
|
7585
7595
|
function paginateFeesRows(rows, requestedPage, pageSize = FEES_PAGE_SIZE) {
|
|
7586
7596
|
const size = pageSize === -1 ? Math.max(1, rows.length) : Number.isInteger(pageSize) && pageSize > 0 ? pageSize : FEES_PAGE_SIZE;
|
|
7587
7597
|
const pageCount = Math.max(1, Math.ceil(rows.length / size));
|
|
@@ -7619,6 +7629,10 @@ function validateFeesTypography(value4) {
|
|
|
7619
7629
|
if (!FEES_FONT_WEIGHTS.includes(raw.fontWeight)) throw invalid();
|
|
7620
7630
|
style.fontWeight = raw.fontWeight;
|
|
7621
7631
|
}
|
|
7632
|
+
if (raw.textAlign !== void 0) {
|
|
7633
|
+
if (!FEES_TEXT_ALIGNS.includes(raw.textAlign)) throw new Error("C\u0103n l\u1EC1 b\u1EA3ng ph\xED kh\xF4ng h\u1EE3p l\u1EC7. Ch\u1ECDn c\u0103n tr\xE1i, gi\u1EEFa ho\u1EB7c ph\u1EA3i.");
|
|
7634
|
+
style.textAlign = raw.textAlign;
|
|
7635
|
+
}
|
|
7622
7636
|
if (Object.keys(style).length) result[part] = style;
|
|
7623
7637
|
}
|
|
7624
7638
|
return Object.keys(result).length ? result : void 0;
|
|
@@ -7748,6 +7762,7 @@ function defaultFeesTable(t) {
|
|
|
7748
7762
|
// src/wikex/fees-typography-controls.tsx
|
|
7749
7763
|
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
7750
7764
|
var weightLabels = { 400: "Th\u01B0\u1EDDng", 500: "V\u1EEBa", 600: "H\u01A1i \u0111\u1EADm", 700: "\u0110\u1EADm", 800: "R\u1EA5t \u0111\u1EADm" };
|
|
7765
|
+
var alignLabels = { left: "C\u0103n tr\xE1i", center: "C\u0103n gi\u1EEFa", right: "C\u0103n ph\u1EA3i" };
|
|
7751
7766
|
function FontSizeInput({ label, value: value4, onChange }) {
|
|
7752
7767
|
const [draft, setDraft] = useState5(String(value4));
|
|
7753
7768
|
const [error, setError] = useState5(false);
|
|
@@ -7788,7 +7803,13 @@ function FontSizeInput({ label, value: value4, onChange }) {
|
|
|
7788
7803
|
}
|
|
7789
7804
|
function FeesTypographyControls({ value: value4, onChange }) {
|
|
7790
7805
|
const root = useRef3(null);
|
|
7791
|
-
const update = (part, patch) =>
|
|
7806
|
+
const update = (part, patch) => {
|
|
7807
|
+
const style = Object.fromEntries(Object.entries({ ...value4?.[part], ...patch }).filter(([, setting]) => setting !== void 0));
|
|
7808
|
+
const next = { ...value4 };
|
|
7809
|
+
if (Object.keys(style).length) next[part] = style;
|
|
7810
|
+
else delete next[part];
|
|
7811
|
+
onChange(Object.keys(next).length ? next : void 0);
|
|
7812
|
+
};
|
|
7792
7813
|
return /* @__PURE__ */ jsxs9(Box6, { ref: root, role: "group", "aria-label": "\u0110\u1ECBnh d\u1EA1ng ch\u1EEF b\u1EA3ng ph\xED", sx: { mt: 2, p: { xs: 2, sm: 2.5 }, border: "1px solid", borderColor: "divider", borderRadius: 1.5 }, children: [
|
|
7793
7814
|
/* @__PURE__ */ jsxs9(Stack4, { direction: { xs: "column", sm: "row" }, gap: 1.5, justifyContent: "space-between", alignItems: { sm: "center" }, sx: { mb: 2 }, children: [
|
|
7794
7815
|
/* @__PURE__ */ jsxs9(Box6, { children: [
|
|
@@ -7796,7 +7817,7 @@ function FeesTypographyControls({ value: value4, onChange }) {
|
|
|
7796
7817
|
/* @__PURE__ */ jsx15(Typography4, { variant: "caption", color: "text.secondary", children: "\xC1p d\u1EE5ng cho to\xE0n b\u1EA3ng, theo ng\xF4n ng\u1EEF \u0111ang ch\u1ECDn. Xem thay \u0111\u1ED5i ngay b\xEAn d\u01B0\u1EDBi." })
|
|
7797
7818
|
] }),
|
|
7798
7819
|
/* @__PURE__ */ jsxs9(Stack4, { direction: "row", gap: 1, flexShrink: 0, children: [
|
|
7799
|
-
/* @__PURE__ */ jsx15(Button7, { size: "small", variant: "outlined", onClick: () => onChange({ thead: { fontSize: 14, fontWeight: 700 }, tbody: { fontSize: 14, fontWeight: 500 } }), children: "D\u1EC5 \u0111\u1ECDc" }),
|
|
7820
|
+
/* @__PURE__ */ jsx15(Button7, { size: "small", variant: "outlined", onClick: () => onChange({ thead: { ...value4?.thead, fontSize: 14, fontWeight: 700 }, tbody: { ...value4?.tbody, fontSize: 14, fontWeight: 500 } }), children: "D\u1EC5 \u0111\u1ECDc" }),
|
|
7800
7821
|
/* @__PURE__ */ jsx15(Button7, { size: "small", color: "inherit", disabled: !value4, onClick: () => onChange(void 0), children: "M\u1EB7c \u0111\u1ECBnh" })
|
|
7801
7822
|
] })
|
|
7802
7823
|
] }),
|
|
@@ -7826,7 +7847,24 @@ function FeesTypographyControls({ value: value4, onChange }) {
|
|
|
7826
7847
|
] }, weight))
|
|
7827
7848
|
}
|
|
7828
7849
|
)
|
|
7829
|
-
] })
|
|
7850
|
+
] }),
|
|
7851
|
+
/* @__PURE__ */ jsxs9(
|
|
7852
|
+
TextField2,
|
|
7853
|
+
{
|
|
7854
|
+
select: true,
|
|
7855
|
+
fullWidth: true,
|
|
7856
|
+
size: "small",
|
|
7857
|
+
label: "C\u0103n l\u1EC1",
|
|
7858
|
+
value: value4?.[part]?.textAlign ?? "",
|
|
7859
|
+
slotProps: { select: { displayEmpty: true, SelectDisplayProps: { "aria-labelledby": void 0 }, MenuProps: { container: () => root.current?.ownerDocument.body ?? document.body }, inputProps: { "aria-label": `C\u0103n l\u1EC1 ${title.toLocaleLowerCase("vi")}` } }, inputLabel: { shrink: true } },
|
|
7860
|
+
helperText: "\xC1p d\u1EE5ng cho t\u1EA5t c\u1EA3 \xF4, c\u1EA3 tr\xEAn \u0111i\u1EC7n tho\u1EA1i",
|
|
7861
|
+
onChange: (event) => update(part, { textAlign: event.target.value ? event.target.value : void 0 }),
|
|
7862
|
+
children: [
|
|
7863
|
+
/* @__PURE__ */ jsx15(MenuItem2, { value: "", children: "Theo m\u1EB7c \u0111\u1ECBnh" }),
|
|
7864
|
+
FEES_TEXT_ALIGNS.map((align) => /* @__PURE__ */ jsx15(MenuItem2, { value: align, children: alignLabels[align] }, align))
|
|
7865
|
+
]
|
|
7866
|
+
}
|
|
7867
|
+
)
|
|
7830
7868
|
] }, part)) }),
|
|
7831
7869
|
/* @__PURE__ */ jsx15(Typography4, { variant: "caption", color: "text.secondary", sx: { display: "block", mt: 1 }, children: "C\u1EE1 ch\u1EEF t\xF9y ch\u1EC9nh \xE1p d\u1EE5ng c\u1EA3 tr\xEAn \u0111i\u1EC7n tho\u1EA1i; b\u1EA3ng c\xF3 th\u1EC3 vu\u1ED1t ngang. \u201CM\u1EB7c \u0111\u1ECBnh\u201D kh\xF4i ph\u1EE5c c\u1EE1 ch\u1EEF t\u1EF1 th\xEDch \u1EE9ng theo m\xE0n h\xECnh." })
|
|
7832
7870
|
] });
|
|
@@ -8591,32 +8629,32 @@ var feesTheme = {
|
|
|
8591
8629
|
]))
|
|
8592
8630
|
};
|
|
8593
8631
|
var EditorActions = styled12.div.withConfig({
|
|
8594
|
-
componentId: "sc-
|
|
8632
|
+
componentId: "sc-a14ae83-0"
|
|
8595
8633
|
})([
|
|
8596
8634
|
`display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
|
|
8597
8635
|
]);
|
|
8598
8636
|
var EditGroup = styled12.div.withConfig({
|
|
8599
|
-
componentId: "sc-
|
|
8637
|
+
componentId: "sc-a14ae83-1"
|
|
8600
8638
|
})([
|
|
8601
8639
|
`display:flex;flex-direction:column;gap:6px;`
|
|
8602
8640
|
]);
|
|
8603
8641
|
var HeaderGroup = styled12(EditGroup).withConfig({
|
|
8604
|
-
componentId: "sc-
|
|
8642
|
+
componentId: "sc-a14ae83-2"
|
|
8605
8643
|
})([
|
|
8606
8644
|
`gap:8px;`
|
|
8607
8645
|
]);
|
|
8608
8646
|
var HeaderTitle = styled12.div.withConfig({
|
|
8609
|
-
componentId: "sc-
|
|
8647
|
+
componentId: "sc-a14ae83-3"
|
|
8610
8648
|
})([
|
|
8611
8649
|
`display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
|
|
8612
8650
|
]);
|
|
8613
8651
|
var HeaderActions = styled12.div.withConfig({
|
|
8614
|
-
componentId: "sc-
|
|
8652
|
+
componentId: "sc-a14ae83-4"
|
|
8615
8653
|
})([
|
|
8616
8654
|
`display:flex;align-items:center;min-height:24px;`
|
|
8617
8655
|
]);
|
|
8618
8656
|
var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
8619
|
-
componentId: "sc-
|
|
8657
|
+
componentId: "sc-a14ae83-5"
|
|
8620
8658
|
})([
|
|
8621
8659
|
`&[data-editable] th{vertical-align:top;}--fees-row-background:`,
|
|
8622
8660
|
`;--fees-stripe-background:`,
|
|
@@ -8627,9 +8665,11 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
|
8627
8665
|
`;}&&& thead > tr > th{height:52px;padding:11.5px 8px;color:`,
|
|
8628
8666
|
`;font-size:`,
|
|
8629
8667
|
`px;font-weight:`,
|
|
8668
|
+
`;text-align:`,
|
|
8630
8669
|
`;line-height:`,
|
|
8631
8670
|
`;white-space:pre-line;}tbody > tr{background:var(--fees-row-background);}tbody > tr:nth-child(even){background:var(--fees-stripe-background);}&&& tbody > tr > td{height:32px;padding:7.5px 8px;background:inherit;color:var(--fees-text);font-size:`,
|
|
8632
8671
|
`px;font-weight:`,
|
|
8672
|
+
`;text-align:`,
|
|
8633
8673
|
`;line-height:`,
|
|
8634
8674
|
`;}thead > tr > th:first-child,tbody > tr > td:first-child{padding-left:16px;}@media (max-width:767px){&&:not([data-editable]){table{min-width:100%;width:`,
|
|
8635
8675
|
`px;table-layout:fixed;}`,
|
|
@@ -8637,23 +8677,25 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
|
8637
8677
|
`px;line-height:`,
|
|
8638
8678
|
`;}tbody > tr > td{height:40px;padding-top:5.5px;padding-bottom:5.5px;font-size:`,
|
|
8639
8679
|
`px;line-height:`,
|
|
8640
|
-
`;}thead > tr > th:last-child,tbody > tr > td:last-child{padding-right:12px;}th > span
|
|
8680
|
+
`;}thead > tr > th:last-child,tbody > tr > td:last-child{padding-right:12px;}th > span{text-align:`,
|
|
8681
|
+
`;}td > span{text-align:`,
|
|
8682
|
+
`;}thead > tr > th:first-child,tbody > tr > td:first-child{position:sticky;left:0;padding-left:12px;}thead > tr > th:first-child{z-index:3;background:`,
|
|
8641
8683
|
`;}tbody > tr > td:first-child{z-index:2;background:var(--fees-row-background);}tbody > tr:nth-child(even) > td:first-child{background:var(--fees-stripe-background);}}}`
|
|
8642
|
-
], ({ theme }) => theme.colors.background.deep, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.background.card, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ $typography }) => $typography?.thead?.fontSize ?? 10, ({ $typography }) => $typography?.thead?.fontWeight ?? 600, ({ $typography }) => $typography?.thead?.fontSize ? 1.4 : "14px", ({ $typography }) => $typography?.tbody?.fontSize ?? 12, ({ $typography }) => $typography?.tbody?.fontWeight ?? 500, ({ $typography }) => $typography?.tbody?.fontSize ? 1.4 : "16px", ({ $mobileColumnWidths }) => $mobileColumnWidths.reduce((sum, width) => sum + width, 0), ({ $mobileColumnWidths }) => $mobileColumnWidths.map((width, index) => `
|
|
8684
|
+
], ({ theme }) => theme.colors.background.deep, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.background.card, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ $typography }) => $typography?.thead?.fontSize ?? 10, ({ $typography }) => $typography?.thead?.fontWeight ?? 600, ({ $typography }) => $typography?.thead?.textAlign ?? "left", ({ $typography }) => $typography?.thead?.fontSize ? 1.4 : "14px", ({ $typography }) => $typography?.tbody?.fontSize ?? 12, ({ $typography }) => $typography?.tbody?.fontWeight ?? 500, ({ $typography }) => $typography?.tbody?.textAlign ?? "left", ({ $typography }) => $typography?.tbody?.fontSize ? 1.4 : "16px", ({ $mobileColumnWidths }) => $mobileColumnWidths.reduce((sum, width) => sum + width, 0), ({ $mobileColumnWidths }) => $mobileColumnWidths.map((width, index) => `
|
|
8643
8685
|
th:nth-child(${index + 1}), td:nth-child(${index + 1}) {
|
|
8644
8686
|
width: ${width}px;
|
|
8645
8687
|
min-width: ${width}px;
|
|
8646
8688
|
max-width: ${width}px;
|
|
8647
8689
|
}
|
|
8648
|
-
`).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);
|
|
8690
|
+
`).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", ({ $typography }) => $typography?.thead?.textAlign ?? "left", ({ $typography }) => $typography?.tbody?.textAlign ?? "left", ({ theme }) => theme.colors.accent.primary);
|
|
8649
8691
|
var FeesCellContent = styled12.span.withConfig({
|
|
8650
|
-
componentId: "sc-
|
|
8692
|
+
componentId: "sc-a14ae83-6"
|
|
8651
8693
|
})([
|
|
8652
8694
|
`display:block;text-align:`,
|
|
8653
8695
|
`;`
|
|
8654
|
-
], ({ $
|
|
8696
|
+
], ({ $align }) => $align);
|
|
8655
8697
|
var EditorButton = styled12.button.withConfig({
|
|
8656
|
-
componentId: "sc-
|
|
8698
|
+
componentId: "sc-a14ae83-7"
|
|
8657
8699
|
})([
|
|
8658
8700
|
`padding:7px 12px;border:1px solid `,
|
|
8659
8701
|
`;border-radius:6px;background:`,
|
|
@@ -8662,17 +8704,17 @@ var EditorButton = styled12.button.withConfig({
|
|
|
8662
8704
|
`;}&:disabled{cursor:default;opacity:.4;}`
|
|
8663
8705
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8664
8706
|
var OrderActions = styled12.div.withConfig({
|
|
8665
|
-
componentId: "sc-
|
|
8707
|
+
componentId: "sc-a14ae83-8"
|
|
8666
8708
|
})([
|
|
8667
8709
|
`display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
|
|
8668
8710
|
]);
|
|
8669
8711
|
var PositionLabel = styled12.label.withConfig({
|
|
8670
|
-
componentId: "sc-
|
|
8712
|
+
componentId: "sc-a14ae83-9"
|
|
8671
8713
|
})([
|
|
8672
8714
|
`display:inline-flex;align-items:center;gap:6px;font-size:12px;`
|
|
8673
8715
|
]);
|
|
8674
8716
|
var PositionInput = styled12.input.withConfig({
|
|
8675
|
-
componentId: "sc-
|
|
8717
|
+
componentId: "sc-a14ae83-10"
|
|
8676
8718
|
})([
|
|
8677
8719
|
`width:56px;padding:5px;border:1px solid `,
|
|
8678
8720
|
`;border-radius:4px;background:`,
|
|
@@ -8681,17 +8723,17 @@ var PositionInput = styled12.input.withConfig({
|
|
|
8681
8723
|
`;}`
|
|
8682
8724
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8683
8725
|
var ColumnRow = styled12.div.withConfig({
|
|
8684
|
-
componentId: "sc-
|
|
8726
|
+
componentId: "sc-a14ae83-11"
|
|
8685
8727
|
})([
|
|
8686
8728
|
`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;}`
|
|
8687
8729
|
]);
|
|
8688
8730
|
var PaginationControls = styled12(FeesAndMarginPagination).withConfig({
|
|
8689
|
-
componentId: "sc-
|
|
8731
|
+
componentId: "sc-a14ae83-12"
|
|
8690
8732
|
})([
|
|
8691
8733
|
`align-items:center;flex-wrap:wrap;gap:16px 24px;`
|
|
8692
8734
|
]);
|
|
8693
8735
|
var PageSizeLabel = styled12.div.withConfig({
|
|
8694
|
-
componentId: "sc-
|
|
8736
|
+
componentId: "sc-a14ae83-13"
|
|
8695
8737
|
})([
|
|
8696
8738
|
`display:inline-flex;align-items:center;gap:8px;color:`,
|
|
8697
8739
|
`;font:inherit;font-size:13px;`
|
|
@@ -8719,14 +8761,14 @@ function Position({ value: value4, max, label, onMove }) {
|
|
|
8719
8761
|
});
|
|
8720
8762
|
}
|
|
8721
8763
|
var DeleteButton = styled12(EditorButton).withConfig({
|
|
8722
|
-
componentId: "sc-
|
|
8764
|
+
componentId: "sc-a14ae83-14"
|
|
8723
8765
|
})([
|
|
8724
8766
|
`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;}`
|
|
8725
8767
|
]);
|
|
8726
8768
|
var CellEditorInput = styled12.textarea.withConfig({
|
|
8727
|
-
componentId: "sc-
|
|
8769
|
+
componentId: "sc-a14ae83-15"
|
|
8728
8770
|
})([
|
|
8729
|
-
`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;resize:none;overflow:hidden;&:hover{border-color:`,
|
|
8771
|
+
`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:`,
|
|
8730
8772
|
`;}&:focus{outline:1px solid `,
|
|
8731
8773
|
`;}`
|
|
8732
8774
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.accent.primary);
|
|
@@ -8937,7 +8979,8 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
8937
8979
|
};
|
|
8938
8980
|
const activeTag = tags.includes(tag) ? tag : "";
|
|
8939
8981
|
const filtered = filterFeesRows(value4, search, activeTag);
|
|
8940
|
-
const
|
|
8982
|
+
const displayedRows = canEdit ? filtered : sortFeesRowsByName(filtered, language);
|
|
8983
|
+
const pagination = paginateFeesRows(displayedRows, page, pageSize);
|
|
8941
8984
|
const moveColumn = (from, to) => onChange?.({
|
|
8942
8985
|
...value4,
|
|
8943
8986
|
columns: moveFeesItem(value4.columns, from, to)
|
|
@@ -9014,7 +9057,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9014
9057
|
})
|
|
9015
9058
|
]
|
|
9016
9059
|
}) : /* @__PURE__ */ _jsx3(FeesCellContent, {
|
|
9017
|
-
$
|
|
9060
|
+
$align: value4.typography?.thead?.textAlign ?? (rightAlignedColumns.has(column.key) ? "right" : "left"),
|
|
9018
9061
|
children: column.title
|
|
9019
9062
|
}),
|
|
9020
9063
|
render: (_unused, row) => canEdit ? /* @__PURE__ */ _jsx3(CellEditor, {
|
|
@@ -9028,7 +9071,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9028
9071
|
}
|
|
9029
9072
|
})
|
|
9030
9073
|
}) : /* @__PURE__ */ _jsx3(FeesCellContent, {
|
|
9031
|
-
$
|
|
9074
|
+
$align: value4.typography?.tbody?.textAlign ?? (rightAlignedColumns.has(column.key) ? "right" : "left"),
|
|
9032
9075
|
children: row.cells[column.key] ?? ""
|
|
9033
9076
|
})
|
|
9034
9077
|
}));
|
|
@@ -9145,6 +9188,17 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9145
9188
|
}),
|
|
9146
9189
|
canEdit && /* @__PURE__ */ _jsxs3(EditorActions, {
|
|
9147
9190
|
children: [
|
|
9191
|
+
/* @__PURE__ */ _jsx3(EditorButton, {
|
|
9192
|
+
type: "button",
|
|
9193
|
+
onClick: () => {
|
|
9194
|
+
onChange?.({
|
|
9195
|
+
...value4,
|
|
9196
|
+
rows: sortFeesRowsByName(value4.rows, language)
|
|
9197
|
+
});
|
|
9198
|
+
setPage(1);
|
|
9199
|
+
},
|
|
9200
|
+
children: english ? "Sort names A\u2013Z" : "S\u1EAFp x\u1EBFp t\xEAn A\u2013Z"
|
|
9201
|
+
}),
|
|
9148
9202
|
/* @__PURE__ */ _jsx3(EditorButton, {
|
|
9149
9203
|
type: "button",
|
|
9150
9204
|
onClick: () => {
|