@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.
Files changed (59) hide show
  1. package/ai-rules/RULES.md +1 -1
  2. package/dist/i18n/i18n.d.ts.map +1 -1
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +126 -128
  6. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  7. package/dist/lib/Components/Avatar/Avatar.js +24 -24
  8. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  9. package/dist/lib/Components/BaseInput/BaseInput.js +58 -58
  10. package/dist/lib/Components/CardButton/CardButton.js +10 -10
  11. package/dist/lib/Components/Dialog/Dialog.js +39 -39
  12. package/dist/lib/Components/Dialog/types.d.ts +3 -3
  13. package/dist/lib/Components/Icon/Icon.js +5 -5
  14. package/dist/lib/Components/Icon/createIcon.d.ts.map +1 -1
  15. package/dist/lib/Components/Link/Link.d.ts.map +1 -1
  16. package/dist/lib/Components/Link/Link.js +25 -32
  17. package/dist/lib/Components/ListItem/ListItem.d.ts +17 -28
  18. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  19. package/dist/lib/Components/ListItem/ListItem.js +81 -93
  20. package/dist/lib/Components/ListItem/types.d.ts +13 -32
  21. package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
  22. package/dist/lib/Components/Menu/Menu.d.ts +4 -4
  23. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  24. package/dist/lib/Components/NavBar/NavBar.d.ts +0 -1
  25. package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
  26. package/dist/lib/Components/Popover/Popover.js +7 -7
  27. package/dist/lib/Components/Popover/types.d.ts +3 -3
  28. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
  29. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  30. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +97 -81
  31. package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts +1 -0
  32. package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
  33. package/dist/lib/Components/SegmentedControl/types.d.ts +7 -0
  34. package/dist/lib/Components/SegmentedControl/types.d.ts.map +1 -1
  35. package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.d.ts +5 -6
  36. package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.d.ts.map +1 -1
  37. package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.js +30 -25
  38. package/dist/lib/Components/Select/Select.js +9 -9
  39. package/dist/lib/Components/SideBar/SideBar.d.ts +1 -1
  40. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  41. package/dist/lib/Components/SideBar/SideBar.js +93 -89
  42. package/dist/lib/Components/SideBar/types.d.ts +7 -1
  43. package/dist/lib/Components/SideBar/types.d.ts.map +1 -1
  44. package/dist/lib/Components/Stepper/Stepper.d.ts +5 -6
  45. package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
  46. package/dist/lib/Components/Stepper/Stepper.js +100 -102
  47. package/dist/lib/Components/Stepper/types.d.ts +2 -2
  48. package/dist/lib/Components/Stepper/types.d.ts.map +1 -1
  49. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  50. package/dist/lib/Components/Tag/Tag.js +1 -1
  51. package/dist/lib/Components/Tooltip/Tooltip.d.ts +2 -2
  52. package/dist/lib/Components/Tooltip/Tooltip.d.ts.map +1 -1
  53. package/dist/lib/Components/TriggerButton/TriggerButton.js +8 -8
  54. package/dist/node_modules/i18next/dist/esm/i18next.js +45 -47
  55. package/dist/package.json +1 -1
  56. package/dist/utils/icon-template.d.ts.map +1 -1
  57. package/package.json +1 -1
  58. package/dist/lib/Patterns/index.d.ts +0 -3
  59. 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
- <ListItemSpot appearance='icon' icon={Settings} />
220
+ <Spot appearance='icon' icon={Settings} />
221
221
  <ListItemContent>
222
222
  <ListItemTitle>Simple composition</ListItemTitle>
223
223
  <ListItemDescription>With description</ListItemDescription>
@@ -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;AA4BrB,eAAO,MAAM,IAAI,cAAmB,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,UAAU,GAAU,QAAQ,eAAe,KAAG,OAAO,CAAC,IAAI,CAoBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,eAAe,KACtB,OAAO,CAAC,IAAI,CAGd,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
@@ -1,4 +1,3 @@
1
1
  export * from './lib/Components';
2
- export * from './lib/Patterns';
3
2
  export { type SupportedLocale, Languages } from './i18n';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
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 u } from "./lib/Components/Banner/Banner.js";
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 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 A } from "./lib/Components/Card/Card.js";
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 ue, ListItemDescription as xe, ListItemIcon as fe, ListItemLeading as Ce, ListItemSpot as ge, ListItemTitle as Se, ListItemTrailing as Be, ListItemTruncate as ce } from "./lib/Components/ListItem/ListItem.js";
24
- import { MediaBanner as Ie, MediaBannerDescription as se, MediaBannerTitle as Me } from "./lib/Components/MediaBanner/MediaBanner.js";
25
- import { MediaCard as Le, MediaCardTitle as he } from "./lib/Components/MediaCard/MediaCard.js";
26
- import { Menu as Re, MenuCheckboxItem as Ae, MenuContent as we, MenuGroup as He, MenuItem as Pe, MenuLabel as ke, MenuPortal as ye, MenuRadioGroup as Ge, MenuRadioItem as Ne, MenuSeparator as Fe, MenuSub as Ee, MenuSubContent as Oe, MenuSubTrigger as _e, MenuTrigger as je } from "./lib/Components/Menu/Menu.js";
27
- import { NavBar as ze, NavBarBackButton as Je, NavBarCoinCapsule as Ke, NavBarTitle as Qe, NavBarTrailing as Ue } from "./lib/Components/NavBar/NavBar.js";
28
- import { Popover as We, PopoverContent as Xe, PopoverTrigger as Ye, createPopoverHandle as Ze } from "./lib/Components/Popover/Popover.js";
29
- import { PageIndicator as eo } from "./lib/Components/PageIndicator/PageIndicator.js";
30
- import { SearchInput as ro } from "./lib/Components/SearchInput/SearchInput.js";
31
- import { SegmentedControl as ao, SegmentedControlButton as no } from "./lib/Components/SegmentedControl/SegmentedControl.js";
32
- import { Select as lo, SelectContent as po, SelectGroup as mo, SelectItem as To, SelectItemText as uo, SelectLabel as xo, SelectSeparator as fo, SelectTrigger as Co, SelectTriggerButton as go } from "./lib/Components/Select/Select.js";
33
- import { TriggerButton as Bo } from "./lib/Components/TriggerButton/TriggerButton.js";
34
- import { SideBar as bo, SideBarCollapseToggle as Io, SideBarItem as so, SideBarLeading as Mo, SideBarTrailing as Do } from "./lib/Components/SideBar/SideBar.js";
35
- import { Skeleton as ho } from "./lib/Components/Skeleton/Skeleton.js";
36
- import { Spinner as Ro } from "./lib/Components/Spinner/Spinner.js";
37
- import { Spot as wo } from "./lib/Components/Spot/Spot.js";
38
- import { Stepper as Po } from "./lib/Components/Stepper/Stepper.js";
39
- import { Subheader as yo, SubheaderCount as Go, SubheaderDescription as No, SubheaderInfo as Fo, SubheaderRow as Eo, SubheaderShowMore as Oo, SubheaderTitle as _o } from "./lib/Components/Subheader/Subheader.js";
40
- import { Switch as qo } from "./lib/Components/Switch/Switch.js";
41
- import { Table as Jo, TableActionBar as Ko, TableActionBarLeading as Qo, TableActionBarTrailing as Uo, TableBody as Vo, TableCell as Wo, TableCellContent as Xo, TableGroupHeaderRow as Yo, TableHeader as Zo, TableHeaderCell as $o, TableHeaderRow as er, TableInfoIcon as or, TableLoadingRow as rr, TableRoot as tr, TableRow as ar, TableSortButton as nr } from "./lib/Components/Table/Table.js";
42
- import { Tag as lr } from "./lib/Components/Tag/Tag.js";
43
- import { TextInput as mr } from "./lib/Components/TextInput/TextInput.js";
44
- import { Tile as dr, TileContent as ur, TileDescription as xr, TileSecondaryAction as fr, TileTitle as Cr, TileTrailingContent as gr } from "./lib/Components/Tile/Tile.js";
45
- import { TileButton as Br } from "./lib/Components/TileButton/TileButton.js";
46
- import { Tooltip as br, TooltipContent as Ir, TooltipProvider as sr, TooltipTrigger as Mr } from "./lib/Components/Tooltip/Tooltip.js";
47
- import { ThemeProvider as Lr } from "./lib/Components/ThemeProvider/ThemeProvider.js";
48
- import { COLOR_SCHEMES as vr } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
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
- u as Banner,
54
+ x as Banner,
55
55
  B as BaseButton,
56
56
  f as BaseInput,
57
57
  g as Button,
58
- vr as COLOR_SCHEMES,
59
- b as Card,
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
- A as CardTrailing,
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
- ue as ListItemContent,
93
- xe as ListItemDescription,
94
- fe as ListItemIcon,
92
+ xe as ListItemContent,
93
+ ue as ListItemContentRow,
94
+ fe as ListItemDescription,
95
95
  Ce as ListItemLeading,
96
- ge as ListItemSpot,
97
- Se as ListItemTitle,
98
- Be as ListItemTrailing,
99
- ce as ListItemTruncate,
100
- Ie as MediaBanner,
101
- se as MediaBannerDescription,
102
- Me as MediaBannerTitle,
103
- Le as MediaCard,
104
- he as MediaCardTitle,
105
- Re as Menu,
106
- Ae as MenuCheckboxItem,
107
- we as MenuContent,
108
- He as MenuGroup,
109
- Pe as MenuItem,
110
- ke as MenuLabel,
111
- ye as MenuPortal,
112
- Ge as MenuRadioGroup,
113
- Ne as MenuRadioItem,
114
- Fe as MenuSeparator,
115
- Ee as MenuSub,
116
- Oe as MenuSubContent,
117
- _e as MenuSubTrigger,
118
- je as MenuTrigger,
119
- ze as NavBar,
120
- Je as NavBarBackButton,
121
- Ke as NavBarCoinCapsule,
122
- Qe as NavBarTitle,
123
- Ue as NavBarTrailing,
124
- eo as PageIndicator,
125
- We as Popover,
126
- Xe as PopoverContent,
127
- Ye as PopoverTrigger,
128
- ro as SearchInput,
129
- ao as SegmentedControl,
130
- no as SegmentedControlButton,
131
- lo as Select,
132
- po as SelectContent,
133
- mo as SelectGroup,
134
- To as SelectItem,
135
- uo as SelectItemText,
136
- xo as SelectLabel,
137
- fo as SelectSeparator,
138
- Co as SelectTrigger,
139
- go as SelectTriggerButton,
140
- bo as SideBar,
141
- Io as SideBarCollapseToggle,
142
- so as SideBarItem,
143
- Mo as SideBarLeading,
144
- Do as SideBarTrailing,
145
- ho as Skeleton,
146
- Ro as Spinner,
147
- wo as Spot,
148
- Po as Stepper,
149
- yo as Subheader,
150
- Go as SubheaderCount,
151
- No as SubheaderDescription,
152
- Fo as SubheaderInfo,
153
- Eo as SubheaderRow,
154
- Oo as SubheaderShowMore,
155
- _o as SubheaderTitle,
156
- qo as Switch,
157
- Jo as Table,
158
- Ko as TableActionBar,
159
- Qo as TableActionBarLeading,
160
- Uo as TableActionBarTrailing,
161
- Vo as TableBody,
162
- Wo as TableCell,
163
- Xo as TableCellContent,
164
- Yo as TableGroupHeaderRow,
165
- Zo as TableHeader,
166
- $o as TableHeaderCell,
167
- er as TableHeaderRow,
168
- or as TableInfoIcon,
169
- rr as TableLoadingRow,
170
- tr as TableRoot,
171
- ar as TableRow,
172
- nr as TableSortButton,
173
- lr as Tag,
174
- mr as TextInput,
175
- Lr as ThemeProvider,
176
- dr as Tile,
177
- Br as TileButton,
178
- ur as TileContent,
179
- xr as TileDescription,
180
- fr as TileSecondaryAction,
181
- Cr as TileTitle,
182
- gr as TileTrailingContent,
183
- br as Tooltip,
184
- Ir as TooltipContent,
185
- sr as TooltipProvider,
186
- Mr as TooltipTrigger,
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":"AAcA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAgC3C;;;;GAIG;AACH,eAAO,MAAM,WAAW;mLAarB,gBAAgB;;CAkHlB,CAAC"}
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 z, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as g, jsx as r } from "react/jsx-runtime";
2
2
  import { cva as l } from "class-variance-authority";
3
- import n from "react";
4
- import { useCommonTranslation as h } from "../../../i18n/useCommonTranslation.js";
5
- import { User as A } from "../../Symbols/Icons/User.js";
6
- const d = {
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
- }, j = {
31
+ }, x = {
32
32
  sm: 16,
33
33
  md: 24,
34
34
  lg: 32
35
- }, x = ({
35
+ }, k = ({
36
36
  ref: m,
37
- className: c,
37
+ className: d,
38
38
  src: a,
39
- alt: f,
39
+ alt: c,
40
40
  size: e = "md",
41
- imgLoading: u,
41
+ imgLoading: f,
42
42
  showNotification: t = !1,
43
- ...p
43
+ ...u
44
44
  }) => {
45
- const { t: o } = h(), [v, i] = n.useState(!1), b = !a || v, s = f || o("components.avatar.defaultAlt"), g = t ? `${s}, ${o("components.avatar.notificationAriaLabel")}` : s;
46
- return n.useEffect(() => {
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__ */ z(
48
+ }, [a]), /* @__PURE__ */ g(
49
49
  "div",
50
50
  {
51
51
  ref: m,
52
- className: d.root({ size: e, className: c }),
52
+ className: n.root({ size: e, className: d }),
53
53
  role: "img",
54
- "aria-label": g,
55
- ...p,
54
+ "aria-label": b,
55
+ ...u,
56
56
  children: [
57
57
  t && /* @__PURE__ */ r(
58
58
  "div",
59
59
  {
60
- className: d.notification({ size: e }),
60
+ className: n.notification({ size: e }),
61
61
  "aria-hidden": "true"
62
62
  }
63
63
  ),
64
- b ? /* @__PURE__ */ r(
65
- A,
64
+ v ? /* @__PURE__ */ r(
65
+ j,
66
66
  {
67
- size: j[e],
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: u,
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
- x.displayName = "Avatar";
86
+ k.displayName = "Avatar";
87
87
  export {
88
- x as Avatar
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":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA2BzC;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,SAAS;2OAiBnB,cAAc;;CAyKhB,CAAC"}
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 p, jsx as r } from "react/jsx-runtime";
2
- import { useDisabledContext as _, cn as a } from "../../../libs/utils-shared/dist/index.js";
3
- import d from "react";
4
- import { useCommonTranslation as $ } from "../../../i18n/useCommonTranslation.js";
5
- import { InteractiveIcon as q } from "../InteractiveIcon/InteractiveIcon.js";
6
- import { DeleteCircleFill as x } from "../../Symbols/Icons/DeleteCircleFill.js";
7
- const H = a(
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
- ), P = a(
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
- ), U = a(
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
- ), W = ({
27
- ref: y,
28
- className: I,
29
- containerClassName: C,
30
- inputClassName: S,
31
- labelClassName: N,
32
- label: u,
33
- id: k,
34
- disabled: R,
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: j = !1,
40
- "aria-invalid": b,
41
- onChange: h,
39
+ hideClearButton: R = !1,
40
+ "aria-invalid": p,
41
+ onChange: b,
42
42
  ...i
43
43
  }) => {
44
- const m = _({
44
+ const h = O({
45
45
  consumerName: "BaseInput",
46
- mergeWith: { disabled: R }
47
- }), { t: z } = $(), n = d.useRef(null), F = d.useId(), c = k || `input-${F}`, L = b || (o ? !0 : void 0), s = i.value !== void 0, [T, f] = d.useState(
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
- ), V = d.useCallback(
49
+ ), T = P(
50
50
  (t) => {
51
- s || f(t.target.value), h?.(t);
51
+ s || m(t.target.value), b?.(t);
52
52
  },
53
- [s, h]
54
- ), v = (s ? !!i.value && i.value.toString().length > 0 : T.length > 0) && !m && !j, g = `${c}-error`, A = () => {
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 || f("");
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 O(...t) {
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__ */ p("div", { className: I, children: [
71
- /* @__PURE__ */ p(
70
+ return /* @__PURE__ */ c("div", { className: y, children: [
71
+ /* @__PURE__ */ c(
72
72
  "div",
73
73
  {
74
- className: a(H, C),
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 w = e.value.length > 0 ? e.value.length : 0;
79
+ const g = e.value.length > 0 ? e.value.length : 0;
80
80
  window.requestAnimationFrame(() => {
81
81
  try {
82
- e.setSelectionRange(w, w);
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: O(y, n),
94
- id: c,
95
- disabled: m,
93
+ ref: A(x, n),
94
+ id: u,
95
+ disabled: h,
96
96
  placeholder: " ",
97
- "aria-invalid": L,
98
- "aria-describedby": o ? g : void 0,
97
+ "aria-invalid": F,
98
+ "aria-describedby": o ? f : void 0,
99
99
  className: a(
100
- P,
101
- u && "pt-12 body-2",
102
- S
100
+ J,
101
+ d && "pt-12 body-2",
102
+ C
103
103
  ),
104
- onChange: V,
104
+ onChange: T,
105
105
  ...i
106
106
  }
107
107
  ),
108
- u && /* @__PURE__ */ r(
108
+ d && /* @__PURE__ */ r(
109
109
  "label",
110
110
  {
111
- htmlFor: c,
111
+ htmlFor: u,
112
112
  className: a(
113
- U,
113
+ K,
114
114
  o && "text-error",
115
- N
115
+ S
116
116
  ),
117
- children: u
117
+ children: d
118
118
  }
119
119
  ),
120
120
  v && /* @__PURE__ */ r(
121
- q,
121
+ W,
122
122
  {
123
123
  iconType: "filled",
124
- onClick: A,
125
- "aria-label": z("components.baseInput.clearInputAriaLabel"),
126
- children: /* @__PURE__ */ r(x, { size: 20 })
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__ */ p(
133
+ o && /* @__PURE__ */ c(
134
134
  "div",
135
135
  {
136
- id: g,
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(x, { size: 16, className: "shrink-0 text-error" }),
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
- W.displayName = "BaseInput";
147
+ Q.displayName = "BaseInput";
148
148
  export {
149
- W as BaseInput
149
+ Q as BaseInput
150
150
  };