@ledgerhq/lumen-ui-react 0.1.23 → 0.1.24
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 +154 -149
- package/dist/lib/Components/DotIcon/DotIcon.d.ts +32 -0
- package/dist/lib/Components/DotIcon/DotIcon.d.ts.map +1 -0
- package/dist/lib/Components/DotIcon/DotIcon.js +97 -0
- package/dist/lib/Components/DotIcon/index.d.ts +3 -0
- package/dist/lib/Components/DotIcon/index.d.ts.map +1 -0
- package/dist/lib/Components/DotIcon/types.d.ts +42 -0
- package/dist/lib/Components/DotIcon/types.d.ts.map +1 -0
- package/dist/lib/Components/DotSymbol/DotSymbol.d.ts.map +1 -1
- package/dist/lib/Components/DotSymbol/DotSymbol.js +2 -1
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.js +8 -7
- package/dist/lib/Components/MediaImage/types.d.ts +1 -1
- package/dist/lib/Components/MediaImage/types.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.d.ts +4 -4
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +135 -126
- package/dist/lib/Components/Select/SelectContext.d.ts +1 -0
- package/dist/lib/Components/Select/SelectContext.d.ts.map +1 -1
- package/dist/lib/Components/Select/index.d.ts +1 -1
- package/dist/lib/Components/Select/index.d.ts.map +1 -1
- package/dist/lib/Components/Select/types.d.ts +20 -14
- package/dist/lib/Components/Select/types.d.ts.map +1 -1
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +10 -9
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -1
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.js +16 -15
- package/dist/lib/Components/Select/utils/groupItems.d.ts +8 -2
- package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -1
- package/dist/lib/Components/Select/utils/groupItems.js +13 -11
- package/dist/lib/Components/Select/utils/index.d.ts +1 -1
- package/dist/lib/Components/Select/utils/index.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +15 -14
- package/dist/lib/Components/Tag/types.d.ts +1 -1
- package/dist/lib/Components/Tag/types.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,60 +4,61 @@ import { AmountInput as i } from "./lib/Components/AmountInput/AmountInput.js";
|
|
|
4
4
|
import { AmountDisplay as l } from "./lib/Components/AmountDisplay/AmountDisplay.js";
|
|
5
5
|
import { Avatar as d } from "./lib/Components/Avatar/Avatar.js";
|
|
6
6
|
import { Banner as x } from "./lib/Components/Banner/Banner.js";
|
|
7
|
-
import { BaseInput as
|
|
8
|
-
import { Button as
|
|
9
|
-
import { BaseButton as
|
|
7
|
+
import { BaseInput as S } from "./lib/Components/BaseInput/BaseInput.js";
|
|
8
|
+
import { Button as C } from "./lib/Components/Button/Button.js";
|
|
9
|
+
import { BaseButton as g } from "./lib/Components/Button/BaseButton.js";
|
|
10
10
|
import { Card as b, CardContent as I, CardContentDescription as s, CardContentRow as M, CardContentTitle as D, CardFooter as L, CardFooterActions as h, CardHeader as v, CardLeading as R, CardTrailing as w } from "./lib/Components/Card/Card.js";
|
|
11
11
|
import { CardButton as y } from "./lib/Components/CardButton/CardButton.js";
|
|
12
|
-
import { ContentBanner as P, ContentBannerContent as k, ContentBannerDescription as
|
|
13
|
-
import { Checkbox as
|
|
12
|
+
import { ContentBanner as P, ContentBannerContent as k, ContentBannerDescription as z, ContentBannerTitle as N } from "./lib/Components/ContentBanner/ContentBanner.js";
|
|
13
|
+
import { Checkbox as E } from "./lib/Components/Checkbox/Checkbox.js";
|
|
14
14
|
import { DataTable as O, DataTableGlobalSearchInput as _, DataTableRoot as j } from "./lib/Components/DataTable/DataTable.js";
|
|
15
15
|
import { useLumenDataTable as J } from "./lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js";
|
|
16
16
|
import { DialogClose as Q } from "./lib/Components/Dialog/DialogClose/DialogClose.js";
|
|
17
17
|
import { Dialog as V, DialogBody as W, DialogBodyStickyContent as X, DialogContent as Y, DialogFooter as Z, DialogTrigger as $ } from "./lib/Components/Dialog/Dialog.js";
|
|
18
18
|
import { DialogHeader as oe } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
|
|
19
19
|
import { Divider as re } from "./lib/Components/Divider/Divider.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
20
|
+
import { DotIcon as ne, dotIconSizeMap as ie, mediaImageDotIconSizeMap as pe, spotDotIconSizeMap as le } from "./lib/Components/DotIcon/DotIcon.js";
|
|
21
|
+
import { DotSymbol as de, mediaImageDotSizeMap as Te, spotDotSizeMap as xe } from "./lib/Components/DotSymbol/DotSymbol.js";
|
|
22
|
+
import { IconButton as Se } from "./lib/Components/IconButton/IconButton.js";
|
|
23
|
+
import { InteractiveIcon as Ce } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
24
|
+
import { Link as ge } from "./lib/Components/Link/Link.js";
|
|
25
|
+
import { ListItem as be, ListItemContent as Ie, ListItemContentRow as se, ListItemDescription as Me, ListItemLeading as De, ListItemTitle as Le, ListItemTrailing as he } from "./lib/Components/ListItem/ListItem.js";
|
|
26
|
+
import { MediaBanner as Re, MediaBannerDescription as we, MediaBannerTitle as Ae } from "./lib/Components/MediaBanner/MediaBanner.js";
|
|
27
|
+
import { MediaButton as He } from "./lib/Components/MediaButton/MediaButton.js";
|
|
28
|
+
import { MediaCard as ke, MediaCardTitle as ze } from "./lib/Components/MediaCard/MediaCard.js";
|
|
29
|
+
import { MediaImage as Ge } from "./lib/Components/MediaImage/MediaImage.js";
|
|
30
|
+
import { Menu as Fe, MenuCheckboxItem as Oe, MenuContent as _e, MenuGroup as je, MenuItem as qe, MenuLabel as Je, MenuPortal as Ke, MenuRadioGroup as Qe, MenuRadioItem as Ue, MenuSeparator as Ve, MenuSub as We, MenuSubContent as Xe, MenuSubTrigger as Ye, MenuTrigger as Ze } from "./lib/Components/Menu/Menu.js";
|
|
31
|
+
import { NavBar as eo, NavBarBackButton as oo, NavBarCoinCapsule as to, NavBarTitle as ro, NavBarTrailing as ao } from "./lib/Components/NavBar/NavBar.js";
|
|
32
|
+
import { Popover as io, PopoverContent as po, PopoverTrigger as lo, createPopoverHandle as mo } from "./lib/Components/Popover/Popover.js";
|
|
33
|
+
import { PageIndicator as xo } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
34
|
+
import { SearchInput as So } from "./lib/Components/SearchInput/SearchInput.js";
|
|
35
|
+
import { SegmentedControl as Co, SegmentedControlButton as co } from "./lib/Components/SegmentedControl/SegmentedControl.js";
|
|
36
|
+
import { Select as Bo, SelectContent as bo, SelectEmptyState as Io, SelectItem as so, SelectItemContent as Mo, SelectItemDescription as Do, SelectItemText as Lo, SelectList as ho, SelectSearch as vo, SelectSeparator as Ro, SelectTrigger as wo } from "./lib/Components/Select/Select.js";
|
|
37
|
+
import { SideBar as yo, SideBarCollapseToggle as Ho, SideBarItem as Po, SideBarLeading as ko, SideBarTrailing as zo } from "./lib/Components/SideBar/SideBar.js";
|
|
38
|
+
import { Skeleton as Go } from "./lib/Components/Skeleton/Skeleton.js";
|
|
39
|
+
import { Spinner as Fo } from "./lib/Components/Spinner/Spinner.js";
|
|
40
|
+
import { Spot as _o } from "./lib/Components/Spot/Spot.js";
|
|
41
|
+
import { Stepper as qo } from "./lib/Components/Stepper/Stepper.js";
|
|
42
|
+
import { Subheader as Ko, SubheaderCount as Qo, SubheaderDescription as Uo, SubheaderInfo as Vo, SubheaderRow as Wo, SubheaderShowMore as Xo, SubheaderTitle as Yo } from "./lib/Components/Subheader/Subheader.js";
|
|
43
|
+
import { Switch as $o } from "./lib/Components/Switch/Switch.js";
|
|
44
|
+
import { Table as ot, TableActionBar as tt, TableActionBarLeading as rt, TableActionBarTrailing as at, TableBody as nt, TableCell as it, TableCellContent as pt, TableGroupHeaderRow as lt, TableHeader as mt, TableHeaderCell as dt, TableHeaderRow as Tt, TableInfoIcon as xt, TableLoadingRow as ft, TableRoot as St, TableRow as ut, TableSortButton as Ct } from "./lib/Components/Table/Table.js";
|
|
45
|
+
import { Tag as gt } from "./lib/Components/Tag/Tag.js";
|
|
46
|
+
import { TextInput as bt } from "./lib/Components/TextInput/TextInput.js";
|
|
47
|
+
import { Tile as st, TileContent as Mt, TileDescription as Dt, TileSecondaryAction as Lt, TileTitle as ht, TileTrailingContent as vt } from "./lib/Components/Tile/Tile.js";
|
|
48
|
+
import { TileButton as wt } from "./lib/Components/TileButton/TileButton.js";
|
|
49
|
+
import { Tooltip as yt, TooltipContent as Ht, TooltipProvider as Pt, TooltipTrigger as kt } from "./lib/Components/Tooltip/Tooltip.js";
|
|
50
|
+
import { ThemeProvider as Nt, useTheme as Gt } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
51
|
+
import { COLOR_SCHEMES as Ft } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
|
|
51
52
|
export {
|
|
52
53
|
a as AddressInput,
|
|
53
54
|
l as AmountDisplay,
|
|
54
55
|
i as AmountInput,
|
|
55
56
|
d as Avatar,
|
|
56
57
|
x as Banner,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
g as BaseButton,
|
|
59
|
+
S as BaseInput,
|
|
60
|
+
C as Button,
|
|
61
|
+
Ft as COLOR_SCHEMES,
|
|
61
62
|
b as Card,
|
|
62
63
|
y as CardButton,
|
|
63
64
|
I as CardContent,
|
|
@@ -69,11 +70,11 @@ export {
|
|
|
69
70
|
v as CardHeader,
|
|
70
71
|
R as CardLeading,
|
|
71
72
|
w as CardTrailing,
|
|
72
|
-
|
|
73
|
+
E as Checkbox,
|
|
73
74
|
P as ContentBanner,
|
|
74
75
|
k as ContentBannerContent,
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
z as ContentBannerDescription,
|
|
77
|
+
N as ContentBannerTitle,
|
|
77
78
|
O as DataTable,
|
|
78
79
|
_ as DataTableGlobalSearchInput,
|
|
79
80
|
j as DataTableRoot,
|
|
@@ -86,112 +87,116 @@ export {
|
|
|
86
87
|
oe as DialogHeader,
|
|
87
88
|
$ as DialogTrigger,
|
|
88
89
|
re as Divider,
|
|
89
|
-
ne as
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
ne as DotIcon,
|
|
91
|
+
de as DotSymbol,
|
|
92
|
+
Se as IconButton,
|
|
93
|
+
Ce as InteractiveIcon,
|
|
92
94
|
t as Languages,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
ie as
|
|
194
|
-
pe as
|
|
95
|
+
ge as Link,
|
|
96
|
+
be as ListItem,
|
|
97
|
+
Ie as ListItemContent,
|
|
98
|
+
se as ListItemContentRow,
|
|
99
|
+
Me as ListItemDescription,
|
|
100
|
+
De as ListItemLeading,
|
|
101
|
+
Le as ListItemTitle,
|
|
102
|
+
he as ListItemTrailing,
|
|
103
|
+
Re as MediaBanner,
|
|
104
|
+
we as MediaBannerDescription,
|
|
105
|
+
Ae as MediaBannerTitle,
|
|
106
|
+
He as MediaButton,
|
|
107
|
+
ke as MediaCard,
|
|
108
|
+
ze as MediaCardTitle,
|
|
109
|
+
Ge as MediaImage,
|
|
110
|
+
Fe as Menu,
|
|
111
|
+
Oe as MenuCheckboxItem,
|
|
112
|
+
_e as MenuContent,
|
|
113
|
+
je as MenuGroup,
|
|
114
|
+
qe as MenuItem,
|
|
115
|
+
Je as MenuLabel,
|
|
116
|
+
Ke as MenuPortal,
|
|
117
|
+
Qe as MenuRadioGroup,
|
|
118
|
+
Ue as MenuRadioItem,
|
|
119
|
+
Ve as MenuSeparator,
|
|
120
|
+
We as MenuSub,
|
|
121
|
+
Xe as MenuSubContent,
|
|
122
|
+
Ye as MenuSubTrigger,
|
|
123
|
+
Ze as MenuTrigger,
|
|
124
|
+
eo as NavBar,
|
|
125
|
+
oo as NavBarBackButton,
|
|
126
|
+
to as NavBarCoinCapsule,
|
|
127
|
+
ro as NavBarTitle,
|
|
128
|
+
ao as NavBarTrailing,
|
|
129
|
+
xo as PageIndicator,
|
|
130
|
+
io as Popover,
|
|
131
|
+
po as PopoverContent,
|
|
132
|
+
lo as PopoverTrigger,
|
|
133
|
+
So as SearchInput,
|
|
134
|
+
Co as SegmentedControl,
|
|
135
|
+
co as SegmentedControlButton,
|
|
136
|
+
Bo as Select,
|
|
137
|
+
bo as SelectContent,
|
|
138
|
+
Io as SelectEmptyState,
|
|
139
|
+
so as SelectItem,
|
|
140
|
+
Mo as SelectItemContent,
|
|
141
|
+
Do as SelectItemDescription,
|
|
142
|
+
Lo as SelectItemText,
|
|
143
|
+
ho as SelectList,
|
|
144
|
+
vo as SelectSearch,
|
|
145
|
+
Ro as SelectSeparator,
|
|
146
|
+
wo as SelectTrigger,
|
|
147
|
+
yo as SideBar,
|
|
148
|
+
Ho as SideBarCollapseToggle,
|
|
149
|
+
Po as SideBarItem,
|
|
150
|
+
ko as SideBarLeading,
|
|
151
|
+
zo as SideBarTrailing,
|
|
152
|
+
Go as Skeleton,
|
|
153
|
+
Fo as Spinner,
|
|
154
|
+
_o as Spot,
|
|
155
|
+
qo as Stepper,
|
|
156
|
+
Ko as Subheader,
|
|
157
|
+
Qo as SubheaderCount,
|
|
158
|
+
Uo as SubheaderDescription,
|
|
159
|
+
Vo as SubheaderInfo,
|
|
160
|
+
Wo as SubheaderRow,
|
|
161
|
+
Xo as SubheaderShowMore,
|
|
162
|
+
Yo as SubheaderTitle,
|
|
163
|
+
$o as Switch,
|
|
164
|
+
ot as Table,
|
|
165
|
+
tt as TableActionBar,
|
|
166
|
+
rt as TableActionBarLeading,
|
|
167
|
+
at as TableActionBarTrailing,
|
|
168
|
+
nt as TableBody,
|
|
169
|
+
it as TableCell,
|
|
170
|
+
pt as TableCellContent,
|
|
171
|
+
lt as TableGroupHeaderRow,
|
|
172
|
+
mt as TableHeader,
|
|
173
|
+
dt as TableHeaderCell,
|
|
174
|
+
Tt as TableHeaderRow,
|
|
175
|
+
xt as TableInfoIcon,
|
|
176
|
+
ft as TableLoadingRow,
|
|
177
|
+
St as TableRoot,
|
|
178
|
+
ut as TableRow,
|
|
179
|
+
Ct as TableSortButton,
|
|
180
|
+
gt as Tag,
|
|
181
|
+
bt as TextInput,
|
|
182
|
+
Nt as ThemeProvider,
|
|
183
|
+
st as Tile,
|
|
184
|
+
wt as TileButton,
|
|
185
|
+
Mt as TileContent,
|
|
186
|
+
Dt as TileDescription,
|
|
187
|
+
Lt as TileSecondaryAction,
|
|
188
|
+
ht as TileTitle,
|
|
189
|
+
vt as TileTrailingContent,
|
|
190
|
+
yt as Tooltip,
|
|
191
|
+
Ht as TooltipContent,
|
|
192
|
+
Pt as TooltipProvider,
|
|
193
|
+
kt as TooltipTrigger,
|
|
194
|
+
mo as createPopoverHandle,
|
|
195
|
+
ie as dotIconSizeMap,
|
|
196
|
+
pe as mediaImageDotIconSizeMap,
|
|
197
|
+
Te as mediaImageDotSizeMap,
|
|
198
|
+
le as spotDotIconSizeMap,
|
|
199
|
+
xe as spotDotSizeMap,
|
|
195
200
|
J as useLumenDataTable,
|
|
196
|
-
|
|
201
|
+
Gt as useTheme
|
|
197
202
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IconSize } from '../Icon';
|
|
2
|
+
import { DotIconProps, DotIconSize } from './types';
|
|
3
|
+
export declare const mediaImageDotIconSizeMap: {
|
|
4
|
+
readonly 40: 16;
|
|
5
|
+
readonly 48: 20;
|
|
6
|
+
readonly 56: 24;
|
|
7
|
+
readonly 64: 24;
|
|
8
|
+
};
|
|
9
|
+
export declare const spotDotIconSizeMap: {
|
|
10
|
+
readonly 40: 16;
|
|
11
|
+
readonly 48: 20;
|
|
12
|
+
readonly 56: 24;
|
|
13
|
+
readonly 72: 24;
|
|
14
|
+
};
|
|
15
|
+
export declare const dotIconSizeMap: Record<DotIconSize, IconSize>;
|
|
16
|
+
/**
|
|
17
|
+
* A wrapper component that positions a small icon indicator at a configurable
|
|
18
|
+
* corner of a child element like MediaImage or Spot. The dot background uses a
|
|
19
|
+
* semantic color (`success`, `muted`, or `error`).
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* import { DotIcon } from '@ledgerhq/lumen-ui-react';
|
|
23
|
+
*
|
|
24
|
+
* <DotIcon appearance="success" icon={ArrowDown} pin="bottom-end">
|
|
25
|
+
* <MediaImage src="https://example.com/usdc.png" alt="USDC" size={48} />
|
|
26
|
+
* </DotIcon>
|
|
27
|
+
*/
|
|
28
|
+
export declare const DotIcon: {
|
|
29
|
+
({ children, icon: Icon, appearance, pin, size, shape, className, ref, ...rest }: DotIconProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=DotIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DotIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIcon/DotIcon.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAc,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAoCrE,eAAO,MAAM,wBAAwB;;;;;CAKW,CAAC;AAEjD,eAAO,MAAM,kBAAkB;;;;;CAKiB,CAAC;AAEjD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,CAIxD,CAAC;AAgBF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO;sFAUjB,YAAY;;CAkBd,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as b } from "class-variance-authority";
|
|
4
|
+
import { useMemo as f } from "react";
|
|
5
|
+
const x = b(
|
|
6
|
+
"absolute z-10 box-content flex items-center justify-center overflow-hidden border-base-inverted",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
16: "size-16 border",
|
|
11
|
+
20: "size-20 border",
|
|
12
|
+
24: "size-24 border"
|
|
13
|
+
},
|
|
14
|
+
shape: {
|
|
15
|
+
square: "",
|
|
16
|
+
circle: ""
|
|
17
|
+
},
|
|
18
|
+
pin: {
|
|
19
|
+
"top-start": "",
|
|
20
|
+
"top-end": "",
|
|
21
|
+
"bottom-start": "",
|
|
22
|
+
"bottom-end": ""
|
|
23
|
+
},
|
|
24
|
+
appearance: {
|
|
25
|
+
success: "bg-success-strong",
|
|
26
|
+
muted: "bg-muted-strong",
|
|
27
|
+
error: "bg-error-strong"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
compoundVariants: [
|
|
31
|
+
{ size: 16, shape: "square", className: "rounded-[5px]" },
|
|
32
|
+
{ size: 20, shape: "square", className: "rounded-[6px]" },
|
|
33
|
+
{ size: 24, shape: "square", className: "rounded-[8px]" },
|
|
34
|
+
{ shape: "circle", className: "rounded-full" }
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
), q = {
|
|
38
|
+
40: 16,
|
|
39
|
+
48: 20,
|
|
40
|
+
56: 24,
|
|
41
|
+
64: 24
|
|
42
|
+
}, S = {
|
|
43
|
+
40: 16,
|
|
44
|
+
48: 20,
|
|
45
|
+
56: 24,
|
|
46
|
+
72: 24
|
|
47
|
+
}, h = {
|
|
48
|
+
16: 12,
|
|
49
|
+
20: 12,
|
|
50
|
+
24: 16
|
|
51
|
+
}, z = {
|
|
52
|
+
"top-start": ["top", "left"],
|
|
53
|
+
"top-end": ["top", "right"],
|
|
54
|
+
"bottom-start": ["bottom", "left"],
|
|
55
|
+
"bottom-end": ["bottom", "right"]
|
|
56
|
+
}, c = -3, g = (e) => {
|
|
57
|
+
const [t, o] = z[e];
|
|
58
|
+
return { [t]: c, [o]: c };
|
|
59
|
+
}, v = ({
|
|
60
|
+
children: e,
|
|
61
|
+
icon: t,
|
|
62
|
+
appearance: o,
|
|
63
|
+
pin: s = "bottom-end",
|
|
64
|
+
size: a = 20,
|
|
65
|
+
shape: i = "circle",
|
|
66
|
+
className: d,
|
|
67
|
+
ref: m,
|
|
68
|
+
...p
|
|
69
|
+
}) => {
|
|
70
|
+
const l = f(() => g(s), [s]);
|
|
71
|
+
return /* @__PURE__ */ u(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
ref: m,
|
|
75
|
+
className: n("relative inline-flex w-fit", d),
|
|
76
|
+
...p,
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ r("div", { className: "inline-flex", children: e }),
|
|
79
|
+
/* @__PURE__ */ r(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
className: n(x({ size: a, shape: i, pin: s, appearance: o })),
|
|
83
|
+
style: l,
|
|
84
|
+
children: /* @__PURE__ */ r(t, { size: h[a], className: "text-on-interactive" })
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
v.displayName = "DotIcon";
|
|
92
|
+
export {
|
|
93
|
+
v as DotIcon,
|
|
94
|
+
h as dotIconSizeMap,
|
|
95
|
+
q as mediaImageDotIconSizeMap,
|
|
96
|
+
S as spotDotIconSizeMap
|
|
97
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { IconSize } from '../Icon';
|
|
3
|
+
export type DotIconSize = 16 | 20 | 24;
|
|
4
|
+
export type DotIconPin = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
5
|
+
export type DotIconAppearance = 'success' | 'muted' | 'error';
|
|
6
|
+
export type DotIconProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Icon component to render inside the dot.
|
|
9
|
+
*/
|
|
10
|
+
icon: ComponentType<{
|
|
11
|
+
size?: IconSize;
|
|
12
|
+
className?: string;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Semantic color of the dot background.
|
|
16
|
+
*/
|
|
17
|
+
appearance: DotIconAppearance;
|
|
18
|
+
/**
|
|
19
|
+
* Corner placement of the dot indicator.
|
|
20
|
+
* @default 'bottom-end'
|
|
21
|
+
*/
|
|
22
|
+
pin?: DotIconPin;
|
|
23
|
+
/**
|
|
24
|
+
* The size of the dot indicator in pixels.
|
|
25
|
+
* @default 20
|
|
26
|
+
*/
|
|
27
|
+
size?: DotIconSize;
|
|
28
|
+
/**
|
|
29
|
+
* The shape of the dot indicator.
|
|
30
|
+
* @default 'circle'
|
|
31
|
+
*/
|
|
32
|
+
shape?: 'square' | 'circle';
|
|
33
|
+
/**
|
|
34
|
+
* Additional custom CSS classes to apply to the wrapper.
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The wrapped component (e.g. MediaImage or Spot).
|
|
39
|
+
*/
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DotSymbol.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotSymbol/DotSymbol.tsx"],"names":[],"mappings":"AAGA,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;AAiD3E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"DotSymbol.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotSymbol/DotSymbol.tsx"],"names":[],"mappings":"AAGA,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;AAiD3E,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;oFAWnB,cAAc;;CA4BhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA2B/C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GAAI,iEASxB,eAAe,4CA8BjB,CAAC"}
|
|
@@ -15,7 +15,8 @@ const h = {
|
|
|
15
15
|
32: "size-32 rounded-sm",
|
|
16
16
|
40: "size-40 rounded-md",
|
|
17
17
|
48: "size-48 rounded-md",
|
|
18
|
-
56: "size-56 rounded-lg"
|
|
18
|
+
56: "size-56 rounded-lg",
|
|
19
|
+
64: "size-64 rounded-lg"
|
|
19
20
|
},
|
|
20
21
|
shape: {
|
|
21
22
|
square: "",
|
|
@@ -26,26 +27,26 @@ const h = {
|
|
|
26
27
|
)
|
|
27
28
|
}, j = ({
|
|
28
29
|
ref: o,
|
|
29
|
-
className:
|
|
30
|
+
className: i,
|
|
30
31
|
src: e,
|
|
31
|
-
alt:
|
|
32
|
+
alt: a,
|
|
32
33
|
size: d = 48,
|
|
33
34
|
shape: t = "square",
|
|
34
35
|
imgLoading: n = "eager",
|
|
35
36
|
...l
|
|
36
37
|
}) => {
|
|
37
|
-
const [
|
|
38
|
+
const [u, s] = z(!1), m = !e || u;
|
|
38
39
|
return g(() => {
|
|
39
40
|
s(!1);
|
|
40
41
|
}, [e]), /* @__PURE__ */ r(
|
|
41
42
|
"div",
|
|
42
43
|
{
|
|
43
44
|
ref: o,
|
|
44
|
-
className: c(h.root({ size: d, shape: t }),
|
|
45
|
+
className: c(h.root({ size: d, shape: t }), i),
|
|
45
46
|
role: "img",
|
|
46
|
-
"aria-label":
|
|
47
|
+
"aria-label": a,
|
|
47
48
|
...l,
|
|
48
|
-
children:
|
|
49
|
+
children: m ? /* @__PURE__ */ r("span", { className: "text-muted select-none", "aria-hidden": "true" }) : /* @__PURE__ */ r(
|
|
49
50
|
"img",
|
|
50
51
|
{
|
|
51
52
|
src: e,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
export type MediaImageSize = 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56;
|
|
2
|
+
export type MediaImageSize = 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64;
|
|
3
3
|
export type MediaImageShape = 'square' | 'circle';
|
|
4
4
|
export type MediaImageProps = {
|
|
5
5
|
/**
|
|
@@ -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,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;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SelectProps, SelectTriggerProps, SelectContentProps, SelectListProps, SelectSearchProps, SelectItemTextProps, SelectItemProps, SelectItemContentProps, SelectItemDescriptionProps, SelectSeparatorProps, SelectEmptyStateProps } from './types';
|
|
2
|
-
declare function Select({ value, defaultValue, onValueChange, disabled: disabledProp, items, filter, filteredItems, searchValue: searchValueProp, defaultSearchValue, onSearchValueChange, open, defaultOpen, onOpenChange, name, required, children, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { MetaShape, SelectProps, SelectTriggerProps, SelectContentProps, SelectListProps, SelectSearchProps, SelectItemTextProps, SelectItemProps, SelectItemContentProps, SelectItemDescriptionProps, SelectSeparatorProps, SelectEmptyStateProps } from './types';
|
|
2
|
+
declare function Select<TMeta extends MetaShape = MetaShape>({ value, defaultValue, onValueChange, disabled: disabledProp, items, filter, filteredItems, searchValue: searchValueProp, defaultSearchValue, onSearchValueChange, open, defaultOpen, onOpenChange, name, required, children, }: Readonly<SelectProps<TMeta>>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare const SelectTrigger: ({ render, disabled, ...props }: SelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const SelectContent: ({ ref, className, children, side, sideOffset, align,
|
|
5
|
-
declare const SelectList: ({ ref, className, renderItem, ...props }: SelectListProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const SelectContent: ({ ref, className, children, side, sideOffset, align, initialFocus, ...props }: SelectContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const SelectList: <TMeta extends MetaShape = MetaShape>({ ref, className, renderItem, ...props }: SelectListProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare const SelectItem: ({ ref, className, children, ...props }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const SelectSeparator: ({ ref, className, ...props }: SelectSeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare const SelectItemText: ({ ref, className, ...props }: SelectItemTextProps) => import("react/jsx-runtime").JSX.Element;
|