@agentatom/design-system 1.4.78 → 1.4.80
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 +2 -2
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +72 -2
- package/dist/index.es.js +1698 -1607
- package/dist/light.css +100 -2
- package/dist/tokens.css +24 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -250,8 +250,9 @@ export declare function BottomSheet(props: BottomSheetProps): JSX.Element;
|
|
|
250
250
|
|
|
251
251
|
export interface CardProps extends HTMLAttributes<HTMLElement> {
|
|
252
252
|
children?: ReactNode;
|
|
253
|
-
padding?: 's' | 'm' | 'l';
|
|
254
|
-
|
|
253
|
+
padding?: 's' | 'm' | 'l' | 'none';
|
|
254
|
+
/** default = transparent + border; interactive = surface fill. `info` kept as alias of default. */
|
|
255
|
+
variant?: 'default' | 'info' | 'interactive';
|
|
255
256
|
/** @deprecated use variant="interactive" */
|
|
256
257
|
hover?: boolean;
|
|
257
258
|
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
@@ -1055,3 +1056,72 @@ export interface UseShakeReturn {
|
|
|
1055
1056
|
}
|
|
1056
1057
|
|
|
1057
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>;
|