@aurora-ds/components 0.4.0 → 0.5.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.
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Parses text content and converts **bold** syntax to <strong> elements
4
+ * @param children - The content to parse (string or ReactNode)
5
+ * @returns Parsed content with bold text wrapped in <strong> elements
6
+ */
7
+ export declare const parseTextWithBold: (children: ReactNode) => ReactNode;
package/dist/index.d.ts CHANGED
@@ -102,6 +102,8 @@ type TextProps = PropsWithChildren<{
102
102
  color?: keyof Theme['colors'];
103
103
  /** Font size from theme (overrides variant fontSize if provided) */
104
104
  fontSize?: keyof Theme['fontSize'];
105
+ /** Font family override (CSS value) */
106
+ fontFamily?: string;
105
107
  /** Maximum number of lines before truncation with ellipsis */
106
108
  maxLines?: number;
107
109
  /** Add underline text decoration */
@@ -122,6 +124,7 @@ type TextProps = PropsWithChildren<{
122
124
  * - Theme-aware colors
123
125
  * - Text truncation with `maxLines`
124
126
  * - Underline support
127
+ * - Bold text with **double asterisks** syntax
125
128
  */
126
129
  declare const Text: FC<TextProps>;
127
130
 
@@ -318,17 +321,7 @@ type DrawerItemProps = {
318
321
  /** Disabled state */
319
322
  disabled?: boolean;
320
323
  /** Optional chip to display */
321
- chip?: DrawerItemChip;
322
- };
323
- type DrawerItemChip = {
324
- /** Chip text label */
325
- label?: string;
326
- /** Chip icon */
327
- icon?: ReactNode;
328
- /** Chip color */
329
- color?: ChipColor;
330
- /** Chip variant */
331
- variant?: ChipVariant;
324
+ chip?: Omit<ChipProps, 'size' | 'disabled'>;
332
325
  };
333
326
 
334
327
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurora-ds/components",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "description": "Aurora Design System - React Components Library",
6
6
  "main": "dist/cjs/index.js",