@rafal.lemieszewski/tide-ui 0.84.4 → 0.85.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.
@@ -28,8 +28,11 @@ export type IconColor = keyof typeof iconColors;
28
28
  export type IconSize = keyof typeof iconSizes;
29
29
  export type { CustomIconName };
30
30
  export type LucideIconName = string;
31
- export type IconType = CustomIconName | LucideIconName;
32
- export interface IconProps extends Omit<React.SVGAttributes<SVGElement>, "color"> {
31
+ export type IconComponent = React.ComponentType<{
32
+ className?: string;
33
+ }>;
34
+ export type IconType = CustomIconName | LucideIconName | IconComponent;
35
+ export interface IconProps extends Omit<React.SVGAttributes<SVGElement>, "color" | "name"> {
33
36
  name: IconType;
34
37
  size?: IconSize;
35
38
  color?: IconColor;
@@ -70,7 +70,7 @@ export type { TreeProps, TreeDataItem } from './fundamental/tree.js';
70
70
  export { CountryDropdown, useCountryData } from './fundamental/country-dropdown.js';
71
71
  export type { Country, CountryDropdownProps, CountryDropdownTriggerProps } from './fundamental/country-dropdown.js';
72
72
  export { Icon } from './fundamental/icon.js';
73
- export type { IconColor, IconSize, CustomIconName } from './fundamental/icon.js';
73
+ export type { IconColor, IconSize, CustomIconName, IconComponent, IconType } from './fundamental/icon.js';
74
74
  export { Kbd, KbdGroup } from './fundamental/kbd.js';
75
75
  export type { KbdProps, KbdGroupProps } from './fundamental/kbd.js';
76
76
  export { MonthPicker } from './fundamental/month-picker.js';
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
2
  export interface AppFrameNavItem {
3
3
  title: string;
4
- icon: string;
4
+ icon: string | React.ComponentType<{
5
+ className?: string;
6
+ }>;
5
7
  url: string;
6
8
  isActive: boolean;
7
9
  items?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rafal.lemieszewski/tide-ui",
3
- "version": "0.84.4",
3
+ "version": "0.85.1",
4
4
  "description": "A comprehensive React component library built with Tailwind CSS and Radix UI primitives",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/lib/index.cjs",