@asdp/ferryui 0.1.22-dev.8882 → 0.1.22-dev.8893
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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -172,6 +172,9 @@ interface CarouselWithCustomNavLabels {
|
|
|
172
172
|
carouselAriaLabel: string;
|
|
173
173
|
slideAriaLabel: string;
|
|
174
174
|
announcementTemplate: string;
|
|
175
|
+
prevButtonAriaLabel: string;
|
|
176
|
+
nextButtonAriaLabel: string;
|
|
177
|
+
closeButtonAriaLabel: string;
|
|
175
178
|
}
|
|
176
179
|
interface CarouselWithCustomNavProps {
|
|
177
180
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -172,6 +172,9 @@ interface CarouselWithCustomNavLabels {
|
|
|
172
172
|
carouselAriaLabel: string;
|
|
173
173
|
slideAriaLabel: string;
|
|
174
174
|
announcementTemplate: string;
|
|
175
|
+
prevButtonAriaLabel: string;
|
|
176
|
+
nextButtonAriaLabel: string;
|
|
177
|
+
closeButtonAriaLabel: string;
|
|
175
178
|
}
|
|
176
179
|
interface CarouselWithCustomNavProps {
|
|
177
180
|
/**
|
package/dist/index.js
CHANGED
|
@@ -204,12 +204,18 @@ var DEFAULT_LABELS2 = {
|
|
|
204
204
|
id: {
|
|
205
205
|
carouselAriaLabel: "Carousel",
|
|
206
206
|
slideAriaLabel: "Slide {index}",
|
|
207
|
-
announcementTemplate: "Carousel slide {index} dari {total}"
|
|
207
|
+
announcementTemplate: "Carousel slide {index} dari {total}",
|
|
208
|
+
prevButtonAriaLabel: "Halaman Carousel Sebelumnya",
|
|
209
|
+
nextButtonAriaLabel: "Halaman Carousel Berikutnya",
|
|
210
|
+
closeButtonAriaLabel: "Tutup carousel"
|
|
208
211
|
},
|
|
209
212
|
en: {
|
|
210
213
|
carouselAriaLabel: "Carousel",
|
|
211
214
|
slideAriaLabel: "Slide {index}",
|
|
212
|
-
announcementTemplate: "Carousel slide {index} of {total}"
|
|
215
|
+
announcementTemplate: "Carousel slide {index} of {total}",
|
|
216
|
+
prevButtonAriaLabel: "Previous Carousel Page",
|
|
217
|
+
nextButtonAriaLabel: "Next Carousel Page",
|
|
218
|
+
closeButtonAriaLabel: "Close carousel"
|
|
213
219
|
}
|
|
214
220
|
};
|
|
215
221
|
|
|
@@ -505,7 +511,7 @@ var CarouselWithCustomNav = ({
|
|
|
505
511
|
reactComponents.CarouselButton,
|
|
506
512
|
{
|
|
507
513
|
navType: "prev",
|
|
508
|
-
"aria-label":
|
|
514
|
+
"aria-label": labels.prevButtonAriaLabel,
|
|
509
515
|
className: styles.customeCarouselButton
|
|
510
516
|
}
|
|
511
517
|
),
|
|
@@ -516,7 +522,7 @@ var CarouselWithCustomNav = ({
|
|
|
516
522
|
icon: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.DismissRegular, {}),
|
|
517
523
|
shape: "circular",
|
|
518
524
|
onClick: onCloseClick,
|
|
519
|
-
"aria-label":
|
|
525
|
+
"aria-label": labels.closeButtonAriaLabel,
|
|
520
526
|
className: reactComponents.mergeClasses(
|
|
521
527
|
styles.closeButton,
|
|
522
528
|
showNavButtons ? styles.closeButtonWithNav : styles.closeButtonWithoutNav
|
|
@@ -536,7 +542,7 @@ var CarouselWithCustomNav = ({
|
|
|
536
542
|
reactComponents.CarouselButton,
|
|
537
543
|
{
|
|
538
544
|
navType: "next",
|
|
539
|
-
"aria-label":
|
|
545
|
+
"aria-label": labels.nextButtonAriaLabel,
|
|
540
546
|
className: styles.customeCarouselButton
|
|
541
547
|
}
|
|
542
548
|
)
|