@agentatom/design-system 1.4.79 → 1.4.81
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/README.md +42 -2
- package/dist/appearance.json +41 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +69 -0
- package/dist/index.es.js +1603 -1514
- package/dist/tokens.css +77 -3
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1056,3 +1056,72 @@ export interface UseShakeReturn {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
1058
|
export declare function useShake(): UseShakeReturn;
|
|
1059
|
+
|
|
1060
|
+
// ─── Locale / i18n ────────────────────────────────────────────────────────────
|
|
1061
|
+
|
|
1062
|
+
/** Default English chrome strings used by DS components. */
|
|
1063
|
+
export interface DesignSystemStrings {
|
|
1064
|
+
close: string;
|
|
1065
|
+
closeModal: string;
|
|
1066
|
+
closeAlert: string;
|
|
1067
|
+
dismiss: string;
|
|
1068
|
+
loading: string;
|
|
1069
|
+
next: string;
|
|
1070
|
+
back: string;
|
|
1071
|
+
skipTour: string;
|
|
1072
|
+
done: string;
|
|
1073
|
+
previousPage: string;
|
|
1074
|
+
nextPage: string;
|
|
1075
|
+
pagination: string;
|
|
1076
|
+
pageN: string;
|
|
1077
|
+
breadcrumb: string;
|
|
1078
|
+
recents: string;
|
|
1079
|
+
steps: string;
|
|
1080
|
+
stepN: string;
|
|
1081
|
+
stepOf: string;
|
|
1082
|
+
copyToClipboard: string;
|
|
1083
|
+
selectOption: string;
|
|
1084
|
+
like: string;
|
|
1085
|
+
dislike: string;
|
|
1086
|
+
removeImage: string;
|
|
1087
|
+
attachFiles: string;
|
|
1088
|
+
stop: string;
|
|
1089
|
+
send: string;
|
|
1090
|
+
toggleVisibility: string;
|
|
1091
|
+
decrease: string;
|
|
1092
|
+
increase: string;
|
|
1093
|
+
sources: string;
|
|
1094
|
+
moreSources: string;
|
|
1095
|
+
pageAbbrev: string;
|
|
1096
|
+
code: string;
|
|
1097
|
+
promptPlaceholder: string;
|
|
1098
|
+
dropFilesHere: string;
|
|
1099
|
+
fileTooLarge: string;
|
|
1100
|
+
fileTooLargeMaxHint: string;
|
|
1101
|
+
filesSkipped: string;
|
|
1102
|
+
maxImages: string;
|
|
1103
|
+
uploading: string;
|
|
1104
|
+
removeAttachment: string;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
export declare const defaultStrings: DesignSystemStrings;
|
|
1108
|
+
|
|
1109
|
+
export declare function formatString(
|
|
1110
|
+
template: string | ((vars: Record<string, string | number>) => string),
|
|
1111
|
+
vars?: Record<string, string | number>
|
|
1112
|
+
): string;
|
|
1113
|
+
|
|
1114
|
+
export interface LocaleContextValue {
|
|
1115
|
+
strings: DesignSystemStrings & Record<string, string>;
|
|
1116
|
+
t: (key: string, vars?: Record<string, string | number>) => string;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
export interface LocaleProviderProps {
|
|
1120
|
+
/** Partial override of default English strings (e.g. Russian labels). */
|
|
1121
|
+
strings?: Partial<DesignSystemStrings> & Record<string, string>;
|
|
1122
|
+
children: ReactNode;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export declare function LocaleProvider(props: LocaleProviderProps): JSX.Element;
|
|
1126
|
+
export declare function useLocale(): LocaleContextValue;
|
|
1127
|
+
export declare function useStrings(): DesignSystemStrings & Record<string, string>;
|