@asdp/ferryui 0.1.22-dev.10695 → 0.1.22-dev.10751
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +81 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +82 -58
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyles, tokens, createLightTheme, createDarkTheme, shorthands, Popover, PopoverTrigger, Input, PopoverSurface, Field, Caption1Strong, Caption2, Button, InfoLabel, Body1, Body1Strong, Caption1, Dialog, DialogSurface, DialogBody, DialogTitle, DialogTrigger, DialogContent, Carousel, CarouselButton, CarouselViewport, mergeClasses, CarouselSlider, CarouselNav, CarouselNavButton, CarouselCard, Skeleton, SkeletonItem, Subtitle2, Card, Tooltip, Badge, Title2, Divider, Title3, Spinner, Label, Text,
|
|
1
|
+
import { makeStyles, tokens, createLightTheme, createDarkTheme, shorthands, Popover, PopoverTrigger, Input, PopoverSurface, Field, Caption1Strong, Caption2, Button, InfoLabel, Body1, Body1Strong, Caption1, Dialog, DialogSurface, DialogBody, DialogTitle, DialogTrigger, DialogContent, Carousel, CarouselButton, CarouselViewport, mergeClasses, CarouselSlider, CarouselNav, CarouselNavButton, CarouselCard, Skeleton, SkeletonItem, Subtitle2, Card, Tooltip, Badge, Subtitle1, Title2, Divider, Title3, Spinner, Label, Text, Checkbox, MessageBar, MessageBarBody, Accordion, AccordionItem, AccordionHeader, AccordionPanel, RadioGroup, Menu, MenuTrigger, MenuPopover, MenuList, Radio, DialogActions, Caption2Strong, Link, Body2, Body1Stronger, Caption1Stronger, Display, Image, Title1, TabList, Tab, typographyStyles, Switch, Textarea } from '@fluentui/react-components';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React, { forwardRef, useState, useRef, useEffect, useCallback, useMemo, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import { ArrowDownloadRegular, Dismiss24Regular, DismissRegular, SubtractRegular, AddRegular, DeleteRegular, InfoRegular, SearchRegular, ArrowRightRegular } from '@fluentui/react-icons';
|
|
@@ -1433,7 +1433,7 @@ var CardTicket = ({
|
|
|
1433
1433
|
children: /* @__PURE__ */ jsx(
|
|
1434
1434
|
Badge,
|
|
1435
1435
|
{
|
|
1436
|
-
size: "large",
|
|
1436
|
+
size: "extra-large",
|
|
1437
1437
|
appearance: "filled",
|
|
1438
1438
|
style: {
|
|
1439
1439
|
backgroundColor: departureItem?.availableTicket <= 0 ? tokens.colorNeutralForeground3 : departureItem?.provider?.serviceColor,
|
|
@@ -1470,8 +1470,8 @@ var CardTicket = ({
|
|
|
1470
1470
|
src: departureItem?.provider?.logo,
|
|
1471
1471
|
className: styles.asdpLogo,
|
|
1472
1472
|
alt: mergedLabels.logoAlt,
|
|
1473
|
-
height:
|
|
1474
|
-
width:
|
|
1473
|
+
height: 98,
|
|
1474
|
+
width: 137,
|
|
1475
1475
|
style: departureItem?.availableTicket <= 0 ? { filter: "grayscale(100%)", opacity: 0.7 } : {}
|
|
1476
1476
|
}
|
|
1477
1477
|
)
|
|
@@ -1512,7 +1512,12 @@ var CardTicket = ({
|
|
|
1512
1512
|
/* @__PURE__ */ jsx(
|
|
1513
1513
|
Col,
|
|
1514
1514
|
{
|
|
1515
|
-
style: {
|
|
1515
|
+
style: {
|
|
1516
|
+
textAlign: "center",
|
|
1517
|
+
display: "flex",
|
|
1518
|
+
justifyContent: "center",
|
|
1519
|
+
alignItems: "center"
|
|
1520
|
+
},
|
|
1516
1521
|
xs: 12,
|
|
1517
1522
|
sm: 12,
|
|
1518
1523
|
md: 12,
|
|
@@ -1520,7 +1525,7 @@ var CardTicket = ({
|
|
|
1520
1525
|
xl: 12,
|
|
1521
1526
|
xxl: 12,
|
|
1522
1527
|
xxxl: 12,
|
|
1523
|
-
children: /* @__PURE__ */ jsx(
|
|
1528
|
+
children: /* @__PURE__ */ jsx(Subtitle1, { children: departureItem?.provider?.name })
|
|
1524
1529
|
}
|
|
1525
1530
|
)
|
|
1526
1531
|
] }),
|
|
@@ -1866,7 +1871,7 @@ var CardTicket = ({
|
|
|
1866
1871
|
/* @__PURE__ */ jsx(Subtitle2, { children: mergedLabels.facilitiesLabel }),
|
|
1867
1872
|
/* @__PURE__ */ jsx("div", { className: styles.facilitiesList, children: departureItem?.provider?.facilities.map((facility, idx) => /* @__PURE__ */ jsxs("div", { className: styles.facilityItem, children: [
|
|
1868
1873
|
/* @__PURE__ */ jsx(Icon, { icon: "fluent:checkmark-circle-24-filled" }),
|
|
1869
|
-
/* @__PURE__ */ jsx(
|
|
1874
|
+
/* @__PURE__ */ jsx(Body1Strong, { children: facility })
|
|
1870
1875
|
] }, idx)) })
|
|
1871
1876
|
] })
|
|
1872
1877
|
] }),
|
|
@@ -6367,7 +6372,7 @@ var useStyles10 = makeStyles({
|
|
|
6367
6372
|
// borderBottomRightRadius: '0',
|
|
6368
6373
|
padding: "1rem",
|
|
6369
6374
|
paddingTop: "2rem",
|
|
6370
|
-
paddingBottom: "
|
|
6375
|
+
paddingBottom: "4rem",
|
|
6371
6376
|
position: "relative",
|
|
6372
6377
|
overflow: "visible",
|
|
6373
6378
|
// boxShadow: '0 0 2px rgba(0,0,0,0.12), 0 -8px 16px rgba(0,0,0,0.14)',
|
|
@@ -6407,7 +6412,7 @@ var useStyles10 = makeStyles({
|
|
|
6407
6412
|
},
|
|
6408
6413
|
buttonSearchContainer: {
|
|
6409
6414
|
display: "flex",
|
|
6410
|
-
justifyContent: "
|
|
6415
|
+
justifyContent: "end",
|
|
6411
6416
|
alignItems: "center",
|
|
6412
6417
|
height: "100%",
|
|
6413
6418
|
width: "100%"
|
|
@@ -6526,8 +6531,8 @@ var CardTicketSearchSummary = ({
|
|
|
6526
6531
|
md: 12,
|
|
6527
6532
|
lg: 12,
|
|
6528
6533
|
xl: 12,
|
|
6529
|
-
xxl:
|
|
6530
|
-
xxxl:
|
|
6534
|
+
xxl: 6,
|
|
6535
|
+
xxxl: 6,
|
|
6531
6536
|
className: styles.paddingResponsive,
|
|
6532
6537
|
children: /* @__PURE__ */ jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsxs(Row, { style: { height: "100%", alignItems: "center" }, children: [
|
|
6533
6538
|
/* @__PURE__ */ jsx(
|
|
@@ -6712,8 +6717,22 @@ var CardTicketSearchSummary = ({
|
|
|
6712
6717
|
md: 12,
|
|
6713
6718
|
lg: 12,
|
|
6714
6719
|
xl: 12,
|
|
6715
|
-
xxl:
|
|
6716
|
-
xxxl:
|
|
6720
|
+
xxl: 6,
|
|
6721
|
+
xxxl: 6,
|
|
6722
|
+
className: styles.paddingResponsive,
|
|
6723
|
+
children: children && /* @__PURE__ */ jsx("div", { className: styles.filterButtonContainer, children })
|
|
6724
|
+
}
|
|
6725
|
+
),
|
|
6726
|
+
/* @__PURE__ */ jsx(
|
|
6727
|
+
Col,
|
|
6728
|
+
{
|
|
6729
|
+
xs: 12,
|
|
6730
|
+
sm: 12,
|
|
6731
|
+
md: 12,
|
|
6732
|
+
lg: 12,
|
|
6733
|
+
xl: 12,
|
|
6734
|
+
xxl: 6,
|
|
6735
|
+
xxxl: 6,
|
|
6717
6736
|
className: styles.paddingResponsive,
|
|
6718
6737
|
children: /* @__PURE__ */ jsx("div", { className: styles.buttonSearchContainer, children: /* @__PURE__ */ jsx(
|
|
6719
6738
|
Button,
|
|
@@ -6722,6 +6741,7 @@ var CardTicketSearchSummary = ({
|
|
|
6722
6741
|
appearance: "primary",
|
|
6723
6742
|
size: "medium",
|
|
6724
6743
|
style: {
|
|
6744
|
+
marginTop: "1rem",
|
|
6725
6745
|
width: "100%",
|
|
6726
6746
|
borderRadius: tokens.borderRadiusCircular
|
|
6727
6747
|
},
|
|
@@ -6734,7 +6754,6 @@ var CardTicketSearchSummary = ({
|
|
|
6734
6754
|
}
|
|
6735
6755
|
)
|
|
6736
6756
|
] }),
|
|
6737
|
-
children && /* @__PURE__ */ jsx("div", { className: styles.filterButtonContainer, children }),
|
|
6738
6757
|
Array.from({ length: circularConfig.count }).map((_, index) => /* @__PURE__ */ jsx(
|
|
6739
6758
|
"div",
|
|
6740
6759
|
{
|
|
@@ -16404,10 +16423,12 @@ var CardPriceDetails = ({
|
|
|
16404
16423
|
// src/components/CardPaymentMethodList/CardPaymentMethodList.constants.ts
|
|
16405
16424
|
var DEFAULT_LABELS36 = {
|
|
16406
16425
|
id: {
|
|
16407
|
-
selectAriaLabel: "Pilih metode pembayaran"
|
|
16426
|
+
selectAriaLabel: "Pilih metode pembayaran",
|
|
16427
|
+
method: "Metode Pembayaran"
|
|
16408
16428
|
},
|
|
16409
16429
|
en: {
|
|
16410
|
-
selectAriaLabel: "Select payment method"
|
|
16430
|
+
selectAriaLabel: "Select payment method",
|
|
16431
|
+
method: "Payment Method"
|
|
16411
16432
|
}
|
|
16412
16433
|
};
|
|
16413
16434
|
var useStyles38 = makeStyles({
|
|
@@ -16472,51 +16493,54 @@ var CardPaymentMethodList = ({
|
|
|
16472
16493
|
}) => {
|
|
16473
16494
|
const styles = useStyles38();
|
|
16474
16495
|
const mergedLabels = { ...DEFAULT_LABELS36[language], ...labels };
|
|
16475
|
-
return /* @__PURE__ */ jsx("div", { className: styles.card, children: /* @__PURE__ */
|
|
16476
|
-
|
|
16477
|
-
|
|
16478
|
-
/* @__PURE__ */ jsx(
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
{
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16496
|
+
return /* @__PURE__ */ jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxs("div", { className: `${styles.container}`, children: [
|
|
16497
|
+
/* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.method }),
|
|
16498
|
+
methods.map((category, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
16499
|
+
index > 0 && /* @__PURE__ */ jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsx(Divider, {}) }),
|
|
16500
|
+
/* @__PURE__ */ jsx(Accordion, { multiple: true, collapsible: true, children: /* @__PURE__ */ jsxs(AccordionItem, { value: category.value, children: [
|
|
16501
|
+
/* @__PURE__ */ jsx(
|
|
16502
|
+
AccordionHeader,
|
|
16503
|
+
{
|
|
16504
|
+
expandIconPosition: "end",
|
|
16505
|
+
className: styles.title,
|
|
16506
|
+
children: /* @__PURE__ */ jsx(Body1, { children: category.title || category.value })
|
|
16507
|
+
}
|
|
16508
|
+
),
|
|
16509
|
+
/* @__PURE__ */ jsx(AccordionPanel, { children: /* @__PURE__ */ jsx("div", { className: styles.itemContainer, children: category.options.map((option) => /* @__PURE__ */ jsxs(
|
|
16510
|
+
"div",
|
|
16511
|
+
{
|
|
16512
|
+
className: styles.optionContainer,
|
|
16513
|
+
onClick: () => onSelect(option.value),
|
|
16514
|
+
children: [
|
|
16515
|
+
/* @__PURE__ */ jsxs("div", { className: styles.codeImage, children: [
|
|
16516
|
+
/* @__PURE__ */ jsx(
|
|
16517
|
+
"img",
|
|
16518
|
+
{
|
|
16519
|
+
src: option.image,
|
|
16520
|
+
alt: option.label,
|
|
16521
|
+
className: styles.image
|
|
16522
|
+
}
|
|
16523
|
+
),
|
|
16524
|
+
/* @__PURE__ */ jsx(Subtitle2, { className: styles.optionLabel, children: option.label })
|
|
16525
|
+
] }),
|
|
16493
16526
|
/* @__PURE__ */ jsx(
|
|
16494
|
-
|
|
16527
|
+
Radio,
|
|
16495
16528
|
{
|
|
16496
|
-
|
|
16497
|
-
|
|
16498
|
-
|
|
16529
|
+
checked: selectedValue === option.value,
|
|
16530
|
+
onChange: () => onSelect(option.value),
|
|
16531
|
+
value: option.value,
|
|
16532
|
+
name: "payment-method",
|
|
16533
|
+
disabled: option.disabled,
|
|
16534
|
+
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16499
16535
|
}
|
|
16500
|
-
)
|
|
16501
|
-
|
|
16502
|
-
|
|
16503
|
-
|
|
16504
|
-
|
|
16505
|
-
|
|
16506
|
-
|
|
16507
|
-
|
|
16508
|
-
value: option.value,
|
|
16509
|
-
name: "payment-method",
|
|
16510
|
-
disabled: option.disabled,
|
|
16511
|
-
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16512
|
-
}
|
|
16513
|
-
)
|
|
16514
|
-
]
|
|
16515
|
-
},
|
|
16516
|
-
option.value
|
|
16517
|
-
)) }) })
|
|
16518
|
-
] }) })
|
|
16519
|
-
] }, category.value || index)) }) });
|
|
16536
|
+
)
|
|
16537
|
+
]
|
|
16538
|
+
},
|
|
16539
|
+
option.value
|
|
16540
|
+
)) }) })
|
|
16541
|
+
] }) })
|
|
16542
|
+
] }, category.value || index))
|
|
16543
|
+
] }) });
|
|
16520
16544
|
};
|
|
16521
16545
|
|
|
16522
16546
|
// src/components/CardPaymentGuide/CardPaymentGuide.constants.ts
|