@uipath/apollo-react 3.48.1 → 3.49.0-pr312.4aa8654
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/canvas/components/AddNodePanel/AddNodePanel.stories.cjs +1 -1
- package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.js +1 -1
- package/dist/canvas/components/Toolbox/ListView.cjs +10 -5
- package/dist/canvas/components/Toolbox/ListView.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/ListView.js +11 -6
- package/dist/canvas/styles/variables.css +1 -1
- package/dist/material/components/ap-button/ApButton.cjs +9 -4
- package/dist/material/components/ap-button/ApButton.d.ts.map +1 -1
- package/dist/material/components/ap-button/ApButton.js +9 -4
- package/package.json +1 -1
|
@@ -106,11 +106,16 @@ const ListViewRow = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ in
|
|
|
106
106
|
flex: 1,
|
|
107
107
|
overflow: "hidden",
|
|
108
108
|
children: [
|
|
109
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
children:
|
|
109
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_index_cjs_namespaceObject.ApTooltip, {
|
|
110
|
+
content: item.name,
|
|
111
|
+
placement: "top",
|
|
112
|
+
smartTooltip: true,
|
|
113
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
|
|
114
|
+
variant: apollo_core_namespaceObject.FontVariantToken.fontSizeM,
|
|
115
|
+
className: "list-view-item-name",
|
|
116
|
+
color: "var(--uix-canvas-foreground-emp)",
|
|
117
|
+
children: item.name
|
|
118
|
+
})
|
|
114
119
|
}),
|
|
115
120
|
item.description && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
|
|
116
121
|
variant: apollo_core_namespa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B,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;CACjC;AAyGD,UAAU,aAAa,CAAC,CAAC,SAAS,QAAQ;IACxC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,QAAQ,wCAA0B,CAAC,SAAS,QAAQ,sGAQ9D,aAAa,CAAC,CAAC,CAAC,8CAkFjB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { FontVariantToken } from "@uipath/apollo-core";
|
|
|
3
3
|
import { Column } from "../../layouts/index.js";
|
|
4
4
|
import { NodeIcon, partition } from "../../utils/index.js";
|
|
5
5
|
import { ApSkeleton, ApTypography } from "../../../material/index.js";
|
|
6
|
-
import { ApIcon } from "../../../material/components/index.js";
|
|
6
|
+
import { ApIcon, ApTooltip } from "../../../material/components/index.js";
|
|
7
7
|
import { memo, useCallback, useMemo } from "react";
|
|
8
8
|
import { useCanvasTheme } from "../BaseCanvas/CanvasThemeContext.js";
|
|
9
9
|
import { IconContainer, ListItemButton, SectionHeader, StyledList } from "./ListView.styles.js";
|
|
@@ -78,11 +78,16 @@ const ListViewRow = /*#__PURE__*/ memo(({ index, style, ariaAttributes, rendered
|
|
|
78
78
|
flex: 1,
|
|
79
79
|
overflow: "hidden",
|
|
80
80
|
children: [
|
|
81
|
-
/*#__PURE__*/ jsx(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
children:
|
|
81
|
+
/*#__PURE__*/ jsx(ApTooltip, {
|
|
82
|
+
content: item.name,
|
|
83
|
+
placement: "top",
|
|
84
|
+
smartTooltip: true,
|
|
85
|
+
children: /*#__PURE__*/ jsx(ApTypography, {
|
|
86
|
+
variant: FontVariantToken.fontSizeM,
|
|
87
|
+
className: "list-view-item-name",
|
|
88
|
+
color: "var(--uix-canvas-foreground-emp)",
|
|
89
|
+
children: item.name
|
|
90
|
+
})
|
|
86
91
|
}),
|
|
87
92
|
item.description && /*#__PURE__*/ jsx(ApTypography, {
|
|
88
93
|
variant: FontVariantToken.fontSizeXs,
|
|
@@ -108,7 +108,8 @@ const ApButton = /*#__PURE__*/ external_react_default().forwardRef((props, ref)=
|
|
|
108
108
|
const shouldShowLoadingAsStartIcon = loading && hasStartIcon;
|
|
109
109
|
const shouldShowLoadingAsEndIcon = loading && !hasStartIcon && hasEndIcon;
|
|
110
110
|
const shouldShowLoadingAsLabel = loading && !hasStartIcon && !hasEndIcon;
|
|
111
|
-
const
|
|
111
|
+
const { sx: variantSx, ...restVariantProps } = variantToProps[variant];
|
|
112
|
+
const { sx: userSx, ...restProps } = rest;
|
|
112
113
|
const loadingIndicator = loading ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ButtonLoadingIndicator, {
|
|
113
114
|
"aria-label": label
|
|
114
115
|
}) : null;
|
|
@@ -136,16 +137,20 @@ const ApButton = /*#__PURE__*/ external_react_default().forwardRef((props, ref)=
|
|
|
136
137
|
onBlur: onBlur,
|
|
137
138
|
startIcon: loading && shouldShowLoadingAsStartIcon ? loadingIndicator : startIcon,
|
|
138
139
|
endIcon: loading && shouldShowLoadingAsEndIcon ? loadingIndicator : endIcon,
|
|
139
|
-
...
|
|
140
|
+
...restVariantProps,
|
|
141
|
+
sx: [
|
|
142
|
+
variantSx ?? {},
|
|
143
|
+
userSx ?? {}
|
|
144
|
+
],
|
|
140
145
|
tabIndex: tabIndex ?? (loading ? -1 : void 0),
|
|
141
146
|
"aria-disabled": disabled || loading ? 'true' : void 0,
|
|
142
147
|
"aria-expanded": expanded,
|
|
143
148
|
title: title,
|
|
144
|
-
className: joinClasses(
|
|
149
|
+
className: joinClasses(restVariantProps?.className, loading && 'loading'),
|
|
145
150
|
href: href,
|
|
146
151
|
customSize: size,
|
|
147
152
|
customWidth: widthMode,
|
|
148
|
-
...
|
|
153
|
+
...restProps,
|
|
149
154
|
children: [
|
|
150
155
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
151
156
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApButton.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-button/ApButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAgDtE,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"ApButton.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-button/ApButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAgDtE,eAAO,MAAM,QAAQ,sGAoFnB,CAAC"}
|
|
@@ -68,7 +68,8 @@ const ApButton = /*#__PURE__*/ react.forwardRef((props, ref)=>{
|
|
|
68
68
|
const shouldShowLoadingAsStartIcon = loading && hasStartIcon;
|
|
69
69
|
const shouldShowLoadingAsEndIcon = loading && !hasStartIcon && hasEndIcon;
|
|
70
70
|
const shouldShowLoadingAsLabel = loading && !hasStartIcon && !hasEndIcon;
|
|
71
|
-
const
|
|
71
|
+
const { sx: variantSx, ...restVariantProps } = variantToProps[variant];
|
|
72
|
+
const { sx: userSx, ...restProps } = rest;
|
|
72
73
|
const loadingIndicator = loading ? /*#__PURE__*/ jsx(ButtonLoadingIndicator, {
|
|
73
74
|
"aria-label": label
|
|
74
75
|
}) : null;
|
|
@@ -96,16 +97,20 @@ const ApButton = /*#__PURE__*/ react.forwardRef((props, ref)=>{
|
|
|
96
97
|
onBlur: onBlur,
|
|
97
98
|
startIcon: loading && shouldShowLoadingAsStartIcon ? loadingIndicator : startIcon,
|
|
98
99
|
endIcon: loading && shouldShowLoadingAsEndIcon ? loadingIndicator : endIcon,
|
|
99
|
-
...
|
|
100
|
+
...restVariantProps,
|
|
101
|
+
sx: [
|
|
102
|
+
variantSx ?? {},
|
|
103
|
+
userSx ?? {}
|
|
104
|
+
],
|
|
100
105
|
tabIndex: tabIndex ?? (loading ? -1 : void 0),
|
|
101
106
|
"aria-disabled": disabled || loading ? 'true' : void 0,
|
|
102
107
|
"aria-expanded": expanded,
|
|
103
108
|
title: title,
|
|
104
|
-
className: joinClasses(
|
|
109
|
+
className: joinClasses(restVariantProps?.className, loading && 'loading'),
|
|
105
110
|
href: href,
|
|
106
111
|
customSize: size,
|
|
107
112
|
customWidth: widthMode,
|
|
108
|
-
...
|
|
113
|
+
...restProps,
|
|
109
114
|
children: [
|
|
110
115
|
/*#__PURE__*/ jsx("span", {
|
|
111
116
|
style: {
|