@yoamigo.com/core 1.1.0 → 1.3.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/{icon-metadata-CVUpe16i.d.ts → icon-metadata-D-2LGr22.d.ts} +7 -7
- package/dist/icons.d.ts +6009 -0
- package/dist/icons.js +12008 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -2
- package/dist/prod.d.ts +4 -4
- package/dist/prod.js +10 -2
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { ReactNode, CSSProperties, ComponentType } from 'react';
|
|
3
3
|
import { IconProps } from '@tabler/icons-react';
|
|
4
4
|
|
|
5
5
|
type EditMode = 'read-only' | 'inline-edit';
|
|
@@ -154,13 +154,13 @@ interface YaLinkProps {
|
|
|
154
154
|
/** Classes to apply to the wrapper span (for display/width control) */
|
|
155
155
|
wrapperClassName?: string;
|
|
156
156
|
/** Inline styles to apply to the link element */
|
|
157
|
-
style?:
|
|
157
|
+
style?: React__default.CSSProperties;
|
|
158
158
|
as?: 'a' | 'span';
|
|
159
|
-
children?:
|
|
159
|
+
children?: React__default.ReactNode;
|
|
160
160
|
/** Available pages for href dropdown (injected by template) */
|
|
161
161
|
availablePages?: PageInfo[];
|
|
162
162
|
/** Optional click handler called after navigation */
|
|
163
|
-
onClick?: (e?:
|
|
163
|
+
onClick?: (e?: React__default.MouseEvent) => void;
|
|
164
164
|
/** Target attribute for the link (e.g., "_blank" to open in new tab) */
|
|
165
165
|
target?: string;
|
|
166
166
|
/** Rel attribute for the link (e.g., "noopener noreferrer" for security) */
|
|
@@ -426,7 +426,7 @@ interface DynamicIconProps extends Omit<IconProps, 'ref'> {
|
|
|
426
426
|
/** Name of the Tabler icon (e.g., "IconBrandTwitter", "IconHeart") */
|
|
427
427
|
name: string;
|
|
428
428
|
/** Optional fallback element to show while loading */
|
|
429
|
-
fallback?:
|
|
429
|
+
fallback?: React__default.ReactNode;
|
|
430
430
|
/** Additional class name for the icon wrapper */
|
|
431
431
|
className?: string;
|
|
432
432
|
}
|
|
@@ -439,12 +439,12 @@ interface DynamicIconProps extends Omit<IconProps, 'ref'> {
|
|
|
439
439
|
* For production builds where specific icons are known ahead of time,
|
|
440
440
|
* consider pre-registering icons with `registerIcon()` for faster initial render.
|
|
441
441
|
*/
|
|
442
|
-
declare function DynamicIconComponent({ name, fallback, className, size, stroke, ...props }: DynamicIconProps):
|
|
442
|
+
declare function DynamicIconComponent({ name, fallback, className, size, stroke, ...props }: DynamicIconProps): React__default.ReactElement | null;
|
|
443
443
|
/**
|
|
444
444
|
* Memoized DynamicIcon to prevent unnecessary re-renders.
|
|
445
445
|
* Re-renders only when name or size/stroke props change.
|
|
446
446
|
*/
|
|
447
|
-
declare const DynamicIcon:
|
|
447
|
+
declare const DynamicIcon: React__default.MemoExoticComponent<typeof DynamicIconComponent>;
|
|
448
448
|
|
|
449
449
|
/**
|
|
450
450
|
* Icon Registry - Dynamic import system with caching
|