@ledgerhq/lumen-ui-react 0.1.35 → 0.1.36
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.js +108 -109
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +117 -78
- package/dist/lib/Components/AmountDisplay/index.d.ts +1 -1
- package/dist/lib/Components/AmountDisplay/index.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/types.d.ts +16 -3
- package/dist/lib/Components/AmountDisplay/types.d.ts.map +1 -1
- package/dist/lib/Components/DotIcon/DotIcon.d.ts +1 -1
- package/dist/lib/Components/DotIcon/DotIcon.d.ts.map +1 -1
- package/dist/lib/Components/DotIcon/DotIcon.js +48 -37
- package/dist/lib/Components/DotIcon/types.d.ts +6 -0
- package/dist/lib/Components/DotIcon/types.d.ts.map +1 -1
- package/dist/lib/Components/DotSymbol/DotSymbol.d.ts +1 -1
- package/dist/lib/Components/DotSymbol/DotSymbol.d.ts.map +1 -1
- package/dist/lib/Components/DotSymbol/DotSymbol.js +42 -31
- package/dist/lib/Components/DotSymbol/types.d.ts +6 -0
- package/dist/lib/Components/DotSymbol/types.d.ts.map +1 -1
- package/dist/lib/Components/MediaButton/MediaButton.d.ts +3 -3
- package/dist/lib/Components/MediaButton/MediaButton.d.ts.map +1 -1
- package/dist/lib/Components/MediaButton/MediaButton.js +42 -40
- package/dist/lib/Components/MediaButton/types.d.ts +5 -5
- package/dist/lib/Components/MediaButton/types.d.ts.map +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.d.ts +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.js +40 -29
- package/dist/lib/Components/MediaImage/types.d.ts +6 -0
- package/dist/lib/Components/MediaImage/types.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.d.ts +11 -16
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +186 -125
- package/dist/lib/Components/Menu/types.d.ts +50 -145
- package/dist/lib/Components/Menu/types.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts +2 -2
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.js +1 -1
- package/dist/lib/Components/NavBar/NavBar.d.ts +4 -4
- package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/NavBar.js +10 -2
- package/dist/lib/Components/NavBar/types.d.ts +2 -2
- package/dist/lib/Components/NavBar/types.d.ts.map +1 -1
- package/dist/lib/Components/Popover/Popover.d.ts +2 -2
- package/dist/lib/Components/Popover/types.d.ts +6 -3
- package/dist/lib/Components/Popover/types.d.ts.map +1 -1
- package/dist/node_modules/@base-ui/react/esm/composite/item/CompositeItem.js +30 -0
- package/dist/node_modules/@base-ui/react/esm/composite/item/useCompositeItem.js +34 -0
- package/dist/node_modules/@base-ui/react/esm/context-menu/root/ContextMenuRootContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js +10 -10
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFocus.js +97 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverFloatingInteraction.js +10 -10
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverReferenceInteraction.js +2 -2
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js +31 -20
- package/dist/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js +78 -0
- package/dist/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItemContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItemDataAttributes.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js +44 -0
- package/dist/node_modules/@base-ui/react/esm/menu/group/MenuGroup.js +28 -0
- package/dist/node_modules/@base-ui/react/esm/menu/group/MenuGroupContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/group-label/MenuGroupLabel.js +29 -0
- package/dist/node_modules/@base-ui/react/esm/menu/item/MenuItem.js +47 -0
- package/dist/node_modules/@base-ui/react/esm/menu/item/useMenuItem.js +50 -0
- package/dist/node_modules/@base-ui/react/esm/menu/item/useMenuItemCommonProps.js +49 -0
- package/dist/node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js +89 -0
- package/dist/node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js +24 -0
- package/dist/node_modules/@base-ui/react/esm/menu/portal/MenuPortalContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js +174 -0
- package/dist/node_modules/@base-ui/react/esm/menu/positioner/MenuPositionerContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js +45 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroupContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js +75 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItemContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js +44 -0
- package/dist/node_modules/@base-ui/react/esm/menu/root/MenuRoot.js +271 -0
- package/dist/node_modules/@base-ui/react/esm/menu/root/MenuRootContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/store/MenuStore.js +109 -0
- package/dist/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js +21 -0
- package/dist/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRootContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js +101 -0
- package/dist/node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js +207 -0
- package/dist/node_modules/@base-ui/react/esm/menu/utils/findRootOwnerId.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/menu/utils/stateAttributesMapping.js +15 -0
- package/dist/node_modules/@base-ui/react/esm/menubar/MenubarContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js +11 -11
- package/dist/node_modules/@base-ui/react/esm/popover/store/PopoverStore.js +7 -7
- package/dist/node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js +11 -11
- package/dist/node_modules/@base-ui/react/esm/utils/constants.js +11 -10
- package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.js +11 -8
- package/dist/node_modules/@base-ui/react/esm/utils/useMixedToggleClickHandler.js +25 -0
- package/dist/node_modules/@base-ui/utils/esm/detectBrowser.js +7 -8
- package/dist/node_modules/@base-ui/utils/esm/fastHooks.js +43 -0
- package/dist/node_modules/@base-ui/utils/esm/store/useStore.js +54 -13
- package/dist/package.json +2 -3
- package/package.json +4 -5
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as n } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as v, DisabledProvider as x, cn as n } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as c } from "class-variance-authority";
|
|
4
|
+
import { useMemo as g } from "react";
|
|
5
|
+
const z = c("relative inline-flex w-fit", {
|
|
6
|
+
variants: {
|
|
7
|
+
disabled: {
|
|
8
|
+
true: "opacity-30",
|
|
9
|
+
false: ""
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}), N = c(
|
|
6
13
|
"absolute z-10 box-content flex items-center justify-center overflow-hidden border-base-inverted",
|
|
7
14
|
{
|
|
8
15
|
variants: {
|
|
@@ -34,64 +41,68 @@ const x = b(
|
|
|
34
41
|
{ shape: "circle", className: "rounded-full" }
|
|
35
42
|
]
|
|
36
43
|
}
|
|
37
|
-
),
|
|
44
|
+
), V = {
|
|
38
45
|
40: 16,
|
|
39
46
|
48: 20,
|
|
40
47
|
56: 24,
|
|
41
48
|
64: 24
|
|
42
|
-
},
|
|
49
|
+
}, w = {
|
|
43
50
|
40: 16,
|
|
44
51
|
48: 20,
|
|
45
52
|
56: 24,
|
|
46
53
|
72: 24
|
|
47
|
-
},
|
|
54
|
+
}, D = {
|
|
48
55
|
16: 12,
|
|
49
56
|
20: 16,
|
|
50
57
|
24: 16
|
|
51
|
-
},
|
|
58
|
+
}, I = {
|
|
52
59
|
"top-start": ["top", "left"],
|
|
53
60
|
"top-end": ["top", "right"],
|
|
54
61
|
"bottom-start": ["bottom", "left"],
|
|
55
62
|
"bottom-end": ["bottom", "right"]
|
|
56
|
-
},
|
|
57
|
-
const [
|
|
58
|
-
return { [
|
|
59
|
-
},
|
|
60
|
-
children:
|
|
61
|
-
icon:
|
|
63
|
+
}, i = -3, M = (t) => {
|
|
64
|
+
const [s, o] = I[t];
|
|
65
|
+
return { [s]: i, [o]: i };
|
|
66
|
+
}, q = ({
|
|
67
|
+
children: t,
|
|
68
|
+
icon: s,
|
|
62
69
|
appearance: o,
|
|
63
|
-
pin:
|
|
64
|
-
size:
|
|
65
|
-
shape:
|
|
66
|
-
className:
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
pin: a = "bottom-end",
|
|
71
|
+
size: r = 20,
|
|
72
|
+
shape: d = "circle",
|
|
73
|
+
className: l,
|
|
74
|
+
disabled: m = !1,
|
|
75
|
+
ref: p,
|
|
76
|
+
...b
|
|
69
77
|
}) => {
|
|
70
|
-
const
|
|
71
|
-
|
|
78
|
+
const u = g(() => M(a), [a]), f = v({
|
|
79
|
+
consumerName: "DotIcon",
|
|
80
|
+
mergeWith: { disabled: m }
|
|
81
|
+
});
|
|
82
|
+
return /* @__PURE__ */ e(x, { value: { disabled: !1 }, children: /* @__PURE__ */ h(
|
|
72
83
|
"div",
|
|
73
84
|
{
|
|
74
|
-
ref:
|
|
75
|
-
className: n(
|
|
76
|
-
...
|
|
85
|
+
ref: p,
|
|
86
|
+
className: n(z({ disabled: f, className: l })),
|
|
87
|
+
...b,
|
|
77
88
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ e("div", { className: "inline-flex", children: t }),
|
|
90
|
+
/* @__PURE__ */ e(
|
|
80
91
|
"div",
|
|
81
92
|
{
|
|
82
|
-
className: n(
|
|
83
|
-
style:
|
|
84
|
-
children: /* @__PURE__ */
|
|
93
|
+
className: n(N({ size: r, shape: d, pin: a, appearance: o })),
|
|
94
|
+
style: u,
|
|
95
|
+
children: /* @__PURE__ */ e(s, { size: D[r], className: "text-on-interactive" })
|
|
85
96
|
}
|
|
86
97
|
)
|
|
87
98
|
]
|
|
88
99
|
}
|
|
89
|
-
);
|
|
100
|
+
) });
|
|
90
101
|
};
|
|
91
|
-
|
|
102
|
+
q.displayName = "DotIcon";
|
|
92
103
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
q as DotIcon,
|
|
105
|
+
D as dotIconSizeMap,
|
|
106
|
+
V as mediaImageDotIconSizeMap,
|
|
107
|
+
w as spotDotIconSizeMap
|
|
97
108
|
};
|
|
@@ -34,6 +34,12 @@ export type DotIconProps = {
|
|
|
34
34
|
* Additional custom CSS classes to apply to the wrapper.
|
|
35
35
|
*/
|
|
36
36
|
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Shows a disabled appearance.
|
|
39
|
+
* @optional
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
disabled?: boolean;
|
|
37
43
|
/**
|
|
38
44
|
* The wrapped component (e.g. MediaImage or Spot).
|
|
39
45
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,WAAW,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEvC,MAAM,MAAM,UAAU,GAClB,WAAW,GACX,SAAS,GACT,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D;;OAEG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,WAAW,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEvC,MAAM,MAAM,UAAU,GAClB,WAAW,GACX,SAAS,GACT,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D;;OAEG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -15,7 +15,7 @@ export declare const spotDotSizeMap: Record<SpotSize, DotSymbolSize>;
|
|
|
15
15
|
* </DotSymbol>
|
|
16
16
|
*/
|
|
17
17
|
export declare const DotSymbol: {
|
|
18
|
-
({ children, src, alt, pin, size, shape, imgLoading, className, ref, ...rest }: DotSymbolProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
({ children, src, alt, pin, size, shape, imgLoading, className, disabled: disabledProp, ref, ...rest }: DotSymbolProps): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=DotSymbol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DotSymbol.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotSymbol/DotSymbol.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DotSymbol.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotSymbol/DotSymbol.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAgB,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA0D3E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,aAAa,CAU7D,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAMjD,CAAC;AAmBX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;4GAYnB,cAAc;;CAkChB,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as z } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as x, DisabledProvider as v, cn as N } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as d } from "class-variance-authority";
|
|
4
|
+
import { useMemo as g, useState as q, useEffect as y } from "react";
|
|
5
|
+
const D = d("relative inline-flex w-fit", {
|
|
6
|
+
variants: {
|
|
7
|
+
disabled: {
|
|
8
|
+
true: "opacity-30",
|
|
9
|
+
false: ""
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}), S = d(
|
|
6
13
|
"absolute z-10 box-content overflow-hidden border-base-inverted bg-muted",
|
|
7
14
|
{
|
|
8
15
|
variants: {
|
|
@@ -38,14 +45,14 @@ const v = h(
|
|
|
38
45
|
{ shape: "circle", className: "rounded-full" }
|
|
39
46
|
]
|
|
40
47
|
}
|
|
41
|
-
),
|
|
48
|
+
), M = {
|
|
42
49
|
8: -2,
|
|
43
50
|
10: -2,
|
|
44
51
|
12: -2,
|
|
45
52
|
16: -3,
|
|
46
53
|
20: -3,
|
|
47
54
|
24: -3
|
|
48
|
-
},
|
|
55
|
+
}, C = {
|
|
49
56
|
12: 8,
|
|
50
57
|
16: 8,
|
|
51
58
|
20: 8,
|
|
@@ -55,60 +62,64 @@ const v = h(
|
|
|
55
62
|
48: 20,
|
|
56
63
|
56: 24,
|
|
57
64
|
64: 24
|
|
58
|
-
},
|
|
65
|
+
}, I = {
|
|
59
66
|
32: 12,
|
|
60
67
|
40: 16,
|
|
61
68
|
48: 20,
|
|
62
69
|
56: 24,
|
|
63
70
|
72: 24
|
|
64
|
-
},
|
|
71
|
+
}, E = {
|
|
65
72
|
"top-start": ["top", "left"],
|
|
66
73
|
"top-end": ["top", "right"],
|
|
67
74
|
"bottom-start": ["bottom", "left"],
|
|
68
75
|
"bottom-end": ["bottom", "right"]
|
|
69
|
-
},
|
|
70
|
-
const [r, s] =
|
|
76
|
+
}, V = (a, t) => {
|
|
77
|
+
const [r, s] = E[a], e = M[t];
|
|
71
78
|
return { [r]: e, [s]: e };
|
|
72
|
-
},
|
|
73
|
-
children:
|
|
79
|
+
}, j = ({
|
|
80
|
+
children: a,
|
|
74
81
|
src: t,
|
|
75
82
|
alt: r,
|
|
76
83
|
pin: s = "bottom-end",
|
|
77
84
|
size: e = 20,
|
|
78
85
|
shape: n = "circle",
|
|
79
|
-
imgLoading:
|
|
80
|
-
className:
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
imgLoading: l = "eager",
|
|
87
|
+
className: c,
|
|
88
|
+
disabled: m = !1,
|
|
89
|
+
ref: p,
|
|
90
|
+
...u
|
|
83
91
|
}) => {
|
|
84
|
-
const
|
|
85
|
-
|
|
92
|
+
const b = g(() => V(s, e), [s, e]), [f, i] = q(!1), h = x({
|
|
93
|
+
consumerName: "DotSymbol",
|
|
94
|
+
mergeWith: { disabled: m }
|
|
95
|
+
});
|
|
96
|
+
return y(() => {
|
|
86
97
|
i(!1);
|
|
87
|
-
}, [t]), /* @__PURE__ */
|
|
98
|
+
}, [t]), /* @__PURE__ */ o(v, { value: { disabled: !1 }, children: /* @__PURE__ */ z(
|
|
88
99
|
"div",
|
|
89
100
|
{
|
|
90
|
-
ref:
|
|
91
|
-
className:
|
|
92
|
-
...
|
|
101
|
+
ref: p,
|
|
102
|
+
className: N(D({ disabled: h, className: c })),
|
|
103
|
+
...u,
|
|
93
104
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ o("div", { className: "inline-flex", children: a }),
|
|
106
|
+
/* @__PURE__ */ o("div", { className: S({ size: e, shape: n, pin: s }), style: b, children: !f && /* @__PURE__ */ o(
|
|
96
107
|
"img",
|
|
97
108
|
{
|
|
98
109
|
alt: r,
|
|
99
110
|
src: t,
|
|
100
|
-
loading:
|
|
111
|
+
loading: l,
|
|
101
112
|
"aria-hidden": "true",
|
|
102
113
|
onError: () => i(!0)
|
|
103
114
|
}
|
|
104
115
|
) })
|
|
105
116
|
]
|
|
106
117
|
}
|
|
107
|
-
);
|
|
118
|
+
) });
|
|
108
119
|
};
|
|
109
|
-
|
|
120
|
+
j.displayName = "DotSymbol";
|
|
110
121
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
122
|
+
j as DotSymbol,
|
|
123
|
+
C as mediaImageDotSizeMap,
|
|
124
|
+
I as spotDotSizeMap
|
|
114
125
|
};
|
|
@@ -37,6 +37,12 @@ export type DotSymbolProps = {
|
|
|
37
37
|
* Additional custom CSS classes to apply to the wrapper.
|
|
38
38
|
*/
|
|
39
39
|
className?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Shows a disabled appearance.
|
|
42
|
+
* @optional
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean;
|
|
40
46
|
/**
|
|
41
47
|
* The wrapped component (e.g. MediaImage or Spot).
|
|
42
48
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotSymbol/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEvD,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,SAAS,GACT,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotSymbol/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEvD,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,SAAS,GACT,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -14,17 +14,17 @@ import { MediaButtonProps } from './types';
|
|
|
14
14
|
* import { Settings } from '@ledgerhq/lumen-ui-react/symbols';
|
|
15
15
|
*
|
|
16
16
|
* // With flat interface icon
|
|
17
|
-
* <MediaButton
|
|
17
|
+
* <MediaButton leadingContent={<Settings size={20} />} leadingContentShape="flat">
|
|
18
18
|
* Network
|
|
19
19
|
* </MediaButton>
|
|
20
20
|
*
|
|
21
21
|
* // With rounded crypto icon
|
|
22
|
-
* <MediaButton
|
|
22
|
+
* <MediaButton leadingContent={<CryptoIcon ledgerId="bitcoin" size={32} />} leadingContentShape="rounded">
|
|
23
23
|
* Bitcoin
|
|
24
24
|
* </MediaButton>
|
|
25
25
|
*
|
|
26
26
|
* // Without icon
|
|
27
27
|
* <MediaButton>All accounts</MediaButton>
|
|
28
28
|
*/
|
|
29
|
-
export declare const MediaButton: ({ ref, className, appearance, size, disabled: disabledProp, asChild,
|
|
29
|
+
export declare const MediaButton: ({ ref, className, appearance, size, disabled: disabledProp, asChild, leadingContent, leadingContentShape, hideChevron, children, ...props }: MediaButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
//# sourceMappingURL=MediaButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/MediaButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA4BhD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,WAAW,GAAI,
|
|
1
|
+
{"version":3,"file":"MediaButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/MediaButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA4BhD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,WAAW,GAAI,6IAYzB,gBAAgB,4CA4ClB,CAAC"}
|
|
@@ -1,76 +1,78 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { baseButtonVariants as
|
|
6
|
-
import { ChevronDown as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as h, cn as u } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { Slot as S, Slottable as x } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as C } from "class-variance-authority";
|
|
5
|
+
import { baseButtonVariants as b } from "../Button/BaseButton.js";
|
|
6
|
+
import { ChevronDown as z } from "../../Symbols/Icons/ChevronDown.js";
|
|
7
|
+
const y = C("gap-8 body-2-semi-bold", {
|
|
8
8
|
variants: {
|
|
9
9
|
size: {
|
|
10
10
|
sm: "",
|
|
11
11
|
md: ""
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
leadingContentShape: {
|
|
14
14
|
flat: "",
|
|
15
15
|
rounded: "",
|
|
16
16
|
none: ""
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
compoundVariants: [
|
|
20
|
-
{ size: "md",
|
|
21
|
-
{ size: "md",
|
|
22
|
-
{ size: "md",
|
|
23
|
-
{ size: "sm",
|
|
24
|
-
{ size: "sm",
|
|
25
|
-
{ size: "sm",
|
|
20
|
+
{ size: "md", leadingContentShape: "flat", class: "px-16 py-12" },
|
|
21
|
+
{ size: "md", leadingContentShape: "rounded", class: "py-8 pr-16 pl-8" },
|
|
22
|
+
{ size: "md", leadingContentShape: "none", class: "px-16 py-14" },
|
|
23
|
+
{ size: "sm", leadingContentShape: "flat", class: "px-12 py-10" },
|
|
24
|
+
{ size: "sm", leadingContentShape: "rounded", class: "py-8 pr-10 pl-8" },
|
|
25
|
+
{ size: "sm", leadingContentShape: "none", class: "px-12 py-10" }
|
|
26
26
|
],
|
|
27
27
|
defaultVariants: {
|
|
28
28
|
size: "md",
|
|
29
|
-
|
|
29
|
+
leadingContentShape: "none"
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
31
|
+
}), k = ({
|
|
32
32
|
ref: i,
|
|
33
|
-
className:
|
|
34
|
-
appearance:
|
|
33
|
+
className: l,
|
|
34
|
+
appearance: p = "gray",
|
|
35
35
|
size: r = "md",
|
|
36
36
|
disabled: m = !1,
|
|
37
|
-
asChild:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
hideChevron:
|
|
41
|
-
children:
|
|
37
|
+
asChild: a = !1,
|
|
38
|
+
leadingContent: n,
|
|
39
|
+
leadingContentShape: d = "flat",
|
|
40
|
+
hideChevron: c = !1,
|
|
41
|
+
children: s,
|
|
42
42
|
...f
|
|
43
43
|
}) => {
|
|
44
|
-
const
|
|
44
|
+
const t = h({
|
|
45
45
|
consumerName: "MediaButton",
|
|
46
46
|
mergeWith: { disabled: m }
|
|
47
|
-
}),
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
|
|
47
|
+
}), g = n ? d : "none";
|
|
48
|
+
return /* @__PURE__ */ o(
|
|
49
|
+
a ? S : "button",
|
|
50
50
|
{
|
|
51
51
|
ref: i,
|
|
52
|
-
className:
|
|
53
|
-
|
|
54
|
-
appearance:
|
|
55
|
-
disabled:
|
|
52
|
+
className: u(
|
|
53
|
+
b({
|
|
54
|
+
appearance: p,
|
|
55
|
+
disabled: t,
|
|
56
56
|
loading: !1
|
|
57
57
|
}),
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
y({
|
|
59
|
+
size: r,
|
|
60
|
+
leadingContentShape: g
|
|
61
|
+
}),
|
|
62
|
+
l
|
|
60
63
|
),
|
|
61
|
-
|
|
62
|
-
disabled: a,
|
|
64
|
+
disabled: t,
|
|
63
65
|
...f,
|
|
64
66
|
children: [
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
|
|
68
|
-
!
|
|
67
|
+
n && /* @__PURE__ */ e("span", { className: "inline-flex shrink-0 items-center", children: n }),
|
|
68
|
+
/* @__PURE__ */ o("span", { className: "flex items-center gap-2", children: [
|
|
69
|
+
a ? /* @__PURE__ */ e(x, { children: s }) : /* @__PURE__ */ e("span", { className: "line-clamp-1 text-left", children: s }),
|
|
70
|
+
!c && /* @__PURE__ */ e(z, { size: 20 })
|
|
69
71
|
] })
|
|
70
72
|
]
|
|
71
73
|
}
|
|
72
74
|
);
|
|
73
75
|
};
|
|
74
76
|
export {
|
|
75
|
-
|
|
77
|
+
k as MediaButton
|
|
76
78
|
};
|
|
@@ -12,19 +12,19 @@ export type MediaButtonProps = {
|
|
|
12
12
|
*/
|
|
13
13
|
size?: 'sm' | 'md';
|
|
14
14
|
/**
|
|
15
|
-
* An optional pre-rendered icon
|
|
15
|
+
* An optional leading content, usually a pre-rendered icon.
|
|
16
16
|
* Consumer is responsible for sizing the icon (typically 20px).
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
leadingContent?: ReactNode;
|
|
19
19
|
/**
|
|
20
|
-
* Determines the padding scheme when
|
|
20
|
+
* Determines the padding scheme when `leadingContent` is present.
|
|
21
21
|
* - `'flat'`: Standard padding for line/interface icons.
|
|
22
22
|
* - `'rounded'`: Tighter left padding for circular icons with their own background (e.g., crypto icons).
|
|
23
23
|
*
|
|
24
|
-
* Only relevant when `
|
|
24
|
+
* Only relevant when `leadingContent` is provided.
|
|
25
25
|
* @default 'flat'
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
leadingContentShape?: 'flat' | 'rounded';
|
|
28
28
|
/**
|
|
29
29
|
* When true, hides the trailing chevron indicator.
|
|
30
30
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,eAAe,CAAC;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,eAAe,CAAC;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC,GAC7D,qBAAqB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -16,5 +16,5 @@ export declare const fontSizeMap: Record<MediaImageSize, number>;
|
|
|
16
16
|
* <MediaImage fallback="Bitcoin" size={32} />
|
|
17
17
|
* <MediaImage loading size={32} />
|
|
18
18
|
*/
|
|
19
|
-
export declare const MediaImage: ({ ref, className, src, alt, size, shape, imgLoading, fallback, loading, ...props }: MediaImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const MediaImage: ({ ref, className, src, alt, size, shape, imgLoading, fallback, loading, disabled: disabledProp, ...props }: MediaImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
//# sourceMappingURL=MediaImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAUtD,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAUtD,CAAC;AA+BF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,GAAI,4GAYxB,eAAe,4CAgDjB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { Skeleton as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as x, cn as b } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as g } from "class-variance-authority";
|
|
4
|
+
import { useState as v, useEffect as N } from "react";
|
|
5
|
+
import { Skeleton as j } from "../Skeleton/Skeleton.js";
|
|
6
|
+
const S = {
|
|
7
7
|
12: 10,
|
|
8
8
|
16: 10,
|
|
9
9
|
20: 12,
|
|
@@ -13,8 +13,8 @@ const N = {
|
|
|
13
13
|
48: 24,
|
|
14
14
|
56: 24,
|
|
15
15
|
64: 24
|
|
16
|
-
},
|
|
17
|
-
root:
|
|
16
|
+
}, y = {
|
|
17
|
+
root: g(
|
|
18
18
|
"relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-muted outline-1 -outline-offset-1 outline-icon",
|
|
19
19
|
{
|
|
20
20
|
variants: {
|
|
@@ -32,52 +32,63 @@ const N = {
|
|
|
32
32
|
shape: {
|
|
33
33
|
square: "",
|
|
34
34
|
circle: "rounded-full"
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
true: "opacity-30",
|
|
38
|
+
false: ""
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
)
|
|
39
|
-
},
|
|
40
|
-
ref:
|
|
43
|
+
}, k = ({
|
|
44
|
+
ref: n,
|
|
41
45
|
className: d,
|
|
42
|
-
src:
|
|
46
|
+
src: r,
|
|
43
47
|
alt: l,
|
|
44
|
-
size:
|
|
48
|
+
size: a = 48,
|
|
45
49
|
shape: u = "square",
|
|
46
50
|
imgLoading: m = "eager",
|
|
47
51
|
fallback: t,
|
|
48
52
|
loading: e = !1,
|
|
49
|
-
|
|
53
|
+
disabled: c = !1,
|
|
54
|
+
...f
|
|
50
55
|
}) => {
|
|
51
|
-
const [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
56
|
+
const [p, i] = v(!1), o = !r || p, z = x({
|
|
57
|
+
consumerName: "MediaImage",
|
|
58
|
+
mergeWith: { disabled: c }
|
|
59
|
+
});
|
|
60
|
+
return N(() => {
|
|
61
|
+
i(!1);
|
|
62
|
+
}, [r]), /* @__PURE__ */ h(
|
|
55
63
|
"div",
|
|
56
64
|
{
|
|
57
|
-
ref:
|
|
58
|
-
className:
|
|
65
|
+
ref: n,
|
|
66
|
+
className: b(
|
|
67
|
+
y.root({ size: a, shape: u, disabled: z }),
|
|
68
|
+
d
|
|
69
|
+
),
|
|
59
70
|
role: "img",
|
|
60
71
|
"aria-label": l,
|
|
61
|
-
...
|
|
72
|
+
...f,
|
|
62
73
|
children: [
|
|
63
|
-
e && /* @__PURE__ */
|
|
64
|
-
!e && o && t && /* @__PURE__ */
|
|
74
|
+
e && /* @__PURE__ */ s(j, { className: "absolute inset-0" }),
|
|
75
|
+
!e && o && t && /* @__PURE__ */ s(
|
|
65
76
|
"span",
|
|
66
77
|
{
|
|
67
78
|
className: "text-base select-none",
|
|
68
|
-
style: { fontSize:
|
|
79
|
+
style: { fontSize: S[a] },
|
|
69
80
|
"aria-hidden": "true",
|
|
70
81
|
children: t[0]?.toUpperCase()
|
|
71
82
|
}
|
|
72
83
|
),
|
|
73
|
-
!e && o && !t && /* @__PURE__ */
|
|
74
|
-
!e && !o && /* @__PURE__ */
|
|
84
|
+
!e && o && !t && /* @__PURE__ */ s("span", { className: "text-muted select-none", "aria-hidden": "true" }),
|
|
85
|
+
!e && !o && /* @__PURE__ */ s(
|
|
75
86
|
"img",
|
|
76
87
|
{
|
|
77
|
-
src:
|
|
88
|
+
src: r,
|
|
78
89
|
alt: "",
|
|
79
90
|
loading: m,
|
|
80
|
-
onError: () =>
|
|
91
|
+
onError: () => i(!0),
|
|
81
92
|
className: "size-full object-cover",
|
|
82
93
|
"aria-hidden": "true"
|
|
83
94
|
}
|
|
@@ -87,6 +98,6 @@ const N = {
|
|
|
87
98
|
);
|
|
88
99
|
};
|
|
89
100
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
101
|
+
k as MediaImage,
|
|
102
|
+
S as fontSizeMap
|
|
92
103
|
};
|
|
@@ -41,6 +41,12 @@ export type MediaImageProps = {
|
|
|
41
41
|
* @default false
|
|
42
42
|
*/
|
|
43
43
|
loading?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Shows a disabled appearance.
|
|
46
|
+
* @optional
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
disabled?: boolean;
|
|
44
50
|
/**
|
|
45
51
|
* Additional custom CSS classes to apply. Do not use this prop to modify the component's core appearance.
|
|
46
52
|
* @optional
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|