smartsell-ui-kit 0.0.6 → 0.1.1

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/img/index.ts","../../src/img/assets.ts","../../src/img/UiKitImage.tsx","../../src/img/components.tsx"],"sourcesContent":["export {\n getUiKitImageDefinition,\n resolveUiKitImageSource,\n resolveUiKitImageThemeVariant,\n uiKitImageCatalog,\n uiKitImageGroups,\n} from './assets';\nexport {\n BgImg1,\n BgImg2,\n BgImg3,\n Favicon,\n Favicon16,\n Favicon32,\n Icon192,\n Logo,\n Texture1,\n Texture2,\n Texture3,\n Texture4,\n} from './components';\nexport { UiKitImage, useUiKitImageSource, type UiKitImageComponentProps } from './UiKitImage';\nexport type {\n UiKitImageDefinition,\n UiKitImageGroup,\n UiKitImageName,\n UiKitImageProps,\n UiKitImageSourceSet,\n UiKitImageThemeVariant,\n} from './types';","import type { UiKitImageDefinition, UiKitImageGroup, UiKitImageName, UiKitImageThemeVariant } from './types';\n\nimport faviconDarkSource from './assets/favicon.ico';\nimport faviconLightSource from './assets/favicon.ico';\nimport favicon16DarkSource from './assets/favicon16.png';\nimport favicon16LightSource from './assets/favicon16.png';\nimport favicon32DarkSource from './assets/favicon32.png';\nimport favicon32LightSource from './assets/favicon32.png';\nimport icon192DarkSource from './assets/icon192.png';\nimport icon192LightSource from './assets/icon192.png';\nimport logoDarkSource from './assets/logo.svg';\nimport logoLightSource from './assets/logo.svg';\nimport bgimg1DarkSource from './assets/bgimg1.svg';\nimport bgimg1LightSource from './assets/bgimg1.svg';\nimport bgimg2DarkSource from './assets/bgimg2.svg';\nimport bgimg2LightSource from './assets/bgimg2.svg';\nimport bgimg3DarkSource from './assets/bgimg3.svg';\nimport bgimg3LightSource from './assets/bgimg3.svg';\nimport texture1DarkSource from './assets/texture1.svg';\nimport texture1LightSource from './assets/texture1.svg';\nimport texture2DarkSource from './assets/texture2.svg';\nimport texture2LightSource from './assets/texture2.svg';\nimport texture3DarkSource from './assets/texture3.svg';\nimport texture3LightSource from './assets/texture3.svg';\nimport texture4DarkSource from './assets/texture4.svg';\nimport texture4LightSource from './assets/texture4.svg';\n\nexport const uiKitImageCatalog = {\n logo: {\n name: 'logo',\n title: 'SmartSell Logo',\n group: 'logos',\n sources: {\n light: logoLightSource,\n dark: logoDarkSource,\n },\n },\n icon192: {\n name: 'icon192',\n title: 'SmartSell Icon 192',\n group: 'icons',\n sources: {\n light: icon192LightSource,\n dark: icon192DarkSource,\n },\n },\n favicon: {\n name: 'favicon',\n title: 'SmartSell Favicon',\n group: 'icons',\n sources: {\n light: faviconLightSource,\n dark: faviconDarkSource,\n },\n },\n favicon16: {\n name: 'favicon16',\n title: 'SmartSell Favicon 16',\n group: 'icons',\n sources: {\n light: favicon16LightSource,\n dark: favicon16DarkSource,\n },\n },\n favicon32: {\n name: 'favicon32',\n title: 'SmartSell Favicon 32',\n group: 'icons',\n sources: {\n light: favicon32LightSource,\n dark: favicon32DarkSource,\n },\n },\n texture1: {\n name: 'texture1',\n title: 'SmartSell Texture 1',\n group: 'backgrounds',\n decorative: true,\n sources: {\n light: texture1LightSource,\n dark: texture1DarkSource,\n },\n },\n texture2: {\n name: 'texture2',\n title: 'SmartSell Texture 2',\n group: 'backgrounds',\n decorative: true,\n sources: {\n light: texture2LightSource,\n dark: texture2DarkSource,\n },\n },\n texture3: {\n name: 'texture3',\n title: 'SmartSell Texture 3',\n group: 'backgrounds',\n decorative: true,\n sources: {\n light: texture3LightSource,\n dark: texture3DarkSource,\n },\n },\n texture4: {\n name: 'texture4',\n title: 'SmartSell Texture 4',\n group: 'backgrounds',\n decorative: true,\n sources: {\n light: texture4LightSource,\n dark: texture4DarkSource,\n },\n },\n bgimg1: {\n name: 'bgimg1',\n title: 'SmartSell Background Image 1',\n group: 'backgrounds',\n decorative: true,\n sources: {\n light: bgimg1LightSource,\n dark: bgimg1DarkSource,\n },\n },\n bgimg2: {\n name: 'bgimg2',\n title: 'SmartSell Background Image 2',\n group: 'backgrounds',\n decorative: true,\n sources: {\n light: bgimg2LightSource,\n dark: bgimg2DarkSource,\n },\n },\n bgimg3: {\n name: 'bgimg3',\n title: 'SmartSell Background Image 3',\n group: 'backgrounds',\n decorative: true,\n sources: {\n light: bgimg3LightSource,\n dark: bgimg3DarkSource,\n },\n },\n} as const satisfies Record<UiKitImageName, UiKitImageDefinition>;\n\nexport const uiKitImageGroups: Record<UiKitImageGroup, UiKitImageName[]> = {\n logos: ['logo'],\n icons: ['icon192', 'favicon', 'favicon16', 'favicon32'],\n backgrounds: ['texture1', 'texture2', 'texture3', 'texture4', 'bgimg1', 'bgimg2', 'bgimg3'],\n};\n\nexport function getUiKitImageDefinition(name: UiKitImageName): UiKitImageDefinition {\n return uiKitImageCatalog[name];\n}\n\nexport function resolveUiKitImageThemeVariant(themeName?: string | null): UiKitImageThemeVariant {\n return `${themeName ?? ''}`.trim().toUpperCase().includes('DARK') ? 'dark' : 'light';\n}\n\nexport function resolveUiKitImageSource(\n name: UiKitImageName,\n themeVariant: UiKitImageThemeVariant,\n): string {\n const image = getUiKitImageDefinition(name);\n\n return themeVariant === 'dark' ? image.sources.dark : image.sources.light;\n}","import type { CSSProperties } from 'react';\n\nimport { useThemeName } from 'smartsell-theme';\n\nimport {\n getUiKitImageDefinition,\n resolveUiKitImageSource,\n resolveUiKitImageThemeVariant,\n} from './assets';\nimport type { UiKitImageName, UiKitImageProps, UiKitImageThemeVariant } from './types';\n\nexport interface UiKitImageComponentProps extends UiKitImageProps {\n assetName: UiKitImageName;\n}\n\nconst resolveUiKitImageStyle = ({\n width,\n height,\n maxWidth,\n size,\n fit,\n position,\n style,\n}: Pick<UiKitImageProps, 'fit' | 'height' | 'maxWidth' | 'position' | 'size' | 'style' | 'width'>): CSSProperties => {\n return {\n display: 'block',\n width: width ?? size ?? '100%',\n height: height ?? (size !== undefined ? size : 'auto'),\n maxWidth: maxWidth ?? '100%',\n objectFit: fit ?? 'contain',\n objectPosition: position ?? 'center',\n ...style,\n };\n};\n\nexport function useUiKitImageSource(\n assetName: UiKitImageName,\n themeVariant?: UiKitImageThemeVariant,\n): string {\n const activeThemeName = useThemeName();\n const resolvedThemeVariant = themeVariant ?? resolveUiKitImageThemeVariant(String(activeThemeName));\n\n return resolveUiKitImageSource(assetName, resolvedThemeVariant);\n}\n\nexport function UiKitImage({\n assetName,\n alt,\n decorative,\n width,\n height,\n maxWidth,\n size,\n fit,\n position,\n style,\n themeVariant,\n 'aria-hidden': ariaHidden,\n ...imgProps\n}: UiKitImageComponentProps) {\n const imageDefinition = getUiKitImageDefinition(assetName);\n const source = useUiKitImageSource(assetName, themeVariant);\n const isDecorative = decorative ?? imageDefinition.decorative ?? false;\n const resolvedAlt = isDecorative ? '' : alt ?? imageDefinition.title;\n\n return (\n <img\n {...imgProps}\n src={source}\n alt={resolvedAlt}\n aria-hidden={isDecorative ? true : ariaHidden}\n style={resolveUiKitImageStyle({\n width,\n height,\n maxWidth,\n size,\n fit,\n position,\n style,\n })}\n />\n );\n}","import type { ComponentType } from 'react';\n\nimport { UiKitImage } from './UiKitImage';\nimport type { UiKitImageName, UiKitImageProps } from './types';\n\ntype NamedImageComponentOptions = {\n assetName: UiKitImageName;\n decorative?: boolean;\n displayName: string;\n};\n\nconst createNamedImageComponent = ({\n assetName,\n decorative,\n displayName,\n}: NamedImageComponentOptions): ComponentType<UiKitImageProps> => {\n const Component = (props: UiKitImageProps) => {\n return <UiKitImage assetName={assetName} decorative={decorative} {...props} />;\n };\n\n Component.displayName = displayName;\n\n return Component;\n};\n\nexport const Logo = createNamedImageComponent({\n assetName: 'logo',\n displayName: 'Logo',\n});\n\nexport const Icon192 = createNamedImageComponent({\n assetName: 'icon192',\n displayName: 'Icon192',\n});\n\nexport const Favicon = createNamedImageComponent({\n assetName: 'favicon',\n displayName: 'Favicon',\n});\n\nexport const Favicon16 = createNamedImageComponent({\n assetName: 'favicon16',\n displayName: 'Favicon16',\n});\n\nexport const Favicon32 = createNamedImageComponent({\n assetName: 'favicon32',\n displayName: 'Favicon32',\n});\n\nexport const Texture1 = createNamedImageComponent({\n assetName: 'texture1',\n decorative: true,\n displayName: 'Texture1',\n});\n\nexport const Texture2 = createNamedImageComponent({\n assetName: 'texture2',\n decorative: true,\n displayName: 'Texture2',\n});\n\nexport const Texture3 = createNamedImageComponent({\n assetName: 'texture3',\n decorative: true,\n displayName: 'Texture3',\n});\n\nexport const Texture4 = createNamedImageComponent({\n assetName: 'texture4',\n decorative: true,\n displayName: 'Texture4',\n});\n\nexport const BgImg1 = createNamedImageComponent({\n assetName: 'bgimg1',\n decorative: true,\n displayName: 'BgImg1',\n});\n\nexport const BgImg2 = createNamedImageComponent({\n assetName: 'bgimg2',\n decorative: true,\n displayName: 'BgImg2',\n});\n\nexport const BgImg3 = createNamedImageComponent({\n assetName: 'bgimg3',\n decorative: true,\n displayName: 'BgImg3',\n});"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2BO,IAAM,oBAAoB;AAAA,EAC/B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,MACP,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,MACP,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,MACP,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AAAA,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AAC;AAEM,IAAM,WAAW,0BAA0B;AAAA,EAChD,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf,CAAC;AAEM,IAAM,WAAW,0BAA0B;AAAA,EAChD,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf,CAAC;AAEM,IAAM,WAAW,0BAA0B;AAAA,EAChD,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf,CAAC;AAEM,IAAM,SAAS,0BAA0B;AAAA,EAC9C,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf,CAAC;AAEM,IAAM,SAAS,0BAA0B;AAAA,EAC9C,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf,CAAC;AAEM,IAAM,SAAS,0BAA0B;AAAA,EAC9C,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf,CAAC;","names":["import_jsx_runtime"]}
@@ -0,0 +1,170 @@
1
+ import { ImgHTMLAttributes, CSSProperties, ComponentType } from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+
4
+ type UiKitImageThemeVariant = 'light' | 'dark';
5
+ type UiKitImageGroup = 'logos' | 'icons' | 'backgrounds';
6
+ type UiKitImageName = 'logo' | 'icon192' | 'favicon' | 'favicon16' | 'favicon32' | 'texture1' | 'texture2' | 'texture3' | 'texture4' | 'bgimg1' | 'bgimg2' | 'bgimg3';
7
+ interface UiKitImageSourceSet {
8
+ light: string;
9
+ dark: string;
10
+ }
11
+ interface UiKitImageDefinition {
12
+ name: UiKitImageName;
13
+ title: string;
14
+ group: UiKitImageGroup;
15
+ decorative?: boolean;
16
+ sources: UiKitImageSourceSet;
17
+ }
18
+ interface UiKitImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'src' | 'width' | 'height'> {
19
+ width?: number | string;
20
+ height?: number | string;
21
+ maxWidth?: number | string;
22
+ size?: number | string;
23
+ fit?: CSSProperties['objectFit'];
24
+ position?: CSSProperties['objectPosition'];
25
+ themeVariant?: UiKitImageThemeVariant;
26
+ decorative?: boolean;
27
+ }
28
+
29
+ declare const uiKitImageCatalog: {
30
+ readonly logo: {
31
+ readonly name: "logo";
32
+ readonly title: "SmartSell Logo";
33
+ readonly group: "logos";
34
+ readonly sources: {
35
+ readonly light: string;
36
+ readonly dark: string;
37
+ };
38
+ };
39
+ readonly icon192: {
40
+ readonly name: "icon192";
41
+ readonly title: "SmartSell Icon 192";
42
+ readonly group: "icons";
43
+ readonly sources: {
44
+ readonly light: string;
45
+ readonly dark: string;
46
+ };
47
+ };
48
+ readonly favicon: {
49
+ readonly name: "favicon";
50
+ readonly title: "SmartSell Favicon";
51
+ readonly group: "icons";
52
+ readonly sources: {
53
+ readonly light: string;
54
+ readonly dark: string;
55
+ };
56
+ };
57
+ readonly favicon16: {
58
+ readonly name: "favicon16";
59
+ readonly title: "SmartSell Favicon 16";
60
+ readonly group: "icons";
61
+ readonly sources: {
62
+ readonly light: string;
63
+ readonly dark: string;
64
+ };
65
+ };
66
+ readonly favicon32: {
67
+ readonly name: "favicon32";
68
+ readonly title: "SmartSell Favicon 32";
69
+ readonly group: "icons";
70
+ readonly sources: {
71
+ readonly light: string;
72
+ readonly dark: string;
73
+ };
74
+ };
75
+ readonly texture1: {
76
+ readonly name: "texture1";
77
+ readonly title: "SmartSell Texture 1";
78
+ readonly group: "backgrounds";
79
+ readonly decorative: true;
80
+ readonly sources: {
81
+ readonly light: string;
82
+ readonly dark: string;
83
+ };
84
+ };
85
+ readonly texture2: {
86
+ readonly name: "texture2";
87
+ readonly title: "SmartSell Texture 2";
88
+ readonly group: "backgrounds";
89
+ readonly decorative: true;
90
+ readonly sources: {
91
+ readonly light: string;
92
+ readonly dark: string;
93
+ };
94
+ };
95
+ readonly texture3: {
96
+ readonly name: "texture3";
97
+ readonly title: "SmartSell Texture 3";
98
+ readonly group: "backgrounds";
99
+ readonly decorative: true;
100
+ readonly sources: {
101
+ readonly light: string;
102
+ readonly dark: string;
103
+ };
104
+ };
105
+ readonly texture4: {
106
+ readonly name: "texture4";
107
+ readonly title: "SmartSell Texture 4";
108
+ readonly group: "backgrounds";
109
+ readonly decorative: true;
110
+ readonly sources: {
111
+ readonly light: string;
112
+ readonly dark: string;
113
+ };
114
+ };
115
+ readonly bgimg1: {
116
+ readonly name: "bgimg1";
117
+ readonly title: "SmartSell Background Image 1";
118
+ readonly group: "backgrounds";
119
+ readonly decorative: true;
120
+ readonly sources: {
121
+ readonly light: string;
122
+ readonly dark: string;
123
+ };
124
+ };
125
+ readonly bgimg2: {
126
+ readonly name: "bgimg2";
127
+ readonly title: "SmartSell Background Image 2";
128
+ readonly group: "backgrounds";
129
+ readonly decorative: true;
130
+ readonly sources: {
131
+ readonly light: string;
132
+ readonly dark: string;
133
+ };
134
+ };
135
+ readonly bgimg3: {
136
+ readonly name: "bgimg3";
137
+ readonly title: "SmartSell Background Image 3";
138
+ readonly group: "backgrounds";
139
+ readonly decorative: true;
140
+ readonly sources: {
141
+ readonly light: string;
142
+ readonly dark: string;
143
+ };
144
+ };
145
+ };
146
+ declare const uiKitImageGroups: Record<UiKitImageGroup, UiKitImageName[]>;
147
+ declare function getUiKitImageDefinition(name: UiKitImageName): UiKitImageDefinition;
148
+ declare function resolveUiKitImageThemeVariant(themeName?: string | null): UiKitImageThemeVariant;
149
+ declare function resolveUiKitImageSource(name: UiKitImageName, themeVariant: UiKitImageThemeVariant): string;
150
+
151
+ declare const Logo: ComponentType<UiKitImageProps>;
152
+ declare const Icon192: ComponentType<UiKitImageProps>;
153
+ declare const Favicon: ComponentType<UiKitImageProps>;
154
+ declare const Favicon16: ComponentType<UiKitImageProps>;
155
+ declare const Favicon32: ComponentType<UiKitImageProps>;
156
+ declare const Texture1: ComponentType<UiKitImageProps>;
157
+ declare const Texture2: ComponentType<UiKitImageProps>;
158
+ declare const Texture3: ComponentType<UiKitImageProps>;
159
+ declare const Texture4: ComponentType<UiKitImageProps>;
160
+ declare const BgImg1: ComponentType<UiKitImageProps>;
161
+ declare const BgImg2: ComponentType<UiKitImageProps>;
162
+ declare const BgImg3: ComponentType<UiKitImageProps>;
163
+
164
+ interface UiKitImageComponentProps extends UiKitImageProps {
165
+ assetName: UiKitImageName;
166
+ }
167
+ declare function useUiKitImageSource(assetName: UiKitImageName, themeVariant?: UiKitImageThemeVariant): string;
168
+ declare function UiKitImage({ assetName, alt, decorative, width, height, maxWidth, size, fit, position, style, themeVariant, 'aria-hidden': ariaHidden, ...imgProps }: UiKitImageComponentProps): react_jsx_runtime.JSX.Element;
169
+
170
+ export { BgImg1, BgImg2, BgImg3, Favicon, Favicon16, Favicon32, Icon192, Logo, Texture1, Texture2, Texture3, Texture4, UiKitImage, type UiKitImageComponentProps, type UiKitImageDefinition, type UiKitImageGroup, type UiKitImageName, type UiKitImageProps, type UiKitImageSourceSet, type UiKitImageThemeVariant, getUiKitImageDefinition, resolveUiKitImageSource, resolveUiKitImageThemeVariant, uiKitImageCatalog, uiKitImageGroups, useUiKitImageSource };
@@ -0,0 +1,170 @@
1
+ import { ImgHTMLAttributes, CSSProperties, ComponentType } from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+
4
+ type UiKitImageThemeVariant = 'light' | 'dark';
5
+ type UiKitImageGroup = 'logos' | 'icons' | 'backgrounds';
6
+ type UiKitImageName = 'logo' | 'icon192' | 'favicon' | 'favicon16' | 'favicon32' | 'texture1' | 'texture2' | 'texture3' | 'texture4' | 'bgimg1' | 'bgimg2' | 'bgimg3';
7
+ interface UiKitImageSourceSet {
8
+ light: string;
9
+ dark: string;
10
+ }
11
+ interface UiKitImageDefinition {
12
+ name: UiKitImageName;
13
+ title: string;
14
+ group: UiKitImageGroup;
15
+ decorative?: boolean;
16
+ sources: UiKitImageSourceSet;
17
+ }
18
+ interface UiKitImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'src' | 'width' | 'height'> {
19
+ width?: number | string;
20
+ height?: number | string;
21
+ maxWidth?: number | string;
22
+ size?: number | string;
23
+ fit?: CSSProperties['objectFit'];
24
+ position?: CSSProperties['objectPosition'];
25
+ themeVariant?: UiKitImageThemeVariant;
26
+ decorative?: boolean;
27
+ }
28
+
29
+ declare const uiKitImageCatalog: {
30
+ readonly logo: {
31
+ readonly name: "logo";
32
+ readonly title: "SmartSell Logo";
33
+ readonly group: "logos";
34
+ readonly sources: {
35
+ readonly light: string;
36
+ readonly dark: string;
37
+ };
38
+ };
39
+ readonly icon192: {
40
+ readonly name: "icon192";
41
+ readonly title: "SmartSell Icon 192";
42
+ readonly group: "icons";
43
+ readonly sources: {
44
+ readonly light: string;
45
+ readonly dark: string;
46
+ };
47
+ };
48
+ readonly favicon: {
49
+ readonly name: "favicon";
50
+ readonly title: "SmartSell Favicon";
51
+ readonly group: "icons";
52
+ readonly sources: {
53
+ readonly light: string;
54
+ readonly dark: string;
55
+ };
56
+ };
57
+ readonly favicon16: {
58
+ readonly name: "favicon16";
59
+ readonly title: "SmartSell Favicon 16";
60
+ readonly group: "icons";
61
+ readonly sources: {
62
+ readonly light: string;
63
+ readonly dark: string;
64
+ };
65
+ };
66
+ readonly favicon32: {
67
+ readonly name: "favicon32";
68
+ readonly title: "SmartSell Favicon 32";
69
+ readonly group: "icons";
70
+ readonly sources: {
71
+ readonly light: string;
72
+ readonly dark: string;
73
+ };
74
+ };
75
+ readonly texture1: {
76
+ readonly name: "texture1";
77
+ readonly title: "SmartSell Texture 1";
78
+ readonly group: "backgrounds";
79
+ readonly decorative: true;
80
+ readonly sources: {
81
+ readonly light: string;
82
+ readonly dark: string;
83
+ };
84
+ };
85
+ readonly texture2: {
86
+ readonly name: "texture2";
87
+ readonly title: "SmartSell Texture 2";
88
+ readonly group: "backgrounds";
89
+ readonly decorative: true;
90
+ readonly sources: {
91
+ readonly light: string;
92
+ readonly dark: string;
93
+ };
94
+ };
95
+ readonly texture3: {
96
+ readonly name: "texture3";
97
+ readonly title: "SmartSell Texture 3";
98
+ readonly group: "backgrounds";
99
+ readonly decorative: true;
100
+ readonly sources: {
101
+ readonly light: string;
102
+ readonly dark: string;
103
+ };
104
+ };
105
+ readonly texture4: {
106
+ readonly name: "texture4";
107
+ readonly title: "SmartSell Texture 4";
108
+ readonly group: "backgrounds";
109
+ readonly decorative: true;
110
+ readonly sources: {
111
+ readonly light: string;
112
+ readonly dark: string;
113
+ };
114
+ };
115
+ readonly bgimg1: {
116
+ readonly name: "bgimg1";
117
+ readonly title: "SmartSell Background Image 1";
118
+ readonly group: "backgrounds";
119
+ readonly decorative: true;
120
+ readonly sources: {
121
+ readonly light: string;
122
+ readonly dark: string;
123
+ };
124
+ };
125
+ readonly bgimg2: {
126
+ readonly name: "bgimg2";
127
+ readonly title: "SmartSell Background Image 2";
128
+ readonly group: "backgrounds";
129
+ readonly decorative: true;
130
+ readonly sources: {
131
+ readonly light: string;
132
+ readonly dark: string;
133
+ };
134
+ };
135
+ readonly bgimg3: {
136
+ readonly name: "bgimg3";
137
+ readonly title: "SmartSell Background Image 3";
138
+ readonly group: "backgrounds";
139
+ readonly decorative: true;
140
+ readonly sources: {
141
+ readonly light: string;
142
+ readonly dark: string;
143
+ };
144
+ };
145
+ };
146
+ declare const uiKitImageGroups: Record<UiKitImageGroup, UiKitImageName[]>;
147
+ declare function getUiKitImageDefinition(name: UiKitImageName): UiKitImageDefinition;
148
+ declare function resolveUiKitImageThemeVariant(themeName?: string | null): UiKitImageThemeVariant;
149
+ declare function resolveUiKitImageSource(name: UiKitImageName, themeVariant: UiKitImageThemeVariant): string;
150
+
151
+ declare const Logo: ComponentType<UiKitImageProps>;
152
+ declare const Icon192: ComponentType<UiKitImageProps>;
153
+ declare const Favicon: ComponentType<UiKitImageProps>;
154
+ declare const Favicon16: ComponentType<UiKitImageProps>;
155
+ declare const Favicon32: ComponentType<UiKitImageProps>;
156
+ declare const Texture1: ComponentType<UiKitImageProps>;
157
+ declare const Texture2: ComponentType<UiKitImageProps>;
158
+ declare const Texture3: ComponentType<UiKitImageProps>;
159
+ declare const Texture4: ComponentType<UiKitImageProps>;
160
+ declare const BgImg1: ComponentType<UiKitImageProps>;
161
+ declare const BgImg2: ComponentType<UiKitImageProps>;
162
+ declare const BgImg3: ComponentType<UiKitImageProps>;
163
+
164
+ interface UiKitImageComponentProps extends UiKitImageProps {
165
+ assetName: UiKitImageName;
166
+ }
167
+ declare function useUiKitImageSource(assetName: UiKitImageName, themeVariant?: UiKitImageThemeVariant): string;
168
+ declare function UiKitImage({ assetName, alt, decorative, width, height, maxWidth, size, fit, position, style, themeVariant, 'aria-hidden': ariaHidden, ...imgProps }: UiKitImageComponentProps): react_jsx_runtime.JSX.Element;
169
+
170
+ export { BgImg1, BgImg2, BgImg3, Favicon, Favicon16, Favicon32, Icon192, Logo, Texture1, Texture2, Texture3, Texture4, UiKitImage, type UiKitImageComponentProps, type UiKitImageDefinition, type UiKitImageGroup, type UiKitImageName, type UiKitImageProps, type UiKitImageSourceSet, type UiKitImageThemeVariant, getUiKitImageDefinition, resolveUiKitImageSource, resolveUiKitImageThemeVariant, uiKitImageCatalog, uiKitImageGroups, useUiKitImageSource };