@ledgerhq/lumen-ui-react 0.1.32 → 0.1.34

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 CHANGED
@@ -29,29 +29,30 @@ import { MediaBanner as He, MediaBannerDescription as Pe, MediaBannerTitle as Ne
29
29
  import { MediaButton as ze } from "./lib/Components/MediaButton/MediaButton.js";
30
30
  import { MediaCard as Ee, MediaCardTitle as Fe } from "./lib/Components/MediaCard/MediaCard.js";
31
31
  import { MediaImage as _e } from "./lib/Components/MediaImage/MediaImage.js";
32
- import { Menu as qe, MenuCheckboxItem as Je, MenuContent as Ke, MenuGroup as Qe, MenuItem as Ue, MenuLabel as Ve, MenuPortal as We, MenuRadioGroup as Xe, MenuRadioItem as Ye, MenuSeparator as Ze, MenuSub as $e, MenuSubContent as eo, MenuSubTrigger as oo, MenuTrigger as to } from "./lib/Components/Menu/Menu.js";
33
- import { NavBar as ao, NavBarBackButton as no, NavBarCoinCapsule as io, NavBarDescription as po, NavBarLeading as lo, NavBarTitle as mo, NavBarTrailing as xo } from "./lib/Components/NavBar/NavBar.js";
34
- import { Popover as fo, PopoverContent as uo, PopoverTrigger as So, createPopoverHandle as Co } from "./lib/Components/Popover/Popover.js";
35
- import { PageIndicator as go } from "./lib/Components/PageIndicator/PageIndicator.js";
36
- import { SearchInput as Io } from "./lib/Components/SearchInput/SearchInput.js";
37
- import { SegmentedControl as so, SegmentedControlButton as Do } from "./lib/Components/SegmentedControl/SegmentedControl.js";
38
- import { Select as Lo, SelectContent as ho, SelectEmptyState as vo, SelectItem as Ro, SelectItemContent as wo, SelectItemDescription as Ao, SelectItemText as yo, SelectList as Ho, SelectSearch as Po, SelectSeparator as No, SelectTrigger as ko } from "./lib/Components/Select/Select.js";
39
- import { SideBar as Go, SideBarCollapseToggle as Eo, SideBarItem as Fo, SideBarLeading as Oo, SideBarTrailing as _o } from "./lib/Components/SideBar/SideBar.js";
40
- import { Skeleton as qo } from "./lib/Components/Skeleton/Skeleton.js";
41
- import { Spinner as Ko } from "./lib/Components/Spinner/Spinner.js";
42
- import { Spot as Uo } from "./lib/Components/Spot/Spot.js";
43
- import { Stepper as Wo } from "./lib/Components/Stepper/Stepper.js";
44
- import { Subheader as Yo, SubheaderCount as Zo, SubheaderDescription as $o, SubheaderInfo as et, SubheaderRow as ot, SubheaderShowMore as tt, SubheaderTitle as rt } from "./lib/Components/Subheader/Subheader.js";
45
- import { Switch as nt } from "./lib/Components/Switch/Switch.js";
46
- import { Table as pt, TableActionBar as lt, TableActionBarLeading as mt, TableActionBarTrailing as dt, TableBody as xt, TableCell as Tt, TableCellContent as ft, TableGroupHeaderRow as ut, TableHeader as St, TableHeaderCell as Ct, TableHeaderRow as ct, TableInfoIcon as gt, TableLoadingRow as Bt, TableRoot as It, TableRow as bt, TableSortButton as st } from "./lib/Components/Table/Table.js";
47
- import { Tag as Mt } from "./lib/Components/Tag/Tag.js";
48
- import { TextInput as ht } from "./lib/Components/TextInput/TextInput.js";
49
- import { Tile as Rt, TileContent as wt, TileDescription as At, TileSecondaryAction as yt, TileTitle as Ht, TileTrailingContent as Pt } from "./lib/Components/Tile/Tile.js";
50
- import { TileButton as kt } from "./lib/Components/TileButton/TileButton.js";
51
- import { Tooltip as Gt, TooltipContent as Et, TooltipProvider as Ft, TooltipTrigger as Ot } from "./lib/Components/Tooltip/Tooltip.js";
52
- import { Trend as jt } from "./lib/Components/Trend/Trend.js";
53
- import { ThemeProvider as Jt, useTheme as Kt } from "./lib/Components/ThemeProvider/ThemeProvider.js";
54
- import { COLOR_SCHEMES as Ut } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
32
+ import { MediaTag as qe } from "./lib/Components/MediaTag/MediaTag.js";
33
+ import { Menu as Ke, MenuCheckboxItem as Qe, MenuContent as Ue, MenuGroup as Ve, MenuItem as We, MenuLabel as Xe, MenuPortal as Ye, MenuRadioGroup as Ze, MenuRadioItem as $e, MenuSeparator as eo, MenuSub as oo, MenuSubContent as to, MenuSubTrigger as ro, MenuTrigger as ao } from "./lib/Components/Menu/Menu.js";
34
+ import { NavBar as io, NavBarBackButton as po, NavBarCoinCapsule as lo, NavBarDescription as mo, NavBarLeading as xo, NavBarTitle as To, NavBarTrailing as fo } from "./lib/Components/NavBar/NavBar.js";
35
+ import { Popover as So, PopoverContent as Co, PopoverTrigger as co, createPopoverHandle as go } from "./lib/Components/Popover/Popover.js";
36
+ import { PageIndicator as Io } from "./lib/Components/PageIndicator/PageIndicator.js";
37
+ import { SearchInput as so } from "./lib/Components/SearchInput/SearchInput.js";
38
+ import { SegmentedControl as Mo, SegmentedControlButton as Lo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
39
+ import { Select as vo, SelectContent as Ro, SelectEmptyState as wo, SelectItem as Ao, SelectItemContent as yo, SelectItemDescription as Ho, SelectItemText as Po, SelectList as No, SelectSearch as ko, SelectSeparator as zo, SelectTrigger as Go } from "./lib/Components/Select/Select.js";
40
+ import { SideBar as Fo, SideBarCollapseToggle as Oo, SideBarItem as _o, SideBarLeading as jo, SideBarTrailing as qo } from "./lib/Components/SideBar/SideBar.js";
41
+ import { Skeleton as Ko } from "./lib/Components/Skeleton/Skeleton.js";
42
+ import { Spinner as Uo } from "./lib/Components/Spinner/Spinner.js";
43
+ import { Spot as Wo } from "./lib/Components/Spot/Spot.js";
44
+ import { Stepper as Yo } from "./lib/Components/Stepper/Stepper.js";
45
+ import { Subheader as $o, SubheaderCount as et, SubheaderDescription as ot, SubheaderInfo as tt, SubheaderRow as rt, SubheaderShowMore as at, SubheaderTitle as nt } from "./lib/Components/Subheader/Subheader.js";
46
+ import { Switch as pt } from "./lib/Components/Switch/Switch.js";
47
+ import { Table as mt, TableActionBar as dt, TableActionBarLeading as xt, TableActionBarTrailing as Tt, TableBody as ft, TableCell as ut, TableCellContent as St, TableGroupHeaderRow as Ct, TableHeader as ct, TableHeaderCell as gt, TableHeaderRow as Bt, TableInfoIcon as It, TableLoadingRow as bt, TableRoot as st, TableRow as Dt, TableSortButton as Mt } from "./lib/Components/Table/Table.js";
48
+ import { Tag as ht } from "./lib/Components/Tag/Tag.js";
49
+ import { TextInput as Rt } from "./lib/Components/TextInput/TextInput.js";
50
+ import { Tile as At, TileContent as yt, TileDescription as Ht, TileSecondaryAction as Pt, TileTitle as Nt, TileTrailingContent as kt } from "./lib/Components/Tile/Tile.js";
51
+ import { TileButton as Gt } from "./lib/Components/TileButton/TileButton.js";
52
+ import { Tooltip as Ft, TooltipContent as Ot, TooltipProvider as _t, TooltipTrigger as jt } from "./lib/Components/Tooltip/Tooltip.js";
53
+ import { Trend as Jt } from "./lib/Components/Trend/Trend.js";
54
+ import { ThemeProvider as Qt, useTheme as Ut } from "./lib/Components/ThemeProvider/ThemeProvider.js";
55
+ import { COLOR_SCHEMES as Wt } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
55
56
  export {
56
57
  a as AddressInput,
57
58
  l as AmountDisplay,
@@ -61,7 +62,7 @@ export {
61
62
  g as BaseButton,
62
63
  u as BaseInput,
63
64
  C as Button,
64
- Ut as COLOR_SCHEMES,
65
+ Wt as COLOR_SCHEMES,
65
66
  I as Card,
66
67
  y as CardButton,
67
68
  b as CardContent,
@@ -112,99 +113,100 @@ export {
112
113
  Ee as MediaCard,
113
114
  Fe as MediaCardTitle,
114
115
  _e as MediaImage,
115
- qe as Menu,
116
- Je as MenuCheckboxItem,
117
- Ke as MenuContent,
118
- Qe as MenuGroup,
119
- Ue as MenuItem,
120
- Ve as MenuLabel,
121
- We as MenuPortal,
122
- Xe as MenuRadioGroup,
123
- Ye as MenuRadioItem,
124
- Ze as MenuSeparator,
125
- $e as MenuSub,
126
- eo as MenuSubContent,
127
- oo as MenuSubTrigger,
128
- to as MenuTrigger,
129
- ao as NavBar,
130
- no as NavBarBackButton,
131
- io as NavBarCoinCapsule,
132
- po as NavBarDescription,
133
- lo as NavBarLeading,
134
- mo as NavBarTitle,
135
- xo as NavBarTrailing,
136
- go as PageIndicator,
137
- fo as Popover,
138
- uo as PopoverContent,
139
- So as PopoverTrigger,
140
- Io as SearchInput,
141
- so as SegmentedControl,
142
- Do as SegmentedControlButton,
143
- Lo as Select,
144
- ho as SelectContent,
145
- vo as SelectEmptyState,
146
- Ro as SelectItem,
147
- wo as SelectItemContent,
148
- Ao as SelectItemDescription,
149
- yo as SelectItemText,
150
- Ho as SelectList,
151
- Po as SelectSearch,
152
- No as SelectSeparator,
153
- ko as SelectTrigger,
154
- Go as SideBar,
155
- Eo as SideBarCollapseToggle,
156
- Fo as SideBarItem,
157
- Oo as SideBarLeading,
158
- _o as SideBarTrailing,
159
- qo as Skeleton,
160
- Ko as Spinner,
161
- Uo as Spot,
162
- Wo as Stepper,
163
- Yo as Subheader,
164
- Zo as SubheaderCount,
165
- $o as SubheaderDescription,
166
- et as SubheaderInfo,
167
- ot as SubheaderRow,
168
- tt as SubheaderShowMore,
169
- rt as SubheaderTitle,
170
- nt as Switch,
171
- pt as Table,
172
- lt as TableActionBar,
173
- mt as TableActionBarLeading,
174
- dt as TableActionBarTrailing,
175
- xt as TableBody,
176
- Tt as TableCell,
177
- ft as TableCellContent,
178
- ut as TableGroupHeaderRow,
179
- St as TableHeader,
180
- Ct as TableHeaderCell,
181
- ct as TableHeaderRow,
182
- gt as TableInfoIcon,
183
- Bt as TableLoadingRow,
184
- It as TableRoot,
185
- bt as TableRow,
186
- st as TableSortButton,
187
- Mt as Tag,
188
- ht as TextInput,
189
- Jt as ThemeProvider,
190
- Rt as Tile,
191
- kt as TileButton,
192
- wt as TileContent,
193
- At as TileDescription,
194
- yt as TileSecondaryAction,
195
- Ht as TileTitle,
196
- Pt as TileTrailingContent,
197
- Gt as Tooltip,
198
- Et as TooltipContent,
199
- Ft as TooltipProvider,
200
- Ot as TooltipTrigger,
201
- jt as Trend,
202
- Co as createPopoverHandle,
116
+ qe as MediaTag,
117
+ Ke as Menu,
118
+ Qe as MenuCheckboxItem,
119
+ Ue as MenuContent,
120
+ Ve as MenuGroup,
121
+ We as MenuItem,
122
+ Xe as MenuLabel,
123
+ Ye as MenuPortal,
124
+ Ze as MenuRadioGroup,
125
+ $e as MenuRadioItem,
126
+ eo as MenuSeparator,
127
+ oo as MenuSub,
128
+ to as MenuSubContent,
129
+ ro as MenuSubTrigger,
130
+ ao as MenuTrigger,
131
+ io as NavBar,
132
+ po as NavBarBackButton,
133
+ lo as NavBarCoinCapsule,
134
+ mo as NavBarDescription,
135
+ xo as NavBarLeading,
136
+ To as NavBarTitle,
137
+ fo as NavBarTrailing,
138
+ Io as PageIndicator,
139
+ So as Popover,
140
+ Co as PopoverContent,
141
+ co as PopoverTrigger,
142
+ so as SearchInput,
143
+ Mo as SegmentedControl,
144
+ Lo as SegmentedControlButton,
145
+ vo as Select,
146
+ Ro as SelectContent,
147
+ wo as SelectEmptyState,
148
+ Ao as SelectItem,
149
+ yo as SelectItemContent,
150
+ Ho as SelectItemDescription,
151
+ Po as SelectItemText,
152
+ No as SelectList,
153
+ ko as SelectSearch,
154
+ zo as SelectSeparator,
155
+ Go as SelectTrigger,
156
+ Fo as SideBar,
157
+ Oo as SideBarCollapseToggle,
158
+ _o as SideBarItem,
159
+ jo as SideBarLeading,
160
+ qo as SideBarTrailing,
161
+ Ko as Skeleton,
162
+ Uo as Spinner,
163
+ Wo as Spot,
164
+ Yo as Stepper,
165
+ $o as Subheader,
166
+ et as SubheaderCount,
167
+ ot as SubheaderDescription,
168
+ tt as SubheaderInfo,
169
+ rt as SubheaderRow,
170
+ at as SubheaderShowMore,
171
+ nt as SubheaderTitle,
172
+ pt as Switch,
173
+ mt as Table,
174
+ dt as TableActionBar,
175
+ xt as TableActionBarLeading,
176
+ Tt as TableActionBarTrailing,
177
+ ft as TableBody,
178
+ ut as TableCell,
179
+ St as TableCellContent,
180
+ Ct as TableGroupHeaderRow,
181
+ ct as TableHeader,
182
+ gt as TableHeaderCell,
183
+ Bt as TableHeaderRow,
184
+ It as TableInfoIcon,
185
+ bt as TableLoadingRow,
186
+ st as TableRoot,
187
+ Dt as TableRow,
188
+ Mt as TableSortButton,
189
+ ht as Tag,
190
+ Rt as TextInput,
191
+ Qt as ThemeProvider,
192
+ At as Tile,
193
+ Gt as TileButton,
194
+ yt as TileContent,
195
+ Ht as TileDescription,
196
+ Pt as TileSecondaryAction,
197
+ Nt as TileTitle,
198
+ kt as TileTrailingContent,
199
+ Ft as Tooltip,
200
+ Ot as TooltipContent,
201
+ _t as TooltipProvider,
202
+ jt as TooltipTrigger,
203
+ Jt as Trend,
204
+ go as createPopoverHandle,
203
205
  le as dotIconSizeMap,
204
206
  me as mediaImageDotIconSizeMap,
205
207
  Se as mediaImageDotSizeMap,
206
208
  de as spotDotIconSizeMap,
207
209
  Ce as spotDotSizeMap,
208
210
  J as useLumenDataTable,
209
- Kt as useTheme
211
+ Ut as useTheme
210
212
  };
@@ -0,0 +1,3 @@
1
+ import { BaseTagProps } from './types';
2
+ export declare const BaseTag: ({ ref, className, appearance, size, variant, consumerName, label, disabled: disabledProp, leadingContent, ...props }: BaseTagProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=BaseTag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseTag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseTag/BaseTag.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2C5C,eAAO,MAAM,OAAO,GAAI,sHAWrB,YAAY,4CAmBd,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { jsxs as m, jsx as p } from "react/jsx-runtime";
2
+ import { useDisabledContext as g, cn as o } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as x } from "class-variance-authority";
4
+ const u = x(
5
+ "inline-flex items-center justify-center gap-4 truncate rounded-xs",
6
+ {
7
+ variants: {
8
+ appearance: {
9
+ base: "bg-muted-transparent text-base",
10
+ gray: "bg-muted-transparent text-muted",
11
+ accent: "bg-accent text-on-accent",
12
+ "accent-subtle": "bg-active-subtle text-active",
13
+ success: "bg-success text-success",
14
+ error: "bg-error text-error",
15
+ warning: "bg-warning text-warning",
16
+ white: "bg-white text-black"
17
+ },
18
+ size: {
19
+ md: "body-3",
20
+ sm: "body-4"
21
+ },
22
+ variant: {
23
+ tag: "",
24
+ media: ""
25
+ },
26
+ disabled: {
27
+ true: "bg-disabled text-disabled",
28
+ false: ""
29
+ }
30
+ },
31
+ compoundVariants: [
32
+ { variant: "tag", size: "md", class: "px-8 py-4" },
33
+ { variant: "tag", size: "sm", class: "px-4 py-2" },
34
+ { variant: "media", size: "md", class: "py-4 pr-8 pl-4" },
35
+ { variant: "media", size: "sm", class: "px-4 py-2" }
36
+ ],
37
+ defaultVariants: {
38
+ appearance: "accent",
39
+ size: "md",
40
+ disabled: !1
41
+ }
42
+ }
43
+ ), z = ({
44
+ ref: e,
45
+ className: a,
46
+ appearance: t,
47
+ size: s,
48
+ variant: r,
49
+ consumerName: i,
50
+ label: n,
51
+ disabled: c,
52
+ leadingContent: d,
53
+ ...b
54
+ }) => {
55
+ const l = g({
56
+ consumerName: i,
57
+ mergeWith: { disabled: c }
58
+ });
59
+ return /* @__PURE__ */ m(
60
+ "div",
61
+ {
62
+ className: o(
63
+ u({ appearance: t, size: s, variant: r, disabled: !!l }),
64
+ a
65
+ ),
66
+ ref: e,
67
+ ...b,
68
+ children: [
69
+ d,
70
+ /* @__PURE__ */ p("span", { className: "truncate", children: n })
71
+ ]
72
+ }
73
+ );
74
+ };
75
+ export {
76
+ z as BaseTag
77
+ };
@@ -0,0 +1,3 @@
1
+ export { BaseTag } from './BaseTag';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseTag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { TagProps } from '../Tag/types';
3
+ export type BaseTagVariant = 'tag' | 'media';
4
+ export type BaseTagProps = Omit<TagProps, 'icon'> & {
5
+ variant: BaseTagVariant;
6
+ consumerName: string;
7
+ /**
8
+ * Content rendered before the label (icon component, image, crypto icon, etc.).
9
+ * Color is inherited from the tag's text color so SVGs using `currentColor`
10
+ * will pick up the correct appearance automatically.
11
+ */
12
+ leadingContent?: ReactNode;
13
+ };
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseTag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,OAAO,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG;IAClD,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { MediaTagProps } from './types';
2
+ /**
3
+ * A compact label used to categorize, classify, or highlight information with a required media element (image, crypto icon, etc.).
4
+ *
5
+ * The appearance determines the color scheme used.
6
+ *
7
+ * @see {@link https://ldls.vercel.app/?path=/docs/communication-mediatag-overview--docs Storybook}
8
+ *
9
+ * @example
10
+ * import { MediaTag, MediaImage } from '@ledgerhq/lumen-ui-react';
11
+ *
12
+ * // MediaTag with image
13
+ * <MediaTag
14
+ * label='Ethereum'
15
+ * leadingContent={<MediaImage src='https://crypto-icons.ledger.com/ETH.png' alt='Ethereum' size={16} shape='square' />}
16
+ * />
17
+ *
18
+ * // Small MediaTag
19
+ * <MediaTag label='Bitcoin' size='sm' leadingContent={myIcon} />
20
+ */
21
+ export declare const MediaTag: ({ leadingContent, ...props }: MediaTagProps) => import("react/jsx-runtime").JSX.Element;
22
+ //# sourceMappingURL=MediaTag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaTag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaTag/MediaTag.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,GAAI,8BAA8B,aAAa,4CASnE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { BaseTag as m } from "../BaseTag/BaseTag.js";
3
+ const t = ({ leadingContent: a, ...r }) => /* @__PURE__ */ e(
4
+ m,
5
+ {
6
+ ...r,
7
+ variant: "media",
8
+ consumerName: "MediaTag",
9
+ leadingContent: a
10
+ }
11
+ );
12
+ export {
13
+ t as MediaTag
14
+ };
@@ -0,0 +1,3 @@
1
+ export { MediaTag } from './MediaTag';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaTag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { TagProps } from '../Tag/types';
3
+ export type MediaTagProps = Omit<TagProps, 'icon'> & {
4
+ /**
5
+ * The media element rendered before the label (e.g. an image or a crypto icon).
6
+ * Should be sized to match the tag's `size`: 16px for `md`, 12px for `sm`.
7
+ */
8
+ leadingContent: ReactNode;
9
+ };
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaTag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG;IACnD;;;OAGG;IACH,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
@@ -10,7 +10,7 @@ import { ExpandLeft as E } from "../../Symbols/Icons/ExpandLeft.js";
10
10
  const [O, w] = V("SideBar"), f = {
11
11
  root: h(
12
12
  [
13
- "flex h-full flex-col justify-between gap-16 overflow-y-auto rounded-xl bg-muted-transparent p-16",
13
+ "flex h-full flex-col justify-between gap-16 overflow-y-auto rounded-xl bg-surface-transparent p-16",
14
14
  "transition-[width] duration-300 ease-in-out",
15
15
  "scrollbar-none"
16
16
  ],
@@ -1,3 +1,22 @@
1
1
  import { TagProps } from './types';
2
- export declare const Tag: ({ ref, className, appearance, size, icon, label, disabled: disabledProp, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
2
+ /**
3
+ * A compact label used to categorize, classify, or highlight information with optional icon support.
4
+ *
5
+ * The appearance determines the color scheme used.
6
+ *
7
+ * @see {@link https://ldls.vercel.app/?path=/docs/communication-tag-overview--docs Storybook}
8
+ *
9
+ * @example
10
+ * import { Tag } from '@ledgerhq/lumen-ui-react';
11
+ *
12
+ * // Basic tag
13
+ * <Tag label="Label" appearance="accent" />
14
+ *
15
+ * // Tag with icon
16
+ * <Tag label="Success" appearance="success" icon={Check} />
17
+ *
18
+ * // Small tag
19
+ * <Tag label="Small" size="sm" />
20
+ */
21
+ export declare const Tag: ({ icon, size, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
3
22
  //# sourceMappingURL=Tag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/Tag.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAgCxC,eAAO,MAAM,GAAG,GAAI,qFASjB,QAAQ,4CAuBV,CAAC"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/Tag.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AASxC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,GAAG,GAAI,0BAAiC,QAAQ,4CAe5D,CAAC"}
@@ -1,64 +1,21 @@
1
- import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
- import { useDisabledContext as p, cn as u } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as g } from "class-variance-authority";
4
- const x = g(
5
- "inline-flex items-center justify-center gap-4 truncate rounded-xs",
6
- {
7
- variants: {
8
- appearance: {
9
- base: "bg-muted-transparent text-base",
10
- gray: "bg-muted-transparent text-muted",
11
- accent: "bg-accent text-on-accent",
12
- "accent-subtle": "bg-active-subtle text-active",
13
- success: "bg-success text-success",
14
- error: "bg-error text-error",
15
- warning: "bg-warning text-warning"
16
- },
17
- size: {
18
- md: "px-8 py-4 body-3",
19
- sm: "px-4 py-2 body-4"
20
- },
21
- disabled: {
22
- true: "bg-disabled text-disabled",
23
- false: ""
24
- }
25
- },
26
- defaultVariants: {
27
- appearance: "accent",
28
- size: "md",
29
- disabled: !1
30
- }
31
- }
32
- ), h = ({
33
- ref: s,
34
- className: n,
35
- appearance: c,
36
- size: e,
37
- icon: r,
38
- label: i,
39
- disabled: d,
40
- ...o
41
- }) => {
42
- const b = p({
43
- consumerName: "Tag",
44
- mergeWith: { disabled: d }
45
- }), l = e ? {
46
- md: 16,
47
- sm: 12
48
- }[e] : 16, t = r;
49
- return /* @__PURE__ */ m(
50
- "div",
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { BaseTag as i } from "../BaseTag/BaseTag.js";
3
+ const r = {
4
+ md: 16,
5
+ sm: 12
6
+ }, g = ({ icon: a, size: o = "md", ...e }) => {
7
+ const n = a, m = r[o];
8
+ return /* @__PURE__ */ t(
9
+ i,
51
10
  {
52
- className: u(x({ appearance: c, size: e, disabled: b }), n),
53
- ref: s,
54
- ...o,
55
- children: [
56
- t && /* @__PURE__ */ a(t, { size: l }),
57
- /* @__PURE__ */ a("span", { className: "truncate", children: i })
58
- ]
11
+ ...e,
12
+ size: o,
13
+ variant: "tag",
14
+ consumerName: "Tag",
15
+ leadingContent: n ? /* @__PURE__ */ t(n, { size: m }) : void 0
59
16
  }
60
17
  );
61
18
  };
62
19
  export {
63
- h as Tag
20
+ g as Tag
64
21
  };
@@ -5,7 +5,7 @@ export type TagProps = {
5
5
  * The appearance of the tag.
6
6
  * @default accent
7
7
  */
8
- appearance?: 'base' | 'gray' | 'accent' | 'accent-subtle' | 'success' | 'error' | 'warning';
8
+ appearance?: 'base' | 'gray' | 'accent' | 'accent-subtle' | 'success' | 'error' | 'warning' | 'white';
9
9
  /**
10
10
  * The size of the tag.
11
11
  * @default md
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG;IACrB;;;OAGG;IACH,UAAU,CAAC,EACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,eAAe,GACf,SAAS,GACT,OAAO,GACP,SAAS,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG;IACrB;;;OAGG;IACH,UAAU,CAAC,EACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,eAAe,GACf,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,CAAC;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -24,6 +24,7 @@ export * from './MediaBanner';
24
24
  export * from './MediaButton';
25
25
  export * from './MediaCard';
26
26
  export * from './MediaImage';
27
+ export * from './MediaTag';
27
28
  export * from './Menu';
28
29
  export * from './NavBar';
29
30
  export * from './Popover';
@@ -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,CA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version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [
@@ -55,7 +55,7 @@
55
55
  "@radix-ui/react-tooltip": "^1.2.8",
56
56
  "class-variance-authority": "^0.7.1",
57
57
  "@tanstack/react-table": "^8.21.3",
58
- "@ledgerhq/lumen-design-core": "0.1.13",
58
+ "@ledgerhq/lumen-design-core": "0.1.14",
59
59
  "clsx": "^2.1.1",
60
60
  "react": "^18.0.0 || ^19.0.0",
61
61
  "react-dom": "^18.0.0 || ^19.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-react",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [