@llmnative/react 1.29.0 → 1.30.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/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1396 -1340
- package/dist/index.mjs.map +1 -1
- package/dist/types/src/Theme.d.ts +4 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/ui/Identicon.d.ts +17 -0
- package/llms-full.txt +1283 -1271
- package/package.json +1 -1
- package/themes/cyber.ts +4 -0
- package/themes/default.ts +4 -0
- package/themes/flat.ts +4 -0
|
@@ -30,6 +30,7 @@ export type { GallerySelectionChangeHandler, GallerySelectionState } from './ui/
|
|
|
30
30
|
export * from './ui/GridSystem';
|
|
31
31
|
export { default as Image } from './ui/Image';
|
|
32
32
|
export { default as ImageAvatar } from './ui/ImageAvatar';
|
|
33
|
+
export { default as Identicon, identiconPattern } from './ui/Identicon';
|
|
33
34
|
export { default as Loader } from './ui/Loader';
|
|
34
35
|
export { default as LocaleSwitcher } from './ui/LocaleSwitcher';
|
|
35
36
|
export type { LocaleSwitcherProps } from './ui/LocaleSwitcher';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { UIProps } from '../types';
|
|
3
|
+
interface IdenticonProps extends UIProps {
|
|
4
|
+
/** What the icon stands for: a repository, a tenant, a user name… */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Width and height in pixels. */
|
|
7
|
+
size?: number;
|
|
8
|
+
/** Accessible name. Without it the icon is decorative (`aria-hidden`). */
|
|
9
|
+
title?: string;
|
|
10
|
+
}
|
|
11
|
+
/** The filled cells (row, column) and the hue of a value. Exported for tests. */
|
|
12
|
+
export declare function identiconPattern(value: string): {
|
|
13
|
+
cells: Array<[number, number]>;
|
|
14
|
+
hue: number;
|
|
15
|
+
};
|
|
16
|
+
declare const Identicon: ({ value, size, title, before, after, wrapperClassName, className, }: IdenticonProps) => React.JSX.Element;
|
|
17
|
+
export default Identicon;
|