@ultraviolet/ui 1.42.0 → 1.43.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/index.d.ts
CHANGED
|
@@ -1202,6 +1202,7 @@ type CommonProps = {
|
|
|
1202
1202
|
sentiment?: SENTIMENT;
|
|
1203
1203
|
disabled?: boolean;
|
|
1204
1204
|
iconPosition?: 'left' | 'right';
|
|
1205
|
+
iconVariant?: ComponentProps<typeof Icon>['variant'];
|
|
1205
1206
|
fullWidth?: boolean;
|
|
1206
1207
|
isLoading?: boolean;
|
|
1207
1208
|
'aria-label'?: string;
|
|
@@ -1484,6 +1485,7 @@ type BulletSize = keyof typeof sizes;
|
|
|
1484
1485
|
type ContentProps$1 = XOR<[
|
|
1485
1486
|
{
|
|
1486
1487
|
icon: ComponentProps<typeof Icon>['name'];
|
|
1488
|
+
iconVariant?: ComponentProps<typeof Icon>['variant'];
|
|
1487
1489
|
},
|
|
1488
1490
|
{
|
|
1489
1491
|
text: string;
|
|
@@ -1501,7 +1503,7 @@ type BulletProps = {
|
|
|
1501
1503
|
/**
|
|
1502
1504
|
* Bullet component is used to display a small icon or text with a colored background in a circle.
|
|
1503
1505
|
*/
|
|
1504
|
-
declare const Bullet: ({ className, sentiment, size, icon, text, tooltip, tooltipBaseId, "data-testid": dataTestId, prominence, }: BulletProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1506
|
+
declare const Bullet: ({ className, sentiment, size, icon, iconVariant, text, tooltip, tooltipBaseId, "data-testid": dataTestId, prominence, }: BulletProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1505
1507
|
|
|
1506
1508
|
type CardProps = {
|
|
1507
1509
|
children: ReactNode;
|
|
@@ -72,6 +72,7 @@ const Bullet = ({
|
|
|
72
72
|
sentiment = 'neutral',
|
|
73
73
|
size = 'medium',
|
|
74
74
|
icon,
|
|
75
|
+
iconVariant,
|
|
75
76
|
text,
|
|
76
77
|
tooltip,
|
|
77
78
|
tooltipBaseId,
|
|
@@ -88,7 +89,8 @@ const Bullet = ({
|
|
|
88
89
|
prominence: prominence,
|
|
89
90
|
children: icon ? jsx(Icon, {
|
|
90
91
|
name: icon,
|
|
91
|
-
size: "50%"
|
|
92
|
+
size: "50%",
|
|
93
|
+
variant: iconVariant
|
|
92
94
|
}) : text
|
|
93
95
|
})
|
|
94
96
|
});
|
|
@@ -201,6 +201,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
201
201
|
disabled = false,
|
|
202
202
|
icon,
|
|
203
203
|
iconPosition = 'left',
|
|
204
|
+
iconVariant,
|
|
204
205
|
fullWidth = false,
|
|
205
206
|
isLoading = false,
|
|
206
207
|
children,
|
|
@@ -226,7 +227,8 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
226
227
|
const content = jsxs(Fragment, {
|
|
227
228
|
children: [!isLoading && icon ? jsx(Icon, {
|
|
228
229
|
name: icon,
|
|
229
|
-
size:
|
|
230
|
+
size: "small",
|
|
231
|
+
variant: iconVariant
|
|
230
232
|
}) : null, isLoading ? jsx(Loader, {
|
|
231
233
|
active: true,
|
|
232
234
|
trailColor: "transparent",
|