@planetaexo/design-system 0.13.2 → 0.13.3
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -311,6 +311,14 @@ interface BookingAdventure {
|
|
|
311
311
|
/** Tooltip exibido quando chips de "Add to this adventure" estão desabilitados por capacidade.
|
|
312
312
|
* Default: "Adventure full". */
|
|
313
313
|
atCapacityLabel?: string;
|
|
314
|
+
/** Quando true, oculta a barra "X of N travellers registered" e o ícone de
|
|
315
|
+
* pendência. O sub-card passa a mostrar apenas o label
|
|
316
|
+
* `noRegistrationRequiredLabel`. Default: false (status quo). */
|
|
317
|
+
registrationNotRequired?: boolean;
|
|
318
|
+
/** Texto exibido quando `registrationNotRequired === true`.
|
|
319
|
+
* Default: "No registration required". O consumidor passa label
|
|
320
|
+
* localizado (i18n) — espelha o padrão de `addTravellerLabel`. */
|
|
321
|
+
noRegistrationRequiredLabel?: string;
|
|
314
322
|
}
|
|
315
323
|
interface BookingContact {
|
|
316
324
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -311,6 +311,14 @@ interface BookingAdventure {
|
|
|
311
311
|
/** Tooltip exibido quando chips de "Add to this adventure" estão desabilitados por capacidade.
|
|
312
312
|
* Default: "Adventure full". */
|
|
313
313
|
atCapacityLabel?: string;
|
|
314
|
+
/** Quando true, oculta a barra "X of N travellers registered" e o ícone de
|
|
315
|
+
* pendência. O sub-card passa a mostrar apenas o label
|
|
316
|
+
* `noRegistrationRequiredLabel`. Default: false (status quo). */
|
|
317
|
+
registrationNotRequired?: boolean;
|
|
318
|
+
/** Texto exibido quando `registrationNotRequired === true`.
|
|
319
|
+
* Default: "No registration required". O consumidor passa label
|
|
320
|
+
* localizado (i18n) — espelha o padrão de `addTravellerLabel`. */
|
|
321
|
+
noRegistrationRequiredLabel?: string;
|
|
314
322
|
}
|
|
315
323
|
interface BookingContact {
|
|
316
324
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -2505,7 +2505,7 @@ function AdventureSection({
|
|
|
2505
2505
|
onRequestOpenDeleteModal,
|
|
2506
2506
|
cannotRemoveLastTravellerLabel
|
|
2507
2507
|
}) {
|
|
2508
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2508
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
2509
2509
|
const [detailsOpen, setDetailsOpen] = React23.useState(false);
|
|
2510
2510
|
const handleCopyUrl = (url) => {
|
|
2511
2511
|
if (onCopyFormLink) {
|
|
@@ -2847,7 +2847,7 @@ function AdventureSection({
|
|
|
2847
2847
|
)) })
|
|
2848
2848
|
] });
|
|
2849
2849
|
})(),
|
|
2850
|
-
adventure.travellers.length > 0 && totalSlots > 0 && (() => {
|
|
2850
|
+
adventure.registrationNotRequired ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ jsx("span", { className: "text-xs font-ui text-muted-foreground", children: (_i = adventure.noRegistrationRequiredLabel) != null ? _i : "No registration required" }) }) : adventure.travellers.length > 0 && totalSlots > 0 && (() => {
|
|
2851
2851
|
const completed = adventure.travellers.filter((t) => t.status === "completed").length;
|
|
2852
2852
|
const percent = Math.round(completed / totalSlots * 100);
|
|
2853
2853
|
const isComplete = completed >= totalSlots;
|