@archbase/components 3.0.0
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/admin/types.d.ts +65 -0
- package/dist/archbase-components-3.0.0.tgz +0 -0
- package/dist/buttons/ActionsDemo.d.ts +2 -0
- package/dist/buttons/ArchbaseActionButtons.d.ts +61 -0
- package/dist/buttons/index.d.ts +2 -0
- package/dist/charts/ArchbaseTimeline.d.ts +24 -0
- package/dist/charts/index.d.ts +3 -0
- package/dist/charts/vis-timeline/ArchbaseVisTimeline.d.ts +9 -0
- package/dist/charts/vis-timeline/ArchbaseVisTimeline.types.d.ts +284 -0
- package/dist/charts/vis-timeline/index.d.ts +9 -0
- package/dist/charts/vis-timeline/utils/timelineOptions.d.ts +68 -0
- package/dist/datagrid/components/index.d.ts +6 -0
- package/dist/datagrid/components/pagination/grid-pagination.d.ts +7 -0
- package/dist/datagrid/components/render/archbase-data-grid-item-renderer.d.ts +10 -0
- package/dist/datagrid/components/toolbar/global-search-input.d.ts +16 -0
- package/dist/datagrid/components/toolbar/grid-toolbar.d.ts +19 -0
- package/dist/datagrid/hooks/index.d.ts +3 -0
- package/dist/datagrid/hooks/use-grid-data-stable-rendering.d.ts +15 -0
- package/dist/datagrid/hooks/use-grid-data.d.ts +32 -0
- package/dist/datagrid/hooks/use-grid-details-panel.d.ts +51 -0
- package/dist/datagrid/index.d.ts +6 -0
- package/dist/datagrid/main/archbase-data-grid-column.d.ts +26 -0
- package/dist/datagrid/main/archbase-data-grid-formatters.d.ts +57 -0
- package/dist/datagrid/main/archbase-data-grid-pagination.d.ts +8 -0
- package/dist/datagrid/main/archbase-data-grid-toolbar.d.ts +7 -0
- package/dist/datagrid/main/archbase-data-grid-types.d.ts +252 -0
- package/dist/datagrid/main/archbase-data-grid-utils.d.ts +45 -0
- package/dist/datagrid/main/archbase-data-grid.d.ts +9 -0
- package/dist/datagrid/main/archbase-detail-panel-component.d.ts +52 -0
- package/dist/datagrid/main/archbase-expand-button.d.ts +22 -0
- package/dist/datagrid/main/archbase-grid-popover.d.ts +37 -0
- package/dist/datagrid/main/grid-row-actions.d.ts +15 -0
- package/dist/datagrid/main/index.d.ts +21 -0
- package/dist/datagrid/modals/export-data.d.ts +13 -0
- package/dist/datagrid/modals/export-modal.d.ts +9 -0
- package/dist/datagrid/modals/index.d.ts +6 -0
- package/dist/datagrid/modals/print-data.d.ts +16 -0
- package/dist/datagrid/modals/print-modal.d.ts +9 -0
- package/dist/datagrid/types/grid-props.d.ts +48 -0
- package/dist/datagrid/types/index.d.ts +1 -0
- package/dist/datagrid/utils/formatter.d.ts +39 -0
- package/dist/datagrid/utils/index.d.ts +1 -0
- package/dist/debug/index.d.ts +4 -0
- package/dist/debug/jsonpathpicker/ArchbaseJsonPathPicker.d.ts +37 -0
- package/dist/debug/jsonpathpicker/index.d.ts +1 -0
- package/dist/debug/jsonview/ArchbaseJsonViewDataRenderer.d.ts +34 -0
- package/dist/debug/jsonview/ArchbaseJsonViewDataTypeDetection.d.ts +8 -0
- package/dist/debug/jsonview/index.d.ts +11 -0
- package/dist/debug/objectinspector/ArchbaseDebugInspector.d.ts +23 -0
- package/dist/debug/objectinspector/ArchbaseFloatingWindow.d.ts +24 -0
- package/dist/debug/objectinspector/ArchbaseObjectInspector.d.ts +6 -0
- package/dist/debug/objectinspector/index.d.ts +3 -0
- package/dist/display/index.d.ts +4 -0
- package/dist/editors/ArchbaseAsyncMultiSelect.d.ts +112 -0
- package/dist/editors/ArchbaseAsyncSelect.context.d.ts +8 -0
- package/dist/editors/ArchbaseAsyncSelect.d.ts +102 -0
- package/dist/editors/ArchbaseAvatarEdit.d.ts +49 -0
- package/dist/editors/ArchbaseCheckbox.d.ts +45 -0
- package/dist/editors/ArchbaseChip.d.ts +43 -0
- package/dist/editors/ArchbaseChipGroup.d.ts +42 -0
- package/dist/editors/ArchbaseChipItem.d.ts +18 -0
- package/dist/editors/ArchbaseColorPicker.d.ts +3 -0
- package/dist/editors/ArchbaseCountdownProgress.d.ts +5 -0
- package/dist/editors/ArchbaseCronExpressionEdit.d.ts +16 -0
- package/dist/editors/ArchbaseCronExpressionEditor.d.ts +8 -0
- package/dist/editors/ArchbaseDatePicker.d.ts +2 -0
- package/dist/editors/ArchbaseDatePickerEdit.d.ts +85 -0
- package/dist/editors/ArchbaseDatePickerRange.d.ts +47 -0
- package/dist/editors/ArchbaseDateTimePickerEdit.d.ts +43 -0
- package/dist/editors/ArchbaseDateTimePickerRange.d.ts +58 -0
- package/dist/editors/ArchbaseEdit.d.ts +56 -0
- package/dist/editors/ArchbaseEdit.example.d.ts +8 -0
- package/dist/editors/ArchbaseFileAttachment.d.ts +17 -0
- package/dist/editors/ArchbaseImageEdit.d.ts +50 -0
- package/dist/editors/ArchbaseJsonEdit.d.ts +49 -0
- package/dist/editors/ArchbaseKeyValueEditor.d.ts +22 -0
- package/dist/editors/ArchbaseLookupEdit.d.ts +57 -0
- package/dist/editors/ArchbaseLookupNumber.d.ts +69 -0
- package/dist/editors/ArchbaseLookupSelect.d.ts +9 -0
- package/dist/editors/ArchbaseMarkdownEdit.d.ts +52 -0
- package/dist/editors/ArchbaseMaskEdit.d.ts +79 -0
- package/dist/editors/ArchbaseNumberEdit.d.ts +51 -0
- package/dist/editors/ArchbaseNumberInput.d.ts +2 -0
- package/dist/editors/ArchbaseOperationHoursEditor.d.ts +8 -0
- package/dist/editors/ArchbasePasswordEdit.d.ts +44 -0
- package/dist/editors/ArchbasePasswordInput.d.ts +2 -0
- package/dist/editors/ArchbaseRadio.d.ts +2 -0
- package/dist/editors/ArchbaseRadioGroup.d.ts +45 -0
- package/dist/editors/ArchbaseRadioItem.d.ts +12 -0
- package/dist/editors/ArchbaseRating.d.ts +52 -0
- package/dist/editors/ArchbaseRichTextEdit.d.ts +80 -0
- package/dist/editors/ArchbaseSelect.context.d.ts +8 -0
- package/dist/editors/ArchbaseSelect.d.ts +107 -0
- package/dist/editors/ArchbaseSelectItem.d.ts +15 -0
- package/dist/editors/ArchbaseSwitch.d.ts +53 -0
- package/dist/editors/ArchbaseTextArea.d.ts +47 -0
- package/dist/editors/ArchbaseTimeEdit.d.ts +52 -0
- package/dist/editors/ArchbaseTimeRangeSelector.d.ts +40 -0
- package/dist/editors/ArchbaseTreeSelect.d.ts +65 -0
- package/dist/editors/index.d.ts +81 -0
- package/dist/feedback/index.d.ts +4 -0
- package/dist/filters/ArchbaseCompositeFilters.d.ts +23 -0
- package/dist/filters/ArchbaseCompositeFilters.types.d.ts +303 -0
- package/dist/filters/ArchbaseCompositeFilters.utils.d.ts +69 -0
- package/dist/filters/components/FilterPill.d.ts +5 -0
- package/dist/filters/hooks/index.d.ts +4 -0
- package/dist/filters/hooks/useArchbaseFilterHistory.d.ts +24 -0
- package/dist/filters/hooks/useArchbaseFilterPresets.d.ts +23 -0
- package/dist/filters/hooks/useArchbaseFilters.d.ts +32 -0
- package/dist/filters/hooks/useArchbaseQuickFilters.d.ts +26 -0
- package/dist/filters/index.d.ts +8 -0
- package/dist/forms/index.d.ts +3 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/useArchbaseContainerDimensions.d.ts +4 -0
- package/dist/hooks/useArchbaseElementSizeArea.d.ts +6 -0
- package/dist/hooks/useArchbaseListContext.d.ts +2 -0
- package/dist/hooks/useArchbaseNavigateParams.d.ts +3 -0
- package/dist/hooks/useArchbaseVisible.d.ts +2 -0
- package/dist/image/ArchbaseImage.d.ts +33 -0
- package/dist/image/ArchbaseMicrosoftAvatar.d.ts +7 -0
- package/dist/image/editor/components/BasicFilters/BasicFilter.d.ts +9 -0
- package/dist/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.d.ts +12 -0
- package/dist/image/editor/components/EditImage/ArchbaseEditImage.d.ts +11 -0
- package/dist/image/editor/components/Input/Input.d.ts +9 -0
- package/dist/image/editor/components/Tab/Tab.d.ts +23 -0
- package/dist/image/editor/functions/croppr/box.d.ts +95 -0
- package/dist/image/editor/functions/croppr/core.d.ts +121 -0
- package/dist/image/editor/functions/croppr/croppr.d.ts +68 -0
- package/dist/image/editor/functions/croppr/handle.d.ts +23 -0
- package/dist/image/editor/functions/croppr/index.d.ts +2 -0
- package/dist/image/editor/functions/croppr/touch.d.ts +10 -0
- package/dist/image/editor/functions/image-processing.d.ts +11 -0
- package/dist/image/editor/index.d.ts +12 -0
- package/dist/image/editor/models/index.models.d.ts +45 -0
- package/dist/image/index.d.ts +7 -0
- package/dist/image/languages.d.ts +299 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +18368 -0
- package/dist/jsonschema/ArchbaseJsonSchemaEditor.types.d.ts +131 -0
- package/dist/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.d.ts +7 -0
- package/dist/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.d.ts +9 -0
- package/dist/jsonschema/JsonSchemaEditor/advanced-boolean/index.d.ts +2 -0
- package/dist/jsonschema/JsonSchemaEditor/advanced-number/index.d.ts +2 -0
- package/dist/jsonschema/JsonSchemaEditor/advanced-string/index.d.ts +2 -0
- package/dist/jsonschema/JsonSchemaEditor/drop-plus/index.d.ts +10 -0
- package/dist/jsonschema/JsonSchemaEditor/index.d.ts +2 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-advanced/index.d.ts +6 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-array/index.d.ts +8 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-item/index.d.ts +11 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-object/index.d.ts +7 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-root/index.d.ts +8 -0
- package/dist/jsonschema/JsonSchemaEditor/utils.d.ts +25 -0
- package/dist/jsonschema/JsonSchemaEditor/whoops.d.ts +2 -0
- package/dist/jsonschema/index.d.ts +2 -0
- package/dist/list/ArchbaseList.context.d.ts +27 -0
- package/dist/list/ArchbaseList.d.ts +104 -0
- package/dist/list/ArchbaseListItem.d.ts +59 -0
- package/dist/list/index.d.ts +8 -0
- package/dist/list/treeview/ArchbaseTreeView.d.ts +44 -0
- package/dist/list/treeview/ArchbaseTreeView.types.d.ts +40 -0
- package/dist/list/treeview/ArchbaseTreeViewItem.d.ts +19 -0
- package/dist/list/treeview/index.d.ts +5 -0
- package/dist/list-view/ArchbaseListViewTable.d.ts +111 -0
- package/dist/list-view/index.d.ts +2 -0
- package/dist/markdown/ArchbaseMarkdown.d.ts +23 -0
- package/dist/markdown/ArchbaseMarkdown.types.d.ts +181 -0
- package/dist/markdown/components/CodeBlock.d.ts +23 -0
- package/dist/markdown/components/LinkRenderer.d.ts +16 -0
- package/dist/markdown/index.d.ts +11 -0
- package/dist/masonry/ArchbaseMasonry.context.d.ts +21 -0
- package/dist/masonry/ArchbaseMasonry.d.ts +35 -0
- package/dist/masonry/index.d.ts +5 -0
- package/dist/navigation/index.d.ts +3 -0
- package/dist/notification/ArchbaseAlert.d.ts +22 -0
- package/dist/notification/ArchbaseDialog.d.ts +16 -0
- package/dist/notification/ArchbaseNotifications.d.ts +5 -0
- package/dist/notification/index.d.ts +4 -0
- package/dist/onboarding/ArchbaseOnboardingTour.d.ts +99 -0
- package/dist/onboarding/index.d.ts +2 -0
- package/dist/printer/ArchbaseThermalPrinter.d.ts +27 -0
- package/dist/printer/ArchbaseThermalPrinter.types.d.ts +199 -0
- package/dist/printer/index.d.ts +9 -0
- package/dist/printer/utils/escpos.d.ts +127 -0
- package/dist/spreadsheet/ArchbaseSpreadsheetImport.d.ts +4 -0
- package/dist/spreadsheet/ArchbaseSpreadsheetImport.types.d.ts +65 -0
- package/dist/spreadsheet/index.d.ts +2 -0
- package/dist/theme-editor/ArchbaseThemeEditor.d.ts +17 -0
- package/dist/theme-editor/ArchbaseThemeEditor.types.d.ts +187 -0
- package/dist/theme-editor/index.d.ts +9 -0
- package/dist/theme-editor/utils/themeExport.d.ts +198 -0
- package/dist/themes/ArchbaseThemeEditor.d.ts +49 -0
- package/dist/types/index.d.ts +106 -0
- package/dist/video/ArchbaseVideoPlayer.d.ts +18 -0
- package/dist/video/ArchbaseVideoPlayer.types.d.ts +200 -0
- package/dist/video/hooks/useVideoPlayer.d.ts +58 -0
- package/dist/video/index.d.ts +10 -0
- package/dist/viewers/ArchbasePDFViewer.annotations.d.ts +20 -0
- package/dist/viewers/ArchbasePDFViewer.d.ts +2 -0
- package/dist/viewers/ArchbasePDFViewer.toolbar.d.ts +20 -0
- package/dist/viewers/ArchbasePDFViewer.types.d.ts +68 -0
- package/dist/viewers/file-preview/ArchbaseFilePreviewer.d.ts +19 -0
- package/dist/viewers/file-preview/ArchbaseFilePreviewer.types.d.ts +153 -0
- package/dist/viewers/file-preview/index.d.ts +13 -0
- package/dist/viewers/file-preview/utils/fileTypeDetector.d.ts +33 -0
- package/dist/viewers/index.d.ts +5 -0
- package/package.json +154 -0
- package/src/admin/types.ts +73 -0
- package/src/arco.css +6 -0
- package/src/buttons/ActionsDemo.tsx +107 -0
- package/src/buttons/ArchbaseActionButtons.d.ts.map +1 -0
- package/src/buttons/ArchbaseActionButtons.tsx +387 -0
- package/src/buttons/index.d.ts.map +1 -0
- package/src/buttons/index.ts +7 -0
- package/src/charts/ArchbaseTimeline.d.ts.map +1 -0
- package/src/charts/ArchbaseTimeline.tsx +332 -0
- package/src/charts/index.d.ts.map +1 -0
- package/src/charts/index.ts +5 -0
- package/src/charts/vis-timeline/ArchbaseVisTimeline.tsx +401 -0
- package/src/charts/vis-timeline/ArchbaseVisTimeline.types.ts +294 -0
- package/src/charts/vis-timeline/index.ts +36 -0
- package/src/charts/vis-timeline/utils/timelineOptions.ts +213 -0
- package/src/datagrid/components/index.d.ts.map +1 -0
- package/src/datagrid/components/index.tsx +14 -0
- package/src/datagrid/components/pagination/grid-pagination.d.ts.map +1 -0
- package/src/datagrid/components/pagination/grid-pagination.tsx +150 -0
- package/src/datagrid/components/render/archbase-data-grid-item-renderer.tsx +26 -0
- package/src/datagrid/components/toolbar/global-search-input.d.ts.map +1 -0
- package/src/datagrid/components/toolbar/global-search-input.tsx +118 -0
- package/src/datagrid/components/toolbar/grid-toolbar.d.ts.map +1 -0
- package/src/datagrid/components/toolbar/grid-toolbar.tsx +106 -0
- package/src/datagrid/hooks/index.d.ts.map +1 -0
- package/src/datagrid/hooks/index.tsx +18 -0
- package/src/datagrid/hooks/use-grid-data-stable-rendering.d.ts.map +1 -0
- package/src/datagrid/hooks/use-grid-data-stable-rendering.ts +168 -0
- package/src/datagrid/hooks/use-grid-data.d.ts.map +1 -0
- package/src/datagrid/hooks/use-grid-data.tsx +598 -0
- package/src/datagrid/hooks/use-grid-details-panel.d.ts.map +1 -0
- package/src/datagrid/hooks/use-grid-details-panel.ts +316 -0
- package/src/datagrid/index.d.ts.map +1 -0
- package/src/datagrid/index.tsx +12 -0
- package/src/datagrid/main/archbase-data-grid-column.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-column.ts +46 -0
- package/src/datagrid/main/archbase-data-grid-formatters.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-formatters.tsx +384 -0
- package/src/datagrid/main/archbase-data-grid-pagination.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-pagination.tsx +63 -0
- package/src/datagrid/main/archbase-data-grid-toolbar.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-toolbar.tsx +160 -0
- package/src/datagrid/main/archbase-data-grid-types.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-types.tsx +327 -0
- package/src/datagrid/main/archbase-data-grid-utils.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-utils.ts +494 -0
- package/src/datagrid/main/archbase-data-grid.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid.tsx +1462 -0
- package/src/datagrid/main/archbase-detail-panel-component.d.ts.map +1 -0
- package/src/datagrid/main/archbase-detail-panel-component.tsx +186 -0
- package/src/datagrid/main/archbase-expand-button.d.ts.map +1 -0
- package/src/datagrid/main/archbase-expand-button.tsx +83 -0
- package/src/datagrid/main/archbase-grid-popover.d.ts.map +1 -0
- package/src/datagrid/main/archbase-grid-popover.tsx +188 -0
- package/src/datagrid/main/grid-row-actions.d.ts.map +1 -0
- package/src/datagrid/main/grid-row-actions.tsx +97 -0
- package/src/datagrid/main/index.d.ts.map +1 -0
- package/src/datagrid/main/index.tsx +75 -0
- package/src/datagrid/modals/export-data.d.ts.map +1 -0
- package/src/datagrid/modals/export-data.tsx +183 -0
- package/src/datagrid/modals/export-modal.d.ts.map +1 -0
- package/src/datagrid/modals/export-modal.tsx +168 -0
- package/src/datagrid/modals/index.d.ts.map +1 -0
- package/src/datagrid/modals/index.tsx +6 -0
- package/src/datagrid/modals/print-data.d.ts.map +1 -0
- package/src/datagrid/modals/print-data.tsx +267 -0
- package/src/datagrid/modals/print-modal.d.ts.map +1 -0
- package/src/datagrid/modals/print-modal.tsx +200 -0
- package/src/datagrid/types/grid-props.d.ts.map +1 -0
- package/src/datagrid/types/grid-props.tsx +53 -0
- package/src/datagrid/types/index.d.ts.map +1 -0
- package/src/datagrid/types/index.tsx +1 -0
- package/src/datagrid/utils/formatter.d.ts.map +1 -0
- package/src/datagrid/utils/formatter.tsx +308 -0
- package/src/datagrid/utils/index.d.ts.map +1 -0
- package/src/datagrid/utils/index.tsx +1 -0
- package/src/debug/index.d.ts.map +1 -0
- package/src/debug/index.ts +4 -0
- package/src/debug/jsonpathpicker/ArchbaseJsonPathPicker.css +46 -0
- package/src/debug/jsonpathpicker/ArchbaseJsonPathPicker.d.ts.map +1 -0
- package/src/debug/jsonpathpicker/ArchbaseJsonPathPicker.tsx +341 -0
- package/src/debug/jsonpathpicker/index.d.ts.map +1 -0
- package/src/debug/jsonpathpicker/index.ts +1 -0
- package/src/debug/jsonview/.eslintrc +5 -0
- package/src/debug/jsonview/ArchbaseJsonViewDataRenderer.d.ts.map +1 -0
- package/src/debug/jsonview/ArchbaseJsonViewDataRenderer.tsx +206 -0
- package/src/debug/jsonview/ArchbaseJsonViewDataTypeDetection.d.ts.map +1 -0
- package/src/debug/jsonview/ArchbaseJsonViewDataTypeDetection.ts +31 -0
- package/src/debug/jsonview/index.d.ts.map +1 -0
- package/src/debug/jsonview/index.tsx +60 -0
- package/src/debug/jsonview/styles.module.css +118 -0
- package/src/debug/jsonview/styles.module.css.d.ts +4 -0
- package/src/debug/objectinspector/ArchbaseDebugInspector.d.ts.map +1 -0
- package/src/debug/objectinspector/ArchbaseDebugInspector.tsx +79 -0
- package/src/debug/objectinspector/ArchbaseFloatingWindow.css +70 -0
- package/src/debug/objectinspector/ArchbaseFloatingWindow.d.ts.map +1 -0
- package/src/debug/objectinspector/ArchbaseFloatingWindow.tsx +266 -0
- package/src/debug/objectinspector/ArchbaseObjectInspector.d.ts.map +1 -0
- package/src/debug/objectinspector/ArchbaseObjectInspector.tsx +21 -0
- package/src/debug/objectinspector/index.d.ts.map +1 -0
- package/src/debug/objectinspector/index.ts +3 -0
- package/src/display/index.d.ts.map +1 -0
- package/src/display/index.ts +5 -0
- package/src/editors/ArchbaseAsyncMultiSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseAsyncMultiSelect.tsx +667 -0
- package/src/editors/ArchbaseAsyncSelect.context.d.ts.map +1 -0
- package/src/editors/ArchbaseAsyncSelect.context.ts +9 -0
- package/src/editors/ArchbaseAsyncSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseAsyncSelect.tsx +581 -0
- package/src/editors/ArchbaseAvatarEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseAvatarEdit.tsx +625 -0
- package/src/editors/ArchbaseCheckbox.d.ts.map +1 -0
- package/src/editors/ArchbaseCheckbox.tsx +250 -0
- package/src/editors/ArchbaseChip.d.ts.map +1 -0
- package/src/editors/ArchbaseChip.tsx +233 -0
- package/src/editors/ArchbaseChipGroup.d.ts.map +1 -0
- package/src/editors/ArchbaseChipGroup.tsx +282 -0
- package/src/editors/ArchbaseChipItem.d.ts.map +1 -0
- package/src/editors/ArchbaseChipItem.tsx +21 -0
- package/src/editors/ArchbaseColorPicker.d.ts.map +1 -0
- package/src/editors/ArchbaseColorPicker.tsx +7 -0
- package/src/editors/ArchbaseCountdownProgress.d.ts.map +1 -0
- package/src/editors/ArchbaseCountdownProgress.tsx +57 -0
- package/src/editors/ArchbaseCronExpressionEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseCronExpressionEdit.tsx +86 -0
- package/src/editors/ArchbaseCronExpressionEditor.d.ts.map +1 -0
- package/src/editors/ArchbaseCronExpressionEditor.tsx +133 -0
- package/src/editors/ArchbaseDatePicker.tsx +3 -0
- package/src/editors/ArchbaseDatePickerEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseDatePickerEdit.tsx +785 -0
- package/src/editors/ArchbaseDatePickerRange.d.ts.map +1 -0
- package/src/editors/ArchbaseDatePickerRange.tsx +142 -0
- package/src/editors/ArchbaseDateTimePickerEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseDateTimePickerEdit.tsx +259 -0
- package/src/editors/ArchbaseDateTimePickerRange.d.ts.map +1 -0
- package/src/editors/ArchbaseDateTimePickerRange.tsx +220 -0
- package/src/editors/ArchbaseEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseEdit.example.tsx +240 -0
- package/src/editors/ArchbaseEdit.tsx +325 -0
- package/src/editors/ArchbaseFileAttachment.d.ts.map +1 -0
- package/src/editors/ArchbaseFileAttachment.tsx +259 -0
- package/src/editors/ArchbaseImageEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseImageEdit.tsx +255 -0
- package/src/editors/ArchbaseJsonEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseJsonEdit.tsx +257 -0
- package/src/editors/ArchbaseKeyValueEditor.d.ts.map +1 -0
- package/src/editors/ArchbaseKeyValueEditor.tsx +180 -0
- package/src/editors/ArchbaseLookupEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseLookupEdit.tsx +368 -0
- package/src/editors/ArchbaseLookupNumber.d.ts.map +1 -0
- package/src/editors/ArchbaseLookupNumber.tsx +390 -0
- package/src/editors/ArchbaseLookupSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseLookupSelect.tsx +225 -0
- package/src/editors/ArchbaseMarkdownEdit.tsx +367 -0
- package/src/editors/ArchbaseMaskEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseMaskEdit.tsx +346 -0
- package/src/editors/ArchbaseNumberEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseNumberEdit.tsx +626 -0
- package/src/editors/ArchbaseNumberInput.tsx +3 -0
- package/src/editors/ArchbaseOperationHoursEditor.d.ts.map +1 -0
- package/src/editors/ArchbaseOperationHoursEditor.tsx +206 -0
- package/src/editors/ArchbasePasswordEdit.d.ts.map +1 -0
- package/src/editors/ArchbasePasswordEdit.tsx +265 -0
- package/src/editors/ArchbasePasswordInput.tsx +3 -0
- package/src/editors/ArchbaseRadio.tsx +3 -0
- package/src/editors/ArchbaseRadioGroup.d.ts.map +1 -0
- package/src/editors/ArchbaseRadioGroup.tsx +293 -0
- package/src/editors/ArchbaseRadioItem.d.ts.map +1 -0
- package/src/editors/ArchbaseRadioItem.tsx +14 -0
- package/src/editors/ArchbaseRating.d.ts.map +1 -0
- package/src/editors/ArchbaseRating.tsx +236 -0
- package/src/editors/ArchbaseRichTextEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseRichTextEdit.tsx +435 -0
- package/src/editors/ArchbaseSelect.context.d.ts.map +1 -0
- package/src/editors/ArchbaseSelect.context.ts +9 -0
- package/src/editors/ArchbaseSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseSelect.tsx +550 -0
- package/src/editors/ArchbaseSelectItem.d.ts.map +1 -0
- package/src/editors/ArchbaseSelectItem.tsx +18 -0
- package/src/editors/ArchbaseSwitch.d.ts.map +1 -0
- package/src/editors/ArchbaseSwitch.tsx +266 -0
- package/src/editors/ArchbaseTextArea.d.ts.map +1 -0
- package/src/editors/ArchbaseTextArea.tsx +263 -0
- package/src/editors/ArchbaseTimeEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseTimeEdit.tsx +319 -0
- package/src/editors/ArchbaseTimeRangeSelector.d.ts.map +1 -0
- package/src/editors/ArchbaseTimeRangeSelector.tsx +397 -0
- package/src/editors/ArchbaseTreeSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseTreeSelect.tsx +434 -0
- package/src/editors/index.d.ts.map +1 -0
- package/src/editors/index.tsx +121 -0
- package/src/editors/intro.mdx +4 -0
- package/src/feedback/index.d.ts.map +1 -0
- package/src/feedback/index.ts +5 -0
- package/src/filters/ArchbaseCompositeFilters.tsx +696 -0
- package/src/filters/ArchbaseCompositeFilters.types.ts +402 -0
- package/src/filters/ArchbaseCompositeFilters.utils.ts +378 -0
- package/src/filters/components/FilterPill.tsx +100 -0
- package/src/filters/hooks/index.ts +4 -0
- package/src/filters/hooks/useArchbaseFilterHistory.ts +111 -0
- package/src/filters/hooks/useArchbaseFilterPresets.ts +157 -0
- package/src/filters/hooks/useArchbaseFilters.ts +279 -0
- package/src/filters/hooks/useArchbaseQuickFilters.ts +80 -0
- package/src/filters/index.ts +55 -0
- package/src/forms/index.d.ts.map +1 -0
- package/src/forms/index.ts +4 -0
- package/src/hooks/index.d.ts.map +1 -0
- package/src/hooks/index.ts +5 -0
- package/src/hooks/useArchbaseContainerDimensions.d.ts.map +1 -0
- package/src/hooks/useArchbaseContainerDimensions.ts +28 -0
- package/src/hooks/useArchbaseElementSizeArea.d.ts.map +1 -0
- package/src/hooks/useArchbaseElementSizeArea.ts +39 -0
- package/src/hooks/useArchbaseListContext.d.ts.map +1 -0
- package/src/hooks/useArchbaseListContext.ts +10 -0
- package/src/hooks/useArchbaseNavigateParams.d.ts.map +1 -0
- package/src/hooks/useArchbaseNavigateParams.ts +17 -0
- package/src/hooks/useArchbaseVisible.d.ts.map +1 -0
- package/src/hooks/useArchbaseVisible.ts +35 -0
- package/src/image/.placeholder +0 -0
- package/src/image/ArchbaseImage.d.ts.map +1 -0
- package/src/image/ArchbaseImage.tsx +56 -0
- package/src/image/ArchbaseMicrosoftAvatar.d.ts.map +1 -0
- package/src/image/ArchbaseMicrosoftAvatar.tsx +50 -0
- package/src/image/editor/components/BasicFilters/BasicFilter.d.ts.map +1 -0
- package/src/image/editor/components/BasicFilters/BasicFilter.tsx +179 -0
- package/src/image/editor/components/CropprWrapper/ArchbaseCropper.scss +73 -0
- package/src/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.d.ts.map +1 -0
- package/src/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.tsx +50 -0
- package/src/image/editor/components/EditImage/ArchbaseEditImage.d.ts.map +1 -0
- package/src/image/editor/components/EditImage/ArchbaseEditImage.scss +221 -0
- package/src/image/editor/components/EditImage/ArchbaseEditImage.tsx +469 -0
- package/src/image/editor/components/Input/Input.d.ts.map +1 -0
- package/src/image/editor/components/Input/Input.tsx +70 -0
- package/src/image/editor/components/Tab/Tab.d.ts.map +1 -0
- package/src/image/editor/components/Tab/Tab.tsx +150 -0
- package/src/image/editor/components/Tab/TabsStyles.scss +72 -0
- package/src/image/editor/functions/croppr/box.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/box.ts +272 -0
- package/src/image/editor/functions/croppr/core.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/core.ts +820 -0
- package/src/image/editor/functions/croppr/croppr.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/croppr.ts +136 -0
- package/src/image/editor/functions/croppr/handle.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/handle.ts +75 -0
- package/src/image/editor/functions/croppr/index.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/index.ts +4 -0
- package/src/image/editor/functions/croppr/touch.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/touch.ts +41 -0
- package/src/image/editor/functions/image-processing.d.ts.map +1 -0
- package/src/image/editor/functions/image-processing.ts +202 -0
- package/src/image/editor/image_editor_styles.scss +284 -0
- package/src/image/editor/index.d.ts.map +1 -0
- package/src/image/editor/index.tsx +437 -0
- package/src/image/editor/models/index.models.d.ts.map +1 -0
- package/src/image/editor/models/index.models.ts +48 -0
- package/src/image/index.d.ts.map +1 -0
- package/src/image/index.ts +7 -0
- package/src/image/intro.mdx +4 -0
- package/src/image/languages.d.ts.map +1 -0
- package/src/image/languages.ts +302 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ts +50 -0
- package/src/jsonschema/ArchbaseJsonSchemaEditor.types.d.ts.map +1 -0
- package/src/jsonschema/ArchbaseJsonSchemaEditor.types.ts +171 -0
- package/src/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.tsx +8 -0
- package/src/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.tsx +99 -0
- package/src/jsonschema/JsonSchemaEditor/JsonSchemaEditor.scss +19 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-boolean/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-boolean/index.tsx +33 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-number/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-number/index.tsx +119 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-string/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-string/index.tsx +146 -0
- package/src/jsonschema/JsonSchemaEditor/drop-plus/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/drop-plus/index.tsx +80 -0
- package/src/jsonschema/JsonSchemaEditor/index.ts +2 -0
- package/src/jsonschema/JsonSchemaEditor/schema-advanced/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-advanced/index.tsx +32 -0
- package/src/jsonschema/JsonSchemaEditor/schema-array/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-array/index.tsx +164 -0
- package/src/jsonschema/JsonSchemaEditor/schema-item/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-item/index.tsx +213 -0
- package/src/jsonschema/JsonSchemaEditor/schema-object/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-object/index.tsx +68 -0
- package/src/jsonschema/JsonSchemaEditor/schema-root/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-root/index.tsx +103 -0
- package/src/jsonschema/JsonSchemaEditor/utils.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/utils.ts +195 -0
- package/src/jsonschema/JsonSchemaEditor/whoops.tsx +79 -0
- package/src/jsonschema/index.d.ts.map +1 -0
- package/src/jsonschema/index.ts +2 -0
- package/src/list/ArchbaseList.context.d.ts.map +1 -0
- package/src/list/ArchbaseList.context.ts +28 -0
- package/src/list/ArchbaseList.d.ts.map +1 -0
- package/src/list/ArchbaseList.tsx +533 -0
- package/src/list/ArchbaseListItem.d.ts.map +1 -0
- package/src/list/ArchbaseListItem.tsx +161 -0
- package/src/list/index.d.ts.map +1 -0
- package/src/list/index.ts +9 -0
- package/src/list/treeview/ArchbaseTreeView.d.ts.map +1 -0
- package/src/list/treeview/ArchbaseTreeView.module.css +66 -0
- package/src/list/treeview/ArchbaseTreeView.tsx +657 -0
- package/src/list/treeview/ArchbaseTreeView.types.d.ts.map +1 -0
- package/src/list/treeview/ArchbaseTreeView.types.tsx +42 -0
- package/src/list/treeview/ArchbaseTreeViewItem.d.ts.map +1 -0
- package/src/list/treeview/ArchbaseTreeViewItem.tsx +210 -0
- package/src/list/treeview/index.d.ts.map +1 -0
- package/src/list/treeview/index.ts +5 -0
- package/src/list-view/ArchbaseListViewTable.tsx +150 -0
- package/src/list-view/index.ts +2 -0
- package/src/markdown/ArchbaseMarkdown.tsx +463 -0
- package/src/markdown/ArchbaseMarkdown.types.ts +213 -0
- package/src/markdown/components/CodeBlock.tsx +197 -0
- package/src/markdown/components/LinkRenderer.tsx +98 -0
- package/src/markdown/index.ts +29 -0
- package/src/masonry/ArchbaseMasonry.context.d.ts.map +1 -0
- package/src/masonry/ArchbaseMasonry.context.ts +24 -0
- package/src/masonry/ArchbaseMasonry.d.ts.map +1 -0
- package/src/masonry/ArchbaseMasonry.tsx +156 -0
- package/src/masonry/index.d.ts.map +1 -0
- package/src/masonry/index.ts +5 -0
- package/src/navigation/index.d.ts.map +1 -0
- package/src/navigation/index.ts +4 -0
- package/src/notification/ArchbaseAlert.d.ts.map +1 -0
- package/src/notification/ArchbaseAlert.tsx +77 -0
- package/src/notification/ArchbaseDialog.d.ts.map +1 -0
- package/src/notification/ArchbaseDialog.tsx +212 -0
- package/src/notification/ArchbaseNotifications.d.ts.map +1 -0
- package/src/notification/ArchbaseNotifications.tsx +64 -0
- package/src/notification/index.d.ts.map +1 -0
- package/src/notification/index.ts +4 -0
- package/src/notification/intro.mdx +4 -0
- package/src/onboarding/ArchbaseOnboardingTour.tsx +147 -0
- package/src/onboarding/index.ts +2 -0
- package/src/printer/ArchbaseThermalPrinter.tsx +465 -0
- package/src/printer/ArchbaseThermalPrinter.types.ts +221 -0
- package/src/printer/index.ts +54 -0
- package/src/printer/utils/escpos.ts +531 -0
- package/src/spreadsheet/ArchbaseSpreadsheetImport.tsx +223 -0
- package/src/spreadsheet/ArchbaseSpreadsheetImport.types.ts +66 -0
- package/src/spreadsheet/index.ts +10 -0
- package/src/theme-editor/ArchbaseThemeEditor.tsx +728 -0
- package/src/theme-editor/ArchbaseThemeEditor.types.ts +207 -0
- package/src/theme-editor/index.ts +45 -0
- package/src/theme-editor/utils/themeExport.ts +351 -0
- package/src/themes/.placeholder +0 -0
- package/src/themes/ArchbaseThemeEditor.d.ts.map +1 -0
- package/src/themes/ArchbaseThemeEditor.tsx +110 -0
- package/src/treeviews.scss +80 -0
- package/src/types/index.d.ts.map +1 -0
- package/src/types/index.ts +115 -0
- package/src/video/ArchbaseVideoPlayer.tsx +706 -0
- package/src/video/ArchbaseVideoPlayer.types.ts +221 -0
- package/src/video/hooks/useVideoPlayer.ts +362 -0
- package/src/video/index.ts +28 -0
- package/src/viewers/ArchbasePDFViewer.annotations.tsx +423 -0
- package/src/viewers/ArchbasePDFViewer.toolbar.tsx +218 -0
- package/src/viewers/ArchbasePDFViewer.tsx +317 -0
- package/src/viewers/ArchbasePDFViewer.types.ts +85 -0
- package/src/viewers/file-preview/ArchbaseFilePreviewer.tsx +756 -0
- package/src/viewers/file-preview/ArchbaseFilePreviewer.types.ts +186 -0
- package/src/viewers/file-preview/index.ts +43 -0
- package/src/viewers/file-preview/utils/fileTypeDetector.ts +317 -0
- package/src/viewers/index.ts +17 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ArchbaseListViewColumn<T = any> {
|
|
3
|
+
/**
|
|
4
|
+
* Identificador único da coluna (key)
|
|
5
|
+
*/
|
|
6
|
+
key: keyof T | (string & NonNullable<unknown>);
|
|
7
|
+
/**
|
|
8
|
+
* Título da coluna
|
|
9
|
+
*/
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Largura da coluna em pixels
|
|
13
|
+
*/
|
|
14
|
+
width?: string | number;
|
|
15
|
+
/**
|
|
16
|
+
* Renderizador customizado para a célula
|
|
17
|
+
*/
|
|
18
|
+
renderCell?: (record: T, index: number) => ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Alinhamento do conteúdo
|
|
21
|
+
*/
|
|
22
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
23
|
+
/**
|
|
24
|
+
* Se a coluna é ordenável
|
|
25
|
+
*/
|
|
26
|
+
sortable?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Se a coluna é redimensionável
|
|
29
|
+
*/
|
|
30
|
+
resizable?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface ArchbaseListViewProps<T = any> {
|
|
33
|
+
/**
|
|
34
|
+
* Dados a serem exibidos
|
|
35
|
+
*/
|
|
36
|
+
data: T[];
|
|
37
|
+
/**
|
|
38
|
+
* Colunas da tabela
|
|
39
|
+
*/
|
|
40
|
+
columns: ArchbaseListViewColumn<T>[];
|
|
41
|
+
/**
|
|
42
|
+
* Callback quando uma linha é clicada
|
|
43
|
+
*/
|
|
44
|
+
onRowClick?: (record: T, index: number) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Callback quando uma linha é duplamente clicada
|
|
47
|
+
*/
|
|
48
|
+
onRowDoubleClick?: (record: T, index: number) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Altura da tabela em pixels
|
|
51
|
+
*/
|
|
52
|
+
height?: number | string;
|
|
53
|
+
/**
|
|
54
|
+
* Largura da tabela
|
|
55
|
+
*/
|
|
56
|
+
width?: number | string;
|
|
57
|
+
/**
|
|
58
|
+
* Borda ao redor da tabela
|
|
59
|
+
*/
|
|
60
|
+
withTableBorder?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Borda nas colunas
|
|
63
|
+
*/
|
|
64
|
+
withColumnBorders?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Borda nas linhas
|
|
67
|
+
*/
|
|
68
|
+
withRowBorders?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Row key (para identificar linhas únicas)
|
|
71
|
+
*/
|
|
72
|
+
rowKey?: keyof T | ((record: T, index: number) => React.Key);
|
|
73
|
+
/**
|
|
74
|
+
* Estilo adicional do container
|
|
75
|
+
*/
|
|
76
|
+
style?: React.CSSProperties;
|
|
77
|
+
/**
|
|
78
|
+
* ClassName adicional
|
|
79
|
+
*/
|
|
80
|
+
className?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Componente ArchbaseListViewTable
|
|
84
|
+
*
|
|
85
|
+
* Wrapper sobre @gfazioli/mantine-list-view-table para criar tabelas no estilo
|
|
86
|
+
* Finder do macOS, com suporte a ordenação, redimensionamento de colunas e mais.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```tsx
|
|
90
|
+
* interface FileSystemItem {
|
|
91
|
+
* id: string;
|
|
92
|
+
* name: string;
|
|
93
|
+
* size: number;
|
|
94
|
+
* type: 'file' | 'folder';
|
|
95
|
+
* }
|
|
96
|
+
*
|
|
97
|
+
* const columns: ArchbaseListViewColumn<FileSystemItem>[] = [
|
|
98
|
+
* { key: 'name', title: 'Nome', width: 200 },
|
|
99
|
+
* { key: 'size', title: 'Tamanho', width: 100, textAlign: 'right' },
|
|
100
|
+
* { key: 'type', title: 'Tipo', width: 100 },
|
|
101
|
+
* ];
|
|
102
|
+
*
|
|
103
|
+
* <ArchbaseListViewTable
|
|
104
|
+
* data={fileSystemData}
|
|
105
|
+
* columns={columns}
|
|
106
|
+
* onRowClick={(item, index) => console.log('Clicked:', item)}
|
|
107
|
+
* height={400}
|
|
108
|
+
* />
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
export declare function ArchbaseListViewTable<T = any>({ data, columns, onRowClick, onRowDoubleClick, height, width, withTableBorder, withColumnBorders, withRowBorders, rowKey, style, className, }: ArchbaseListViewProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ArchbaseMarkdownProps } from './ArchbaseMarkdown.types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente ArchbaseMarkdown - Renderização de Markdown em React
|
|
4
|
+
*
|
|
5
|
+
* Baseado em react-markdown com plugins remark/rehype.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <ArchbaseMarkdown>
|
|
10
|
+
* # Título
|
|
11
|
+
*
|
|
12
|
+
* Este é um parágrafo com **negrito** e *itálico*.
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const x = 42;
|
|
16
|
+
* ```
|
|
17
|
+
* </ArchbaseMarkdown>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function ArchbaseMarkdown({ children, codeOptions, linkOptions, tableOptions, listOptions, pluginOptions, components: customComponents, style, className, contentClassName, disabled, loading, error, ariaLabel, role, onLoadStart, onLoadEnd, onError, onLinkClick, skipHtml, unwrapDisallowed, }: ArchbaseMarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare namespace ArchbaseMarkdown {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode, ElementType } from 'react';
|
|
2
|
+
import type { PluggableList } from 'unified';
|
|
3
|
+
/**
|
|
4
|
+
* Estilo de syntax highlighting para blocos de código
|
|
5
|
+
*/
|
|
6
|
+
export type SyntaxHighlightTheme = 'atom-one-dark' | 'atom-one-light' | 'github-dark' | 'github-light' | 'monokai' | 'nord' | 'dracula' | 'cool' | 'high-contrast';
|
|
7
|
+
/**
|
|
8
|
+
* Estilo de código inline
|
|
9
|
+
*/
|
|
10
|
+
export type CodeInlineStyle = 'inline' | 'shiki' | 'none';
|
|
11
|
+
/**
|
|
12
|
+
* Opções de renderização de código
|
|
13
|
+
*/
|
|
14
|
+
export interface CodeOptions {
|
|
15
|
+
/** Habilitar syntax highlighting */
|
|
16
|
+
highlightEnabled?: boolean;
|
|
17
|
+
/** Tema para syntax highlighting */
|
|
18
|
+
highlightTheme?: SyntaxHighlightTheme;
|
|
19
|
+
/** Mostrar números de linha */
|
|
20
|
+
showLineNumbers?: boolean;
|
|
21
|
+
/** Linguagem padrão quando não especificada */
|
|
22
|
+
defaultLanguage?: string;
|
|
23
|
+
/** Estilo de código inline */
|
|
24
|
+
inlineStyle?: CodeInlineStyle;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Opções de links
|
|
28
|
+
*/
|
|
29
|
+
export interface LinkOptions {
|
|
30
|
+
/** Abrir links externos em nova aba */
|
|
31
|
+
openExternalInNewTab?: boolean;
|
|
32
|
+
/** Adicionar atributo rel nofollow em links externos */
|
|
33
|
+
externalNoFollow?: boolean;
|
|
34
|
+
/** Adicionar atributo rel noopener em links externos */
|
|
35
|
+
externalNoOpener?: boolean;
|
|
36
|
+
/** Função customizada para validar URLs */
|
|
37
|
+
isUrlCustom?: (url: string) => boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Opções de tabela
|
|
41
|
+
*/
|
|
42
|
+
export interface TableOptions {
|
|
43
|
+
/** Classe CSS base para tabelas */
|
|
44
|
+
tableClassName?: string;
|
|
45
|
+
/** Classe CSS para cabeçalho */
|
|
46
|
+
headerClassName?: string;
|
|
47
|
+
/** Classe CSS para corpo */
|
|
48
|
+
bodyClassName?: string;
|
|
49
|
+
/** Habilitar estilo striped */
|
|
50
|
+
striped?: boolean;
|
|
51
|
+
/** Habilitar hover nas linhas */
|
|
52
|
+
hover?: boolean;
|
|
53
|
+
/** Habilitar bordas */
|
|
54
|
+
bordered?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Opções de lista
|
|
58
|
+
*/
|
|
59
|
+
export interface ListOptions {
|
|
60
|
+
/** Classe CSS base para listas */
|
|
61
|
+
listClassName?: string;
|
|
62
|
+
/** Classe CSS para itens de lista */
|
|
63
|
+
itemClassName?: string;
|
|
64
|
+
/** Estilo de marker para listas ordenadas */
|
|
65
|
+
orderedListStyle?: 'decimal' | 'lower-alpha' | 'upper-alpha' | 'lower-roman' | 'upper-roman';
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Plugin options para remark/rehype
|
|
69
|
+
*/
|
|
70
|
+
export interface PluginOptions {
|
|
71
|
+
/** Plugins remark customizados */
|
|
72
|
+
remarkPlugins?: PluggableList;
|
|
73
|
+
/** Plugins rehype customizados */
|
|
74
|
+
rehypePlugins?: PluggableList;
|
|
75
|
+
/** Habilitar GitHub Flavored Markdown */
|
|
76
|
+
remarkGfm?: boolean;
|
|
77
|
+
/** Habilitar HTML inline no markdown */
|
|
78
|
+
rehypeRaw?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Configurações de renderização customizada
|
|
82
|
+
* Nota: Usamos Omit para evitar conflitos de tipo com Components de react-markdown
|
|
83
|
+
*/
|
|
84
|
+
export interface CustomComponents {
|
|
85
|
+
/** Componente customizado para parágrafos */
|
|
86
|
+
p?: ElementType;
|
|
87
|
+
/** Componente customizado para headings */
|
|
88
|
+
h1?: ElementType;
|
|
89
|
+
h2?: ElementType;
|
|
90
|
+
h3?: ElementType;
|
|
91
|
+
h4?: ElementType;
|
|
92
|
+
h5?: ElementType;
|
|
93
|
+
h6?: ElementType;
|
|
94
|
+
/** Componente customizado para listas */
|
|
95
|
+
ul?: ElementType;
|
|
96
|
+
ol?: ElementType;
|
|
97
|
+
li?: ElementType;
|
|
98
|
+
/** Componente customizado para blockquote */
|
|
99
|
+
blockquote?: ElementType;
|
|
100
|
+
/** Componente customizado para código */
|
|
101
|
+
code?: ElementType;
|
|
102
|
+
pre?: ElementType;
|
|
103
|
+
/** Componente customizado para tabelas */
|
|
104
|
+
table?: ElementType;
|
|
105
|
+
thead?: ElementType;
|
|
106
|
+
tbody?: ElementType;
|
|
107
|
+
tr?: ElementType;
|
|
108
|
+
th?: ElementType;
|
|
109
|
+
td?: ElementType;
|
|
110
|
+
/** Componente customizado para links */
|
|
111
|
+
a?: ElementType;
|
|
112
|
+
/** Componente customizado para imagens */
|
|
113
|
+
img?: ElementType;
|
|
114
|
+
/** Componente customizado para HR */
|
|
115
|
+
hr?: ElementType;
|
|
116
|
+
/** Componente customizado para strong/bold */
|
|
117
|
+
strong?: ElementType;
|
|
118
|
+
/** Componente customizado para emphasis/italic */
|
|
119
|
+
em?: ElementType;
|
|
120
|
+
/** Componente customizado para del */
|
|
121
|
+
del?: ElementType;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Props do componente ArchbaseMarkdown
|
|
125
|
+
*/
|
|
126
|
+
export interface ArchbaseMarkdownProps {
|
|
127
|
+
/** Conteúdo Markdown a ser renderizado */
|
|
128
|
+
children: string;
|
|
129
|
+
/** --- Opções de Código --- */
|
|
130
|
+
codeOptions?: CodeOptions;
|
|
131
|
+
/** --- Opções de Links --- */
|
|
132
|
+
linkOptions?: LinkOptions;
|
|
133
|
+
/** --- Opções de Tabela --- */
|
|
134
|
+
tableOptions?: TableOptions;
|
|
135
|
+
/** --- Opções de Lista --- */
|
|
136
|
+
listOptions?: ListOptions;
|
|
137
|
+
/** --- Opções de Plugins --- */
|
|
138
|
+
pluginOptions?: PluginOptions;
|
|
139
|
+
/** --- Componentes Customizados --- */
|
|
140
|
+
components?: CustomComponents;
|
|
141
|
+
/** --- Estilização --- */
|
|
142
|
+
style?: CSSProperties;
|
|
143
|
+
className?: string;
|
|
144
|
+
contentClassName?: string;
|
|
145
|
+
/** --- Estados --- */
|
|
146
|
+
disabled?: boolean;
|
|
147
|
+
loading?: ReactNode;
|
|
148
|
+
error?: ReactNode;
|
|
149
|
+
/** --- Eventos --- */
|
|
150
|
+
onLoadStart?: () => void;
|
|
151
|
+
onLoadEnd?: () => void;
|
|
152
|
+
onError?: (error: Error) => void;
|
|
153
|
+
onLinkClick?: (href: string) => void | boolean;
|
|
154
|
+
/** --- Acessibilidade --- */
|
|
155
|
+
ariaLabel?: string;
|
|
156
|
+
role?: string;
|
|
157
|
+
/** --- Outros --- */
|
|
158
|
+
/** Permitir saltos de linha extras */
|
|
159
|
+
skipHtml?: boolean;
|
|
160
|
+
/** Desabilitar quebras de linha automáticas */
|
|
161
|
+
unwrapDisallowed?: boolean;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Props internas para componentes de código
|
|
165
|
+
*/
|
|
166
|
+
export interface CodeBlockProps {
|
|
167
|
+
language?: string;
|
|
168
|
+
value?: string;
|
|
169
|
+
className?: string;
|
|
170
|
+
showLineNumbers?: boolean;
|
|
171
|
+
theme?: SyntaxHighlightTheme;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Props internas para link renderer
|
|
175
|
+
*/
|
|
176
|
+
export interface LinkRendererProps {
|
|
177
|
+
href?: string;
|
|
178
|
+
children?: ReactNode;
|
|
179
|
+
openExternalInNewTab?: boolean;
|
|
180
|
+
onClick?: (href: string) => void | boolean;
|
|
181
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { CodeBlockProps } from '../ArchbaseMarkdown.types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente para renderização de blocos de código
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <CodeBlock
|
|
9
|
+
* language="typescript"
|
|
10
|
+
* value="const x = 42;"
|
|
11
|
+
* showLineNumbers
|
|
12
|
+
* theme="github-dark"
|
|
13
|
+
* />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function ArchbaseCodeBlock({ language, value, className, showLineNumbers, theme, }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* Componente para código inline
|
|
19
|
+
*/
|
|
20
|
+
export declare function ArchbaseInlineCode({ children, className, }: {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { LinkRendererProps } from '../ArchbaseMarkdown.types';
|
|
2
|
+
/**
|
|
3
|
+
* Renderizador de links para Markdown
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* <LinkRenderer
|
|
8
|
+
* href="https://example.com"
|
|
9
|
+
* openExternalInNewTab
|
|
10
|
+
* onClick={(href) => console.log('Clicked:', href)}
|
|
11
|
+
* >
|
|
12
|
+
* Link Text
|
|
13
|
+
* </LinkRenderer>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function ArchbaseLinkRenderer({ href, children, openExternalInNewTab, onClick, }: LinkRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArchbaseMarkdown - Markdown Renderer Component
|
|
3
|
+
*
|
|
4
|
+
* Baseado em react-markdown com plugins remark/rehype.
|
|
5
|
+
* Suporta GitHub Flavored Markdown, syntax highlighting,
|
|
6
|
+
* HTML inline, e componentes customizados.
|
|
7
|
+
*/
|
|
8
|
+
export { ArchbaseMarkdown } from './ArchbaseMarkdown';
|
|
9
|
+
export { ArchbaseCodeBlock, ArchbaseInlineCode } from './components/CodeBlock';
|
|
10
|
+
export { ArchbaseLinkRenderer } from './components/LinkRenderer';
|
|
11
|
+
export type { ArchbaseMarkdownProps, CodeOptions, CodeInlineStyle, LinkOptions, ListOptions, PluginOptions, CustomComponents, SyntaxHighlightTheme, TableOptions, CodeBlockProps, LinkRendererProps, } from './ArchbaseMarkdown.types';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
+
export interface ArchbaseMasonryContextValue<T, ID> {
|
|
4
|
+
/** Fonte de dados do masonry (V1 ou V2) */
|
|
5
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
6
|
+
/** Function para notificar o masonry que o item foi selecionado */
|
|
7
|
+
handleSelectItem?: (index: number, data: T) => void;
|
|
8
|
+
/** Id do masonry pai */
|
|
9
|
+
ownerId?: any;
|
|
10
|
+
/** Cor de fundo do item ativo definido globalmente no masonry */
|
|
11
|
+
activeBackgroundColor?: string;
|
|
12
|
+
/** Cor da fonte do item ativo definido globalmente no masonry */
|
|
13
|
+
activeColor?: string;
|
|
14
|
+
/** Evento gerado quando o mouse está sobre um item */
|
|
15
|
+
onItemEnter?: (event: React.MouseEvent, data: any) => void;
|
|
16
|
+
/** Evento gerado quando o mouse sai de um item */
|
|
17
|
+
onItemLeave?: (event: React.MouseEvent, data: any) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const ArchbaseMasonryContext: React.Context<ArchbaseMasonryContextValue<any, any>>;
|
|
20
|
+
export declare const ArchbaseMasonryProvider: React.Provider<ArchbaseMasonryContextValue<any, any>>;
|
|
21
|
+
export default ArchbaseMasonryContext;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArchbaseMasonry — layout masonry responsivo com provider de contexto.
|
|
3
|
+
* @status stable
|
|
4
|
+
*/
|
|
5
|
+
import React, { ReactNode } from 'react';
|
|
6
|
+
export interface ArchbaseMasonryCustomItemProps<T, _ID> {
|
|
7
|
+
/** Chave */
|
|
8
|
+
key: string;
|
|
9
|
+
/** Id do item */
|
|
10
|
+
id: any;
|
|
11
|
+
/** Indicador se o Item está ativo */
|
|
12
|
+
active: boolean;
|
|
13
|
+
/** Indice dentro da lista */
|
|
14
|
+
index: number;
|
|
15
|
+
/** Registro contendo dados de uma linha na lista */
|
|
16
|
+
recordData: T;
|
|
17
|
+
/** Indicador se item da lista está desabilitado */
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ArchbaseMasonryProps {
|
|
21
|
+
children: ReactNode | ReactNode[];
|
|
22
|
+
columnsCount?: number;
|
|
23
|
+
gutter?: string;
|
|
24
|
+
className?: string | null;
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
}
|
|
27
|
+
export declare const ArchbaseMasonry: React.FC<ArchbaseMasonryProps>;
|
|
28
|
+
interface ArchbaseMasonryResponsiveProps {
|
|
29
|
+
columnsCountBreakPoints?: Record<number, number>;
|
|
30
|
+
children: React.ReactNode | React.ReactNode[];
|
|
31
|
+
className?: string | null;
|
|
32
|
+
style?: React.CSSProperties | null;
|
|
33
|
+
}
|
|
34
|
+
export declare const ArchbaseMasonryResponsive: React.FC<ArchbaseMasonryResponsiveProps>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import ArchbaseMasonryContext, { ArchbaseMasonryProvider } from './ArchbaseMasonry.context';
|
|
2
|
+
export { ArchbaseMasonry, ArchbaseMasonryResponsive } from './ArchbaseMasonry';
|
|
3
|
+
export type { ArchbaseMasonryCustomItemProps } from './ArchbaseMasonry';
|
|
4
|
+
export type { ArchbaseMasonryContextValue } from './ArchbaseMasonry.context';
|
|
5
|
+
export { ArchbaseMasonryContext, ArchbaseMasonryProvider };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArchbaseAlert — wrapper de alerta (Mantine Alert) para feedback rápido.
|
|
3
|
+
* @status stable
|
|
4
|
+
*/
|
|
5
|
+
import { AlertProps, AlertVariant, MantineColor } from '@mantine/core';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
export interface ArchbaseAlertProps extends AlertProps {
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
variant?: AlertVariant | string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
color?: MantineColor;
|
|
12
|
+
titleColor?: MantineColor;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
withCloseButton?: boolean;
|
|
15
|
+
onClose?: () => void;
|
|
16
|
+
autoClose?: number;
|
|
17
|
+
closeButtonLabel?: string;
|
|
18
|
+
radius?: string | number | undefined;
|
|
19
|
+
withBorder?: boolean;
|
|
20
|
+
backgroundColor?: MantineColor;
|
|
21
|
+
}
|
|
22
|
+
export declare function ArchbaseAlert(props: ArchbaseAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ContextModalProps } from '@mantine/modals';
|
|
2
|
+
import { ChangeEventHandler, ReactNode } from 'react';
|
|
3
|
+
export declare class ArchbaseDialog {
|
|
4
|
+
static showConfirmDialogYesNo: (title: string, question: string, onConfirm: () => void, onCancel: () => void) => void;
|
|
5
|
+
static showInfo: (message: ReactNode, title?: string, onConfirm?: () => void) => void;
|
|
6
|
+
static showWarning: (message: ReactNode, title?: string, onConfirm?: () => void) => void;
|
|
7
|
+
static showSuccess: (message: ReactNode, title?: string, onConfirm?: () => void) => void;
|
|
8
|
+
static showError: (message: ReactNode, title?: string, onConfirm?: () => void) => void;
|
|
9
|
+
static showErrorWithDetails: (title: string, message: string, detailMessage?: string, onConfirm?: () => void) => void;
|
|
10
|
+
static showInputDialog: (label: string, placeholder?: string, title?: string, onInputChange?: ChangeEventHandler<any> | undefined, onConfirm?: () => void, onCancel?: () => void) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const CustomShowErrorModal: ({ context, id, innerProps, }: ContextModalProps<{
|
|
13
|
+
message: ReactNode;
|
|
14
|
+
detailMessage?: ReactNode;
|
|
15
|
+
onConfirm?: () => void;
|
|
16
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class ArchbaseNotifications {
|
|
2
|
+
static showError(title: string, error: string, autoClose?: number, variant?: string): void;
|
|
3
|
+
static showSuccess(title: string, message: string, autoClose?: number, variant?: string): void;
|
|
4
|
+
static showWarning(title: string, message: string, autoClose?: number, variant?: string): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { OnboardingTourStep } from '@gfazioli/mantine-onboarding-tour';
|
|
3
|
+
export interface ArchbaseOnboardingTourStep {
|
|
4
|
+
/**
|
|
5
|
+
* ID único do step
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Seletor CSS do elemento a ser destacado
|
|
10
|
+
*/
|
|
11
|
+
target?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Título do step
|
|
14
|
+
*/
|
|
15
|
+
title?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Conteúdo/descrição do step
|
|
18
|
+
*/
|
|
19
|
+
content?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export interface ArchbaseOnboardingTourProps {
|
|
22
|
+
/**
|
|
23
|
+
* Array de steps do tour
|
|
24
|
+
*/
|
|
25
|
+
steps: ArchbaseOnboardingTourStep[];
|
|
26
|
+
/**
|
|
27
|
+
* Callback quando o tour é iniciado
|
|
28
|
+
*/
|
|
29
|
+
onStart?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Callback quando o tour é finalizado
|
|
32
|
+
*/
|
|
33
|
+
onEnd?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Callback quando o step muda
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (step: OnboardingTourStep) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Iniciar o tour automaticamente ao montar o componente
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
autoStart?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Se o tour deve ser repetido (loop)
|
|
45
|
+
*/
|
|
46
|
+
loop?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Conteúdo da aplicação (children é obrigatório no componente base)
|
|
49
|
+
*/
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Componente ArchbaseOnboardingTour
|
|
54
|
+
*
|
|
55
|
+
* Wrapper sobre @gfazioli/mantine-onboarding-tour para criar tours interativos
|
|
56
|
+
* de onboarding em aplicações React. Ideal para introduzir novos usuários às
|
|
57
|
+
* funcionalidades do sistema.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* function App() {
|
|
62
|
+
* const tourSteps: ArchbaseOnboardingTourStep[] = [
|
|
63
|
+
* {
|
|
64
|
+
* id: 'welcome',
|
|
65
|
+
* target: '#dashboard',
|
|
66
|
+
* title: 'Bem-vindo ao Dashboard',
|
|
67
|
+
* content: 'Aqui você pode ver todas as suas métricas.',
|
|
68
|
+
* },
|
|
69
|
+
* {
|
|
70
|
+
* id: 'settings',
|
|
71
|
+
* target: '#settings',
|
|
72
|
+
* title: 'Configurações',
|
|
73
|
+
* content: 'Ajuste suas preferências aqui.',
|
|
74
|
+
* },
|
|
75
|
+
* ];
|
|
76
|
+
*
|
|
77
|
+
* return (
|
|
78
|
+
* <ArchbaseOnboardingTour
|
|
79
|
+
* steps={tourSteps}
|
|
80
|
+
* autoStart={true}
|
|
81
|
+
* onEnd={() => console.log('Tour finalizado!')}
|
|
82
|
+
* >
|
|
83
|
+
* <YourAppContent />
|
|
84
|
+
* </ArchbaseOnboardingTour>
|
|
85
|
+
* );
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare function ArchbaseOnboardingTour({ steps, onStart, onEnd, onChange, autoStart, loop, children, }: ArchbaseOnboardingTourProps): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
/**
|
|
91
|
+
* Hook simplificado para controlar o tour programaticamente
|
|
92
|
+
*
|
|
93
|
+
* Para controle programático completo, use o hook `useOnboardingTour`
|
|
94
|
+
* diretamente de @gfazioli/mantine-onboarding-tour
|
|
95
|
+
*/
|
|
96
|
+
export declare function useArchbaseOnboarding(): {
|
|
97
|
+
start: () => void;
|
|
98
|
+
stop: () => void;
|
|
99
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ArchbaseThermalPrinterProps, ReceiptData } from './ArchbaseThermalPrinter.types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente ArchbaseThermalPrinter - Impressão térmica ESC/POS
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* <ArchbaseThermalPrinter
|
|
8
|
+
* data={{
|
|
9
|
+
* header: { title: 'Minha Loja', address: ['Rua X, 123'] },
|
|
10
|
+
* items: [{ name: 'Produto 1', quantity: 2, price: 10.00 }],
|
|
11
|
+
* summary: { total: 20.00 }
|
|
12
|
+
* }}
|
|
13
|
+
* onPrintComplete={() => console.log('Impresso!')}
|
|
14
|
+
* />
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function ArchbaseThermalPrinter({ data, options, printerId, autoPrint, template, style, className, disabled, loading, error, onPrintStart, onPrintComplete, onError, onStatusChange, showPreview, previewActions, ariaLabel, title, }: ArchbaseThermalPrinterProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare namespace ArchbaseThermalPrinter {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Componente para teste rápido de impressão
|
|
23
|
+
*/
|
|
24
|
+
export declare function QuickPrintButton({ data, onPrint, }: {
|
|
25
|
+
data: ReceiptData;
|
|
26
|
+
onPrint?: () => void;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|