@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
@@ -1,176 +1,164 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { useDisabledContext as o, DisabledProvider as c, cn as a, createSafeContext as u } from "../../../libs/utils-shared/dist/index.js";
3
- import { Spot as b } from "../Spot/Spot.js";
4
- const [I, d] = u("ListItemTrailing", {
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useDisabledContext as o, DisabledProvider as c, cn as r, createSafeContext as u } from "../../../libs/utils-shared/dist/index.js";
3
+ const [b, m] = u("ListItemTrailing", {
5
4
  isInTrailing: !1
6
- }), p = ({ ref: e, ...t }) => {
7
- const { children: s, className: n, disabled: r, ...m } = t, l = o({
5
+ }), x = ({ ref: e, ...t }) => {
6
+ const { children: s, className: i, disabled: a, ...l } = t, d = o({
8
7
  consumerName: "ListItem",
9
- mergeWith: { disabled: r }
8
+ mergeWith: { disabled: a }
10
9
  });
11
- return /* @__PURE__ */ i(c, { value: { disabled: l }, children: /* @__PURE__ */ i(
10
+ return /* @__PURE__ */ n(c, { value: { disabled: d }, children: /* @__PURE__ */ n(
12
11
  "button",
13
12
  {
14
13
  ref: e,
15
14
  type: "button",
16
- disabled: l,
17
- className: a(
15
+ disabled: d,
16
+ className: r(
18
17
  "flex h-64 w-full cursor-pointer items-center gap-16 rounded-md bg-base-transparent px-8 py-12 text-base transition-colors",
19
18
  "hover:bg-base-transparent-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-base-transparent-pressed",
20
19
  "disabled:cursor-default disabled:bg-base-transparent disabled:text-disabled",
21
- n
20
+ i
22
21
  ),
23
- ...m,
22
+ ...l,
24
23
  children: s
25
24
  }
26
25
  ) });
27
26
  };
28
- p.displayName = "ListItem";
29
- const x = ({
27
+ x.displayName = "ListItem";
28
+ const p = ({
30
29
  ref: e,
31
30
  children: t,
32
- className: s
33
- }) => /* @__PURE__ */ i(
31
+ className: s,
32
+ ...i
33
+ }) => /* @__PURE__ */ n(
34
34
  "div",
35
35
  {
36
36
  ref: e,
37
- className: a("flex min-w-0 flex-1 items-center gap-12", s),
37
+ className: r("flex min-w-0 flex-1 items-center gap-12", s),
38
+ ...i,
38
39
  children: t
39
40
  }
40
41
  );
41
- x.displayName = "ListItemLeading";
42
- const L = ({
42
+ p.displayName = "ListItemLeading";
43
+ const I = ({
43
44
  ref: e,
44
45
  children: t,
45
- className: s
46
- }) => /* @__PURE__ */ i(
46
+ className: s,
47
+ ...i
48
+ }) => /* @__PURE__ */ n(
47
49
  "div",
48
50
  {
49
51
  ref: e,
50
- className: a("flex min-w-0 flex-1 flex-col gap-4", s),
52
+ className: r("flex min-w-0 flex-1 flex-col gap-4", s),
53
+ ...i,
51
54
  children: t
52
55
  }
53
56
  );
54
- L.displayName = "ListItemContent";
55
- const N = ({
57
+ I.displayName = "ListItemContent";
58
+ const f = ({
59
+ ref: e,
60
+ children: t,
61
+ className: s,
62
+ ...i
63
+ }) => /* @__PURE__ */ n(
64
+ "div",
65
+ {
66
+ ref: e,
67
+ className: r("flex min-w-0 items-center gap-8", s),
68
+ ...i,
69
+ children: t
70
+ }
71
+ );
72
+ f.displayName = "ListItemContentRow";
73
+ const L = ({
56
74
  ref: e,
57
75
  children: t,
58
- className: s
76
+ className: s,
77
+ ...i
59
78
  }) => {
60
- const n = o({
79
+ const a = o({
61
80
  consumerName: "ListItemTitle",
62
81
  contextRequired: !0
63
- }), { isInTrailing: r } = d({
82
+ }), { isInTrailing: l } = m({
64
83
  consumerName: "ListItemTitle",
65
84
  contextRequired: !1
66
85
  });
67
- return /* @__PURE__ */ i(
86
+ return /* @__PURE__ */ n(
68
87
  "div",
69
88
  {
70
89
  ref: e,
71
- className: a(
72
- "w-full truncate body-2-semi-bold",
73
- r ? "justify-end text-end" : "justify-start text-start",
74
- n && "text-disabled",
90
+ className: r(
91
+ "min-w-0 flex-1 truncate body-2-semi-bold",
92
+ l ? "justify-end text-end" : "justify-start text-start",
93
+ a && "text-disabled",
75
94
  s
76
95
  ),
96
+ ...i,
77
97
  children: t
78
98
  }
79
99
  );
80
100
  };
81
- N.displayName = "ListItemTitle";
82
- const f = ({
101
+ L.displayName = "ListItemTitle";
102
+ const g = ({
83
103
  ref: e,
84
104
  children: t,
85
- className: s
105
+ className: s,
106
+ ...i
86
107
  }) => {
87
- const n = o({
108
+ const a = o({
88
109
  consumerName: "ListItemDescription",
89
110
  contextRequired: !0
90
- }), { isInTrailing: r } = d({
111
+ }), { isInTrailing: l } = m({
91
112
  consumerName: "ListItemDescription",
92
113
  contextRequired: !1
93
114
  });
94
- return /* @__PURE__ */ i(
115
+ return /* @__PURE__ */ n(
95
116
  "div",
96
117
  {
97
118
  ref: e,
98
- className: a(
99
- "w-full items-center truncate body-3 text-muted",
100
- r ? "justify-end text-end" : "justify-start text-start",
101
- n && "text-disabled",
119
+ className: r(
120
+ "min-w-0 flex-1 items-center truncate body-3 text-muted",
121
+ l ? "justify-end text-end" : "justify-start text-start",
122
+ a && "text-disabled",
102
123
  s
103
124
  ),
125
+ ...i,
104
126
  children: t
105
127
  }
106
128
  );
107
129
  };
108
- f.displayName = "ListItemDescription";
109
- const g = ({
130
+ g.displayName = "ListItemDescription";
131
+ const N = ({
110
132
  ref: e,
111
133
  children: t,
112
- className: s
134
+ className: s,
135
+ ...i
113
136
  }) => {
114
- const n = o({
137
+ const a = o({
115
138
  consumerName: "ListItemTrailing",
116
139
  contextRequired: !0
117
140
  });
118
- return /* @__PURE__ */ i(I, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ i(
141
+ return /* @__PURE__ */ n(b, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ n(
119
142
  "div",
120
143
  {
121
144
  ref: e,
122
- className: a(
145
+ className: r(
123
146
  "flex shrink-0 items-center",
124
- n && "text-disabled",
147
+ a && "text-disabled",
125
148
  s
126
149
  ),
150
+ ...i,
127
151
  children: t
128
152
  }
129
153
  ) });
130
154
  };
131
- g.displayName = "ListItemTrailing";
132
- const y = (e) => {
133
- const t = o({
134
- consumerName: "ListItemSpot",
135
- contextRequired: !0
136
- });
137
- return /* @__PURE__ */ i(b, { ...e, size: 48, disabled: t });
138
- };
139
- y.displayName = "ListItemSpot";
140
- const v = ({
141
- ref: e,
142
- icon: t,
143
- className: s,
144
- ...n
145
- }) => {
146
- const r = o({
147
- consumerName: "ListItemIcon",
148
- contextRequired: !0
149
- });
150
- return /* @__PURE__ */ i(
151
- "div",
152
- {
153
- ref: e,
154
- className: a("shrink-0", r && "text-disabled", s),
155
- ...n,
156
- children: /* @__PURE__ */ i(t, { size: 24 })
157
- }
158
- );
159
- };
160
- v.displayName = "ListItemIcon";
161
- const T = ({
162
- children: e,
163
- className: t
164
- }) => /* @__PURE__ */ i("div", { className: a("min-w-0 truncate", t), children: e });
165
- T.displayName = "ListItemTruncate";
155
+ N.displayName = "ListItemTrailing";
166
156
  export {
167
- p as ListItem,
168
- L as ListItemContent,
169
- f as ListItemDescription,
170
- v as ListItemIcon,
171
- x as ListItemLeading,
172
- y as ListItemSpot,
173
- N as ListItemTitle,
174
- g as ListItemTrailing,
175
- T as ListItemTruncate
157
+ x as ListItem,
158
+ I as ListItemContent,
159
+ f as ListItemContentRow,
160
+ g as ListItemDescription,
161
+ p as ListItemLeading,
162
+ L as ListItemTitle,
163
+ N as ListItemTrailing
176
164
  };
@@ -1,5 +1,4 @@
1
- import { ButtonHTMLAttributes, ComponentPropsWithRef, ComponentType, ReactNode } from 'react';
2
- import { DiscriminatedSpotProps } from '../Spot';
1
+ import { ButtonHTMLAttributes, ComponentPropsWithRef, ReactNode } from 'react';
3
2
  /**
4
3
  * Context value for passing state to sub-components
5
4
  */
@@ -54,11 +53,11 @@ export type ListItemContentProps = {
54
53
  className?: string;
55
54
  } & ComponentPropsWithRef<'div'>;
56
55
  /**
57
- * Props for the ListItemTitle component
56
+ * Props for the ListItemContentRow component
58
57
  */
59
- export type ListItemTitleProps = {
58
+ export type ListItemContentRowProps = {
60
59
  /**
61
- * The title text or custom content
60
+ * The row content (ListItemTitle or ListItemDescription alongside inline elements like Tag)
62
61
  */
63
62
  children: ReactNode;
64
63
  /**
@@ -67,11 +66,11 @@ export type ListItemTitleProps = {
67
66
  className?: string;
68
67
  } & ComponentPropsWithRef<'div'>;
69
68
  /**
70
- * Props for the ListItemDescription component
69
+ * Props for the ListItemTitle component
71
70
  */
72
- export type ListItemDescriptionProps = {
71
+ export type ListItemTitleProps = {
73
72
  /**
74
- * The description text or custom content
73
+ * The title text or custom content
75
74
  */
76
75
  children: ReactNode;
77
76
  /**
@@ -80,11 +79,11 @@ export type ListItemDescriptionProps = {
80
79
  className?: string;
81
80
  } & ComponentPropsWithRef<'div'>;
82
81
  /**
83
- * Props for the ListItemTrailing component
82
+ * Props for the ListItemDescription component
84
83
  */
85
- export type ListItemTrailingProps = {
84
+ export type ListItemDescriptionProps = {
86
85
  /**
87
- * The trailing content (icons, switches, values, etc.)
86
+ * The description text or custom content
88
87
  */
89
88
  children: ReactNode;
90
89
  /**
@@ -93,16 +92,11 @@ export type ListItemTrailingProps = {
93
92
  className?: string;
94
93
  } & ComponentPropsWithRef<'div'>;
95
94
  /**
96
- * Props for ListItemSpot when appearance is 'icon'
97
- */
98
- export type ListItemSpotProps = DiscriminatedSpotProps & ComponentPropsWithRef<'div'>;
99
- /**
100
- * Props for the ListItemTruncate component
101
- * Used to truncate text that should when ListItemDescription or ListItemTitle contain custom content
95
+ * Props for the ListItemTrailing component
102
96
  */
103
- export type ListItemTruncateProps = {
97
+ export type ListItemTrailingProps = {
104
98
  /**
105
- * The content to truncate
99
+ * The trailing content (icons, switches, values, etc.)
106
100
  */
107
101
  children: ReactNode;
108
102
  /**
@@ -110,17 +104,4 @@ export type ListItemTruncateProps = {
110
104
  */
111
105
  className?: string;
112
106
  } & ComponentPropsWithRef<'div'>;
113
- /**
114
- * Props for the ListItemIcon component
115
- */
116
- export type ListItemIconProps = {
117
- /**
118
- * The icon component to render
119
- */
120
- icon: ComponentType<any>;
121
- /**
122
- * custom classname
123
- */
124
- className?: string;
125
- } & ComponentPropsWithRef<'div'>;
126
107
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3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;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -1,14 +1,14 @@
1
+ import { ComponentProps, ComponentRef, Ref } from 'react';
1
2
  import { MenuProps, MenuTriggerProps, MenuContentProps, MenuItemProps, MenuCheckboxItemProps, MenuRadioItemProps, MenuLabelProps, MenuSeparatorProps, MenuSubTriggerProps, MenuSubContentProps, MenuGroupProps, MenuRadioGroupProps } from './types';
2
3
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
- import * as React from 'react';
4
4
  declare function Menu({ ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
5
5
  declare const MenuTrigger: {
6
6
  ({ ref, ...props }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
7
7
  displayName: string | undefined;
8
8
  };
9
9
  declare function MenuGroup({ ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
10
- declare function MenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
11
- declare function MenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
10
+ declare function MenuPortal({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
11
+ declare function MenuSub({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
12
12
  declare function MenuRadioGroup({ ...props }: MenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
13
13
  declare const MenuSubTrigger: {
14
14
  ({ ref, className, inset, children, ...props }: MenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
@@ -36,7 +36,7 @@ declare const MenuRadioItem: {
36
36
  };
37
37
  declare const MenuLabel: {
38
38
  ({ ref, className, inset, ...props }: MenuLabelProps & {
39
- ref?: React.Ref<React.ComponentRef<typeof DropdownMenuPrimitive.Label>>;
39
+ ref?: Ref<ComponentRef<typeof DropdownMenuPrimitive.Label>>;
40
40
  }): import("react/jsx-runtime").JSX.Element;
41
41
  displayName: string | undefined;
42
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Menu/Menu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA0BjB,iBAAS,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAEpC;AAED,QAAA,MAAM,WAAW;wBAAuB,gBAAgB;;CAMvD,CAAC;AAGF,iBAAS,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAE9C;AAED,iBAAS,UAAU,CAAC,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAExD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAIxD;AAED,QAAA,MAAM,cAAc;oDAMjB,mBAAmB;;CAUrB,CAAC;AAGF,QAAA,MAAM,cAAc;mCAAkC,mBAAmB;;CAOxE,CAAC;AAGF,QAAA,MAAM,WAAW;sDAMd,gBAAgB;;CAkBlB,CAAC;AAGF,QAAA,MAAM,QAAQ;kEAMX,aAAa;;CAiBf,CAAC;AAGF,QAAA,MAAM,gBAAgB;8EAOnB,qBAAqB;;CAyBvB,CAAC;AAG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AAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAElD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAIxD;AAED,QAAA,MAAM,cAAc;oDAMjB,mBAAmB;;CAUrB,CAAC;AAGF,QAAA,MAAM,cAAc;mCAAkC,mBAAmB;;CAOxE,CAAC;AAGF,QAAA,MAAM,WAAW;sDAMd,gBAAgB;;CAkBlB,CAAC;AAGF,QAAA,MAAM,QAAQ;kEAMX,aAAa;;CAiBf,CAAC;AAGF,QAAA,MAAM,gBAAgB;8EAOnB,qBAAqB;;CAyBvB,CAAC;AAGF,QAAA,MAAM,aAAa;qEAMhB,kBAAkB;;CAwBpB,CAAC;AAGF,QAAA,MAAM,SAAS;0CAKZ,cAAc,GAAG;QAClB,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;KAC7D;;CAOA,CAAC;AAGF,QAAA,MAAM,aAAa;mCAAkC,kBAAkB;;CAEtE,CAAC;AAGF,OAAO,EACL,IAAI,EACJ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,EACT,UAAU,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAc,GACf,CAAC"}
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { NavBarBackButtonProps, NavBarCoinCapsuleProps, NavBarProps, NavBarTitleProps, NavBarTrailingProps } from './types';
3
2
  /**
4
3
  * A coin capsule component for displaying cryptocurrency information within the NavBar.
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/NavBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB;wCAK3B,sBAAsB;;CAIxB,CAAC;AAGF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;4DAK1B,qBAAqB;;CAevB,CAAC;AAGF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW;mDAKrB,gBAAgB;;CAclB,CAAC;AAGF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;6CAKxB,mBAAmB,GAAG;QACvB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;KACjC;;CAWA,CAAC;AAGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,MAAM;6CAA4C,WAAW;;CAWzE,CAAC"}
1
+ {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/NavBar.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB;wCAK3B,sBAAsB;;CAIxB,CAAC;AAGF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;4DAK1B,qBAAqB;;CAevB,CAAC;AAGF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW;mDAKrB,gBAAgB;;CAclB,CAAC;AAGF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;6CAKxB,mBAAmB,GAAG;QACvB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;KACjC;;CAWA,CAAC;AAGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,MAAM;6CAA4C,WAAW;;CAWzE,CAAC"}
@@ -4,8 +4,8 @@ import { cva as l } from "class-variance-authority";
4
4
  import { createPopoverHandle as v } from "../../../node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js";
5
5
  import { PopoverRoot as c } from "../../../node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js";
6
6
  import { PopoverTrigger as f } from "../../../node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js";
7
- import { PopoverPortal as u } from "../../../node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js";
8
- import { PopoverBackdrop as P } from "../../../node_modules/@base-ui/react/esm/popover/backdrop/PopoverBackdrop.js";
7
+ import { PopoverPortal as P } from "../../../node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js";
8
+ import { PopoverBackdrop as u } from "../../../node_modules/@base-ui/react/esm/popover/backdrop/PopoverBackdrop.js";
9
9
  import { PopoverPositioner as g } from "../../../node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js";
10
10
  import { PopoverPopup as h } from "../../../node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js";
11
11
  const [x, b] = m("Popover"), y = l(
@@ -13,7 +13,7 @@ const [x, b] = m("Popover"), y = l(
13
13
  {
14
14
  variants: {
15
15
  width: {
16
- hug: "",
16
+ fit: "",
17
17
  fixed: "w-400"
18
18
  },
19
19
  side: {
@@ -36,7 +36,7 @@ const [x, b] = m("Popover"), y = l(
36
36
  }
37
37
  },
38
38
  defaultVariants: {
39
- width: "hug"
39
+ width: "fit"
40
40
  }
41
41
  }
42
42
  ), C = p(
@@ -82,7 +82,7 @@ const O = ({
82
82
  side: o = "bottom",
83
83
  sideOffset: a = 8,
84
84
  align: r = "start",
85
- width: e = "hug",
85
+ width: e = "fit",
86
86
  className: n,
87
87
  children: i
88
88
  }) => {
@@ -90,9 +90,9 @@ const O = ({
90
90
  consumerName: "PopoverContent",
91
91
  contextRequired: !0
92
92
  });
93
- return /* @__PURE__ */ d(u, { children: [
93
+ return /* @__PURE__ */ d(P, { children: [
94
94
  s && /* @__PURE__ */ t(
95
- P,
95
+ u,
96
96
  {
97
97
  "data-slot": "popover-overlay",
98
98
  className: C
@@ -1,7 +1,7 @@
1
1
  import { PopoverRootChangeEventDetails, Popover as PopoverNamespace } from '@base-ui/react/popover';
2
2
  import { ComponentPropsWithRef, ReactNode } from 'react';
3
3
  type PopoverHandle<Payload> = PopoverNamespace.Handle<Payload>;
4
- export type PopoverWidth = 'hug' | 'fixed';
4
+ export type PopoverWidth = 'fit' | 'fixed';
5
5
  export type PopoverSide = 'top' | 'right' | 'bottom' | 'left';
6
6
  export type PopoverAlign = 'start' | 'center' | 'end';
7
7
  /**
@@ -104,10 +104,10 @@ export type PopoverContentProps = {
104
104
  align?: PopoverAlign;
105
105
  /**
106
106
  * The width behavior of the popover content panel.
107
- * - `'hug'`: Content-fit width (default), define custom width with the `className` prop
107
+ * - `'fit'`: Content-fit width (default), define custom width with the `className` prop
108
108
  * - `'fixed'`: Always exactly 400px width
109
109
  *
110
- * @default 'hug'
110
+ * @default 'fit'
111
111
  */
112
112
  width?: PopoverWidth;
113
113
  /**
@@ -3,7 +3,7 @@ export declare function SegmentedControlButton({ value, children, icon: Icon, on
3
3
  export declare namespace SegmentedControlButton {
4
4
  var displayName: string;
5
5
  }
6
- export declare function SegmentedControl({ selectedValue, onSelectedChange, children, className, disabled: disabledProp, appearance, ...props }: SegmentedControlProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function SegmentedControl({ selectedValue, onSelectedChange, children, className, disabled: disabledProp, appearance, tabLayout, ...props }: SegmentedControlProps): import("react/jsx-runtime").JSX.Element;
7
7
  export declare namespace SegmentedControl {
8
8
  var displayName: string;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAwCjB,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,2BAA2B,2CAgC7B;yBAvCe,sBAAsB;;;AA2CtC,wBAAgB,gBAAgB,CAAC,EAC/B,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,YAAY,EACtB,UAAyB,EACzB,GAAG,KAAK,EACT,EAAE,qBAAqB,2CAgDvB;yBAxDe,gBAAgB"}
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAwDjB,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,2BAA2B,2CA+B7B;yBAtCe,sBAAsB;;;AA0CtC,wBAAgB,gBAAgB,CAAC,EAC/B,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,YAAY,EACtB,UAAyB,EACzB,SAAmB,EACnB,GAAG,KAAK,EACT,EAAE,qBAAqB,2CA+CvB;yBAxDe,gBAAgB"}