@ledgerhq/react-ui 0.48.0 → 0.49.0-nightly.20260317030141
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/lib/cjs/components/index.js +10 -33
- package/lib/cjs/components/index.js.map +1 -1
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +10 -33
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +1 -1
- package/lib/cjs/components/message/Tooltip/index.js +8 -31
- package/lib/cjs/components/message/Tooltip/index.js.map +1 -1
- package/lib/cjs/components/message/index.js +10 -33
- package/lib/cjs/components/message/index.js.map +1 -1
- package/lib/cjs/index.js +10 -33
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/pre-ldls/components/index.js +18 -38
- package/lib/cjs/pre-ldls/components/index.js.map +1 -1
- package/lib/cjs/pre-ldls/index.js +18 -39
- package/lib/cjs/pre-ldls/index.js.map +1 -1
- package/lib/components/message/Tooltip/index.d.ts.map +1 -1
- package/lib/components/message/Tooltip/index.js +5 -25
- package/lib/components/message/Tooltip/index.js.map +1 -1
- package/lib/pre-ldls/components/index.d.ts +0 -1
- package/lib/pre-ldls/components/index.d.ts.map +1 -1
- package/lib/pre-ldls/components/index.js +0 -1
- package/lib/pre-ldls/components/index.js.map +1 -1
- package/package.json +13 -3
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js +0 -1776
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js.map +0 -1
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js +0 -1835
- package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js.map +0 -1
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.d.ts +0 -6
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.d.ts.map +0 -1
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.js +0 -6
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.js.map +0 -1
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.stories.d.ts +0 -10
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.stories.d.ts.map +0 -1
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js +0 -20
- package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js.map +0 -1
|
@@ -5259,7 +5259,7 @@ function Tip({ type, label }) {
|
|
|
5259
5259
|
|
|
5260
5260
|
|
|
5261
5261
|
},
|
|
5262
|
-
|
|
5262
|
+
5845(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
5263
5263
|
|
|
5264
5264
|
// EXPORTS
|
|
5265
5265
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -5269,8 +5269,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
5269
5269
|
// EXTERNAL MODULE: external "react"
|
|
5270
5270
|
var external_react_ = __webpack_require__(2015);
|
|
5271
5271
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
5272
|
-
;// CONCATENATED MODULE: external "react-is"
|
|
5273
|
-
const external_react_is_namespaceObject = require("react-is");
|
|
5274
5272
|
;// CONCATENATED MODULE: external "@tippyjs/react"
|
|
5275
5273
|
const react_namespaceObject = require("@tippyjs/react");
|
|
5276
5274
|
var react_default = /*#__PURE__*/__webpack_require__.n(react_namespaceObject);
|
|
@@ -5280,44 +5278,23 @@ var Text = __webpack_require__(348);
|
|
|
5280
5278
|
|
|
5281
5279
|
|
|
5282
5280
|
|
|
5283
|
-
|
|
5284
|
-
// Tippyjs need the ref to be forwarded to the DOM element wrapping the children.
|
|
5285
|
-
// This component has been created to add a wrapping span and use its ref when needed.
|
|
5286
|
-
// See: https://github.com/atomiks/tippyjs-react#component-children
|
|
5287
|
-
const Wrapper = /*#__PURE__*/ (0,external_react_.forwardRef)((props, ref)=>{
|
|
5288
|
-
const childrenCount = external_react_default().Children.count(props.children);
|
|
5289
|
-
try {
|
|
5290
|
-
const child = external_react_default().Children.only(props.children);
|
|
5291
|
-
const isValidElement = /*#__PURE__*/ external_react_default().isValidElement(child);
|
|
5292
|
-
const isForwardingRef = (0,external_react_is_namespaceObject.isForwardRef)(child);
|
|
5293
|
-
const isDomElement = isValidElement && typeof child.type === "string";
|
|
5294
|
-
if (isForwardingRef || isDomElement) {
|
|
5295
|
-
return /*#__PURE__*/ external_react_default().cloneElement(child, {
|
|
5296
|
-
ref
|
|
5297
|
-
});
|
|
5298
|
-
} else {
|
|
5299
|
-
return /*#__PURE__*/ external_react_default().createElement("span", {
|
|
5300
|
-
ref: ref
|
|
5301
|
-
}, props.children);
|
|
5302
|
-
}
|
|
5303
|
-
} catch {
|
|
5304
|
-
return childrenCount < 1 ? null : /*#__PURE__*/ external_react_default().createElement("span", {
|
|
5305
|
-
ref: ref
|
|
5306
|
-
}, props.children);
|
|
5307
|
-
}
|
|
5308
|
-
});
|
|
5309
5281
|
function Tooltip(props) {
|
|
5310
5282
|
const { content, placement = "auto", children, ...rest } = props;
|
|
5311
|
-
|
|
5283
|
+
const triggerRef = (0,external_react_.useRef)(null);
|
|
5284
|
+
return /*#__PURE__*/ external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/ external_react_default().createElement("span", {
|
|
5285
|
+
ref: triggerRef,
|
|
5286
|
+
style: {
|
|
5287
|
+
display: "inline-flex"
|
|
5288
|
+
}
|
|
5289
|
+
}, children), /*#__PURE__*/ external_react_default().createElement((react_default()), {
|
|
5312
5290
|
...rest,
|
|
5291
|
+
reference: triggerRef,
|
|
5313
5292
|
placement: placement,
|
|
5314
5293
|
content: /*#__PURE__*/ external_react_default().createElement(Text["default"], {
|
|
5315
5294
|
fontWeight: "medium",
|
|
5316
5295
|
variant: "paragraph",
|
|
5317
5296
|
color: "neutral.c00"
|
|
5318
5297
|
}, content)
|
|
5319
|
-
}, /*#__PURE__*/ external_react_default().createElement(Wrapper, {
|
|
5320
|
-
children: children
|
|
5321
5298
|
}));
|
|
5322
5299
|
}
|
|
5323
5300
|
|
|
@@ -5438,7 +5415,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
5438
5415
|
/* import */ var _Log__rspack_import_2 = __webpack_require__(7518);
|
|
5439
5416
|
/* import */ var _Notification__rspack_import_3 = __webpack_require__(3341);
|
|
5440
5417
|
/* import */ var _Notification_Badge__rspack_import_4 = __webpack_require__(3424);
|
|
5441
|
-
/* import */ var _Tooltip__rspack_import_5 = __webpack_require__(
|
|
5418
|
+
/* import */ var _Tooltip__rspack_import_5 = __webpack_require__(5845);
|
|
5442
5419
|
/* import */ var _Tip__rspack_import_6 = __webpack_require__(5083);
|
|
5443
5420
|
/* import */ var _StatusNotification__rspack_import_7 = __webpack_require__(1931);
|
|
5444
5421
|
|