@ledgerhq/lumen-ui-react 0.0.70 → 0.0.72
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/i18n/i18n.d.ts.map +1 -1
- package/dist/i18n/locales/de.json.d.ts +3 -0
- package/dist/i18n/locales/de.json.js +1 -1
- package/dist/i18n/locales/en.json.d.ts +3 -0
- package/dist/i18n/locales/en.json.js +1 -1
- package/dist/i18n/locales/es.json.d.ts +3 -0
- package/dist/i18n/locales/es.json.js +1 -1
- package/dist/i18n/locales/fr.json.d.ts +3 -0
- package/dist/i18n/locales/fr.json.js +1 -1
- package/dist/i18n/locales/ja.json.d.ts +3 -0
- package/dist/i18n/locales/ja.json.js +1 -1
- package/dist/i18n/locales/ko.json.d.ts +3 -0
- package/dist/i18n/locales/ko.json.js +1 -1
- package/dist/i18n/locales/pt.json.d.ts +3 -0
- package/dist/i18n/locales/pt.json.js +1 -1
- package/dist/i18n/locales/ru.json.d.ts +3 -0
- package/dist/i18n/locales/ru.json.js +1 -1
- package/dist/i18n/locales/th.json.d.ts +3 -0
- package/dist/i18n/locales/th.json.js +1 -1
- package/dist/i18n/locales/tr.json.d.ts +3 -0
- package/dist/i18n/locales/tr.json.js +1 -1
- package/dist/i18n/locales/zh.json.d.ts +3 -0
- package/dist/i18n/locales/zh.json.js +1 -1
- package/dist/index.js +106 -97
- package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -1
- package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +40 -0
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -0
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +19 -0
- package/dist/lib/Components/AmountDisplay/index.d.ts +3 -0
- package/dist/lib/Components/AmountDisplay/index.d.ts.map +1 -0
- package/dist/lib/Components/AmountDisplay/types.d.ts +46 -0
- package/dist/lib/Components/AmountDisplay/types.d.ts.map +1 -0
- package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/Banner/Banner.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/Button.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/Design-tokens/shared.d.ts.map +1 -1
- package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Components/Icon/Icon.js +8 -7
- package/dist/lib/Components/Icon/createIcon.d.ts.map +1 -1
- package/dist/lib/Components/Icon/types.d.ts +1 -1
- package/dist/lib/Components/Icon/types.d.ts.map +1 -1
- package/dist/lib/Components/IconButton/IconButton.d.ts +2 -2
- package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts +10 -0
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -0
- package/dist/lib/Components/NavBar/CoinCapsule.js +24 -0
- package/dist/lib/Components/NavBar/NavBar.d.ts +80 -0
- package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -0
- package/dist/lib/Components/NavBar/NavBar.js +72 -0
- package/dist/lib/Components/NavBar/index.d.ts +3 -0
- package/dist/lib/Components/NavBar/index.d.ts.map +1 -0
- package/dist/lib/Components/NavBar/types.d.ts +75 -0
- package/dist/lib/Components/NavBar/types.d.ts.map +1 -0
- package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.js +9 -9
- package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +9 -6
- package/dist/lib/Components/Spot/types.d.ts +1 -1
- package/dist/lib/Components/Spot/types.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/Subheader.d.ts +1 -1
- package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.d.ts +23 -3
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +50 -36
- package/dist/lib/Components/Tile/index.d.ts +1 -1
- package/dist/lib/Components/Tile/index.d.ts.map +1 -1
- package/dist/lib/Components/Tile/types.d.ts +20 -2
- package/dist/lib/Components/Tile/types.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/lib/Components/index.d.ts +2 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoBpC,eAAO,MAAM,IAAI,kHAgBhB,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
2
2
|
import { cva as a } from "class-variance-authority";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
const
|
|
3
|
+
import { forwardRef as k, createElement as l } from "react";
|
|
4
|
+
const h = a("inline-block", {
|
|
5
5
|
variants: {
|
|
6
6
|
size: {
|
|
7
7
|
12: "icon-w-12 icon-h-12 icon-stroke-12",
|
|
8
8
|
16: "icon-w-16 icon-h-16 icon-stroke-16",
|
|
9
9
|
20: "icon-w-20 icon-h-20 icon-stroke-20",
|
|
10
|
+
32: "icon-w-32 icon-h-32 icon-stroke-32",
|
|
10
11
|
24: "icon-w-24 icon-h-24 icon-stroke-24",
|
|
11
12
|
40: "icon-w-40 icon-h-40 icon-stroke-40",
|
|
12
13
|
48: "icon-w-48 icon-h-48 icon-stroke-48",
|
|
@@ -16,8 +17,8 @@ const m = a("inline-block", {
|
|
|
16
17
|
defaultVariants: {
|
|
17
18
|
size: 24
|
|
18
19
|
}
|
|
19
|
-
}),
|
|
20
|
-
({ size: o = 24, className: n = "", children: i, viewBox: c, xmlns: e, ...r }, t) =>
|
|
20
|
+
}), m = k(
|
|
21
|
+
({ size: o = 24, className: n = "", children: i, viewBox: c, xmlns: e, ...r }, t) => l(
|
|
21
22
|
"svg",
|
|
22
23
|
{
|
|
23
24
|
ref: t,
|
|
@@ -25,13 +26,13 @@ const m = a("inline-block", {
|
|
|
25
26
|
"aria-hidden": "true",
|
|
26
27
|
xmlns: e,
|
|
27
28
|
viewBox: c,
|
|
28
|
-
className: s(n,
|
|
29
|
+
className: s(n, h({ size: o }), "inline-block"),
|
|
29
30
|
...r
|
|
30
31
|
},
|
|
31
32
|
i
|
|
32
33
|
)
|
|
33
34
|
);
|
|
34
|
-
|
|
35
|
+
m.displayName = "Icon";
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
m as Icon
|
|
37
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/createIcon.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"createIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/createIcon.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,aACJ,MAAM,WACP,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,uIAgBrD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE7D,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export declare const IconButton: React.ForwardRefExoticComponent<{
|
|
3
3
|
'aria-label': string;
|
|
4
|
-
icon: NonNullable<import('
|
|
4
|
+
icon: NonNullable<import('../Button').BaseButtonProps["icon"]>;
|
|
5
5
|
tooltip?: boolean;
|
|
6
6
|
tooltipPlacement?: import('@radix-ui/react-tooltip').TooltipContentProps["side"];
|
|
7
7
|
tooltipText?: string;
|
|
8
|
-
} & Omit<import('
|
|
8
|
+
} & Omit<import('../Button').BaseButtonProps, "isFull"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,UAAU;;;;;;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,UAAU;;;;;;iGAoCtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/InteractiveIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/InteractiveIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe;;oBA7C8H,SAAS;2FAyDjK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Link/Link.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AA+BzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Link/Link.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AA+BzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,IAAI;;;;iBA9DA,aAAa;YAAO,CAAC;iBAAqB,CAAC;;;;oBAmBxD,SAEH;2FAwGA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAOL,iBAAiB,EAGjB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAUjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAOL,iBAAiB,EAGjB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAUjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ;oBA9BpB,SAAS;;;oBAI8C,oBACjD;6GAgDN,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,eAAe;oBAjDwD,SAChF;;+EA4DF,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,eAAe;oBA5DZ,SAChB;;+EAuEE,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,aAAa;oBAxER,SAChB;;+EA4FA,CAAC;AAIH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;oBA3FtB,SAAM;;+EAqHd,CAAC;AAIH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;oBAxHwB,SAAS;;+EA+I5D,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAOpD,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,YAAY;gBA3IoC,aAAa;;+EA4JzE,CAAC;AAIF,eAAO,MAAM,gBAAgB;+BAG1B,qBAAqB;;CAEvB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CoinCapsuleProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* Internal component for displaying a cryptocurrency coin capsule with icon and ticker.
|
|
6
|
+
* This component is not exported publicly. Use NavBarCoinCapsule instead for NavBar usage.
|
|
7
|
+
* Kept as a separate component for potential future extraction as a standalone component.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CoinCapsule: React.ForwardRefExoticComponent<CoinCapsuleProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
//# sourceMappingURL=CoinCapsule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoinCapsule.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/CoinCapsule.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,yFAkBvB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import i from "react";
|
|
4
|
+
const o = i.forwardRef(
|
|
5
|
+
({ ticker: s, icon: a, className: r }, t) => /* @__PURE__ */ n(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
ref: t,
|
|
9
|
+
className: l(
|
|
10
|
+
"flex items-center gap-8 rounded-full bg-muted-transparent py-8 pr-12 pl-8",
|
|
11
|
+
r
|
|
12
|
+
),
|
|
13
|
+
"data-slot": "coin-capsule",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children: a }),
|
|
16
|
+
/* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children: s })
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
o.displayName = "CoinCapsule";
|
|
22
|
+
export {
|
|
23
|
+
o as CoinCapsule
|
|
24
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NavBarBackButtonProps, NavBarTitleProps, NavBarTrailingProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* A coin capsule component for displaying cryptocurrency information within the NavBar.
|
|
5
|
+
* Shows an icon and ticker symbol in a pill-shaped container.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import { NavBar, NavBarBackButton, NavBarCoinCapsule, NavBarTrailing } from '@ledgerhq/lumen-ui-react';
|
|
9
|
+
* import { CryptoIcon } from '@ledgerhq/crypto-icons';
|
|
10
|
+
*
|
|
11
|
+
* <NavBarCoinCapsule ticker="BTC" icon={<CryptoIcon ledgerId="bitcoin" ticker="BTC" size="24px" />} />
|
|
12
|
+
*/
|
|
13
|
+
export declare const NavBarCoinCapsule: React.ForwardRefExoticComponent<import('./types').CoinCapsuleProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
/**
|
|
15
|
+
* Back button component for the NavBar. Displays an arrow left icon button.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <NavBarBackButton onClick={() => navigate(-1)} />
|
|
19
|
+
*/
|
|
20
|
+
export declare const NavBarBackButton: React.ForwardRefExoticComponent<NavBarBackButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
/**
|
|
22
|
+
* Title component for the NavBar. Displays the navigation title text.
|
|
23
|
+
* Use the `as` prop to control heading semantics and avoid multiple h1s on a page.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <NavBarTitle>Page Title</NavBarTitle>
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* // With custom heading level
|
|
30
|
+
* <NavBarTitle as="h2">Page Title</NavBarTitle>
|
|
31
|
+
*/
|
|
32
|
+
export declare const NavBarTitle: React.ForwardRefExoticComponent<NavBarTitleProps & React.RefAttributes<HTMLElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* Trailing container for the NavBar. Used to place elements on the right side of the navbar.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* <NavBarTrailing>
|
|
38
|
+
* <IconButton icon={Settings} aria-label="Settings" />
|
|
39
|
+
* </NavBarTrailing>
|
|
40
|
+
*/
|
|
41
|
+
export declare const NavBarTrailing: React.ForwardRefExoticComponent<NavBarTrailingProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* A navigation bar component for displaying page headers with optional back button, title, and trailing elements.
|
|
44
|
+
* Uses a composable compound component API where you explicitly nest sub-components to define the layout.
|
|
45
|
+
*
|
|
46
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/navigation-navbar-overview--docs Storybook}
|
|
47
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/navigation-navbar-implementation--docs#dos-and-donts Guidelines}
|
|
48
|
+
*
|
|
49
|
+
* @warning The `className` prop should only be used for layout adjustments like margins or positioning.
|
|
50
|
+
* Do not use it to modify the navbar's core appearance (colors, padding, etc).
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* // Basic NavBar with title
|
|
54
|
+
* import { NavBar, NavBarBackButton, NavBarTitle, NavBarTrailing } from '@ledgerhq/lumen-ui-react';
|
|
55
|
+
*
|
|
56
|
+
* <NavBar>
|
|
57
|
+
* <NavBarBackButton onClick={() => navigate(-1)} />
|
|
58
|
+
* <NavBarTitle>Page Title</NavBarTitle>
|
|
59
|
+
* <NavBarTrailing>
|
|
60
|
+
* <IconButton icon={Settings} aria-label="Settings" />
|
|
61
|
+
* </NavBarTrailing>
|
|
62
|
+
* </NavBar>
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* // NavBar with NavBarCoinCapsule for crypto assets
|
|
66
|
+
* import { CryptoIcon } from '@ledgerhq/crypto-icons';
|
|
67
|
+
*
|
|
68
|
+
* <NavBar>
|
|
69
|
+
* <NavBarBackButton onClick={handleBack} />
|
|
70
|
+
* <NavBarCoinCapsule ticker="BTC" icon={<CryptoIcon ledgerId="bitcoin" ticker="BTC" size="24px" />} />
|
|
71
|
+
* <NavBarTrailing>
|
|
72
|
+
* <IconButton icon={MoreHorizontal} aria-label="More options" />
|
|
73
|
+
* </NavBarTrailing>
|
|
74
|
+
* </NavBar>
|
|
75
|
+
*/
|
|
76
|
+
export declare const NavBar: React.ForwardRefExoticComponent<{
|
|
77
|
+
children?: React.ReactNode;
|
|
78
|
+
className?: string;
|
|
79
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className"> & React.RefAttributes<HTMLElement>>;
|
|
80
|
+
//# sourceMappingURL=NavBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/NavBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EACL,qBAAqB,EAGrB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,2GAO5B,CAAC;AAGH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,iGAkB3B,CAAC;AAGH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,sFAgBvB,CAAC;AAGF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,4FAczB,CAAC;AAGH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,MAAM;;;yGAalB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { CoinCapsule as l } from "./CoinCapsule.js";
|
|
5
|
+
import { useCommonTranslation as m } from "../../../i18n/useCommonTranslation.js";
|
|
6
|
+
import { IconButton as c } from "../IconButton/IconButton.js";
|
|
7
|
+
import { ArrowLeft as f } from "../../Symbols/Icons/ArrowLeft.js";
|
|
8
|
+
const d = n.forwardRef(({ ticker: a, icon: r, className: e }, t) => /* @__PURE__ */ o("div", { className: "flex flex-1 items-center", "data-slot": "navbar-coin-capsule", children: /* @__PURE__ */ o(l, { ref: t, ticker: a, icon: r, className: e }) }));
|
|
9
|
+
d.displayName = "NavBarCoinCapsule";
|
|
10
|
+
const p = n.forwardRef(({ onClick: a, "aria-label": r, className: e }, t) => {
|
|
11
|
+
const { t: i } = m();
|
|
12
|
+
return /* @__PURE__ */ o(
|
|
13
|
+
c,
|
|
14
|
+
{
|
|
15
|
+
ref: t,
|
|
16
|
+
appearance: "no-background",
|
|
17
|
+
size: "sm",
|
|
18
|
+
icon: f,
|
|
19
|
+
onClick: a,
|
|
20
|
+
className: s("shrink-0", e),
|
|
21
|
+
"aria-label": r ?? i("components.navBar.goBackAriaLabel"),
|
|
22
|
+
"data-slot": "navbar-back-button"
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
});
|
|
26
|
+
p.displayName = "NavBarBackButton";
|
|
27
|
+
const N = n.forwardRef(
|
|
28
|
+
({ children: a, className: r, as: e = "h1" }, t) => /* @__PURE__ */ o(
|
|
29
|
+
e,
|
|
30
|
+
{
|
|
31
|
+
ref: t,
|
|
32
|
+
className: s(
|
|
33
|
+
"min-w-0 flex-1 truncate heading-4-semi-bold text-base",
|
|
34
|
+
r
|
|
35
|
+
),
|
|
36
|
+
"data-slot": "navbar-title",
|
|
37
|
+
children: a
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
N.displayName = "NavBarTitle";
|
|
42
|
+
const v = n.forwardRef(({ children: a, className: r, ...e }, t) => /* @__PURE__ */ o(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
ref: t,
|
|
46
|
+
className: s("flex shrink-0 items-center gap-4", r),
|
|
47
|
+
"data-slot": "navbar-trailing",
|
|
48
|
+
...e,
|
|
49
|
+
children: a
|
|
50
|
+
}
|
|
51
|
+
));
|
|
52
|
+
v.displayName = "NavBarTrailing";
|
|
53
|
+
const B = n.forwardRef(
|
|
54
|
+
({ children: a, className: r, ...e }, t) => /* @__PURE__ */ o(
|
|
55
|
+
"nav",
|
|
56
|
+
{
|
|
57
|
+
ref: t,
|
|
58
|
+
className: s("flex items-center gap-4", r),
|
|
59
|
+
"data-slot": "navbar",
|
|
60
|
+
...e,
|
|
61
|
+
children: a
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
);
|
|
65
|
+
B.displayName = "NavBar";
|
|
66
|
+
export {
|
|
67
|
+
B as NavBar,
|
|
68
|
+
p as NavBarBackButton,
|
|
69
|
+
d as NavBarCoinCapsule,
|
|
70
|
+
N as NavBarTitle,
|
|
71
|
+
v as NavBarTrailing
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,WAAW,EACX,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type NavBarProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The children of the NavBar, typically NavBarBackButton, NavBarTitle, NavBarTrailing, or NavBarCoinCapsule components.
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Additional custom CSS classes to apply. Do not use this prop to modify the component's core appearance.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'className'>;
|
|
12
|
+
export type NavBarBackButtonProps = {
|
|
13
|
+
/**
|
|
14
|
+
* Callback function when the back button is clicked.
|
|
15
|
+
*/
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Accessible label for the back button.
|
|
19
|
+
* @default "Go back"
|
|
20
|
+
*/
|
|
21
|
+
'aria-label'?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Additional custom CSS classes to apply.
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
};
|
|
27
|
+
export type NavBarTitleProps = {
|
|
28
|
+
/**
|
|
29
|
+
* The title text to display.
|
|
30
|
+
*/
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* The HTML element to render as.
|
|
34
|
+
* Use this to control heading semantics and avoid multiple h1s on a page.
|
|
35
|
+
* @default 'h1'
|
|
36
|
+
*/
|
|
37
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
|
|
38
|
+
/**
|
|
39
|
+
* Additional custom CSS classes to apply.
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
};
|
|
43
|
+
export type NavBarTrailingProps = {
|
|
44
|
+
/**
|
|
45
|
+
* The trailing content, typically IconButton components.
|
|
46
|
+
*/
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Additional custom CSS classes to apply.
|
|
50
|
+
*/
|
|
51
|
+
className?: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* Props for the internal CoinCapsule component.
|
|
56
|
+
*/
|
|
57
|
+
export type CoinCapsuleProps = {
|
|
58
|
+
/**
|
|
59
|
+
* The cryptocurrency ticker symbol to display (e.g., "BTC", "ETH").
|
|
60
|
+
*/
|
|
61
|
+
ticker: string;
|
|
62
|
+
/**
|
|
63
|
+
* The icon element to display (typically a crypto coin icon).
|
|
64
|
+
*/
|
|
65
|
+
icon: ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Additional custom CSS classes to apply.
|
|
68
|
+
*/
|
|
69
|
+
className?: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Props for the NavBarCoinCapsule component.
|
|
73
|
+
*/
|
|
74
|
+
export type NavBarCoinCapsuleProps = CoinCapsuleProps;
|
|
75
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IAC9D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC"}
|
|
@@ -53,7 +53,7 @@ import { default as React } from 'react';
|
|
|
53
53
|
* }}
|
|
54
54
|
* />
|
|
55
55
|
*/
|
|
56
|
-
export declare const SearchInput: React.ForwardRefExoticComponent<Omit<import('
|
|
56
|
+
export declare const SearchInput: React.ForwardRefExoticComponent<Omit<import('../BaseInput').BaseInputProps, "label" | "prefix" | "containerClassName" | "labelClassName"> & {
|
|
57
57
|
appearance?: "plain" | "transparent";
|
|
58
58
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
59
59
|
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as n } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
function l({ className:
|
|
3
|
+
function l({ className: t, ...s }) {
|
|
4
4
|
return /* @__PURE__ */ e(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
7
|
-
className: n("animate-pulse rounded-md bg-
|
|
8
|
-
...
|
|
7
|
+
className: n("animate-pulse rounded-md bg-muted-transparent", t),
|
|
8
|
+
...s
|
|
9
9
|
}
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function o({ className:
|
|
13
|
-
return
|
|
12
|
+
function o({ className: t, component: s, ...d }) {
|
|
13
|
+
return s === "list-item" ? /* @__PURE__ */ a(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
16
|
"data-slot": "skeleton",
|
|
17
17
|
"data-testid": "skeleton",
|
|
18
|
-
className: n("flex w-full items-center gap-16 py-8",
|
|
18
|
+
className: n("flex w-full items-center gap-16 py-8", t),
|
|
19
19
|
...d,
|
|
20
20
|
children: [
|
|
21
21
|
/* @__PURE__ */ e(l, { className: "size-48 shrink-0 rounded-full" }),
|
|
@@ -25,14 +25,14 @@ function o({ className: s, component: t, ...d }) {
|
|
|
25
25
|
] })
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
|
-
) :
|
|
28
|
+
) : s === "tile" ? /* @__PURE__ */ a(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
"data-slot": "skeleton",
|
|
32
32
|
"data-testid": "skeleton",
|
|
33
33
|
className: n(
|
|
34
34
|
"flex w-112 flex-col items-center gap-12 rounded-md px-8 py-16",
|
|
35
|
-
|
|
35
|
+
t
|
|
36
36
|
),
|
|
37
37
|
...d,
|
|
38
38
|
children: [
|
|
@@ -48,7 +48,7 @@ function o({ className: s, component: t, ...d }) {
|
|
|
48
48
|
{
|
|
49
49
|
"data-slot": "skeleton",
|
|
50
50
|
"data-testid": "skeleton",
|
|
51
|
-
className:
|
|
51
|
+
className: t,
|
|
52
52
|
...d
|
|
53
53
|
}
|
|
54
54
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spot.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Spot/Spot.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAY,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Spot.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Spot/Spot.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAY,MAAM,SAAS,CAAC;AA8B9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,IAAI,UAAW,SAAS,4CAwDpC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as d } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as h } from "class-variance-authority";
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { Spinner as
|
|
4
|
+
import { useMemo as b } from "react";
|
|
5
|
+
import { Spinner as f } from "../Spinner/Spinner.js";
|
|
6
6
|
import { InformationFill as g } from "../../Symbols/Icons/InformationFill.js";
|
|
7
7
|
import { WarningFill as x } from "../../Symbols/Icons/WarningFill.js";
|
|
8
8
|
import { DeleteCircleFill as z } from "../../Symbols/Icons/DeleteCircleFill.js";
|
|
@@ -27,6 +27,7 @@ const F = h(
|
|
|
27
27
|
},
|
|
28
28
|
size: {
|
|
29
29
|
32: "spot-w-32 spot-h-32",
|
|
30
|
+
40: "spot-w-40 spot-h-40",
|
|
30
31
|
48: "spot-w-48 spot-h-48",
|
|
31
32
|
56: "spot-w-56 spot-h-56",
|
|
32
33
|
72: "spot-w-72 spot-h-72"
|
|
@@ -34,17 +35,19 @@ const F = h(
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
), D = (r) => {
|
|
37
|
-
const { appearance:
|
|
38
|
+
const { appearance: s, className: a, disabled: i, size: o = 48, ...c } = r, l = {
|
|
38
39
|
32: 12,
|
|
40
|
+
40: 16,
|
|
39
41
|
48: 20,
|
|
40
42
|
56: 24,
|
|
41
43
|
72: 40
|
|
42
44
|
}, m = {
|
|
43
45
|
32: "body-2-semi-bold",
|
|
46
|
+
40: "body-1-semi-bold",
|
|
44
47
|
48: "heading-5",
|
|
45
48
|
56: "heading-4",
|
|
46
49
|
72: "heading-2"
|
|
47
|
-
}, t = l[o] ?? 20, n = m[o] ?? "heading-5", p =
|
|
50
|
+
}, t = l[o] ?? 20, n = m[o] ?? "heading-5", p = b(() => {
|
|
48
51
|
switch (r.appearance) {
|
|
49
52
|
case "icon": {
|
|
50
53
|
const { icon: u } = r;
|
|
@@ -63,13 +66,13 @@ const F = h(
|
|
|
63
66
|
case "info":
|
|
64
67
|
return /* @__PURE__ */ e(g, { size: t });
|
|
65
68
|
case "loader":
|
|
66
|
-
return /* @__PURE__ */ e(
|
|
69
|
+
return /* @__PURE__ */ e(f, { size: t });
|
|
67
70
|
}
|
|
68
71
|
}, [r, t, n]);
|
|
69
72
|
return /* @__PURE__ */ e(
|
|
70
73
|
"div",
|
|
71
74
|
{
|
|
72
|
-
className: d(
|
|
75
|
+
className: d(a, F({ appearance: s, disabled: i, size: o })),
|
|
73
76
|
...c,
|
|
74
77
|
children: p
|
|
75
78
|
}
|
|
@@ -38,7 +38,7 @@ type SpotStatusProps = {
|
|
|
38
38
|
* A discriminated union that enforces type-safe props based on the `appearance`.
|
|
39
39
|
*/
|
|
40
40
|
export type DiscriminatedSpotProps = SpotIconProps | SpotNumberProps | SpotStatusProps;
|
|
41
|
-
export type SpotSize = 32 | 48 | 56 | 72;
|
|
41
|
+
export type SpotSize = 32 | 40 | 48 | 56 | 72;
|
|
42
42
|
export type SpotProps = DiscriminatedSpotProps & {
|
|
43
43
|
/**
|
|
44
44
|
* Whether the spot is disabled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Spot/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,WAAW,GACX,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpE,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC/C,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;CACxD,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,aAAa,GACb,eAAe,GACf,eAAe,CAAC;AAEpB,MAAM,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Spot/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,WAAW,GACX,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpE,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC/C,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;CACxD,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,aAAa,GACb,eAAe,GACf,eAAe,CAAC;AAEpB,MAAM,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,sBAAsB,GAAG;IAC/C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -24,7 +24,7 @@ export declare const SubheaderCount: ({ value, format, className, ...props }: Su
|
|
|
24
24
|
/**
|
|
25
25
|
* Info component for the Subheader. Displays an information icon that can be wrapped in a Tooltip.
|
|
26
26
|
*/
|
|
27
|
-
export declare const SubheaderInfo: React.ForwardRefExoticComponent<Omit<import('
|
|
27
|
+
export declare const SubheaderInfo: React.ForwardRefExoticComponent<Omit<import('../InteractiveIcon').InteractiveIconProps, "children" | "iconType"> & {
|
|
28
28
|
iconType?: "filled" | "stroked";
|
|
29
29
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
30
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/Subheader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EAEzB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/Subheader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EAEzB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,qDAKxB,mBAAmB,4CASrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,+CAKtB,iBAAiB,4CAgBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,2CAKxB,mBAAmB,4CAOrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;2CAiBxB,CAAC;AAGH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,4BAG3B,sBAAsB,4CASxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,sCAI9B,yBAAyB,4CAM3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,+CAKzB,oBAAoB,4CActB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,SAAS,sCAInB,cAAc,4CAMhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/Tag.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAgCzC,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/Tag.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAgCzC,eAAO,MAAM,GAAG;;;iBAzBF,aACP;YAAO,CAAC;iBAAqB,CAAC;;;;;;;;sHAgDnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRootColorModeSideEffect.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ThemeProvider/useRootColorModeSideEffect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"useRootColorModeSideEffect.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ThemeProvider/useRootColorModeSideEffect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,aAAc;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,SAiBvE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TileContentProps, TileDescriptionProps, TileSpotProps, TileTitleProps } from './types';
|
|
1
|
+
import { TileContentProps, TileDescriptionProps, TileSpotProps, TileTitleProps, TileTrailingContentProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* A flexible tile component that uses a composite pattern for maximum customization.
|
|
4
4
|
* Displays content in a vertical layout with support for spots, text, and custom content.
|
|
@@ -38,10 +38,9 @@ export declare const Tile: import('react').ForwardRefExoticComponent<{
|
|
|
38
38
|
} & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "onClick"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
39
|
/**
|
|
40
40
|
* A spot adapter for use within Tile. Automatically inherits the disabled state from the parent Tile.
|
|
41
|
-
* Always renders at a fixed size of 48.
|
|
42
41
|
*/
|
|
43
42
|
export declare const TileSpot: {
|
|
44
|
-
(props: TileSpotProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
({ size, ...props }: TileSpotProps): import("react/jsx-runtime").JSX.Element;
|
|
45
44
|
displayName: string;
|
|
46
45
|
};
|
|
47
46
|
/**
|
|
@@ -68,6 +67,27 @@ export declare const TileDescription: {
|
|
|
68
67
|
({ children, className, ...props }: TileDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
69
68
|
displayName: string;
|
|
70
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* A container for trailing content inside TileContent.
|
|
72
|
+
* Use this to wrap Tags, labels, or other supplementary information after title and description.
|
|
73
|
+
* Multiple items inside will have 8px spacing between them.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* <Tile>
|
|
77
|
+
* <TileSpot appearance="icon" icon={Settings} />
|
|
78
|
+
* <TileContent>
|
|
79
|
+
* <TileTitle>My Title</TileTitle>
|
|
80
|
+
* <TileDescription>Description</TileDescription>
|
|
81
|
+
* <TileTrailingContent>
|
|
82
|
+
* <Tag label="Active" />
|
|
83
|
+
* </TileTrailingContent>
|
|
84
|
+
* </TileContent>
|
|
85
|
+
* </Tile>
|
|
86
|
+
*/
|
|
87
|
+
export declare const TileTrailingContent: {
|
|
88
|
+
({ children, className, ...props }: TileTrailingContentProps): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
displayName: string;
|
|
90
|
+
};
|
|
71
91
|
/**
|
|
72
92
|
* A self-contained secondary action button for a Tile. Renders an InteractiveIcon that appears
|
|
73
93
|
* in the top-right corner and is visible on hover/focus. Automatically hidden when the parent Tile is disabled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EAGpB,aAAa,EACb,cAAc,
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EAGpB,aAAa,EACb,cAAc,EACd,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAuCjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;;;;;;;;;uHAyChB,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,QAAQ;yBAA6B,aAAa;;CAM9D,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CASlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;wCAI7B,wBAAwB;;CAS1B,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;;gBAvJlB,aAAK;;0HA6LjB,CAAC"}
|