@myunisoft/design-system 1.3.4 → 1.4.0-I18n-QM
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/assets/I18n/locales/en.d.ts +58 -2
- package/dist/assets/I18n/locales/fr.d.ts +59 -2
- package/dist/assets/theme/styles.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete/AutocompleteTag/index.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete/types.d.ts +3 -0
- package/dist/components/Autocomplete/AutocompleteMultiple/Results/styles.d.ts +1 -1
- package/dist/components/Autocomplete/AutocompleteMultiple/styles.d.ts +1 -1
- package/dist/components/BackgroundLoader/styles.d.ts +1 -1
- package/dist/components/DocumentComposer/Treeview/SkeletonTreeItem.d.ts +3 -0
- package/dist/components/DocumentComposer/Treeview/TreeviewSkeleton.d.ts +2 -0
- package/dist/components/DocumentComposer/Treeview/slots/LabelInputSlot.d.ts +1 -0
- package/dist/components/DocumentComposer/Treeview/types.d.ts +5 -0
- package/dist/components/DocumentComposer/hooks/useTemporarySection.d.ts +2 -2
- package/dist/components/DocumentComposer/index.d.ts +7 -8
- package/dist/components/FileDropper/styles.d.ts +1 -1
- package/dist/components/RichTextEditor/components/AlignmentSplitButton.d.ts +10 -0
- package/dist/components/RichTextEditor/components/EditorToolbarButton.d.ts +7 -0
- package/dist/components/RichTextEditor/components/FontColorButton.d.ts +5 -0
- package/dist/components/RichTextEditor/components/ImageButton.d.ts +7 -0
- package/dist/components/RichTextEditor/components/ImageResizeObserver.d.ts +2 -0
- package/dist/components/RichTextEditor/components/LinkButton.d.ts +8 -0
- package/dist/components/RichTextEditor/components/SplitButton.d.ts +16 -0
- package/dist/components/RichTextEditor/components/TableBubbleMenu.d.ts +2 -0
- package/dist/components/RichTextEditor/components/Toolbar.d.ts +22 -0
- package/dist/components/RichTextEditor/extensions/TableWithAlignment.d.ts +1 -0
- package/dist/components/RichTextEditor/index.d.ts +18 -0
- package/dist/components/RichTextEditor/styles.d.ts +1 -0
- package/dist/components/VirtualTable/components/Body/Cell/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/ColumnsSetting/Table/index.d.ts +2 -1
- package/dist/components/VirtualTable/components/ColumnsSetting/useColumnsConfig.d.ts +102 -0
- package/dist/components/VirtualTable/components/ExportDialog/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Footer/Cell/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Header/Cell/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/Image/styles.d.ts +1 -1
- package/dist/components/VirtualTable/components/SearchBar/component/FilterChip/styles.d.ts +1 -1
- package/dist/components/VirtualTable/helpers/group.d.ts +1 -1
- package/dist/components/VirtualTable/hooks/useGroupHelpers.d.ts +3 -0
- package/dist/components/VirtualTable/styles.d.ts +1 -1
- package/dist/components/VirtualTable/utils.d.ts +1 -1
- package/dist/constants/i18n.d.ts +1 -0
- package/dist/helpers/validation/index.d.ts +3 -1
- package/dist/helpers/validation/useValidators.d.ts +8 -0
- package/dist/helpers/validation/validatorFactories.d.ts +10 -0
- package/dist/helpers/validation/validators.d.ts +2 -7
- package/dist/hooks/useDSTranslation.d.ts +4 -0
- package/dist/i18n/instance.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -5
- package/dist/locale/index.d.ts +15 -2
- package/dist/providers/DSProvider/index.d.ts +7 -0
- package/package.json +159 -115
- package/dist/components/AnchoredPopper/index.d.ts +0 -14
- package/dist/components/Autocomplete/Autocomplete/example-usage.d.ts +0 -4
- package/dist/components/DataGrid/components/toolbar/buttons/AddButton.d.ts +0 -6
- package/dist/components/DataGrid/components/toolbar/buttons/ExportButton.d.ts +0 -9
- package/dist/components/DataGrid/types/index.d.ts +0 -428
- package/dist/components/DocumentComposer/hooks/useDragVisualFeedback.d.ts +0 -15
- package/dist/components/DocumentComposer/types/props.d.ts +0 -67
- package/dist/components/DocumentComposer/types/section.d.ts +0 -33
- package/dist/components/DocumentComposer/types.d.ts +0 -56
- package/dist/components/Export/index.d.ts +0 -3
- package/dist/components/Export/style/index.d.ts +0 -9
- package/dist/components/Export/types/index.d.ts +0 -30
- package/dist/components/VirtualTable/components/ColumnsSetting/config.d.ts +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DS_NAMESPACE = "designSystem";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
declare const validate: (row: any, rules: any) => {};
|
|
2
|
-
|
|
2
|
+
type ValidatorFn = (obj: unknown, key: string) => string | undefined;
|
|
3
|
+
declare const pipe: (...fns: ValidatorFn[]) => (obj: unknown, key: string) => string | null;
|
|
3
4
|
export { validate, pipe };
|
|
5
|
+
export { useValidators } from './useValidators';
|
|
4
6
|
export * from './validators';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const useValidators: () => {
|
|
2
|
+
positive: (message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
3
|
+
required: (message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
4
|
+
date: (message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
5
|
+
after: (beforeKey: string, message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
6
|
+
min: (minValue: number, message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
7
|
+
max: (maxValue: number, message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type TranslationFn = (key: string, options?: object) => unknown;
|
|
2
|
+
export declare const createValidators: (t: TranslationFn) => {
|
|
3
|
+
positive: (message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
4
|
+
required: (message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
5
|
+
date: (message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
6
|
+
after: (beforeKey: string, message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
7
|
+
min: (minValue: number, message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
8
|
+
max: (maxValue: number, message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
declare const positive: (message:
|
|
2
|
-
|
|
3
|
-
declare const date: (message: any) => (obj: any, key: any) => any;
|
|
4
|
-
declare const after: (beforeKey: any, message?: any) => (obj: any, key: any) => any;
|
|
5
|
-
declare const min: (minValue: any, message: any) => (obj: any, key: any) => any;
|
|
6
|
-
declare const max: (maxValue: any, message: any) => (obj: any, key: any) => any;
|
|
7
|
-
export { after, date, positive, required, min, max };
|
|
1
|
+
declare const positive: (message?: string) => (obj: unknown, key: string) => string | undefined, required: (message?: string) => (obj: unknown, key: string) => string | undefined, date: (message?: string) => (obj: unknown, key: string) => string | undefined, after: (beforeKey: string, message?: string) => (obj: unknown, key: string) => string | undefined, min: (minValue: number, message?: string) => (obj: unknown, key: string) => string | undefined, max: (maxValue: number, message?: string) => (obj: unknown, key: string) => string | undefined;
|
|
2
|
+
export { after, date, max, min, positive, required };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { UseTranslationOptions } from 'react-i18next';
|
|
2
|
+
type DSTranslationOptions = Omit<UseTranslationOptions<string>, 'i18n'>;
|
|
3
|
+
export declare const useDSTranslation: (options?: DSTranslationOptions) => import("react-i18next").UseTranslationResponse<"designSystem", string>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const internalI18n: import("i18next").i18n;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as dsI18nextEn } from './assets/I18n/locales/en';
|
|
2
|
+
export { default as dsI18nextFr } from './assets/I18n/locales/fr';
|
|
1
3
|
export { default as AccordionSection } from './components/AccordionSection';
|
|
2
4
|
export { default as Autocomplete } from './components/Autocomplete/Autocomplete';
|
|
3
5
|
export { default as AutocompleteMultiple } from './components/Autocomplete/AutocompleteMultiple';
|
|
@@ -25,3 +27,4 @@ export { exportData } from './components/VirtualTable/helpers/file';
|
|
|
25
27
|
export { useDataManager } from './components/VirtualTable/hooks';
|
|
26
28
|
export { ROW_TYPE } from './components/VirtualTable/utils';
|
|
27
29
|
export * from './helpers';
|
|
30
|
+
export * from './locale';
|