negodesign 0.0.77 → 0.0.78
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import Root from "./ui/ModalCore.svelte";
|
|
2
2
|
export { Root, Root as ModalCore, };
|
|
3
|
-
export type { ModalCoreProps, ModelBadge, ModelGridCard, ModelSocialShare } from "./types";
|
|
3
|
+
export type { ModalCoreProps, ModelBadge, ModelGridCardProps as ModelGridCard, ModelSocialShare } from "./types";
|
|
@@ -61,10 +61,11 @@ export type ModelBadge = {
|
|
|
61
61
|
* @property description - Descrição curta exibida abaixo do título.
|
|
62
62
|
* @property icon - Ícone exibido no topo do card (string CSS ou HugeIcons).
|
|
63
63
|
*/
|
|
64
|
-
export type
|
|
64
|
+
export type ModelGridCardProps = {
|
|
65
65
|
title: string;
|
|
66
66
|
description?: string;
|
|
67
67
|
icon: string | IconSvgElement;
|
|
68
|
+
url?: string;
|
|
68
69
|
};
|
|
69
70
|
/**
|
|
70
71
|
* Modelo de dados para uma rede social no modal de partilha.
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
|
|
118
118
|
<button
|
|
119
119
|
type="button"
|
|
120
|
-
class="inline-flex items-center gap-2 rounded-full px-6 py-2.5 text-sm font-semibold bg-primary transition"
|
|
120
|
+
class="inline-flex items-center gap-2 rounded-full px-6 py-2.5 text-sm font-semibold bg-primary text-white transition"
|
|
121
121
|
onclick={onContinue}
|
|
122
122
|
>
|
|
123
123
|
{continueText}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ModelGridCardProps } from "../core/types";
|
|
2
|
+
export type { ModelGridCardProps as ModelGridCard } from "../core/types";
|
|
2
3
|
/**
|
|
3
4
|
* Modelo de dados para uma categoria/selecção no topo do modal (variante 2).
|
|
4
5
|
* Cada categoria filtra ou indica o contexto dos cards.
|
|
@@ -36,14 +37,14 @@ export type ModalGridSelectionProps = {
|
|
|
36
37
|
subtitle?: string;
|
|
37
38
|
categories?: ModelGridCategory[];
|
|
38
39
|
selectedCategory?: ModelGridCategory | null;
|
|
39
|
-
cards:
|
|
40
|
-
selectedCard?:
|
|
41
|
-
selectedCards?:
|
|
40
|
+
cards: ModelGridCardProps[];
|
|
41
|
+
selectedCard?: ModelGridCardProps | null;
|
|
42
|
+
selectedCards?: ModelGridCardProps[];
|
|
42
43
|
multiple?: boolean;
|
|
43
44
|
totalSteps?: number;
|
|
44
45
|
currentStep?: number;
|
|
45
46
|
isOpen?: boolean;
|
|
46
|
-
onSelect?: (card:
|
|
47
|
+
onSelect?: (card: ModelGridCardProps) => void;
|
|
47
48
|
onSelectCategory?: (category: ModelGridCategory) => void;
|
|
48
49
|
onBack?: () => void;
|
|
49
50
|
onContinue?: () => void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ import type { ModelSocialShare, ModalShareSelectionProps } from "../components/u
|
|
|
38
38
|
import type { ModalNotificationProps } from "../components/ui/modal/notification/types";
|
|
39
39
|
import type { ModalFeedbackProps } from "../components/ui/modal/feedback/types";
|
|
40
40
|
import type { ModalMapProps } from "../components/ui/modal/map/types";
|
|
41
|
-
import type { ModalCoreProps } from "../components/ui/modal/core/types";
|
|
41
|
+
import type { ModalCoreProps, ModelGridCardProps } from "../components/ui/modal/core/types";
|
|
42
42
|
import type { FormProps, FormInputConfig, FormOption } from "../components/ui/form/types";
|
|
43
43
|
import type { ModalFormProps } from "../components/ui/modal/form/types";
|
|
44
44
|
import type { ModalUploadProps, UploadFile, UploadFileStatus } from "../components/ui/modal/upload/types";
|
|
@@ -213,6 +213,8 @@ ModalNotificationProps,
|
|
|
213
213
|
ModalFeedbackProps,
|
|
214
214
|
/** Props do componente ModalMap — modal de seleção de localização com mapa. @see ModalMapProps */
|
|
215
215
|
ModalMapProps,
|
|
216
|
+
/** Props do componente grid — modelo de dados para um card seleccionável no ModalGridSelection. @see ModelGridCardProps */
|
|
217
|
+
ModelGridCardProps,
|
|
216
218
|
/** Props do componente Form — formulário com grid responsivo de 2 colunas. @see FormProps */
|
|
217
219
|
FormProps,
|
|
218
220
|
/** Configuração de um input dentro do Form. @see FormInputConfig */
|