@thebuoyant-tsdev/mui-ts-library 1.3.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/LICENSE +21 -0
- package/README.de.md +224 -0
- package/README.md +224 -0
- package/dist/components/confirm-dialog/ConfirmDialog.types.d.ts +21 -0
- package/dist/components/confirm-dialog/ConfirmDialogProvider.d.ts +5 -0
- package/dist/components/gantt-chart/GanttChart.constants.d.ts +11 -0
- package/dist/components/gantt-chart/GanttChart.d.ts +7 -0
- package/dist/components/gantt-chart/GanttChart.store.d.ts +28 -0
- package/dist/components/gantt-chart/GanttChart.types.d.ts +119 -0
- package/dist/components/gantt-chart/GanttDeleteDialog.d.ts +9 -0
- package/dist/components/gantt-chart/GanttTaskDialog.d.ts +11 -0
- package/dist/components/gantt-chart/GanttTaskPanel.d.ts +21 -0
- package/dist/components/gantt-chart/GanttTimeline.d.ts +19 -0
- package/dist/components/gantt-chart/GanttTimelineHeader.d.ts +17 -0
- package/dist/components/gantt-chart/GanttToolbar.d.ts +7 -0
- package/dist/components/gantt-chart/util/gantt-chart.util.d.ts +80 -0
- package/dist/components/json-editor/JsonEditor.d.ts +2 -0
- package/dist/components/json-editor/JsonEditor.types.d.ts +60 -0
- package/dist/components/json-editor/JsonEditorContent.d.ts +17 -0
- package/dist/components/json-editor/JsonEditorFooter.d.ts +13 -0
- package/dist/components/json-editor/JsonEditorToolbar.d.ts +11 -0
- package/dist/components/password-strength-meter/PasswordStrengthMeter.d.ts +2 -0
- package/dist/components/password-strength-meter/PasswordStrengthMeter.types.d.ts +56 -0
- package/dist/components/password-strength-meter/util/password-strength.util.d.ts +2 -0
- package/dist/components/rich-text-editor/RichTextEditor.d.ts +2 -0
- package/dist/components/rich-text-editor/RichTextEditor.types.d.ts +72 -0
- package/dist/components/rich-text-editor/RichTextEditorColorPicker.d.ts +12 -0
- package/dist/components/rich-text-editor/RichTextEditorContent.d.ts +9 -0
- package/dist/components/rich-text-editor/RichTextEditorFooter.d.ts +11 -0
- package/dist/components/rich-text-editor/RichTextEditorLinkDialog.d.ts +10 -0
- package/dist/components/rich-text-editor/RichTextEditorToolbar.d.ts +10 -0
- package/dist/components/rich-text-editor/util/rich-text-editor.util.d.ts +9 -0
- package/dist/components/sql-editor/SqlEditor.d.ts +2 -0
- package/dist/components/sql-editor/SqlEditor.types.d.ts +73 -0
- package/dist/components/sql-editor/SqlEditorContent.d.ts +23 -0
- package/dist/components/sql-editor/SqlEditorFooter.d.ts +13 -0
- package/dist/components/sql-editor/SqlEditorToolbar.d.ts +12 -0
- package/dist/components/tag-selection/TagSelection.d.ts +2 -0
- package/dist/components/tag-selection/TagSelection.store.d.ts +12 -0
- package/dist/components/tag-selection/TagSelection.types.d.ts +41 -0
- package/dist/components/tag-selection/TagSelectionAutocomplete.d.ts +18 -0
- package/dist/components/tag-selection/TagSelectionChip.d.ts +10 -0
- package/dist/components/tag-selection/TagSelectionSelectedTags.d.ts +13 -0
- package/dist/index.cjs +230 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +43753 -0
- package/package.json +175 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type TagColor = "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
2
|
+
export type TagSelectionItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
color?: TagColor;
|
|
8
|
+
foregroundColor?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
};
|
|
11
|
+
export type TagSelectionTranslation = {
|
|
12
|
+
selectedTagsLabel: string;
|
|
13
|
+
autoCompleteLabel: string;
|
|
14
|
+
noSelectedTagsText: string;
|
|
15
|
+
noAvailableTagsText: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
loadingText: string;
|
|
18
|
+
maxTagsReachedText: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const DEFAULT_TAG_SELECTION_TRANSLATION: TagSelectionTranslation;
|
|
21
|
+
export type TagSelectionProps = {
|
|
22
|
+
tags: TagSelectionItem[];
|
|
23
|
+
showSelectedTags?: boolean;
|
|
24
|
+
showSelectedTagsLabel?: boolean;
|
|
25
|
+
showAutoComplete?: boolean;
|
|
26
|
+
translation?: Partial<TagSelectionTranslation>;
|
|
27
|
+
inputSize?: "small" | "medium";
|
|
28
|
+
chipSize?: "small" | "medium";
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
maxTags?: number;
|
|
32
|
+
allowCreate?: boolean;
|
|
33
|
+
maxVisibleChips?: number;
|
|
34
|
+
popoverPlacement?: "top" | "bottom";
|
|
35
|
+
listboxMaxHeight?: number;
|
|
36
|
+
onTagSelect?: (tag: TagSelectionItem, selectedTags: TagSelectionItem[], allTags: TagSelectionItem[]) => void;
|
|
37
|
+
onTagDelete?: (tag: TagSelectionItem, selectedTags: TagSelectionItem[], allTags: TagSelectionItem[]) => void;
|
|
38
|
+
onTagsChange?: (selectedTags: TagSelectionItem[], allTags: TagSelectionItem[]) => void;
|
|
39
|
+
onSearchChange?: (searchValue: string) => void;
|
|
40
|
+
onTagCreate?: (label: string, color: TagColor) => void;
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TagColor, TagSelectionItem, TagSelectionTranslation } from "./TagSelection.types";
|
|
2
|
+
type TagSelectionAutocompleteProps = {
|
|
3
|
+
inputSize: "medium" | "small";
|
|
4
|
+
chipSize: "medium" | "small";
|
|
5
|
+
availableTags: TagSelectionItem[];
|
|
6
|
+
searchValue: string;
|
|
7
|
+
translation: TagSelectionTranslation;
|
|
8
|
+
onSearchChange: (value: string) => void;
|
|
9
|
+
onTagSelect: (tag: TagSelectionItem) => void;
|
|
10
|
+
onTagCreate?: (label: string, color: TagColor) => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
isMaxReached?: boolean;
|
|
14
|
+
allowCreate?: boolean;
|
|
15
|
+
listboxMaxHeight?: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function TagSelectionAutocomplete({ availableTags, searchValue, translation, onSearchChange, onTagSelect, onTagCreate, inputSize, chipSize, disabled, loading, isMaxReached, allowCreate, listboxMaxHeight, }: TagSelectionAutocompleteProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TagSelectionItem } from "./TagSelection.types";
|
|
2
|
+
type TagSelectionChipProps = {
|
|
3
|
+
tag: TagSelectionItem;
|
|
4
|
+
onDelete?: (tag: TagSelectionItem) => void;
|
|
5
|
+
onClick?: (tag: TagSelectionItem) => void;
|
|
6
|
+
chipSize: "small" | "medium";
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function TagSelectionChip({ tag, onDelete, onClick, chipSize, disabled, }: TagSelectionChipProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TagSelectionItem, TagSelectionTranslation } from "./TagSelection.types";
|
|
2
|
+
type TagSelectionSelectedTagsProps = {
|
|
3
|
+
selectedTags: TagSelectionItem[];
|
|
4
|
+
translation: TagSelectionTranslation;
|
|
5
|
+
onTagDelete: (tag: TagSelectionItem) => void;
|
|
6
|
+
showSelectedTagsLabel: boolean;
|
|
7
|
+
chipSize: "small" | "medium";
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
maxVisibleChips?: number;
|
|
10
|
+
popoverPlacement?: "top" | "bottom";
|
|
11
|
+
};
|
|
12
|
+
export declare function TagSelectionSelectedTags({ selectedTags, translation, onTagDelete, showSelectedTagsLabel, chipSize, disabled, maxVisibleChips, popoverPlacement, }: TagSelectionSelectedTagsProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|