gantri-components 2.211.0 → 2.213.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/components/badge/badge.styles.d.ts +1 -1
- package/dist/components/badge/badge.types.d.ts +4 -0
- package/dist/components/icon/icon-catalog.d.ts +23 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/option-selector/option-selector.types.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BadgeProps } from './badge.types';
|
|
3
|
-
export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<BadgeProps, "color" | "size" | "minWidth" | "width" | "variant" | "opacity" | "borderColor" | "textColor">>> & string;
|
|
3
|
+
export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<BadgeProps, "color" | "size" | "minWidth" | "width" | "variant" | "opacity" | "borderColor" | "emphasized" | "semanticColor" | "textColor">>> & string;
|
|
@@ -2,14 +2,18 @@ import { CSSProperties, MouseEvent } from 'react';
|
|
|
2
2
|
import { PaletteColor } from '../../styles/theme';
|
|
3
3
|
import { IconType } from '../icon/icon.type';
|
|
4
4
|
export type BadgeSize = 'large' | 'small' | 'tiny';
|
|
5
|
+
export type BadgeSemanticColor = 'green' | 'blue' | 'yellow' | 'red' | 'transparent';
|
|
5
6
|
export interface BadgeProps {
|
|
6
7
|
borderColor?: PaletteColor;
|
|
7
8
|
className?: string;
|
|
8
9
|
color?: PaletteColor;
|
|
10
|
+
emphasized?: boolean;
|
|
9
11
|
icon?: IconType;
|
|
10
12
|
minWidth?: string;
|
|
11
13
|
onClick?: (event?: MouseEvent) => void;
|
|
12
14
|
opacity?: string;
|
|
15
|
+
rightIcon?: IconType;
|
|
16
|
+
semanticColor?: BadgeSemanticColor;
|
|
13
17
|
size?: BadgeSize;
|
|
14
18
|
style?: CSSProperties;
|
|
15
19
|
text?: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon Visual Catalog
|
|
3
|
+
*
|
|
4
|
+
* A comprehensive catalog mapping each icon to its visual description
|
|
5
|
+
* and search keywords. Use this to identify the correct icon name
|
|
6
|
+
* from a visual description or screenshot.
|
|
7
|
+
*
|
|
8
|
+
* Usage: `<Icon name="category:icon_name" />`
|
|
9
|
+
*/
|
|
10
|
+
export interface IconCatalogEntry {
|
|
11
|
+
/** Searchable keywords for finding the icon */
|
|
12
|
+
keywords: string[];
|
|
13
|
+
/** Available variants (e.g., "filled", "24") */
|
|
14
|
+
variants: string[];
|
|
15
|
+
/** Human-readable description of the icon's visual shape */
|
|
16
|
+
visualDescription: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const iconCatalog: Record<string, IconCatalogEntry>;
|
|
19
|
+
/**
|
|
20
|
+
* Search the icon catalog by keyword.
|
|
21
|
+
* Returns matching icon names sorted by relevance (number of keyword matches).
|
|
22
|
+
*/
|
|
23
|
+
export declare const searchIcons: (query: string) => string[];
|
|
@@ -37,8 +37,8 @@ export interface OptionSelectorProps {
|
|
|
37
37
|
labelTxValues?: Record<string, unknown>;
|
|
38
38
|
/** Typography variant for the label. */
|
|
39
39
|
labelVariant?: ResolutionAwareProp<TextVariant>;
|
|
40
|
-
/**
|
|
41
|
-
name
|
|
40
|
+
/** Name for form field binding. */
|
|
41
|
+
name: string;
|
|
42
42
|
/** Whether the field is required. */
|
|
43
43
|
required?: boolean;
|
|
44
44
|
/** Formik integration props - injected by FormikInput. */
|