@ledgerhq/lumen-ui-react 0.1.15 → 0.1.16
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/ai-rules/RULES.md +1 -1
- package/dist/i18n/i18n.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +126 -128
- package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/Avatar.js +24 -24
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +58 -58
- package/dist/lib/Components/CardButton/CardButton.js +10 -10
- package/dist/lib/Components/Dialog/Dialog.js +39 -39
- package/dist/lib/Components/Dialog/types.d.ts +3 -3
- package/dist/lib/Components/Icon/Icon.js +5 -5
- package/dist/lib/Components/Icon/createIcon.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.js +25 -32
- package/dist/lib/Components/ListItem/ListItem.d.ts +17 -28
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +81 -93
- package/dist/lib/Components/ListItem/types.d.ts +13 -32
- package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.d.ts +4 -4
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/NavBar.d.ts +0 -1
- package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/lib/Components/Popover/Popover.js +7 -7
- package/dist/lib/Components/Popover/types.d.ts +3 -3
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.js +97 -81
- package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts +1 -0
- package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/types.d.ts +7 -0
- package/dist/lib/Components/SegmentedControl/types.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.d.ts +5 -6
- package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.js +30 -25
- package/dist/lib/Components/Select/Select.js +9 -9
- package/dist/lib/Components/SideBar/SideBar.d.ts +1 -1
- package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
- package/dist/lib/Components/SideBar/SideBar.js +93 -89
- package/dist/lib/Components/SideBar/types.d.ts +7 -1
- package/dist/lib/Components/SideBar/types.d.ts.map +1 -1
- package/dist/lib/Components/Stepper/Stepper.d.ts +5 -6
- package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/Stepper/Stepper.js +100 -102
- package/dist/lib/Components/Stepper/types.d.ts +2 -2
- package/dist/lib/Components/Stepper/types.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +1 -1
- package/dist/lib/Components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/lib/Components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/lib/Components/TriggerButton/TriggerButton.js +8 -8
- package/dist/node_modules/i18next/dist/esm/i18next.js +45 -47
- package/dist/package.json +1 -1
- package/dist/utils/icon-template.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/lib/Patterns/index.d.ts +0 -3
- package/dist/lib/Patterns/index.d.ts.map +0 -1
package/ai-rules/RULES.md
CHANGED
|
@@ -217,7 +217,7 @@ const InteractiveList = () => (
|
|
|
217
217
|
{items.map((item) => (
|
|
218
218
|
<ListItem>
|
|
219
219
|
<ListItemLeading>
|
|
220
|
-
<
|
|
220
|
+
<Spot appearance='icon' icon={Settings} />
|
|
221
221
|
<ListItemContent>
|
|
222
222
|
<ListItemTitle>Simple composition</ListItemTitle>
|
|
223
223
|
<ListItemDescription>With description</ListItemDescription>
|
package/dist/i18n/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAE7D,OAAO,EAGL,eAAe,EAChB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAE7D,OAAO,EAGL,eAAe,EAChB,MAAM,aAAa,CAAC;AA6BrB,eAAO,MAAM,IAAI,cAAmB,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,UAAU,GAAU,QAAQ,eAAe,KAAG,OAAO,CAAC,IAAI,CAqBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,eAAe,KACtB,OAAO,CAAC,IAAI,CAGd,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { AddressInput as a } from "./lib/Components/AddressInput/AddressInput.js
|
|
|
3
3
|
import { AmountInput as i } from "./lib/Components/AmountInput/AmountInput.js";
|
|
4
4
|
import { AmountDisplay as p } from "./lib/Components/AmountDisplay/AmountDisplay.js";
|
|
5
5
|
import { Avatar as T } from "./lib/Components/Avatar/Avatar.js";
|
|
6
|
-
import { Banner as
|
|
6
|
+
import { Banner as x } from "./lib/Components/Banner/Banner.js";
|
|
7
7
|
import { BaseInput as f } from "./lib/Components/BaseInput/BaseInput.js";
|
|
8
8
|
import { Button as g } from "./lib/Components/Button/Button.js";
|
|
9
9
|
import { BaseButton as B } from "./lib/Components/Button/BaseButton.js";
|
|
10
|
-
import { Card as
|
|
10
|
+
import { Card as c, 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 H } from "./lib/Components/CardButton/CardButton.js";
|
|
12
12
|
import { ContentBanner as k, ContentBannerContent as y, ContentBannerDescription as G, ContentBannerTitle as N } from "./lib/Components/ContentBanner/ContentBanner.js";
|
|
13
13
|
import { Checkbox as E } from "./lib/Components/Checkbox/Checkbox.js";
|
|
@@ -20,43 +20,43 @@ import { Divider as te } from "./lib/Components/Divider/Divider.js";
|
|
|
20
20
|
import { IconButton as ne } from "./lib/Components/IconButton/IconButton.js";
|
|
21
21
|
import { InteractiveIcon as le } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
22
22
|
import { Link as me } from "./lib/Components/Link/Link.js";
|
|
23
|
-
import { ListItem as de, ListItemContent as
|
|
24
|
-
import { MediaBanner as
|
|
25
|
-
import { MediaCard as
|
|
26
|
-
import { Menu as
|
|
27
|
-
import { NavBar as
|
|
28
|
-
import { Popover as
|
|
29
|
-
import { PageIndicator as
|
|
30
|
-
import { SearchInput as
|
|
31
|
-
import { SegmentedControl as
|
|
32
|
-
import { Select as
|
|
33
|
-
import { TriggerButton as
|
|
34
|
-
import { SideBar as
|
|
35
|
-
import { Skeleton as
|
|
36
|
-
import { Spinner as
|
|
37
|
-
import { Spot as
|
|
38
|
-
import { Stepper as
|
|
39
|
-
import { Subheader as
|
|
40
|
-
import { Switch as
|
|
41
|
-
import { Table as
|
|
42
|
-
import { Tag as
|
|
43
|
-
import { TextInput as
|
|
44
|
-
import { Tile as
|
|
45
|
-
import { TileButton as
|
|
46
|
-
import { Tooltip as
|
|
47
|
-
import { ThemeProvider as
|
|
48
|
-
import { COLOR_SCHEMES as
|
|
23
|
+
import { ListItem as de, ListItemContent as xe, ListItemContentRow as ue, ListItemDescription as fe, ListItemLeading as Ce, ListItemTitle as ge, ListItemTrailing as Se } from "./lib/Components/ListItem/ListItem.js";
|
|
24
|
+
import { MediaBanner as be, MediaBannerDescription as ce, MediaBannerTitle as Ie } from "./lib/Components/MediaBanner/MediaBanner.js";
|
|
25
|
+
import { MediaCard as Me, MediaCardTitle as De } from "./lib/Components/MediaCard/MediaCard.js";
|
|
26
|
+
import { Menu as he, MenuCheckboxItem as ve, MenuContent as Re, MenuGroup as we, MenuItem as Ae, MenuLabel as He, MenuPortal as Pe, MenuRadioGroup as ke, MenuRadioItem as ye, MenuSeparator as Ge, MenuSub as Ne, MenuSubContent as Fe, MenuSubTrigger as Ee, MenuTrigger as Oe } from "./lib/Components/Menu/Menu.js";
|
|
27
|
+
import { NavBar as je, NavBarBackButton as qe, NavBarCoinCapsule as ze, NavBarTitle as Je, NavBarTrailing as Ke } from "./lib/Components/NavBar/NavBar.js";
|
|
28
|
+
import { Popover as Ue, PopoverContent as Ve, PopoverTrigger as We, createPopoverHandle as Xe } from "./lib/Components/Popover/Popover.js";
|
|
29
|
+
import { PageIndicator as Ze } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
30
|
+
import { SearchInput as eo } from "./lib/Components/SearchInput/SearchInput.js";
|
|
31
|
+
import { SegmentedControl as ro, SegmentedControlButton as to } from "./lib/Components/SegmentedControl/SegmentedControl.js";
|
|
32
|
+
import { Select as no, SelectContent as io, SelectGroup as lo, SelectItem as po, SelectItemText as mo, SelectLabel as To, SelectSeparator as xo, SelectTrigger as uo, SelectTriggerButton as fo } from "./lib/Components/Select/Select.js";
|
|
33
|
+
import { TriggerButton as go } from "./lib/Components/TriggerButton/TriggerButton.js";
|
|
34
|
+
import { SideBar as Bo, SideBarCollapseToggle as bo, SideBarItem as co, SideBarLeading as Io, SideBarTrailing as so } from "./lib/Components/SideBar/SideBar.js";
|
|
35
|
+
import { Skeleton as Do } from "./lib/Components/Skeleton/Skeleton.js";
|
|
36
|
+
import { Spinner as ho } from "./lib/Components/Spinner/Spinner.js";
|
|
37
|
+
import { Spot as Ro } from "./lib/Components/Spot/Spot.js";
|
|
38
|
+
import { Stepper as Ao } from "./lib/Components/Stepper/Stepper.js";
|
|
39
|
+
import { Subheader as Po, SubheaderCount as ko, SubheaderDescription as yo, SubheaderInfo as Go, SubheaderRow as No, SubheaderShowMore as Fo, SubheaderTitle as Eo } from "./lib/Components/Subheader/Subheader.js";
|
|
40
|
+
import { Switch as _o } from "./lib/Components/Switch/Switch.js";
|
|
41
|
+
import { Table as qo, TableActionBar as zo, TableActionBarLeading as Jo, TableActionBarTrailing as Ko, TableBody as Qo, TableCell as Uo, TableCellContent as Vo, TableGroupHeaderRow as Wo, TableHeader as Xo, TableHeaderCell as Yo, TableHeaderRow as Zo, TableInfoIcon as $o, TableLoadingRow as er, TableRoot as or, TableRow as rr, TableSortButton as tr } from "./lib/Components/Table/Table.js";
|
|
42
|
+
import { Tag as nr } from "./lib/Components/Tag/Tag.js";
|
|
43
|
+
import { TextInput as lr } from "./lib/Components/TextInput/TextInput.js";
|
|
44
|
+
import { Tile as mr, TileContent as Tr, TileDescription as dr, TileSecondaryAction as xr, TileTitle as ur, TileTrailingContent as fr } from "./lib/Components/Tile/Tile.js";
|
|
45
|
+
import { TileButton as gr } from "./lib/Components/TileButton/TileButton.js";
|
|
46
|
+
import { Tooltip as Br, TooltipContent as br, TooltipProvider as cr, TooltipTrigger as Ir } from "./lib/Components/Tooltip/Tooltip.js";
|
|
47
|
+
import { ThemeProvider as Mr } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
48
|
+
import { COLOR_SCHEMES as Lr } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
|
|
49
49
|
export {
|
|
50
50
|
a as AddressInput,
|
|
51
51
|
p as AmountDisplay,
|
|
52
52
|
i as AmountInput,
|
|
53
53
|
T as Avatar,
|
|
54
|
-
|
|
54
|
+
x as Banner,
|
|
55
55
|
B as BaseButton,
|
|
56
56
|
f as BaseInput,
|
|
57
57
|
g as Button,
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
Lr as COLOR_SCHEMES,
|
|
59
|
+
c as Card,
|
|
60
60
|
H as CardButton,
|
|
61
61
|
I as CardContent,
|
|
62
62
|
s as CardContentDescription,
|
|
@@ -66,7 +66,7 @@ export {
|
|
|
66
66
|
h as CardFooterActions,
|
|
67
67
|
v as CardHeader,
|
|
68
68
|
R as CardLeading,
|
|
69
|
-
|
|
69
|
+
w as CardTrailing,
|
|
70
70
|
E as Checkbox,
|
|
71
71
|
k as ContentBanner,
|
|
72
72
|
y as ContentBannerContent,
|
|
@@ -89,102 +89,100 @@ export {
|
|
|
89
89
|
r as Languages,
|
|
90
90
|
me as Link,
|
|
91
91
|
de as ListItem,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
fe as
|
|
92
|
+
xe as ListItemContent,
|
|
93
|
+
ue as ListItemContentRow,
|
|
94
|
+
fe as ListItemDescription,
|
|
95
95
|
Ce as ListItemLeading,
|
|
96
|
-
ge as
|
|
97
|
-
Se as
|
|
98
|
-
|
|
99
|
-
ce as
|
|
100
|
-
Ie as
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Re as
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
He as
|
|
109
|
-
Pe as
|
|
110
|
-
ke as
|
|
111
|
-
ye as
|
|
112
|
-
Ge as
|
|
113
|
-
Ne as
|
|
114
|
-
Fe as
|
|
115
|
-
Ee as
|
|
116
|
-
Oe as
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
ze as
|
|
120
|
-
Je as
|
|
121
|
-
Ke as
|
|
122
|
-
|
|
123
|
-
Ue as
|
|
124
|
-
|
|
125
|
-
We as
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
lo as
|
|
132
|
-
po as
|
|
133
|
-
mo as
|
|
134
|
-
To as
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
fo as
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
Io as
|
|
142
|
-
so as
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
yo as
|
|
150
|
-
Go as
|
|
151
|
-
No as
|
|
152
|
-
Fo as
|
|
153
|
-
Eo as
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Jo as
|
|
158
|
-
Ko as
|
|
159
|
-
Qo as
|
|
160
|
-
Uo as
|
|
161
|
-
Vo as
|
|
162
|
-
Wo as
|
|
163
|
-
Xo as
|
|
164
|
-
Yo as
|
|
165
|
-
Zo as
|
|
166
|
-
$o as
|
|
167
|
-
er as
|
|
168
|
-
or as
|
|
169
|
-
rr as
|
|
170
|
-
tr as
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
mr as
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
fr as
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
Ir as
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
Bo as TriggerButton,
|
|
188
|
-
Ze as createPopoverHandle,
|
|
96
|
+
ge as ListItemTitle,
|
|
97
|
+
Se as ListItemTrailing,
|
|
98
|
+
be as MediaBanner,
|
|
99
|
+
ce as MediaBannerDescription,
|
|
100
|
+
Ie as MediaBannerTitle,
|
|
101
|
+
Me as MediaCard,
|
|
102
|
+
De as MediaCardTitle,
|
|
103
|
+
he as Menu,
|
|
104
|
+
ve as MenuCheckboxItem,
|
|
105
|
+
Re as MenuContent,
|
|
106
|
+
we as MenuGroup,
|
|
107
|
+
Ae as MenuItem,
|
|
108
|
+
He as MenuLabel,
|
|
109
|
+
Pe as MenuPortal,
|
|
110
|
+
ke as MenuRadioGroup,
|
|
111
|
+
ye as MenuRadioItem,
|
|
112
|
+
Ge as MenuSeparator,
|
|
113
|
+
Ne as MenuSub,
|
|
114
|
+
Fe as MenuSubContent,
|
|
115
|
+
Ee as MenuSubTrigger,
|
|
116
|
+
Oe as MenuTrigger,
|
|
117
|
+
je as NavBar,
|
|
118
|
+
qe as NavBarBackButton,
|
|
119
|
+
ze as NavBarCoinCapsule,
|
|
120
|
+
Je as NavBarTitle,
|
|
121
|
+
Ke as NavBarTrailing,
|
|
122
|
+
Ze as PageIndicator,
|
|
123
|
+
Ue as Popover,
|
|
124
|
+
Ve as PopoverContent,
|
|
125
|
+
We as PopoverTrigger,
|
|
126
|
+
eo as SearchInput,
|
|
127
|
+
ro as SegmentedControl,
|
|
128
|
+
to as SegmentedControlButton,
|
|
129
|
+
no as Select,
|
|
130
|
+
io as SelectContent,
|
|
131
|
+
lo as SelectGroup,
|
|
132
|
+
po as SelectItem,
|
|
133
|
+
mo as SelectItemText,
|
|
134
|
+
To as SelectLabel,
|
|
135
|
+
xo as SelectSeparator,
|
|
136
|
+
uo as SelectTrigger,
|
|
137
|
+
fo as SelectTriggerButton,
|
|
138
|
+
Bo as SideBar,
|
|
139
|
+
bo as SideBarCollapseToggle,
|
|
140
|
+
co as SideBarItem,
|
|
141
|
+
Io as SideBarLeading,
|
|
142
|
+
so as SideBarTrailing,
|
|
143
|
+
Do as Skeleton,
|
|
144
|
+
ho as Spinner,
|
|
145
|
+
Ro as Spot,
|
|
146
|
+
Ao as Stepper,
|
|
147
|
+
Po as Subheader,
|
|
148
|
+
ko as SubheaderCount,
|
|
149
|
+
yo as SubheaderDescription,
|
|
150
|
+
Go as SubheaderInfo,
|
|
151
|
+
No as SubheaderRow,
|
|
152
|
+
Fo as SubheaderShowMore,
|
|
153
|
+
Eo as SubheaderTitle,
|
|
154
|
+
_o as Switch,
|
|
155
|
+
qo as Table,
|
|
156
|
+
zo as TableActionBar,
|
|
157
|
+
Jo as TableActionBarLeading,
|
|
158
|
+
Ko as TableActionBarTrailing,
|
|
159
|
+
Qo as TableBody,
|
|
160
|
+
Uo as TableCell,
|
|
161
|
+
Vo as TableCellContent,
|
|
162
|
+
Wo as TableGroupHeaderRow,
|
|
163
|
+
Xo as TableHeader,
|
|
164
|
+
Yo as TableHeaderCell,
|
|
165
|
+
Zo as TableHeaderRow,
|
|
166
|
+
$o as TableInfoIcon,
|
|
167
|
+
er as TableLoadingRow,
|
|
168
|
+
or as TableRoot,
|
|
169
|
+
rr as TableRow,
|
|
170
|
+
tr as TableSortButton,
|
|
171
|
+
nr as Tag,
|
|
172
|
+
lr as TextInput,
|
|
173
|
+
Mr as ThemeProvider,
|
|
174
|
+
mr as Tile,
|
|
175
|
+
gr as TileButton,
|
|
176
|
+
Tr as TileContent,
|
|
177
|
+
dr as TileDescription,
|
|
178
|
+
xr as TileSecondaryAction,
|
|
179
|
+
ur as TileTitle,
|
|
180
|
+
fr as TileTrailingContent,
|
|
181
|
+
Br as Tooltip,
|
|
182
|
+
br as TooltipContent,
|
|
183
|
+
cr as TooltipProvider,
|
|
184
|
+
Ir as TooltipTrigger,
|
|
185
|
+
go as TriggerButton,
|
|
186
|
+
Xe as createPopoverHandle,
|
|
189
187
|
J as useLumenDataTable
|
|
190
188
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountInput/AmountInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAgC3C;;;;GAIG;AACH,eAAO,MAAM,WAAW;mLAarB,gBAAgB;;CAkHlB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as g, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cva as l } from "class-variance-authority";
|
|
3
|
-
import
|
|
4
|
-
import { useCommonTranslation as
|
|
5
|
-
import { User as
|
|
6
|
-
const
|
|
3
|
+
import { useState as z, useEffect as h } from "react";
|
|
4
|
+
import { useCommonTranslation as A } from "../../../i18n/useCommonTranslation.js";
|
|
5
|
+
import { User as j } from "../../Symbols/Icons/User.js";
|
|
6
|
+
const n = {
|
|
7
7
|
root: l(
|
|
8
8
|
"relative inline-flex items-center justify-center rounded-full bg-muted-transparent transition-colors",
|
|
9
9
|
{
|
|
@@ -28,43 +28,43 @@ const d = {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
})
|
|
31
|
-
},
|
|
31
|
+
}, x = {
|
|
32
32
|
sm: 16,
|
|
33
33
|
md: 24,
|
|
34
34
|
lg: 32
|
|
35
|
-
},
|
|
35
|
+
}, k = ({
|
|
36
36
|
ref: m,
|
|
37
|
-
className:
|
|
37
|
+
className: d,
|
|
38
38
|
src: a,
|
|
39
|
-
alt:
|
|
39
|
+
alt: c,
|
|
40
40
|
size: e = "md",
|
|
41
|
-
imgLoading:
|
|
41
|
+
imgLoading: f,
|
|
42
42
|
showNotification: t = !1,
|
|
43
|
-
...
|
|
43
|
+
...u
|
|
44
44
|
}) => {
|
|
45
|
-
const { t: o } =
|
|
46
|
-
return
|
|
45
|
+
const { t: o } = A(), [p, i] = z(!1), v = !a || p, s = c || o("components.avatar.defaultAlt"), b = t ? `${s}, ${o("components.avatar.notificationAriaLabel")}` : s;
|
|
46
|
+
return h(() => {
|
|
47
47
|
i(!1);
|
|
48
|
-
}, [a]), /* @__PURE__ */
|
|
48
|
+
}, [a]), /* @__PURE__ */ g(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
ref: m,
|
|
52
|
-
className:
|
|
52
|
+
className: n.root({ size: e, className: d }),
|
|
53
53
|
role: "img",
|
|
54
|
-
"aria-label":
|
|
55
|
-
...
|
|
54
|
+
"aria-label": b,
|
|
55
|
+
...u,
|
|
56
56
|
children: [
|
|
57
57
|
t && /* @__PURE__ */ r(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
className:
|
|
60
|
+
className: n.notification({ size: e }),
|
|
61
61
|
"aria-hidden": "true"
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
v ? /* @__PURE__ */ r(
|
|
65
|
+
j,
|
|
66
66
|
{
|
|
67
|
-
size:
|
|
67
|
+
size: x[e],
|
|
68
68
|
"aria-label": "Fallback Icon",
|
|
69
69
|
"aria-hidden": "true"
|
|
70
70
|
}
|
|
@@ -73,7 +73,7 @@ const d = {
|
|
|
73
73
|
{
|
|
74
74
|
src: a,
|
|
75
75
|
alt: "",
|
|
76
|
-
loading:
|
|
76
|
+
loading: f,
|
|
77
77
|
onError: () => i(!0),
|
|
78
78
|
className: "size-full overflow-hidden rounded-full object-cover",
|
|
79
79
|
"aria-hidden": "true"
|
|
@@ -83,7 +83,7 @@ const d = {
|
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
85
|
};
|
|
86
|
-
|
|
86
|
+
k.displayName = "Avatar";
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
k as Avatar
|
|
89
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseInput/BaseInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseInput/BaseInput.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA2BzC;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,SAAS;2OAiBnB,cAAc;;CAyKhB,CAAC"}
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
import
|
|
4
|
-
import { useCommonTranslation as
|
|
5
|
-
import { InteractiveIcon as
|
|
6
|
-
import { DeleteCircleFill as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as O, cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { useRef as $, useId as q, useState as H, useCallback as P } from "react";
|
|
4
|
+
import { useCommonTranslation as U } from "../../../i18n/useCommonTranslation.js";
|
|
5
|
+
import { InteractiveIcon as W } from "../InteractiveIcon/InteractiveIcon.js";
|
|
6
|
+
import { DeleteCircleFill as w } from "../../Symbols/Icons/DeleteCircleFill.js";
|
|
7
|
+
const G = a(
|
|
8
8
|
"group relative flex h-48 w-full cursor-text items-center gap-8 rounded-sm bg-muted px-16 transition-colors",
|
|
9
9
|
"focus-within:ring-2 focus-within:ring-active hover:bg-muted-hover",
|
|
10
10
|
"has-disabled:cursor-not-allowed has-disabled:bg-disabled has-disabled:text-disabled",
|
|
11
11
|
"has-invalid:border-error has-invalid:ring-1 has-invalid:ring-error",
|
|
12
12
|
'has-[input[aria-invalid="true"]]:border-error has-[input[aria-invalid="true"]]:ring-1 has-[input[aria-invalid="true"]]:ring-error'
|
|
13
|
-
),
|
|
13
|
+
), J = a(
|
|
14
14
|
"peer w-full flex-1 bg-muted body-1 text-base caret-active outline-hidden transition-colors",
|
|
15
15
|
"group-hover:bg-muted-hover group-disabled:bg-disabled",
|
|
16
16
|
"group-has-disabled:cursor-not-allowed group-has-disabled:bg-disabled group-has-disabled:text-disabled",
|
|
17
17
|
"placeholder:text-muted group-has-disabled:placeholder:text-disabled",
|
|
18
18
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
19
19
|
"truncate"
|
|
20
|
-
),
|
|
20
|
+
), K = a(
|
|
21
21
|
"pointer-events-none absolute top-6 left-16 origin-left body-4 text-muted transition-all duration-300",
|
|
22
22
|
"peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-placeholder-shown:body-2",
|
|
23
23
|
"group-has-disabled:text-disabled",
|
|
24
24
|
"peer-focus:top-6 peer-focus:translate-y-0 peer-focus:body-4",
|
|
25
25
|
"w-[calc(100%-var(--size-56))] truncate"
|
|
26
|
-
),
|
|
27
|
-
ref:
|
|
28
|
-
className:
|
|
29
|
-
containerClassName:
|
|
30
|
-
inputClassName:
|
|
31
|
-
labelClassName:
|
|
32
|
-
label:
|
|
33
|
-
id:
|
|
34
|
-
disabled:
|
|
26
|
+
), Q = ({
|
|
27
|
+
ref: x,
|
|
28
|
+
className: y,
|
|
29
|
+
containerClassName: I,
|
|
30
|
+
inputClassName: C,
|
|
31
|
+
labelClassName: S,
|
|
32
|
+
label: d,
|
|
33
|
+
id: N,
|
|
34
|
+
disabled: k,
|
|
35
35
|
errorMessage: o,
|
|
36
36
|
suffix: B,
|
|
37
37
|
prefix: D,
|
|
38
38
|
onClear: E,
|
|
39
|
-
hideClearButton:
|
|
40
|
-
"aria-invalid":
|
|
41
|
-
onChange:
|
|
39
|
+
hideClearButton: R = !1,
|
|
40
|
+
"aria-invalid": p,
|
|
41
|
+
onChange: b,
|
|
42
42
|
...i
|
|
43
43
|
}) => {
|
|
44
|
-
const
|
|
44
|
+
const h = O({
|
|
45
45
|
consumerName: "BaseInput",
|
|
46
|
-
mergeWith: { disabled:
|
|
47
|
-
}), { t:
|
|
46
|
+
mergeWith: { disabled: k }
|
|
47
|
+
}), { t: j } = U(), n = $(null), z = q(), u = N || `input-${z}`, F = p || (o ? !0 : void 0), s = i.value !== void 0, [L, m] = H(
|
|
48
48
|
i.defaultValue?.toString() || ""
|
|
49
|
-
),
|
|
49
|
+
), T = P(
|
|
50
50
|
(t) => {
|
|
51
|
-
s ||
|
|
51
|
+
s || m(t.target.value), b?.(t);
|
|
52
52
|
},
|
|
53
|
-
[s,
|
|
54
|
-
), v = (s ? !!i.value && i.value.toString().length > 0 :
|
|
53
|
+
[s, b]
|
|
54
|
+
), v = (s ? !!i.value && i.value.toString().length > 0 : L.length > 0) && !h && !R, f = `${u}-error`, V = () => {
|
|
55
55
|
if (!n.current) return;
|
|
56
56
|
Object.getOwnPropertyDescriptor(
|
|
57
57
|
window.HTMLInputElement.prototype,
|
|
58
58
|
"value"
|
|
59
|
-
)?.set?.call(n.current, ""), s ||
|
|
59
|
+
)?.set?.call(n.current, ""), s || m("");
|
|
60
60
|
const l = new Event("input", { bubbles: !0 });
|
|
61
61
|
n.current.dispatchEvent(l), n.current.focus(), E?.();
|
|
62
62
|
};
|
|
63
|
-
function
|
|
63
|
+
function A(...t) {
|
|
64
64
|
return (l) => {
|
|
65
65
|
t.forEach((e) => {
|
|
66
66
|
e && (typeof e == "function" ? e(l) : e.current = l);
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ c("div", { className: y, children: [
|
|
71
|
+
/* @__PURE__ */ c(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
className: a(
|
|
74
|
+
className: a(G, I),
|
|
75
75
|
onPointerDown: (t) => {
|
|
76
76
|
if (t.target.closest("input, button, a")) return;
|
|
77
77
|
const e = n.current;
|
|
78
78
|
if (!e) return;
|
|
79
|
-
const
|
|
79
|
+
const g = e.value.length > 0 ? e.value.length : 0;
|
|
80
80
|
window.requestAnimationFrame(() => {
|
|
81
81
|
try {
|
|
82
|
-
e.setSelectionRange(
|
|
82
|
+
e.setSelectionRange(g, g);
|
|
83
83
|
} catch {
|
|
84
84
|
}
|
|
85
85
|
e.focus();
|
|
@@ -90,61 +90,61 @@ const H = a(
|
|
|
90
90
|
/* @__PURE__ */ r(
|
|
91
91
|
"input",
|
|
92
92
|
{
|
|
93
|
-
ref:
|
|
94
|
-
id:
|
|
95
|
-
disabled:
|
|
93
|
+
ref: A(x, n),
|
|
94
|
+
id: u,
|
|
95
|
+
disabled: h,
|
|
96
96
|
placeholder: " ",
|
|
97
|
-
"aria-invalid":
|
|
98
|
-
"aria-describedby": o ?
|
|
97
|
+
"aria-invalid": F,
|
|
98
|
+
"aria-describedby": o ? f : void 0,
|
|
99
99
|
className: a(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
J,
|
|
101
|
+
d && "pt-12 body-2",
|
|
102
|
+
C
|
|
103
103
|
),
|
|
104
|
-
onChange:
|
|
104
|
+
onChange: T,
|
|
105
105
|
...i
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
|
-
|
|
108
|
+
d && /* @__PURE__ */ r(
|
|
109
109
|
"label",
|
|
110
110
|
{
|
|
111
|
-
htmlFor:
|
|
111
|
+
htmlFor: u,
|
|
112
112
|
className: a(
|
|
113
|
-
|
|
113
|
+
K,
|
|
114
114
|
o && "text-error",
|
|
115
|
-
|
|
115
|
+
S
|
|
116
116
|
),
|
|
117
|
-
children:
|
|
117
|
+
children: d
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
120
|
v && /* @__PURE__ */ r(
|
|
121
|
-
|
|
121
|
+
W,
|
|
122
122
|
{
|
|
123
123
|
iconType: "filled",
|
|
124
|
-
onClick:
|
|
125
|
-
"aria-label":
|
|
126
|
-
children: /* @__PURE__ */ r(
|
|
124
|
+
onClick: V,
|
|
125
|
+
"aria-label": j("components.baseInput.clearInputAriaLabel"),
|
|
126
|
+
children: /* @__PURE__ */ r(w, { size: 20 })
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
!v && B
|
|
130
130
|
]
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
|
-
o && /* @__PURE__ */
|
|
133
|
+
o && /* @__PURE__ */ c(
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
136
|
-
id:
|
|
136
|
+
id: f,
|
|
137
137
|
className: "mt-8 flex items-center gap-2 body-3 text-error",
|
|
138
138
|
role: "alert",
|
|
139
139
|
children: [
|
|
140
|
-
/* @__PURE__ */ r(
|
|
140
|
+
/* @__PURE__ */ r(w, { size: 16, className: "text-error" }),
|
|
141
141
|
/* @__PURE__ */ r("span", { children: o })
|
|
142
142
|
]
|
|
143
143
|
}
|
|
144
144
|
)
|
|
145
145
|
] });
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
Q.displayName = "BaseInput";
|
|
148
148
|
export {
|
|
149
|
-
|
|
149
|
+
Q as BaseInput
|
|
150
150
|
};
|