@asdp/ferryui 0.1.22-dev.10850 → 0.1.22-dev.10923
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.d.mts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +237 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +237 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -16533,6 +16533,17 @@ var useStyles38 = makeStyles({
|
|
|
16533
16533
|
height: "40px",
|
|
16534
16534
|
objectFit: "contain"
|
|
16535
16535
|
},
|
|
16536
|
+
skeletonOption: {
|
|
16537
|
+
display: "flex",
|
|
16538
|
+
alignItems: "center",
|
|
16539
|
+
justifyContent: "space-between",
|
|
16540
|
+
width: "100%"
|
|
16541
|
+
},
|
|
16542
|
+
skeletonOptionLeft: {
|
|
16543
|
+
display: "flex",
|
|
16544
|
+
alignItems: "center",
|
|
16545
|
+
gap: tokens.spacingHorizontalL
|
|
16546
|
+
},
|
|
16536
16547
|
card: {
|
|
16537
16548
|
position: "relative",
|
|
16538
16549
|
borderRadius: tokens.borderRadiusXLarge,
|
|
@@ -16549,13 +16560,53 @@ var CardPaymentMethodList = ({
|
|
|
16549
16560
|
labels,
|
|
16550
16561
|
methods,
|
|
16551
16562
|
selectedValue,
|
|
16552
|
-
onSelect
|
|
16563
|
+
onSelect,
|
|
16564
|
+
isLoading = false,
|
|
16565
|
+
skeletonCount = 3
|
|
16553
16566
|
}) => {
|
|
16554
16567
|
const styles = useStyles38();
|
|
16555
16568
|
const mergedLabels = { ...DEFAULT_LABELS36[language], ...labels };
|
|
16556
16569
|
return /* @__PURE__ */ jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxs("div", { className: `${styles.container}`, children: [
|
|
16557
16570
|
/* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.method }),
|
|
16558
|
-
|
|
16571
|
+
isLoading ? Array.from({ length: skeletonCount }).map((_, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
16572
|
+
index > 0 && /* @__PURE__ */ jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsx(Divider, {}) }),
|
|
16573
|
+
/* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
16574
|
+
/* @__PURE__ */ jsx(
|
|
16575
|
+
SkeletonItem,
|
|
16576
|
+
{
|
|
16577
|
+
style: {
|
|
16578
|
+
width: "60%",
|
|
16579
|
+
height: "20px",
|
|
16580
|
+
marginBottom: tokens.spacingVerticalXXL
|
|
16581
|
+
}
|
|
16582
|
+
}
|
|
16583
|
+
),
|
|
16584
|
+
/* @__PURE__ */ jsxs("div", { className: styles.skeletonOption, children: [
|
|
16585
|
+
/* @__PURE__ */ jsxs("div", { className: styles.skeletonOptionLeft, children: [
|
|
16586
|
+
/* @__PURE__ */ jsx(
|
|
16587
|
+
SkeletonItem,
|
|
16588
|
+
{
|
|
16589
|
+
shape: "circle",
|
|
16590
|
+
style: { width: "40px", height: "40px" }
|
|
16591
|
+
}
|
|
16592
|
+
),
|
|
16593
|
+
/* @__PURE__ */ jsx(
|
|
16594
|
+
SkeletonItem,
|
|
16595
|
+
{
|
|
16596
|
+
style: { width: "140px", height: "18px" }
|
|
16597
|
+
}
|
|
16598
|
+
)
|
|
16599
|
+
] }),
|
|
16600
|
+
/* @__PURE__ */ jsx(
|
|
16601
|
+
SkeletonItem,
|
|
16602
|
+
{
|
|
16603
|
+
shape: "circle",
|
|
16604
|
+
style: { width: "20px", height: "20px" }
|
|
16605
|
+
}
|
|
16606
|
+
)
|
|
16607
|
+
] })
|
|
16608
|
+
] })
|
|
16609
|
+
] }, `payment-method-skeleton-${index}`)) : methods.map((category, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
16559
16610
|
index > 0 && /* @__PURE__ */ jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsx(Divider, {}) }),
|
|
16560
16611
|
/* @__PURE__ */ jsx(Accordion, { multiple: true, collapsible: true, children: /* @__PURE__ */ jsxs(AccordionItem, { value: category.value, children: [
|
|
16561
16612
|
/* @__PURE__ */ jsx(
|
|
@@ -16639,6 +16690,17 @@ var useStyles39 = makeStyles({
|
|
|
16639
16690
|
),
|
|
16640
16691
|
backgroundColor: tokens.colorNeutralBackground1,
|
|
16641
16692
|
zIndex: 3
|
|
16693
|
+
},
|
|
16694
|
+
skeletonRow: {
|
|
16695
|
+
display: "flex",
|
|
16696
|
+
alignItems: "center",
|
|
16697
|
+
justifyContent: "space-between",
|
|
16698
|
+
width: "100%"
|
|
16699
|
+
},
|
|
16700
|
+
skeletonLeft: {
|
|
16701
|
+
display: "flex",
|
|
16702
|
+
alignItems: "center",
|
|
16703
|
+
gap: tokens.spacingHorizontalL
|
|
16642
16704
|
}
|
|
16643
16705
|
});
|
|
16644
16706
|
var CardPaymentMethodFavorite = ({
|
|
@@ -16649,7 +16711,9 @@ var CardPaymentMethodFavorite = ({
|
|
|
16649
16711
|
onSelect,
|
|
16650
16712
|
onViewAllMethods,
|
|
16651
16713
|
showWarning = true,
|
|
16652
|
-
showViewAllButton = true
|
|
16714
|
+
showViewAllButton = true,
|
|
16715
|
+
isLoading = false,
|
|
16716
|
+
skeletonCount = 3
|
|
16653
16717
|
}) => {
|
|
16654
16718
|
const styles = useStyles39();
|
|
16655
16719
|
const mergedLabels = { ...DEFAULT_LABELS37[language], ...labels };
|
|
@@ -16669,29 +16733,61 @@ var CardPaymentMethodFavorite = ({
|
|
|
16669
16733
|
)
|
|
16670
16734
|
}
|
|
16671
16735
|
),
|
|
16672
|
-
/* @__PURE__ */ jsx(Row, { nogutter: true, style: { gap: tokens.spacingVerticalL }, children:
|
|
16673
|
-
/* @__PURE__ */
|
|
16674
|
-
|
|
16675
|
-
|
|
16676
|
-
|
|
16677
|
-
|
|
16678
|
-
|
|
16679
|
-
|
|
16680
|
-
|
|
16681
|
-
|
|
16682
|
-
|
|
16683
|
-
|
|
16736
|
+
isLoading ? /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(Row, { nogutter: true, style: { gap: tokens.spacingVerticalL }, children: Array.from({ length: skeletonCount }).map((_, index) => /* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs("div", { className: styles.skeletonRow, children: [
|
|
16737
|
+
/* @__PURE__ */ jsxs("div", { className: styles.skeletonLeft, children: [
|
|
16738
|
+
/* @__PURE__ */ jsx(
|
|
16739
|
+
SkeletonItem,
|
|
16740
|
+
{
|
|
16741
|
+
shape: "circle",
|
|
16742
|
+
style: { width: "40px", height: "40px" }
|
|
16743
|
+
}
|
|
16744
|
+
),
|
|
16745
|
+
/* @__PURE__ */ jsx(
|
|
16746
|
+
SkeletonItem,
|
|
16747
|
+
{
|
|
16748
|
+
style: { width: "140px", height: "18px" }
|
|
16749
|
+
}
|
|
16750
|
+
)
|
|
16751
|
+
] }),
|
|
16752
|
+
/* @__PURE__ */ jsx(
|
|
16753
|
+
SkeletonItem,
|
|
16684
16754
|
{
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
value: option.value,
|
|
16688
|
-
name: "payment-method-favorite",
|
|
16689
|
-
disabled: option.disabled,
|
|
16690
|
-
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16755
|
+
shape: "circle",
|
|
16756
|
+
style: { width: "20px", height: "20px" }
|
|
16691
16757
|
}
|
|
16692
|
-
)
|
|
16693
|
-
] }) },
|
|
16694
|
-
|
|
16758
|
+
)
|
|
16759
|
+
] }) }, `payment-favorite-skeleton-${index}`)) }) }) : /* @__PURE__ */ jsx(Row, { nogutter: true, style: { gap: tokens.spacingVerticalL }, children: methods.map((option) => /* @__PURE__ */ jsx(
|
|
16760
|
+
Col,
|
|
16761
|
+
{
|
|
16762
|
+
xs: 12,
|
|
16763
|
+
onClick: () => onSelect(option.value),
|
|
16764
|
+
style: { cursor: "pointer" },
|
|
16765
|
+
children: /* @__PURE__ */ jsxs(Row, { justify: "between", children: [
|
|
16766
|
+
/* @__PURE__ */ jsx(Col, { xs: "content", children: /* @__PURE__ */ jsx(
|
|
16767
|
+
"img",
|
|
16768
|
+
{
|
|
16769
|
+
src: option.image,
|
|
16770
|
+
alt: option.label,
|
|
16771
|
+
className: styles.image
|
|
16772
|
+
}
|
|
16773
|
+
) }),
|
|
16774
|
+
/* @__PURE__ */ jsx(Col, { children: /* @__PURE__ */ jsx(Subtitle2, { children: option.label }) }),
|
|
16775
|
+
/* @__PURE__ */ jsx(Col, { xs: "content", children: /* @__PURE__ */ jsx(
|
|
16776
|
+
Radio,
|
|
16777
|
+
{
|
|
16778
|
+
checked: selectedValue === option.value,
|
|
16779
|
+
onChange: () => onSelect(option.value),
|
|
16780
|
+
value: option.value,
|
|
16781
|
+
name: "payment-method-favorite",
|
|
16782
|
+
disabled: option.disabled,
|
|
16783
|
+
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16784
|
+
}
|
|
16785
|
+
) })
|
|
16786
|
+
] })
|
|
16787
|
+
},
|
|
16788
|
+
option.value
|
|
16789
|
+
)) }),
|
|
16790
|
+
showViewAllButton && !isLoading && /* @__PURE__ */ jsx(
|
|
16695
16791
|
Button,
|
|
16696
16792
|
{
|
|
16697
16793
|
style: { width: "100%" },
|
|
@@ -16868,6 +16964,18 @@ var useStyles41 = makeStyles({
|
|
|
16868
16964
|
tokens.spacingHorizontalM
|
|
16869
16965
|
),
|
|
16870
16966
|
color: tokens.colorNeutralForeground4
|
|
16967
|
+
},
|
|
16968
|
+
skeletonCenter: {
|
|
16969
|
+
display: "flex",
|
|
16970
|
+
flexDirection: "column",
|
|
16971
|
+
alignItems: "center",
|
|
16972
|
+
gap: tokens.spacingHorizontalM
|
|
16973
|
+
},
|
|
16974
|
+
skeletonRow: {
|
|
16975
|
+
display: "flex",
|
|
16976
|
+
alignItems: "center",
|
|
16977
|
+
justifyContent: "center",
|
|
16978
|
+
gap: tokens.spacingHorizontalM
|
|
16871
16979
|
}
|
|
16872
16980
|
});
|
|
16873
16981
|
var CardPaymentInfo = ({
|
|
@@ -16880,11 +16988,103 @@ var CardPaymentInfo = ({
|
|
|
16880
16988
|
guides,
|
|
16881
16989
|
onCopyVA,
|
|
16882
16990
|
onCheckStatus,
|
|
16883
|
-
onChangePayment
|
|
16991
|
+
onChangePayment,
|
|
16992
|
+
isLoading = false
|
|
16884
16993
|
}) => {
|
|
16885
16994
|
const styles = useStyles41();
|
|
16886
16995
|
const mergedLabels = { ...DEFAULT_LABELS39[language], ...labels };
|
|
16887
|
-
return /* @__PURE__ */ jsx("div", { className: styles.card, children: /* @__PURE__ */
|
|
16996
|
+
return /* @__PURE__ */ jsx("div", { className: styles.card, children: /* @__PURE__ */ jsx("div", { className: styles.container, children: isLoading ? /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
16997
|
+
/* @__PURE__ */ jsxs("div", { className: styles.headerRow, children: [
|
|
16998
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "180px", height: "20px" } }),
|
|
16999
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "260px", height: "28px" } })
|
|
17000
|
+
] }),
|
|
17001
|
+
/* @__PURE__ */ jsxs("div", { className: styles.infoCard, children: [
|
|
17002
|
+
/* @__PURE__ */ jsxs("div", { className: styles.codeCard, children: [
|
|
17003
|
+
/* @__PURE__ */ jsxs("div", { className: styles.skeletonRow, children: [
|
|
17004
|
+
/* @__PURE__ */ jsx(
|
|
17005
|
+
SkeletonItem,
|
|
17006
|
+
{
|
|
17007
|
+
shape: "circle",
|
|
17008
|
+
style: { width: "40px", height: "40px" }
|
|
17009
|
+
}
|
|
17010
|
+
),
|
|
17011
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "160px", height: "20px" } })
|
|
17012
|
+
] }),
|
|
17013
|
+
/* @__PURE__ */ jsxs("div", { className: styles.skeletonCenter, children: [
|
|
17014
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "260px", height: "36px" } }),
|
|
17015
|
+
/* @__PURE__ */ jsx(
|
|
17016
|
+
SkeletonItem,
|
|
17017
|
+
{
|
|
17018
|
+
style: {
|
|
17019
|
+
width: "80%",
|
|
17020
|
+
height: "40px",
|
|
17021
|
+
borderRadius: tokens.borderRadiusCircular
|
|
17022
|
+
}
|
|
17023
|
+
}
|
|
17024
|
+
)
|
|
17025
|
+
] })
|
|
17026
|
+
] }),
|
|
17027
|
+
/* @__PURE__ */ jsx(
|
|
17028
|
+
SkeletonItem,
|
|
17029
|
+
{
|
|
17030
|
+
style: {
|
|
17031
|
+
width: "100%",
|
|
17032
|
+
height: "40px",
|
|
17033
|
+
borderRadius: tokens.borderRadiusCircular
|
|
17034
|
+
}
|
|
17035
|
+
}
|
|
17036
|
+
),
|
|
17037
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
17038
|
+
/* @__PURE__ */ jsx(
|
|
17039
|
+
SkeletonItem,
|
|
17040
|
+
{
|
|
17041
|
+
style: {
|
|
17042
|
+
width: "120px",
|
|
17043
|
+
height: "18px",
|
|
17044
|
+
marginBottom: "8px"
|
|
17045
|
+
}
|
|
17046
|
+
}
|
|
17047
|
+
),
|
|
17048
|
+
/* @__PURE__ */ jsx(
|
|
17049
|
+
SkeletonItem,
|
|
17050
|
+
{
|
|
17051
|
+
style: {
|
|
17052
|
+
width: "100%",
|
|
17053
|
+
height: "36px",
|
|
17054
|
+
borderRadius: tokens.borderRadius2XLarge
|
|
17055
|
+
}
|
|
17056
|
+
}
|
|
17057
|
+
)
|
|
17058
|
+
] })
|
|
17059
|
+
] }),
|
|
17060
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
17061
|
+
/* @__PURE__ */ jsx(
|
|
17062
|
+
SkeletonItem,
|
|
17063
|
+
{
|
|
17064
|
+
style: {
|
|
17065
|
+
width: "75%",
|
|
17066
|
+
height: "18px",
|
|
17067
|
+
marginBottom: tokens.spacingVerticalM
|
|
17068
|
+
}
|
|
17069
|
+
}
|
|
17070
|
+
),
|
|
17071
|
+
/* @__PURE__ */ jsx(
|
|
17072
|
+
SkeletonItem,
|
|
17073
|
+
{
|
|
17074
|
+
style: {
|
|
17075
|
+
width: "100%",
|
|
17076
|
+
height: "40px",
|
|
17077
|
+
borderRadius: tokens.borderRadiusCircular
|
|
17078
|
+
}
|
|
17079
|
+
}
|
|
17080
|
+
)
|
|
17081
|
+
] }),
|
|
17082
|
+
/* @__PURE__ */ jsxs("div", { className: styles.infoCard, children: [
|
|
17083
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "55%", height: "20px" } }),
|
|
17084
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "100%", height: "16px" } }),
|
|
17085
|
+
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "85%", height: "16px" } })
|
|
17086
|
+
] })
|
|
17087
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16888
17088
|
/* @__PURE__ */ jsxs("div", { className: styles.headerRow, children: [
|
|
16889
17089
|
/* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.expiryPrefix }),
|
|
16890
17090
|
/* @__PURE__ */ jsx(Title2, { className: styles.expiryTitle, children: expiryDate })
|
|
@@ -16937,7 +17137,16 @@ var CardPaymentInfo = ({
|
|
|
16937
17137
|
)
|
|
16938
17138
|
] }),
|
|
16939
17139
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
16940
|
-
/* @__PURE__ */ jsx("div", { style: { marginBottom: tokens.spacingVerticalM }, children: /* @__PURE__ */ jsx(
|
|
17140
|
+
/* @__PURE__ */ jsx("div", { style: { marginBottom: tokens.spacingVerticalM }, children: /* @__PURE__ */ jsx(
|
|
17141
|
+
Subtitle2,
|
|
17142
|
+
{
|
|
17143
|
+
style: {
|
|
17144
|
+
color: tokens.colorNeutralStrokeAccessible,
|
|
17145
|
+
fontWeight: fontWeight.Medium
|
|
17146
|
+
},
|
|
17147
|
+
children: mergedLabels.checkStatusInfo
|
|
17148
|
+
}
|
|
17149
|
+
) }),
|
|
16941
17150
|
/* @__PURE__ */ jsx(
|
|
16942
17151
|
Button,
|
|
16943
17152
|
{
|
|
@@ -16951,7 +17160,7 @@ var CardPaymentInfo = ({
|
|
|
16951
17160
|
)
|
|
16952
17161
|
] }),
|
|
16953
17162
|
/* @__PURE__ */ jsx(CardPaymentGuide, { guides, language })
|
|
16954
|
-
] }) });
|
|
17163
|
+
] }) }) });
|
|
16955
17164
|
};
|
|
16956
17165
|
|
|
16957
17166
|
// src/components/CardStatusOrder/CardStatusOrder.constants.ts
|