@aurora-ds/components 0.4.0 → 0.5.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.
- package/dist/cjs/components/layout/text/Text.d.ts +1 -0
- package/dist/cjs/components/layout/text/Text.props.d.ts +3 -0
- package/dist/cjs/components/navigation/drawer-item/DrawerItem.props.d.ts +2 -13
- package/dist/cjs/index.js +36 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/ui/components/text/parseTextWithBold.utils.d.ts +7 -0
- package/dist/esm/components/layout/text/Text.d.ts +1 -0
- package/dist/esm/components/layout/text/Text.props.d.ts +3 -0
- package/dist/esm/components/navigation/drawer-item/DrawerItem.props.d.ts +2 -13
- package/dist/esm/index.js +37 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/ui/components/text/parseTextWithBold.utils.d.ts +7 -0
- package/dist/index.d.ts +4 -11
- package/package.json +3 -3
|
@@ -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?:
|
|
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.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Aurora Design System - React Components Library",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@aurora-ds/theme": "^1.0.3",
|
|
23
|
-
"react": "^18.0.0",
|
|
24
|
-
"react-dom": "^18.0.0"
|
|
23
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
24
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@aurora-ds/theme": "^1.1.5",
|