@archbase/components 3.0.25 → 4.0.1
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/buttons/ArchbaseSpeedDial.d.ts +59 -0
- package/dist/buttons/index.d.ts +2 -0
- package/dist/charts/ArchbaseArcGauge.d.ts +55 -0
- package/dist/charts/ArchbaseGantt.d.ts +70 -0
- package/dist/charts/ArchbaseLinearGauge.d.ts +55 -0
- package/dist/charts/ArchbaseResourceTimeline.d.ts +61 -0
- package/dist/charts/ArchbaseSparkline.d.ts +45 -0
- package/dist/charts/index.d.ts +10 -0
- package/dist/containers/ArchbaseExpansionPanel.d.ts +60 -0
- package/dist/containers/ArchbaseFloatingPanel.d.ts +91 -0
- package/dist/containers/index.d.ts +4 -0
- package/dist/datagrid/export/ArchbaseDataGridExcelExport.d.ts +67 -0
- package/dist/datagrid/export/index.d.ts +2 -0
- package/dist/datagrid/index.d.ts +1 -0
- package/dist/display/ArchbaseAnimationWrapper.d.ts +73 -0
- package/dist/display/ArchbaseBarcodeGenerator.d.ts +50 -0
- package/dist/display/ArchbaseCarousel.d.ts +100 -0
- package/dist/display/ArchbaseCodeViewer.d.ts +63 -0
- package/dist/display/ArchbaseDiffViewer.d.ts +41 -0
- package/dist/display/ArchbaseJsonTree.d.ts +34 -0
- package/dist/display/ArchbaseLightbox.d.ts +89 -0
- package/dist/display/ArchbaseMarquee.d.ts +46 -0
- package/dist/display/ArchbasePhotoAlbum.d.ts +58 -0
- package/dist/display/ArchbaseQRCode.d.ts +44 -0
- package/dist/display/ArchbaseTooltipRich.d.ts +82 -0
- package/dist/display/ArchbaseVirtualList.d.ts +116 -0
- package/dist/display/index.d.ts +24 -0
- package/dist/editors/ArchbaseAIPromptInput.d.ts +69 -0
- package/dist/editors/ArchbaseAsyncMultiSelect.d.ts +1 -1
- package/dist/editors/ArchbaseAsyncSelect.d.ts +1 -1
- package/dist/editors/ArchbaseBarcodeScanner.d.ts +63 -0
- package/dist/editors/ArchbaseCepInput.d.ts +26 -0
- package/dist/editors/ArchbaseColorGradientPicker.d.ts +80 -0
- package/dist/editors/ArchbaseCpfCnpjInput.d.ts +21 -0
- package/dist/editors/ArchbaseCurrencyInput.d.ts +25 -0
- package/dist/editors/ArchbaseDualListbox.d.ts +61 -0
- package/dist/editors/ArchbaseInPlaceEditor.d.ts +67 -0
- package/dist/editors/ArchbaseLightGrid.d.ts +56 -0
- package/dist/editors/ArchbaseMentionInput.d.ts +75 -0
- package/dist/editors/ArchbaseMultiEmail.d.ts +53 -0
- package/dist/editors/ArchbaseMultiViewCalendar.d.ts +47 -0
- package/dist/editors/ArchbaseNumberStepper.d.ts +66 -0
- package/dist/editors/ArchbaseOTPInput.d.ts +27 -0
- package/dist/editors/ArchbasePhoneInput.d.ts +52 -0
- package/dist/editors/ArchbaseRangeSlider.d.ts +22 -0
- package/dist/editors/ArchbaseSignaturePad.d.ts +60 -0
- package/dist/editors/ArchbaseSpeechToTextInput.d.ts +106 -0
- package/dist/editors/ArchbaseSpreadsheet.d.ts +56 -0
- package/dist/editors/ArchbaseTagInput.d.ts +55 -0
- package/dist/editors/index.d.ts +40 -0
- package/dist/feedback/ArchbaseChunkProgressBar.d.ts +35 -0
- package/dist/feedback/ArchbaseRipple.d.ts +43 -0
- package/dist/feedback/ArchbaseSkeleton.d.ts +115 -0
- package/dist/feedback/index.d.ts +6 -0
- package/dist/filters/ArchbaseColumnSelector.d.ts +38 -0
- package/dist/filters/index.d.ts +2 -0
- package/dist/forms/ArchbaseFieldArray.d.ts +80 -0
- package/dist/forms/ArchbaseFormWizard.d.ts +73 -0
- package/dist/forms/ArchbaseStepper.d.ts +51 -0
- package/dist/forms/index.d.ts +8 -0
- package/dist/forms/useArchbaseFormWizard.d.ts +74 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useArchbaseConfirm.d.ts +59 -0
- package/dist/image/editor/index.d.ts +43 -4
- package/dist/image/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +22510 -13820
- package/dist/list/ArchbaseTreeList.d.ts +76 -0
- package/dist/list/index.d.ts +2 -0
- package/dist/navigation/ArchbaseActionSheet.d.ts +70 -0
- package/dist/navigation/ArchbaseAppBar.d.ts +63 -0
- package/dist/navigation/ArchbaseBottomNavigation.d.ts +61 -0
- package/dist/navigation/ArchbaseContextMenu.d.ts +76 -0
- package/dist/navigation/ArchbaseKeyboardShortcuts.d.ts +85 -0
- package/dist/navigation/ArchbaseSpotlight.d.ts +69 -0
- package/dist/navigation/index.d.ts +12 -0
- package/dist/notification/ArchbaseNotificationCenter.d.ts +56 -0
- package/dist/notification/index.d.ts +2 -0
- package/dist/onboarding/ArchbaseOnboardingTour.d.ts +27 -76
- package/dist/viewers/ArchbaseDocViewer.d.ts +40 -0
- package/dist/viewers/ArchbasePdfBuilder.d.ts +53 -0
- package/dist/viewers/ArchbaseXmlViewer.d.ts +36 -0
- package/dist/viewers/index.d.ts +6 -0
- package/package.json +41 -18
- package/src/buttons/ArchbaseSpeedDial.tsx +282 -0
- package/src/buttons/index.ts +3 -0
- package/src/charts/ArchbaseArcGauge.tsx +325 -0
- package/src/charts/ArchbaseGantt.tsx +494 -0
- package/src/charts/ArchbaseLinearGauge.tsx +288 -0
- package/src/charts/ArchbaseResourceTimeline.tsx +433 -0
- package/src/charts/ArchbaseSparkline.tsx +193 -0
- package/src/charts/index.ts +20 -1
- package/src/containers/ArchbaseExpansionPanel.tsx +208 -0
- package/src/containers/ArchbaseFloatingPanel.tsx +448 -0
- package/src/containers/index.ts +17 -0
- package/src/datagrid/components/pagination/grid-pagination.tsx +2 -2
- package/src/datagrid/export/ArchbaseDataGridExcelExport.tsx +293 -0
- package/src/datagrid/export/index.ts +8 -0
- package/src/datagrid/index.tsx +2 -0
- package/src/display/ArchbaseAnimationWrapper.tsx +272 -0
- package/src/display/ArchbaseBarcodeGenerator.tsx +303 -0
- package/src/display/ArchbaseCarousel.tsx +679 -0
- package/src/display/ArchbaseCodeViewer.tsx +271 -0
- package/src/display/ArchbaseDiffViewer.tsx +108 -0
- package/src/display/ArchbaseJsonTree.tsx +150 -0
- package/src/display/ArchbaseLightbox.tsx +279 -0
- package/src/display/ArchbaseMarquee.tsx +268 -0
- package/src/display/ArchbasePhotoAlbum.tsx +415 -0
- package/src/display/ArchbaseQRCode.tsx +137 -0
- package/src/display/ArchbaseTooltipRich.tsx +317 -0
- package/src/display/ArchbaseVirtualList.tsx +618 -0
- package/src/display/index.ts +94 -1
- package/src/editors/ArchbaseAIPromptInput.tsx +432 -0
- package/src/editors/ArchbaseBarcodeScanner.tsx +570 -0
- package/src/editors/ArchbaseCepInput.tsx +173 -0
- package/src/editors/ArchbaseColorGradientPicker.tsx +460 -0
- package/src/editors/ArchbaseCpfCnpjInput.tsx +193 -0
- package/src/editors/ArchbaseCurrencyInput.tsx +100 -0
- package/src/editors/ArchbaseDualListbox.tsx +671 -0
- package/src/editors/ArchbaseInPlaceEditor.tsx +406 -0
- package/src/editors/ArchbaseLightGrid.tsx +538 -0
- package/src/editors/ArchbaseMentionInput.tsx +384 -0
- package/src/editors/ArchbaseMultiEmail.tsx +367 -0
- package/src/editors/ArchbaseMultiViewCalendar.tsx +439 -0
- package/src/editors/ArchbaseNumberStepper.tsx +219 -0
- package/src/editors/ArchbaseOTPInput.tsx +133 -0
- package/src/editors/ArchbaseOperationHoursEditor.tsx +1 -1
- package/src/editors/ArchbasePhoneInput.tsx +355 -0
- package/src/editors/ArchbaseRangeSlider.tsx +109 -0
- package/src/editors/ArchbaseSignaturePad.tsx +425 -0
- package/src/editors/ArchbaseSpeechToTextInput.tsx +444 -0
- package/src/editors/ArchbaseSpreadsheet.tsx +388 -0
- package/src/editors/ArchbaseTagInput.tsx +326 -0
- package/src/editors/index.tsx +92 -0
- package/src/feedback/ArchbaseChunkProgressBar.tsx +156 -0
- package/src/feedback/ArchbaseRipple.tsx +278 -0
- package/src/feedback/ArchbaseSkeleton.tsx +419 -0
- package/src/feedback/index.ts +22 -1
- package/src/filters/ArchbaseColumnSelector.tsx +268 -0
- package/src/filters/index.ts +2 -0
- package/src/forms/ArchbaseFieldArray.tsx +305 -0
- package/src/forms/ArchbaseFormWizard.tsx +284 -0
- package/src/forms/ArchbaseStepper.tsx +137 -0
- package/src/forms/index.ts +24 -2
- package/src/forms/useArchbaseFormWizard.ts +283 -0
- package/src/hooks/index.ts +12 -0
- package/src/hooks/useArchbaseConfirm.ts +293 -0
- package/src/image/editor/functions/image-processing.ts +5 -0
- package/src/image/editor/index.tsx +305 -391
- package/src/image/index.ts +1 -0
- package/src/index.ts +3 -0
- package/src/list/ArchbaseTreeList.tsx +422 -0
- package/src/list/index.ts +3 -0
- package/src/navigation/ArchbaseActionSheet.tsx +301 -0
- package/src/navigation/ArchbaseAppBar.tsx +233 -0
- package/src/navigation/ArchbaseBottomNavigation.tsx +243 -0
- package/src/navigation/ArchbaseContextMenu.tsx +298 -0
- package/src/navigation/ArchbaseKeyboardShortcuts.tsx +472 -0
- package/src/navigation/ArchbaseSpotlight.tsx +483 -0
- package/src/navigation/index.ts +48 -1
- package/src/notification/ArchbaseNotificationCenter.tsx +502 -0
- package/src/notification/index.ts +2 -0
- package/src/onboarding/ArchbaseOnboardingTour.tsx +229 -102
- package/src/viewers/ArchbaseDocViewer.tsx +584 -0
- package/src/viewers/ArchbasePdfBuilder.tsx +291 -0
- package/src/viewers/ArchbaseXmlViewer.tsx +142 -0
- package/src/viewers/index.ts +12 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export type ArchbaseAnimationPreset = 'fade' | 'scale' | 'scale-y' | 'scale-x' | 'skew-up' | 'skew-down' | 'rotate-left' | 'rotate-right' | 'slide-down' | 'slide-up' | 'slide-left' | 'slide-right' | 'pop' | 'pop-bottom-left' | 'pop-bottom-right' | 'pop-top-left' | 'pop-top-right';
|
|
3
|
+
export interface ArchbaseAnimationWrapperProps {
|
|
4
|
+
/** Conteúdo a ser animado */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Se o conteúdo está visível */
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
/** Preset de animação */
|
|
9
|
+
preset?: ArchbaseAnimationPreset;
|
|
10
|
+
/** Duração da animação em ms */
|
|
11
|
+
duration?: number;
|
|
12
|
+
/** Delay antes de iniciar em ms */
|
|
13
|
+
delay?: number;
|
|
14
|
+
/** Função de timing */
|
|
15
|
+
timingFunction?: string;
|
|
16
|
+
/** Se deve manter montado quando invisível */
|
|
17
|
+
keepMounted?: boolean;
|
|
18
|
+
/** Callback quando a animação de entrada completa */
|
|
19
|
+
onEntered?: () => void;
|
|
20
|
+
/** Callback quando a animação de saída completa */
|
|
21
|
+
onExited?: () => void;
|
|
22
|
+
/** Callback quando a animação de entrada inicia */
|
|
23
|
+
onEnter?: () => void;
|
|
24
|
+
/** Callback quando a animação de saída inicia */
|
|
25
|
+
onExit?: () => void;
|
|
26
|
+
/** Classe CSS */
|
|
27
|
+
className?: string;
|
|
28
|
+
/** Estilo */
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
}
|
|
31
|
+
export declare const ArchbaseAnimationWrapper: React.ForwardRefExoticComponent<ArchbaseAnimationWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export interface ArchbaseAnimatedListProps {
|
|
33
|
+
/** Itens da lista */
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
/** Se os itens estão visíveis */
|
|
36
|
+
visible?: boolean;
|
|
37
|
+
/** Preset de animação */
|
|
38
|
+
preset?: ArchbaseAnimationPreset;
|
|
39
|
+
/** Duração da animação em ms */
|
|
40
|
+
duration?: number;
|
|
41
|
+
/** Delay base em ms */
|
|
42
|
+
baseDelay?: number;
|
|
43
|
+
/** Delay incremental entre itens em ms */
|
|
44
|
+
staggerDelay?: number;
|
|
45
|
+
/** Função de timing */
|
|
46
|
+
timingFunction?: string;
|
|
47
|
+
/** Se deve animar na ordem reversa */
|
|
48
|
+
reverse?: boolean;
|
|
49
|
+
/** Classe CSS do container */
|
|
50
|
+
className?: string;
|
|
51
|
+
/** Estilo do container */
|
|
52
|
+
style?: React.CSSProperties;
|
|
53
|
+
}
|
|
54
|
+
export declare const ArchbaseAnimatedList: React.ForwardRefExoticComponent<ArchbaseAnimatedListProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
export interface ArchbaseFadeInWhenVisibleProps {
|
|
56
|
+
/** Conteúdo a ser animado */
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
/** Preset de animação */
|
|
59
|
+
preset?: ArchbaseAnimationPreset;
|
|
60
|
+
/** Duração da animação em ms */
|
|
61
|
+
duration?: number;
|
|
62
|
+
/** Delay antes de iniciar em ms */
|
|
63
|
+
delay?: number;
|
|
64
|
+
/** Threshold de visibilidade (0-1) */
|
|
65
|
+
threshold?: number;
|
|
66
|
+
/** Se deve animar apenas uma vez */
|
|
67
|
+
once?: boolean;
|
|
68
|
+
/** Classe CSS */
|
|
69
|
+
className?: string;
|
|
70
|
+
/** Estilo */
|
|
71
|
+
style?: React.CSSProperties;
|
|
72
|
+
}
|
|
73
|
+
export declare const ArchbaseFadeInWhenVisible: React.ForwardRefExoticComponent<ArchbaseFadeInWhenVisibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BoxProps } from '@mantine/core';
|
|
2
|
+
export type BarcodeFormat = 'CODE128' | 'CODE128A' | 'CODE128B' | 'CODE128C' | 'EAN13' | 'EAN8' | 'EAN5' | 'EAN2' | 'UPC' | 'UPCE' | 'ITF14' | 'ITF' | 'MSI' | 'MSI10' | 'MSI11' | 'MSI1010' | 'MSI1110' | 'pharmacode' | 'codabar';
|
|
3
|
+
export interface ArchbaseBarcodeGeneratorProps extends Omit<BoxProps, 'children'> {
|
|
4
|
+
/** Valor a ser codificado */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Formato do código de barras */
|
|
7
|
+
format?: BarcodeFormat;
|
|
8
|
+
/** Largura de cada barra */
|
|
9
|
+
width?: number;
|
|
10
|
+
/** Altura das barras */
|
|
11
|
+
height?: number;
|
|
12
|
+
/** Mostrar valor abaixo do código */
|
|
13
|
+
displayValue?: boolean;
|
|
14
|
+
/** Cor de fundo */
|
|
15
|
+
background?: string;
|
|
16
|
+
/** Cor das linhas */
|
|
17
|
+
lineColor?: string;
|
|
18
|
+
/** Margem ao redor */
|
|
19
|
+
margin?: number;
|
|
20
|
+
/** Fonte do texto */
|
|
21
|
+
font?: string;
|
|
22
|
+
/** Tamanho da fonte */
|
|
23
|
+
fontSize?: number;
|
|
24
|
+
/** Alinhamento do texto */
|
|
25
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
26
|
+
/** Posição do texto */
|
|
27
|
+
textPosition?: 'bottom' | 'top';
|
|
28
|
+
/** Margem do texto */
|
|
29
|
+
textMargin?: number;
|
|
30
|
+
/** Mostrar botões de ação (download, copiar) */
|
|
31
|
+
showActions?: boolean;
|
|
32
|
+
/** Nome do arquivo para download */
|
|
33
|
+
downloadFilename?: string;
|
|
34
|
+
/** Callback quando código é gerado */
|
|
35
|
+
onGenerated?: () => void;
|
|
36
|
+
/** Callback de erro */
|
|
37
|
+
onError?: (error: Error) => void;
|
|
38
|
+
/** Label opcional */
|
|
39
|
+
label?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function ArchbaseBarcodeGenerator({ value, format, width, height, displayValue, background, lineColor, margin, font, fontSize, textAlign, textPosition, textMargin, showActions, downloadFilename, onGenerated, onError, label, ...boxProps }: ArchbaseBarcodeGeneratorProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/** Gerador de código EAN-13 */
|
|
43
|
+
export declare function ArchbaseEAN13Generator(props: Omit<ArchbaseBarcodeGeneratorProps, 'format'>): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
/** Gerador de código EAN-8 */
|
|
45
|
+
export declare function ArchbaseEAN8Generator(props: Omit<ArchbaseBarcodeGeneratorProps, 'format'>): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
/** Gerador de código UPC */
|
|
47
|
+
export declare function ArchbaseUPCGenerator(props: Omit<ArchbaseBarcodeGeneratorProps, 'format'>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
/** Gerador de código CODE128 */
|
|
49
|
+
export declare function ArchbaseCODE128Generator(props: Omit<ArchbaseBarcodeGeneratorProps, 'format'>): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export default ArchbaseBarcodeGenerator;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
export interface ArchbaseCarouselProps extends Omit<BoxProps, 'children'> {
|
|
4
|
+
/** Slides do carousel */
|
|
5
|
+
children: ReactNode[];
|
|
6
|
+
/** Slide inicial (0-indexed) */
|
|
7
|
+
initialSlide?: number;
|
|
8
|
+
/** Slides visíveis por vez */
|
|
9
|
+
slidesToShow?: number;
|
|
10
|
+
/** Slides para avançar por clique */
|
|
11
|
+
slidesToScroll?: number;
|
|
12
|
+
/** Gap entre slides em pixels */
|
|
13
|
+
gap?: number;
|
|
14
|
+
/** Mostrar controles de navegação */
|
|
15
|
+
showControls?: boolean;
|
|
16
|
+
/** Posição dos controles */
|
|
17
|
+
controlsPosition?: 'sides' | 'bottom' | 'bottom-right';
|
|
18
|
+
/** Tamanho dos controles */
|
|
19
|
+
controlSize?: number;
|
|
20
|
+
/** Mostrar indicadores (dots) */
|
|
21
|
+
showIndicators?: boolean;
|
|
22
|
+
/** Posição dos indicadores */
|
|
23
|
+
indicatorsPosition?: 'bottom' | 'top';
|
|
24
|
+
/** Loop infinito */
|
|
25
|
+
loop?: boolean;
|
|
26
|
+
/** Autoplay */
|
|
27
|
+
autoplay?: boolean;
|
|
28
|
+
/** Intervalo do autoplay em ms */
|
|
29
|
+
autoplayInterval?: number;
|
|
30
|
+
/** Pausar autoplay no hover */
|
|
31
|
+
pauseOnHover?: boolean;
|
|
32
|
+
/** Mostrar botão de play/pause */
|
|
33
|
+
showPlayPause?: boolean;
|
|
34
|
+
/** Animação de transição */
|
|
35
|
+
transitionDuration?: number;
|
|
36
|
+
/** Função de easing */
|
|
37
|
+
transitionTimingFunction?: string;
|
|
38
|
+
/** Callback ao mudar slide */
|
|
39
|
+
onSlideChange?: (index: number) => void;
|
|
40
|
+
/** Altura do carousel */
|
|
41
|
+
height?: number | string;
|
|
42
|
+
/** Controle externo do slide atual */
|
|
43
|
+
activeSlide?: number;
|
|
44
|
+
/** Arrastar para navegar */
|
|
45
|
+
draggable?: boolean;
|
|
46
|
+
/** Alinhamento dos slides */
|
|
47
|
+
align?: 'start' | 'center' | 'end';
|
|
48
|
+
/** Orientação */
|
|
49
|
+
orientation?: 'horizontal' | 'vertical';
|
|
50
|
+
}
|
|
51
|
+
export declare function ArchbaseCarousel({ children, initialSlide, slidesToShow, slidesToScroll, gap, showControls, controlsPosition, controlSize, showIndicators, indicatorsPosition, loop, autoplay, autoplayInterval, pauseOnHover, showPlayPause, transitionDuration, transitionTimingFunction, onSlideChange, height, activeSlide: controlledSlide, draggable, align, orientation, ...boxProps }: ArchbaseCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export interface ArchbaseCarouselSlideProps extends BoxProps {
|
|
53
|
+
children: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export declare function ArchbaseCarouselSlide({ children, ...props }: ArchbaseCarouselSlideProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export interface ImageSlide {
|
|
57
|
+
src: string;
|
|
58
|
+
alt?: string;
|
|
59
|
+
title?: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ArchbaseImageCarouselProps extends Omit<ArchbaseCarouselProps, 'children'> {
|
|
63
|
+
/** Array de imagens */
|
|
64
|
+
images: ImageSlide[];
|
|
65
|
+
/** Object fit das imagens */
|
|
66
|
+
objectFit?: 'cover' | 'contain' | 'fill' | 'none';
|
|
67
|
+
/** Mostrar overlay com título/descrição */
|
|
68
|
+
showOverlay?: boolean;
|
|
69
|
+
/** Posição do overlay */
|
|
70
|
+
overlayPosition?: 'bottom' | 'top' | 'center';
|
|
71
|
+
/** Callback ao clicar em uma imagem */
|
|
72
|
+
onImageClick?: (image: ImageSlide, index: number) => void;
|
|
73
|
+
}
|
|
74
|
+
export declare function ArchbaseImageCarousel({ images, objectFit, showOverlay, overlayPosition, onImageClick, ...carouselProps }: ArchbaseImageCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
export interface ArchbaseCardCarouselProps extends Omit<ArchbaseCarouselProps, 'children'> {
|
|
76
|
+
/** Renderizador de card */
|
|
77
|
+
renderCard: (index: number) => ReactNode;
|
|
78
|
+
/** Total de cards */
|
|
79
|
+
totalCards: number;
|
|
80
|
+
}
|
|
81
|
+
export declare function ArchbaseCardCarousel({ renderCard, totalCards, slidesToShow, gap, ...carouselProps }: ArchbaseCardCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export interface UseArchbaseCarouselOptions {
|
|
83
|
+
totalSlides: number;
|
|
84
|
+
slidesToShow?: number;
|
|
85
|
+
slidesToScroll?: number;
|
|
86
|
+
loop?: boolean;
|
|
87
|
+
initialSlide?: number;
|
|
88
|
+
}
|
|
89
|
+
export declare function useArchbaseCarousel({ totalSlides, slidesToShow, slidesToScroll, loop, initialSlide, }: UseArchbaseCarouselOptions): {
|
|
90
|
+
activeSlide: number;
|
|
91
|
+
setActiveSlide: (index: number) => void;
|
|
92
|
+
goToPrev: () => void;
|
|
93
|
+
goToNext: () => void;
|
|
94
|
+
goToFirst: () => void;
|
|
95
|
+
goToLast: () => void;
|
|
96
|
+
canGoPrev: boolean;
|
|
97
|
+
canGoNext: boolean;
|
|
98
|
+
maxSlide: number;
|
|
99
|
+
};
|
|
100
|
+
export default ArchbaseCarousel;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
+
export interface ArchbaseCodeViewerTab {
|
|
4
|
+
/** Nome do arquivo exibido na aba */
|
|
5
|
+
fileName: string;
|
|
6
|
+
/** Codigo-fonte da aba */
|
|
7
|
+
code: string;
|
|
8
|
+
/** Linguagem para syntax highlighting */
|
|
9
|
+
language: string;
|
|
10
|
+
/** Icone opcional da aba */
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export interface ArchbaseCodeViewerProps<T> {
|
|
14
|
+
/** Fonte de dados onde sera lido o valor do codigo (V1 ou V2) */
|
|
15
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
16
|
+
/** Campo de onde sera lido o valor do codigo na fonte de dados */
|
|
17
|
+
dataField?: string;
|
|
18
|
+
/** Valor do codigo (standalone) */
|
|
19
|
+
value?: string;
|
|
20
|
+
/** Alias para value */
|
|
21
|
+
code?: string;
|
|
22
|
+
/** Linguagem para syntax highlighting @default 'typescript' */
|
|
23
|
+
language?: string;
|
|
24
|
+
/** Exibir numeros de linha @default true */
|
|
25
|
+
showLineNumbers?: boolean;
|
|
26
|
+
/** Exibir botao de copiar @default true */
|
|
27
|
+
showCopyButton?: boolean;
|
|
28
|
+
/** Label do componente */
|
|
29
|
+
label?: string;
|
|
30
|
+
/** Descricao do componente */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Mensagem de erro */
|
|
33
|
+
error?: string;
|
|
34
|
+
/** Linhas destacadas */
|
|
35
|
+
highlightLines?: Record<string, {
|
|
36
|
+
color: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
}>;
|
|
39
|
+
/** Altura maxima com scroll */
|
|
40
|
+
maxHeight?: string | number;
|
|
41
|
+
/** Estilo CSS */
|
|
42
|
+
style?: CSSProperties;
|
|
43
|
+
/** Classe CSS */
|
|
44
|
+
className?: string;
|
|
45
|
+
/** Largura do componente */
|
|
46
|
+
width?: string | number;
|
|
47
|
+
/** Quando fornecido, renderiza CodeHighlightTabs em vez de CodeHighlight */
|
|
48
|
+
tabs?: ArchbaseCodeViewerTab[];
|
|
49
|
+
/** Exibir borda ao redor do codigo @default false */
|
|
50
|
+
withBorder?: boolean;
|
|
51
|
+
/** Border radius @default 'sm' */
|
|
52
|
+
radius?: string | number;
|
|
53
|
+
/** Label do botao de copiar @default 'Copiar' */
|
|
54
|
+
copyLabel?: string;
|
|
55
|
+
/** Label do botao apos copiar @default 'Copiado' */
|
|
56
|
+
copiedLabel?: string;
|
|
57
|
+
/** Exibir botao de expandir/colapsar @default false */
|
|
58
|
+
withExpandButton?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export declare function ArchbaseCodeViewer<T>({ dataSource, dataField, value, code, language, showLineNumbers: _showLineNumbers, showCopyButton, label, description, error, highlightLines: _highlightLines, maxHeight, style, className, width, tabs, withBorder, radius, copyLabel, copiedLabel, withExpandButton, }: ArchbaseCodeViewerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare namespace ArchbaseCodeViewer {
|
|
62
|
+
var displayName: string;
|
|
63
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CSSProperties, default as React } from 'react';
|
|
2
|
+
import { DiffMethod } from 'react-diff-viewer-continued';
|
|
3
|
+
export { DiffMethod } from 'react-diff-viewer-continued';
|
|
4
|
+
export interface ArchbaseDiffViewerProps {
|
|
5
|
+
/** Texto original (lado esquerdo) */
|
|
6
|
+
oldValue: string;
|
|
7
|
+
/** Texto novo (lado direito) */
|
|
8
|
+
newValue: string;
|
|
9
|
+
/** Exibir em modo split (lado a lado) ou unificado */
|
|
10
|
+
splitView?: boolean;
|
|
11
|
+
/** Exibir apenas as diferenças */
|
|
12
|
+
showDiffOnly?: boolean;
|
|
13
|
+
/** Titulo do painel esquerdo */
|
|
14
|
+
leftTitle?: string;
|
|
15
|
+
/** Titulo do painel direito */
|
|
16
|
+
rightTitle?: string;
|
|
17
|
+
/** Linguagem para syntax highlighting */
|
|
18
|
+
language?: string;
|
|
19
|
+
/** Metodo de comparacao */
|
|
20
|
+
compareMethod?: DiffMethod;
|
|
21
|
+
/** Titulo do componente */
|
|
22
|
+
label?: string;
|
|
23
|
+
/** Descricao do componente */
|
|
24
|
+
description?: string;
|
|
25
|
+
/** Estilo do componente */
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
/** Classe CSS do componente */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** Largura do componente */
|
|
30
|
+
width?: string | number;
|
|
31
|
+
/** Altura maxima do componente (com scroll) */
|
|
32
|
+
height?: string | number;
|
|
33
|
+
/** Usar tema escuro (auto-detectado do Mantine se nao informado) */
|
|
34
|
+
useDarkTheme?: boolean;
|
|
35
|
+
/** Ocultar numeros de linha */
|
|
36
|
+
hideLineNumbers?: boolean;
|
|
37
|
+
/** Linhas de contexto ao redor das diferencas */
|
|
38
|
+
extraLinesSurroundingDiff?: number;
|
|
39
|
+
}
|
|
40
|
+
declare const ArchbaseDiffViewer: React.FC<ArchbaseDiffViewerProps>;
|
|
41
|
+
export { ArchbaseDiffViewer };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
export interface ArchbaseJsonTreeProps<T> {
|
|
3
|
+
/** DataSource to read the JSON object/string from */
|
|
4
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
5
|
+
/** Field name within the DataSource */
|
|
6
|
+
dataField?: string;
|
|
7
|
+
/** Standalone JSON data (object or JSON string) */
|
|
8
|
+
data?: object | string;
|
|
9
|
+
/** Label for Input.Wrapper */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Description for Input.Wrapper */
|
|
12
|
+
description?: string;
|
|
13
|
+
/** Error message for Input.Wrapper */
|
|
14
|
+
error?: string;
|
|
15
|
+
/** Whether nodes are expanded by default (default: true) */
|
|
16
|
+
defaultExpanded?: boolean;
|
|
17
|
+
/** Maximum depth to expand nodes */
|
|
18
|
+
maxDepth?: number;
|
|
19
|
+
/** Whether clicking a node expands/collapses it (default: true) */
|
|
20
|
+
clickToExpandNode?: boolean;
|
|
21
|
+
/** Custom style */
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
/** Custom class name */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Width of the container */
|
|
26
|
+
width?: string | number;
|
|
27
|
+
/** Max height of the container (enables scroll) */
|
|
28
|
+
maxHeight?: string | number;
|
|
29
|
+
}
|
|
30
|
+
declare function ArchbaseJsonTree<T>({ dataSource, dataField, data: dataProp, label, description, error, defaultExpanded, maxDepth, clickToExpandNode, style, className, width, maxHeight, }: ArchbaseJsonTreeProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare namespace ArchbaseJsonTree {
|
|
32
|
+
var displayName: string;
|
|
33
|
+
}
|
|
34
|
+
export { ArchbaseJsonTree };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LightboxExternalProps } from 'yet-another-react-lightbox';
|
|
3
|
+
export interface ArchbaseLightboxSlide {
|
|
4
|
+
/** URL da imagem */
|
|
5
|
+
src: string;
|
|
6
|
+
/** Título da imagem */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Descrição da imagem */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** Texto alternativo */
|
|
11
|
+
alt?: string;
|
|
12
|
+
/** Largura da imagem (para otimização) */
|
|
13
|
+
width?: number;
|
|
14
|
+
/** Altura da imagem (para otimização) */
|
|
15
|
+
height?: number;
|
|
16
|
+
/** URL para download (se diferente de src) */
|
|
17
|
+
downloadUrl?: string;
|
|
18
|
+
/** Nome do arquivo para download */
|
|
19
|
+
downloadFilename?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ArchbaseLightboxProps extends Omit<LightboxExternalProps, 'slides' | 'open' | 'close'> {
|
|
22
|
+
/** Array de slides/imagens */
|
|
23
|
+
slides: ArchbaseLightboxSlide[];
|
|
24
|
+
/** Índice inicial do slide */
|
|
25
|
+
index?: number;
|
|
26
|
+
/** Se o lightbox está aberto */
|
|
27
|
+
open: boolean;
|
|
28
|
+
/** Callback ao fechar */
|
|
29
|
+
onClose: () => void;
|
|
30
|
+
/** Habilita zoom */
|
|
31
|
+
enableZoom?: boolean;
|
|
32
|
+
/** Habilita thumbnails */
|
|
33
|
+
enableThumbnails?: boolean;
|
|
34
|
+
/** Habilita slideshow */
|
|
35
|
+
enableSlideshow?: boolean;
|
|
36
|
+
/** Habilita fullscreen */
|
|
37
|
+
enableFullscreen?: boolean;
|
|
38
|
+
/** Habilita download */
|
|
39
|
+
enableDownload?: boolean;
|
|
40
|
+
/** Mostra contador */
|
|
41
|
+
showCounter?: boolean;
|
|
42
|
+
/** Mostra captions (título/descrição) */
|
|
43
|
+
showCaptions?: boolean;
|
|
44
|
+
/** Intervalo do slideshow em ms */
|
|
45
|
+
slideshowDelay?: number;
|
|
46
|
+
/** Nível máximo de zoom */
|
|
47
|
+
maxZoomPixelRatio?: number;
|
|
48
|
+
/** Callback ao mudar de slide */
|
|
49
|
+
onSlideChange?: (index: number) => void;
|
|
50
|
+
}
|
|
51
|
+
export interface UseArchbaseLightboxReturn {
|
|
52
|
+
/** Se o lightbox está aberto */
|
|
53
|
+
isOpen: boolean;
|
|
54
|
+
/** Índice atual */
|
|
55
|
+
currentIndex: number;
|
|
56
|
+
/** Slides configurados */
|
|
57
|
+
slides: ArchbaseLightboxSlide[];
|
|
58
|
+
/** Abre o lightbox */
|
|
59
|
+
open: (slides: ArchbaseLightboxSlide[], index?: number) => void;
|
|
60
|
+
/** Fecha o lightbox */
|
|
61
|
+
close: () => void;
|
|
62
|
+
/** Vai para um slide específico */
|
|
63
|
+
goTo: (index: number) => void;
|
|
64
|
+
/** Props para passar ao componente */
|
|
65
|
+
lightboxProps: {
|
|
66
|
+
slides: ArchbaseLightboxSlide[];
|
|
67
|
+
index: number;
|
|
68
|
+
open: boolean;
|
|
69
|
+
onClose: () => void;
|
|
70
|
+
onSlideChange: (index: number) => void;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export declare function useArchbaseLightbox(): UseArchbaseLightboxReturn;
|
|
74
|
+
interface LightboxContextType {
|
|
75
|
+
open: (slides: ArchbaseLightboxSlide[], index?: number) => void;
|
|
76
|
+
close: () => void;
|
|
77
|
+
}
|
|
78
|
+
export declare function useArchbaseLightboxContext(): LightboxContextType;
|
|
79
|
+
export interface ArchbaseLightboxProviderProps {
|
|
80
|
+
children: ReactNode;
|
|
81
|
+
/** Props padrão para o lightbox */
|
|
82
|
+
defaultProps?: Partial<ArchbaseLightboxProps>;
|
|
83
|
+
}
|
|
84
|
+
export declare function ArchbaseLightboxProvider({ children, defaultProps }: ArchbaseLightboxProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
export declare function ArchbaseLightbox({ slides, index, open, onClose, enableZoom, enableThumbnails, enableSlideshow, enableFullscreen, enableDownload, showCounter, showCaptions, slideshowDelay, maxZoomPixelRatio, onSlideChange, ...rest }: ArchbaseLightboxProps): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
export declare namespace ArchbaseLightbox {
|
|
87
|
+
var displayName: string;
|
|
88
|
+
}
|
|
89
|
+
export default ArchbaseLightbox;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
export type MarqueeDirection = 'left' | 'right' | 'up' | 'down';
|
|
4
|
+
export interface ArchbaseMarqueeProps extends Omit<BoxProps, 'children'> {
|
|
5
|
+
/** Conteúdo a ser animado */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Direção do movimento */
|
|
8
|
+
direction?: MarqueeDirection;
|
|
9
|
+
/** Velocidade em pixels por segundo */
|
|
10
|
+
speed?: number;
|
|
11
|
+
/** Pausar ao passar o mouse */
|
|
12
|
+
pauseOnHover?: boolean;
|
|
13
|
+
/** Pausar ao clicar */
|
|
14
|
+
pauseOnClick?: boolean;
|
|
15
|
+
/** Número de cópias do conteúdo (para loop contínuo) */
|
|
16
|
+
copies?: number;
|
|
17
|
+
/** Gap entre as cópias */
|
|
18
|
+
gap?: number;
|
|
19
|
+
/** Gradient fade nas bordas */
|
|
20
|
+
gradient?: boolean;
|
|
21
|
+
/** Largura do gradient em pixels */
|
|
22
|
+
gradientWidth?: number;
|
|
23
|
+
/** Cor do gradient (background) */
|
|
24
|
+
gradientColor?: string;
|
|
25
|
+
/** Desabilitar animação */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** Delay antes de iniciar (ms) */
|
|
28
|
+
delay?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare function ArchbaseMarquee({ children, direction, speed, pauseOnHover, pauseOnClick, copies, gap, gradient, gradientWidth, gradientColor, disabled, delay, ...boxProps }: ArchbaseMarqueeProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
/** Marquee horizontal da esquerda para direita */
|
|
32
|
+
export declare function ArchbaseMarqueeLeft(props: Omit<ArchbaseMarqueeProps, 'direction'>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
/** Marquee horizontal da direita para esquerda */
|
|
34
|
+
export declare function ArchbaseMarqueeRight(props: Omit<ArchbaseMarqueeProps, 'direction'>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
/** Marquee vertical de cima para baixo */
|
|
36
|
+
export declare function ArchbaseMarqueeUp(props: Omit<ArchbaseMarqueeProps, 'direction'>): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
/** Marquee vertical de baixo para cima */
|
|
38
|
+
export declare function ArchbaseMarqueeDown(props: Omit<ArchbaseMarqueeProps, 'direction'>): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export interface ArchbaseTextTickerProps extends Omit<ArchbaseMarqueeProps, 'children'> {
|
|
40
|
+
/** Array de textos */
|
|
41
|
+
items: string[];
|
|
42
|
+
/** Separador entre itens */
|
|
43
|
+
separator?: ReactNode;
|
|
44
|
+
}
|
|
45
|
+
export declare function ArchbaseTextTicker({ items, separator, ...props }: ArchbaseTextTickerProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export default ArchbaseMarquee;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Photo } from 'react-photo-album';
|
|
3
|
+
export type ArchbasePhotoAlbumLayout = 'rows' | 'columns' | 'masonry';
|
|
4
|
+
export interface ArchbasePhotoAlbumPhoto extends Photo {
|
|
5
|
+
/** Título da foto */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Descrição da foto */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** ID único (para tracking) */
|
|
10
|
+
id?: string | number;
|
|
11
|
+
/** Badge/tag para exibir */
|
|
12
|
+
badge?: string;
|
|
13
|
+
/** Cor do badge */
|
|
14
|
+
badgeColor?: string;
|
|
15
|
+
/** Se é favorito */
|
|
16
|
+
favorite?: boolean;
|
|
17
|
+
/** Dados extras */
|
|
18
|
+
data?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export interface ArchbasePhotoAlbumProps {
|
|
21
|
+
/** Array de fotos */
|
|
22
|
+
photos: ArchbasePhotoAlbumPhoto[];
|
|
23
|
+
/** Tipo de layout */
|
|
24
|
+
layout?: ArchbasePhotoAlbumLayout;
|
|
25
|
+
/** Espaçamento entre fotos (px) */
|
|
26
|
+
spacing?: number;
|
|
27
|
+
/** Padding interno (px) */
|
|
28
|
+
padding?: number;
|
|
29
|
+
/** Altura alvo das linhas (layout 'rows') */
|
|
30
|
+
targetRowHeight?: number;
|
|
31
|
+
/** Número de colunas (layout 'columns' ou 'masonry') */
|
|
32
|
+
columns?: number | ((containerWidth: number) => number);
|
|
33
|
+
/** Callback ao clicar em uma foto */
|
|
34
|
+
onClick?: (photo: ArchbasePhotoAlbumPhoto, index: number) => void;
|
|
35
|
+
/** Abre lightbox automaticamente ao clicar */
|
|
36
|
+
withLightbox?: boolean;
|
|
37
|
+
/** Mostra overlay com ações ao hover */
|
|
38
|
+
showOverlay?: boolean;
|
|
39
|
+
/** Mostra badge nas fotos */
|
|
40
|
+
showBadge?: boolean;
|
|
41
|
+
/** Mostra indicador de favorito */
|
|
42
|
+
showFavorite?: boolean;
|
|
43
|
+
/** Callback ao favoritar */
|
|
44
|
+
onFavorite?: (photo: ArchbasePhotoAlbumPhoto, index: number) => void;
|
|
45
|
+
/** Callback ao baixar */
|
|
46
|
+
onDownload?: (photo: ArchbasePhotoAlbumPhoto, index: number) => void;
|
|
47
|
+
/** Border radius das fotos */
|
|
48
|
+
borderRadius?: number;
|
|
49
|
+
/** Classe CSS */
|
|
50
|
+
className?: string;
|
|
51
|
+
/** Estilo */
|
|
52
|
+
style?: React.CSSProperties;
|
|
53
|
+
}
|
|
54
|
+
export declare function ArchbasePhotoAlbum({ photos, layout, spacing, padding, targetRowHeight, columns, onClick, withLightbox, showOverlay, showBadge, showFavorite, onFavorite, onDownload, borderRadius, className, style, }: ArchbasePhotoAlbumProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export declare namespace ArchbasePhotoAlbum {
|
|
56
|
+
var displayName: string;
|
|
57
|
+
}
|
|
58
|
+
export default ArchbasePhotoAlbum;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
export interface ArchbaseQRCodeImageSettings {
|
|
3
|
+
src: string;
|
|
4
|
+
height: number;
|
|
5
|
+
width: number;
|
|
6
|
+
excavate: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ArchbaseQRCodeProps<T> {
|
|
9
|
+
/** DataSource to read the string value from */
|
|
10
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
11
|
+
/** Field name within the DataSource */
|
|
12
|
+
dataField?: string;
|
|
13
|
+
/** Standalone string value to encode */
|
|
14
|
+
value?: string;
|
|
15
|
+
/** Render as SVG or Canvas */
|
|
16
|
+
renderAs?: 'svg' | 'canvas';
|
|
17
|
+
/** Size in pixels */
|
|
18
|
+
size?: number;
|
|
19
|
+
/** Error correction level */
|
|
20
|
+
level?: 'L' | 'M' | 'Q' | 'H';
|
|
21
|
+
/** Background color (dark mode aware) */
|
|
22
|
+
bgColor?: string;
|
|
23
|
+
/** Foreground color (dark mode aware) */
|
|
24
|
+
fgColor?: string;
|
|
25
|
+
/** Include margin around the QR code */
|
|
26
|
+
includeMargin?: boolean;
|
|
27
|
+
/** Optional logo/image in the center of the QR code */
|
|
28
|
+
imageSettings?: ArchbaseQRCodeImageSettings;
|
|
29
|
+
/** Label for Input.Wrapper */
|
|
30
|
+
label?: string;
|
|
31
|
+
/** Description for Input.Wrapper */
|
|
32
|
+
description?: string;
|
|
33
|
+
/** Error message for Input.Wrapper */
|
|
34
|
+
error?: string;
|
|
35
|
+
/** Custom style */
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
/** Custom class name */
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
declare function ArchbaseQRCode<T>({ dataSource, dataField, value: valueProp, renderAs, size, level, bgColor, fgColor, includeMargin, imageSettings, label, description, error, style, className, }: ArchbaseQRCodeProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
declare namespace ArchbaseQRCode {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
44
|
+
export { ArchbaseQRCode };
|