@ledgerhq/lumen-ui-react 0.1.13 → 0.1.15
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/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/_virtual/with-selector.development.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector.production.js +4 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/index.js +138 -129
- package/dist/lib/Components/Avatar/Avatar.js +5 -5
- package/dist/lib/Components/BaseInput/BaseInput.js +20 -20
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +25 -0
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -0
- package/dist/lib/Components/MediaBanner/MediaBanner.js +98 -0
- package/dist/lib/Components/MediaBanner/index.d.ts +3 -0
- package/dist/lib/Components/MediaBanner/index.d.ts.map +1 -0
- package/dist/lib/Components/MediaBanner/types.d.ts +53 -0
- package/dist/lib/Components/MediaBanner/types.d.ts.map +1 -0
- package/dist/lib/Components/Popover/Popover.d.ts +57 -0
- package/dist/lib/Components/Popover/Popover.d.ts.map +1 -0
- package/dist/lib/Components/Popover/Popover.js +126 -0
- package/dist/lib/Components/Popover/index.d.ts +3 -0
- package/dist/lib/Components/Popover/index.d.ts.map +1 -0
- package/dist/lib/Components/Popover/types.d.ts +129 -0
- package/dist/lib/Components/Popover/types.d.ts.map +1 -0
- package/dist/lib/Components/Tag/Tag.js +5 -5
- package/dist/lib/Components/Tooltip/Tooltip.js +1 -1
- package/dist/lib/Components/index.d.ts +2 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/lib/Symbols/Icons/Csv.js +5 -5
- package/dist/lib/Symbols/Icons/TriangleDown.d.ts +29 -0
- package/dist/lib/Symbols/Icons/TriangleDown.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/TriangleDown.js +25 -0
- package/dist/lib/Symbols/Icons/TriangleUp.d.ts +29 -0
- package/dist/lib/Symbols/Icons/TriangleUp.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/TriangleUp.js +25 -0
- package/dist/lib/Symbols/index.d.ts +2 -0
- package/dist/lib/Symbols/index.d.ts.map +1 -1
- package/dist/lib/Symbols/index.js +104 -100
- package/dist/node_modules/@base-ui/react/esm/composite/composite.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/composite/root/CompositeRootContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/direction-provider/DirectionContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js +284 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingPortal.js +128 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore.js +60 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree.js +58 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTreeStore.js +17 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick.js +67 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.js +275 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.js +78 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloatingRootContext.js +38 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverFloatingInteraction.js +87 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverInteractionSharedState.js +42 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverReferenceInteraction.js +145 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverShared.js +19 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions.js +48 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole.js +76 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js +35 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/middleware/arrow.js +47 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/safePolygon.js +131 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js +7 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js +7 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter.js +17 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js +69 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.js +16 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/event.js +30 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext.js +17 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.js +80 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.js +15 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.js +68 -0
- package/dist/node_modules/@base-ui/react/esm/merge-props/mergeProps.js +82 -0
- package/dist/node_modules/@base-ui/react/esm/popover/backdrop/PopoverBackdrop.js +39 -0
- package/dist/node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js +88 -0
- package/dist/node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js +24 -0
- package/dist/node_modules/@base-ui/react/esm/popover/portal/PopoverPortalContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js +110 -0
- package/dist/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositionerContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js +117 -0
- package/dist/node_modules/@base-ui/react/esm/popover/root/PopoverRootContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js +44 -0
- package/dist/node_modules/@base-ui/react/esm/popover/store/PopoverStore.js +94 -0
- package/dist/node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js +120 -0
- package/dist/node_modules/@base-ui/react/esm/popover/utils/constants.js +4 -0
- package/dist/node_modules/@base-ui/react/esm/toolbar/root/ToolbarRootContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/use-button/useButton.js +113 -0
- package/dist/node_modules/@base-ui/react/esm/utils/FocusGuard.js +26 -0
- package/dist/node_modules/@base-ui/react/esm/utils/InternalBackdrop.js +41 -0
- package/dist/node_modules/@base-ui/react/esm/utils/adaptiveOriginMiddleware.js +63 -0
- package/dist/node_modules/@base-ui/react/esm/utils/closePart.js +30 -0
- package/dist/node_modules/@base-ui/react/esm/utils/constants.js +19 -0
- package/dist/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.js +26 -0
- package/dist/node_modules/@base-ui/react/esm/utils/getDisabledMountTransitionStyles.js +8 -0
- package/dist/node_modules/@base-ui/react/esm/utils/getStateAttributesProps.js +16 -0
- package/dist/node_modules/@base-ui/react/esm/utils/hideMiddleware.js +20 -0
- package/dist/node_modules/@base-ui/react/esm/utils/popupStateMapping.js +40 -0
- package/dist/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.js +95 -0
- package/dist/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap.js +64 -0
- package/dist/node_modules/@base-ui/react/esm/utils/popups/store.js +52 -0
- package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.js +9 -0
- package/dist/node_modules/@base-ui/react/esm/utils/resolveClassName.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/utils/resolveRef.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/utils/resolveStyle.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/utils/stateAttributesMapping.js +16 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useAnchorPositioning.js +267 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useAnimationsFinished.js +57 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useBaseUiId.js +7 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js +24 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useOpenChangeComplete.js +22 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js +30 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useRenderElement.js +71 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useTransitionStatus.js +42 -0
- package/dist/node_modules/@base-ui/react/esm/utils/useValueChanged.js +14 -0
- package/dist/node_modules/@base-ui/utils/esm/detectBrowser.js +43 -0
- package/dist/node_modules/@base-ui/utils/esm/empty.js +7 -0
- package/dist/node_modules/@base-ui/utils/esm/error.js +11 -0
- package/dist/node_modules/@base-ui/utils/esm/formatErrorMessage.js +11 -0
- package/dist/node_modules/@base-ui/utils/esm/getReactElementRef.js +11 -0
- package/dist/node_modules/@base-ui/utils/esm/inertValue.js +7 -0
- package/dist/node_modules/@base-ui/utils/esm/mergeObjects.js +14 -0
- package/dist/node_modules/@base-ui/utils/esm/owner.js +6 -0
- package/dist/node_modules/@base-ui/utils/esm/reactVersion.js +8 -0
- package/dist/node_modules/@base-ui/utils/esm/safeReact.js +7 -0
- package/dist/node_modules/@base-ui/utils/esm/store/ReactStore.js +145 -0
- package/dist/node_modules/@base-ui/utils/esm/store/Store.js +86 -0
- package/dist/node_modules/@base-ui/utils/esm/store/createSelector.js +25 -0
- package/dist/node_modules/@base-ui/utils/esm/store/useStore.js +21 -0
- package/dist/node_modules/@base-ui/utils/esm/useAnimationFrame.js +68 -0
- package/dist/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js +19 -0
- package/dist/node_modules/@base-ui/utils/esm/useId.js +20 -0
- package/dist/node_modules/@base-ui/utils/esm/useIsoLayoutEffect.js +6 -0
- package/dist/node_modules/@base-ui/utils/esm/useMergedRefs.js +69 -0
- package/dist/node_modules/@base-ui/utils/esm/useOnFirstRender.js +8 -0
- package/dist/node_modules/@base-ui/utils/esm/useOnMount.js +8 -0
- package/dist/node_modules/@base-ui/utils/esm/useRefWithInit.js +9 -0
- package/dist/node_modules/@base-ui/utils/esm/useScrollLock.js +122 -0
- package/dist/node_modules/@base-ui/utils/esm/useStableCallback.js +32 -0
- package/dist/node_modules/@base-ui/utils/esm/useTimeout.js +32 -0
- package/dist/node_modules/@base-ui/utils/esm/useValueAsRef.js +19 -0
- package/dist/node_modules/@base-ui/utils/esm/visuallyHidden.js +18 -0
- package/dist/node_modules/@base-ui/utils/esm/warn.js +11 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +494 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +203 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/node_modules/reselect/dist/reselect.js +324 -0
- package/dist/node_modules/tabbable/dist/index.esm.js +210 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +58 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +57 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +58 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +46 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
- package/dist/package.json +2 -1
- package/package.json +2 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { useState as u, useEffect as v } from "react";
|
|
4
|
+
import { useCommonTranslation as x } from "../../../i18n/useCommonTranslation.js";
|
|
5
|
+
import { Close as N } from "../../Symbols/Icons/Close.js";
|
|
6
|
+
import { InteractiveIcon as h } from "../InteractiveIcon/InteractiveIcon.js";
|
|
7
|
+
const y = ({
|
|
8
|
+
ref: o,
|
|
9
|
+
imageUrl: a,
|
|
10
|
+
onClose: r,
|
|
11
|
+
closeAriaLabel: t,
|
|
12
|
+
children: l,
|
|
13
|
+
className: c,
|
|
14
|
+
...m
|
|
15
|
+
}) => {
|
|
16
|
+
const { t: d } = x(), [p, i] = u(!1);
|
|
17
|
+
v(() => {
|
|
18
|
+
i(!1);
|
|
19
|
+
}, [a]);
|
|
20
|
+
const f = a && !p;
|
|
21
|
+
return /* @__PURE__ */ n(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
ref: o,
|
|
25
|
+
className: s(
|
|
26
|
+
"relative flex h-72 flex-row overflow-hidden rounded-md bg-surface",
|
|
27
|
+
c
|
|
28
|
+
),
|
|
29
|
+
...m,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 items-center px-12 py-2", children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-4 py-12", children: l }) }),
|
|
32
|
+
/* @__PURE__ */ n("div", { className: "relative w-128", children: [
|
|
33
|
+
f && /* @__PURE__ */ e(
|
|
34
|
+
"img",
|
|
35
|
+
{
|
|
36
|
+
src: a,
|
|
37
|
+
alt: "",
|
|
38
|
+
"aria-hidden": !0,
|
|
39
|
+
className: "absolute inset-0 size-full object-cover",
|
|
40
|
+
onError: () => i(!0)
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-0 bg-linear-[45deg] from-black/0 from-67% to-black/80" })
|
|
44
|
+
] }),
|
|
45
|
+
r && /* @__PURE__ */ e(
|
|
46
|
+
h,
|
|
47
|
+
{
|
|
48
|
+
type: "button",
|
|
49
|
+
iconType: "stroked",
|
|
50
|
+
appearance: "white",
|
|
51
|
+
className: "absolute top-8 right-8",
|
|
52
|
+
onClick: (b) => {
|
|
53
|
+
b.stopPropagation(), r();
|
|
54
|
+
},
|
|
55
|
+
"aria-label": t || d("components.banner.closeAriaLabel"),
|
|
56
|
+
children: /* @__PURE__ */ e(N, { size: 16 })
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
y.displayName = "MediaBanner";
|
|
64
|
+
const g = ({
|
|
65
|
+
ref: o,
|
|
66
|
+
children: a,
|
|
67
|
+
className: r,
|
|
68
|
+
...t
|
|
69
|
+
}) => /* @__PURE__ */ e(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
ref: o,
|
|
73
|
+
className: s("line-clamp-1 body-2-semi-bold text-base", r),
|
|
74
|
+
...t,
|
|
75
|
+
children: a
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
g.displayName = "MediaBannerTitle";
|
|
79
|
+
const B = ({
|
|
80
|
+
ref: o,
|
|
81
|
+
children: a,
|
|
82
|
+
className: r,
|
|
83
|
+
...t
|
|
84
|
+
}) => /* @__PURE__ */ e(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
ref: o,
|
|
88
|
+
className: s("line-clamp-2 body-3 text-muted", r),
|
|
89
|
+
...t,
|
|
90
|
+
children: a
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
B.displayName = "MediaBannerDescription";
|
|
94
|
+
export {
|
|
95
|
+
y as MediaBanner,
|
|
96
|
+
B as MediaBannerDescription,
|
|
97
|
+
g as MediaBannerTitle
|
|
98
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaBanner/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MediaBanner root component.
|
|
4
|
+
*/
|
|
5
|
+
export type MediaBannerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* URL of the background image displayed on the right side.
|
|
8
|
+
*/
|
|
9
|
+
imageUrl: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional close action callback.
|
|
12
|
+
*/
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Optional aria label for the close button.
|
|
16
|
+
*/
|
|
17
|
+
closeAriaLabel?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Custom classname.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The banner content (MediaBannerTitle, MediaBannerDescription).
|
|
24
|
+
*/
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
27
|
+
/**
|
|
28
|
+
* Props for the MediaBannerTitle component.
|
|
29
|
+
*/
|
|
30
|
+
export type MediaBannerTitleProps = {
|
|
31
|
+
/**
|
|
32
|
+
* The title text content.
|
|
33
|
+
*/
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Custom classname.
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
} & ComponentPropsWithRef<'div'>;
|
|
40
|
+
/**
|
|
41
|
+
* Props for the MediaBannerDescription component.
|
|
42
|
+
*/
|
|
43
|
+
export type MediaBannerDescriptionProps = {
|
|
44
|
+
/**
|
|
45
|
+
* The description text content.
|
|
46
|
+
*/
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Custom classname.
|
|
50
|
+
*/
|
|
51
|
+
className?: string;
|
|
52
|
+
} & ComponentPropsWithRef<'div'>;
|
|
53
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaBanner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
2
|
+
import { PopoverProps, PopoverTriggerProps, PopoverContentProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The root component that manages the popover's open/closed state and
|
|
5
|
+
* provides configuration to child components via context.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/components-popover-overview--docs Storybook}
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* import { Popover, PopoverTrigger, PopoverContent } from '@ledgerhq/lumen-ui-react';
|
|
11
|
+
*
|
|
12
|
+
* function MyComponent() {
|
|
13
|
+
* return (
|
|
14
|
+
* <Popover>
|
|
15
|
+
* <PopoverTrigger render={<Button>Open</Button>} />
|
|
16
|
+
* <PopoverContent sideOffset={4} align="start">
|
|
17
|
+
* <p>Popover content</p>
|
|
18
|
+
* </PopoverContent>} />
|
|
19
|
+
* </Popover>
|
|
20
|
+
* );
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
declare const Popover: <Payload>({ open, defaultOpen, onOpenChange, overlay, handle, children, }: PopoverProps<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* A button that opens the popover.
|
|
26
|
+
* Use the `render` prop to compose with a custom component.
|
|
27
|
+
*
|
|
28
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/components-popover-overview--docs Storybook}
|
|
29
|
+
*/
|
|
30
|
+
declare const PopoverTrigger: {
|
|
31
|
+
<Payload>({ handle, payload, render, className, ...props }: PopoverTriggerProps<Payload>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The content panel of the popover. Internally renders the Portal,
|
|
36
|
+
* optional Backdrop, Positioner, and Popup.
|
|
37
|
+
*
|
|
38
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/components-popover-overview--docs Storybook}
|
|
39
|
+
*/
|
|
40
|
+
declare const PopoverContent: ({ side, sideOffset, align, width, className, children, }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* Creates a handle for connecting a `Popover` with detached `PopoverTrigger` components.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* const handle = createPopoverHandle<{ id: string }>();
|
|
46
|
+
*
|
|
47
|
+
* <PopoverTrigger handle={handle} payload={{ id: '123' }} render={<Button>Open</Button>} />
|
|
48
|
+
*
|
|
49
|
+
* <Popover handle={handle} render={({ payload }) => (
|
|
50
|
+
* <PopoverContent>
|
|
51
|
+
* <p>Item: {payload?.id}</p>
|
|
52
|
+
* </PopoverContent>
|
|
53
|
+
* )} />
|
|
54
|
+
*/
|
|
55
|
+
declare const createPopoverHandle: typeof PopoverPrimitive.createHandle;
|
|
56
|
+
export { Popover, PopoverTrigger, PopoverContent, createPopoverHandle };
|
|
57
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGrE,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AA4CjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,EAAG,iEAOxB,YAAY,CAAC,OAAO,CAAC,4CAcvB,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,cAAc;KAAI,OAAO,oDAM5B,mBAAmB,CAAC,OAAO,CAAC;;CAS9B,CAAC;AAGF;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,0DAOrB,mBAAmB,4CA8BrB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,mBAAmB,sCAAgC,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as m, cn as p } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as l } from "class-variance-authority";
|
|
4
|
+
import { createPopoverHandle as v } from "../../../node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js";
|
|
5
|
+
import { PopoverRoot as c } from "../../../node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js";
|
|
6
|
+
import { PopoverTrigger as f } from "../../../node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js";
|
|
7
|
+
import { PopoverPortal as u } from "../../../node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js";
|
|
8
|
+
import { PopoverBackdrop as P } from "../../../node_modules/@base-ui/react/esm/popover/backdrop/PopoverBackdrop.js";
|
|
9
|
+
import { PopoverPositioner as g } from "../../../node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js";
|
|
10
|
+
import { PopoverPopup as h } from "../../../node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js";
|
|
11
|
+
const [x, b] = m("Popover"), y = l(
|
|
12
|
+
["overflow-hidden rounded-md bg-canvas-sheet p-16 outline-none", "shadow-xl"],
|
|
13
|
+
{
|
|
14
|
+
variants: {
|
|
15
|
+
width: {
|
|
16
|
+
hug: "",
|
|
17
|
+
fixed: "w-400"
|
|
18
|
+
},
|
|
19
|
+
side: {
|
|
20
|
+
top: [
|
|
21
|
+
"data-open:animate-slide-in-from-top",
|
|
22
|
+
"data-closed:animate-slide-out-to-top"
|
|
23
|
+
],
|
|
24
|
+
bottom: [
|
|
25
|
+
"data-open:animate-slide-in-from-bottom",
|
|
26
|
+
"data-closed:animate-slide-out-to-bottom"
|
|
27
|
+
],
|
|
28
|
+
left: [
|
|
29
|
+
"data-open:animate-slide-in-from-left",
|
|
30
|
+
"data-closed:animate-slide-out-to-left"
|
|
31
|
+
],
|
|
32
|
+
right: [
|
|
33
|
+
"data-open:animate-slide-in-from-right",
|
|
34
|
+
"data-closed:animate-slide-out-to-right"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
width: "hug"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
), C = p(
|
|
43
|
+
"fixed inset-0 z-dialog-overlay bg-canvas-overlay-subtle",
|
|
44
|
+
"data-open:animate-fade-in",
|
|
45
|
+
"data-closed:animate-fade-out"
|
|
46
|
+
), B = ({
|
|
47
|
+
open: o,
|
|
48
|
+
defaultOpen: a,
|
|
49
|
+
onOpenChange: r,
|
|
50
|
+
overlay: e = !1,
|
|
51
|
+
handle: n,
|
|
52
|
+
children: i
|
|
53
|
+
}) => /* @__PURE__ */ t(x, { value: { overlay: e }, children: /* @__PURE__ */ t(
|
|
54
|
+
c,
|
|
55
|
+
{
|
|
56
|
+
open: o,
|
|
57
|
+
defaultOpen: a,
|
|
58
|
+
onOpenChange: r,
|
|
59
|
+
modal: e,
|
|
60
|
+
handle: n,
|
|
61
|
+
children: i
|
|
62
|
+
}
|
|
63
|
+
) }), N = ({
|
|
64
|
+
handle: o,
|
|
65
|
+
payload: a,
|
|
66
|
+
render: r,
|
|
67
|
+
className: e,
|
|
68
|
+
...n
|
|
69
|
+
}) => /* @__PURE__ */ t(
|
|
70
|
+
f,
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "popover-trigger",
|
|
73
|
+
handle: o,
|
|
74
|
+
payload: a,
|
|
75
|
+
render: r,
|
|
76
|
+
className: p("data-popup-open:z-menu", e),
|
|
77
|
+
...n
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
N.displayName = "PopoverTrigger";
|
|
81
|
+
const O = ({
|
|
82
|
+
side: o = "bottom",
|
|
83
|
+
sideOffset: a = 8,
|
|
84
|
+
align: r = "start",
|
|
85
|
+
width: e = "hug",
|
|
86
|
+
className: n,
|
|
87
|
+
children: i
|
|
88
|
+
}) => {
|
|
89
|
+
const { overlay: s } = b({
|
|
90
|
+
consumerName: "PopoverContent",
|
|
91
|
+
contextRequired: !0
|
|
92
|
+
});
|
|
93
|
+
return /* @__PURE__ */ d(u, { children: [
|
|
94
|
+
s && /* @__PURE__ */ t(
|
|
95
|
+
P,
|
|
96
|
+
{
|
|
97
|
+
"data-slot": "popover-overlay",
|
|
98
|
+
className: C
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ t(
|
|
102
|
+
g,
|
|
103
|
+
{
|
|
104
|
+
"data-slot": "popover-positioner",
|
|
105
|
+
className: "z-menu",
|
|
106
|
+
side: o,
|
|
107
|
+
sideOffset: a,
|
|
108
|
+
align: r,
|
|
109
|
+
children: /* @__PURE__ */ t(
|
|
110
|
+
h,
|
|
111
|
+
{
|
|
112
|
+
"data-slot": "popover-content",
|
|
113
|
+
className: p(y({ width: e, side: o }), n),
|
|
114
|
+
children: i
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
] });
|
|
120
|
+
}, V = v;
|
|
121
|
+
export {
|
|
122
|
+
B as Popover,
|
|
123
|
+
O as PopoverContent,
|
|
124
|
+
N as PopoverTrigger,
|
|
125
|
+
V as createPopoverHandle
|
|
126
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Popover/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { PopoverRootChangeEventDetails, Popover as PopoverNamespace } from '@base-ui/react/popover';
|
|
2
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
3
|
+
type PopoverHandle<Payload> = PopoverNamespace.Handle<Payload>;
|
|
4
|
+
export type PopoverWidth = 'hug' | 'fixed';
|
|
5
|
+
export type PopoverSide = 'top' | 'right' | 'bottom' | 'left';
|
|
6
|
+
export type PopoverAlign = 'start' | 'center' | 'end';
|
|
7
|
+
/**
|
|
8
|
+
* Props for the Popover root component.
|
|
9
|
+
*
|
|
10
|
+
* Groups all parts of the popover and provides configuration
|
|
11
|
+
* that flows down to child components via context.
|
|
12
|
+
*/
|
|
13
|
+
export type PopoverProps<Payload = unknown> = {
|
|
14
|
+
/**
|
|
15
|
+
* The controlled open state of the popover.
|
|
16
|
+
* Must be used in conjunction with `onOpenChange`.
|
|
17
|
+
*/
|
|
18
|
+
open?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The open state of the popover when it is initially rendered.
|
|
21
|
+
* Use when you do not need to control its open state.
|
|
22
|
+
*
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
defaultOpen?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Event handler called when the open state changes.
|
|
28
|
+
*
|
|
29
|
+
* @param open - The new open state
|
|
30
|
+
* @param eventDetails - Additional details about the event that caused the change
|
|
31
|
+
*/
|
|
32
|
+
onOpenChange?: (open: boolean, eventDetails: PopoverRootChangeEventDetails) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to show a backdrop overlay and block outside interactions.
|
|
35
|
+
* When `false`, no overlay is rendered and users can interact with the rest of the page.
|
|
36
|
+
* When `true`, renders a visual overlay and sets the popover to modal mode
|
|
37
|
+
* (disables scrolling and pointer events on elements behind the overlay).
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
overlay?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* A handle to associate the popover with a detached trigger.
|
|
44
|
+
* Created via `createPopoverHandle()`.
|
|
45
|
+
*/
|
|
46
|
+
handle?: PopoverHandle<Payload>;
|
|
47
|
+
/**
|
|
48
|
+
* The content of the popover. Can be a regular React node or a render function
|
|
49
|
+
* that receives the `payload` from the active trigger.
|
|
50
|
+
*/
|
|
51
|
+
children?: ReactNode | ((arg: {
|
|
52
|
+
payload: Payload | undefined;
|
|
53
|
+
}) => ReactNode);
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Props for the PopoverTrigger component.
|
|
57
|
+
* Use the `render` prop to compose with a custom component.
|
|
58
|
+
*/
|
|
59
|
+
export type PopoverTriggerProps<Payload = unknown> = {
|
|
60
|
+
/**
|
|
61
|
+
* A handle to associate this trigger with a popover defined elsewhere.
|
|
62
|
+
* Created via `createPopoverHandle()`.
|
|
63
|
+
*/
|
|
64
|
+
handle?: PopoverHandle<Payload>;
|
|
65
|
+
/**
|
|
66
|
+
* A payload to pass to the popover when it is opened.
|
|
67
|
+
* Accessible through the render function children of `Popover`.
|
|
68
|
+
*/
|
|
69
|
+
payload?: Payload;
|
|
70
|
+
/**
|
|
71
|
+
* Render function that replaces the default button-style trigger.
|
|
72
|
+
*
|
|
73
|
+
* @example render={<Button {...props} label="Label" />}
|
|
74
|
+
* @example render={(props) => <Button {...props} label="Label" />}
|
|
75
|
+
*/
|
|
76
|
+
render?: PopoverNamespace.Trigger.Props['render'];
|
|
77
|
+
} & Omit<ComponentPropsWithRef<'button'>, 'children'>;
|
|
78
|
+
/**
|
|
79
|
+
* Props for the PopoverContent component.
|
|
80
|
+
*
|
|
81
|
+
* Renders the popover popup panel with Portal, optional Backdrop,
|
|
82
|
+
* Positioner, and Popup internally.
|
|
83
|
+
*/
|
|
84
|
+
export type PopoverContentProps = {
|
|
85
|
+
/**
|
|
86
|
+
* The preferred side of the trigger to position the popover against.
|
|
87
|
+
* May automatically change to avoid collisions.
|
|
88
|
+
*
|
|
89
|
+
* @default 'bottom'
|
|
90
|
+
*/
|
|
91
|
+
side?: PopoverSide;
|
|
92
|
+
/**
|
|
93
|
+
* The distance in pixels from the trigger.
|
|
94
|
+
*
|
|
95
|
+
* @default 8
|
|
96
|
+
*/
|
|
97
|
+
sideOffset?: number;
|
|
98
|
+
/**
|
|
99
|
+
* The preferred alignment against the trigger.
|
|
100
|
+
* May change when collisions occur.
|
|
101
|
+
*
|
|
102
|
+
* @default 'start'
|
|
103
|
+
*/
|
|
104
|
+
align?: PopoverAlign;
|
|
105
|
+
/**
|
|
106
|
+
* The width behavior of the popover content panel.
|
|
107
|
+
* - `'hug'`: Content-fit width (default), define custom width with the `className` prop
|
|
108
|
+
* - `'fixed'`: Always exactly 400px width
|
|
109
|
+
*
|
|
110
|
+
* @default 'hug'
|
|
111
|
+
*/
|
|
112
|
+
width?: PopoverWidth;
|
|
113
|
+
/**
|
|
114
|
+
* Additional CSS class names to apply to the popup panel.
|
|
115
|
+
*/
|
|
116
|
+
className?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The content to display inside the popover panel.
|
|
119
|
+
*/
|
|
120
|
+
children?: ReactNode;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Internal context value passed from Popover root to PopoverContent.
|
|
124
|
+
*/
|
|
125
|
+
export type PopoverContextValue = {
|
|
126
|
+
overlay: boolean;
|
|
127
|
+
};
|
|
128
|
+
export {};
|
|
129
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,OAAO,IAAI,gBAAgB,EAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,KAAK,aAAa,CAAC,OAAO,IAAI,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,OAAO,GAAG,OAAO,IAAI;IAC5C;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CACb,IAAI,EAAE,OAAO,EACb,YAAY,EAAE,6BAA6B,KACxC,IAAI,CAAC;IAEV;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAEhC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,GAAG,EAAE;QAAE,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,KAAK,SAAS,CAAC,CAAC;CAC/E,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,mBAAmB,CAAC,OAAO,GAAG,OAAO,IAAI;IACnD;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAEhC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;CACnD,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as b, cn as g } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { cva as
|
|
4
|
-
const
|
|
5
|
-
"inline-flex items-center justify-center gap-4 rounded-xs",
|
|
3
|
+
import { cva as u } from "class-variance-authority";
|
|
4
|
+
const x = u(
|
|
5
|
+
"inline-flex items-center justify-center gap-4 truncate rounded-xs",
|
|
6
6
|
{
|
|
7
7
|
variants: {
|
|
8
8
|
appearance: {
|
|
@@ -48,12 +48,12 @@ const u = x(
|
|
|
48
48
|
return /* @__PURE__ */ p(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
|
-
className: g(n,
|
|
51
|
+
className: g(n, x({ appearance: r, size: e, disabled: m })),
|
|
52
52
|
ref: s,
|
|
53
53
|
...o,
|
|
54
54
|
children: [
|
|
55
55
|
a && /* @__PURE__ */ t(a, { size: l, className: "shrink-0" }),
|
|
56
|
-
/* @__PURE__ */ t("span", { children: i })
|
|
56
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: i })
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
);
|
|
@@ -3,7 +3,7 @@ import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
|
3
3
|
import * as e from "@radix-ui/react-tooltip";
|
|
4
4
|
import { cva as d } from "class-variance-authority";
|
|
5
5
|
const m = d(
|
|
6
|
-
"z-tooltip w-fit rounded-xs bg-interactive px-8 py-4 body-3 text-
|
|
6
|
+
"z-tooltip w-fit rounded-xs bg-interactive px-8 py-4 body-3 text-on-interactive select-none",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
side: {
|
|
@@ -16,9 +16,11 @@ export * from './IconButton';
|
|
|
16
16
|
export * from './InteractiveIcon';
|
|
17
17
|
export * from './Link';
|
|
18
18
|
export * from './ListItem';
|
|
19
|
+
export * from './MediaBanner';
|
|
19
20
|
export * from './MediaCard';
|
|
20
21
|
export * from './Menu';
|
|
21
22
|
export * from './NavBar';
|
|
23
|
+
export * from './Popover';
|
|
22
24
|
export * from './PageIndicator';
|
|
23
25
|
export * from './SearchInput';
|
|
24
26
|
export * from './SegmentedControl';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
const h =
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import o from "../../Components/Icon/createIcon.js";
|
|
3
|
+
const h = o(
|
|
4
4
|
"Csv",
|
|
5
|
-
/* @__PURE__ */
|
|
5
|
+
/* @__PURE__ */ a(
|
|
6
6
|
"svg",
|
|
7
7
|
{
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -25,7 +25,7 @@ const h = a(
|
|
|
25
25
|
"path",
|
|
26
26
|
{
|
|
27
27
|
fill: "currentColor",
|
|
28
|
-
d: "
|
|
28
|
+
d: "M4.483 13.656a.467.467 0 0 1 .641.156q.022.034.043.044.015.01.04.01h.426a.08.08 0 0 0 .079-.078.08.08 0 0 0-.062-.078l-.728-.183a1.013 1.013 0 0 1 .247-1.994h.426c.39 0 .704.217.878.502a.467.467 0 0 1-.797.486.13.13 0 0 0-.042-.044.1.1 0 0 0-.039-.01H5.17a.079.079 0 0 0-.02.155l.73.183a1.012 1.012 0 0 1-.246 1.995h-.427c-.39 0-.705-.217-.878-.503a.467.467 0 0 1 .155-.64m4.727-2.105c.248.07.392.327.323.575l-.656 2.334a.47.47 0 0 1-.45.34H7.99a.47.47 0 0 1-.45-.34l-.656-2.334a.467.467 0 0 1 .899-.252l.425 1.514.426-1.514a.467.467 0 0 1 .576-.323M1.538 12.667v1c0 .626.508 1.133 1.134 1.133h.666a.467.467 0 0 0 0-.934h-.666a.2.2 0 0 1-.2-.2v-1c0-.11.09-.2.2-.2h.666a.467.467 0 0 0 0-.933h-.666c-.626 0-1.134.508-1.134 1.134"
|
|
29
29
|
}
|
|
30
30
|
)
|
|
31
31
|
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TriangleDown icon component.
|
|
3
|
+
*
|
|
4
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
5
|
+
* to create a consistent icon interface. It supports all standard SVG props and additional
|
|
6
|
+
* size variants defined in the Icon component.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://ldls.vercel.app/?path=/story/symbols-interface-icons--icon&args=name:TriangleDown Storybook}
|
|
9
|
+
*
|
|
10
|
+
* @component
|
|
11
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
12
|
+
* @param {string} [className] - Additional CSS classes to apply to the icon.
|
|
13
|
+
* @param {React.SVGProps<SVGSVGElement>} [...props] - All standard SVG element props.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // Basic usage with default size (24px)
|
|
17
|
+
* import { TriangleDown } from '@ledgerhq/lumen-ui-react/symbols';
|
|
18
|
+
*
|
|
19
|
+
* <TriangleDown />
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // With custom size and className
|
|
23
|
+
* <TriangleDown size={40} className="text-warning" />
|
|
24
|
+
*/
|
|
25
|
+
export declare const TriangleDown: {
|
|
26
|
+
({ ref, className, disabled, ...props }: Omit<import('../../Components/Icon').IconProps, "children">): import('react').FunctionComponentElement<import('../../Components/Icon').IconProps>;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=TriangleDown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriangleDown.d.ts","sourceRoot":"","sources":["../../../../src/lib/Symbols/Icons/TriangleDown.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,YAAY;;;CAcxB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import o from "../../Components/Icon/createIcon.js";
|
|
3
|
+
const i = o(
|
|
4
|
+
"TriangleDown",
|
|
5
|
+
/* @__PURE__ */ r(
|
|
6
|
+
"svg",
|
|
7
|
+
{
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: "1em",
|
|
10
|
+
height: "1em",
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
viewBox: "0 0 16 16",
|
|
13
|
+
children: /* @__PURE__ */ r(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
d: "M13.038 5.347 8.82 12.06a1 1 0 0 1-1.696-.004L2.95 5.343a1 1 0 0 1 .85-1.528h8.39a1 1 0 0 1 .848 1.532"
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
export {
|
|
24
|
+
i as TriangleDown
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TriangleUp icon component.
|
|
3
|
+
*
|
|
4
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
5
|
+
* to create a consistent icon interface. It supports all standard SVG props and additional
|
|
6
|
+
* size variants defined in the Icon component.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://ldls.vercel.app/?path=/story/symbols-interface-icons--icon&args=name:TriangleUp Storybook}
|
|
9
|
+
*
|
|
10
|
+
* @component
|
|
11
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
12
|
+
* @param {string} [className] - Additional CSS classes to apply to the icon.
|
|
13
|
+
* @param {React.SVGProps<SVGSVGElement>} [...props] - All standard SVG element props.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // Basic usage with default size (24px)
|
|
17
|
+
* import { TriangleUp } from '@ledgerhq/lumen-ui-react/symbols';
|
|
18
|
+
*
|
|
19
|
+
* <TriangleUp />
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // With custom size and className
|
|
23
|
+
* <TriangleUp size={40} className="text-warning" />
|
|
24
|
+
*/
|
|
25
|
+
export declare const TriangleUp: {
|
|
26
|
+
({ ref, className, disabled, ...props }: Omit<import('../../Components/Icon').IconProps, "children">): import('react').FunctionComponentElement<import('../../Components/Icon').IconProps>;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=TriangleUp.d.ts.map
|