@ledgerhq/lumen-ui-react 0.1.15 → 0.1.17
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 +2 -2
- 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 +146 -142
- 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 +78 -85
- 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/MediaImage/MediaImage.d.ts +19 -0
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -0
- package/dist/lib/Components/MediaImage/MediaImage.js +75 -0
- package/dist/lib/Components/MediaImage/index.d.ts +3 -0
- package/dist/lib/Components/MediaImage/index.d.ts.map +1 -0
- package/dist/lib/Components/MediaImage/types.d.ts +38 -0
- package/dist/lib/Components/MediaImage/types.d.ts.map +1 -0
- 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/SearchInput/SearchInput.d.ts +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.js +24 -20
- package/dist/lib/Components/SearchInput/types.d.ts +1 -1
- package/dist/lib/Components/SearchInput/types.d.ts.map +1 -1
- 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.d.ts +27 -12
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +356 -202
- package/dist/lib/Components/Select/SelectContext.d.ts +3 -1
- 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 +171 -140
- package/dist/lib/Components/Select/types.d.ts.map +1 -1
- package/dist/lib/Components/Select/useSelectItems/index.d.ts +2 -0
- package/dist/lib/Components/Select/useSelectItems/index.d.ts.map +1 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +30 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.js +42 -0
- package/dist/lib/Components/Select/utils/groupItems.d.ts +13 -0
- package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -0
- package/dist/lib/Components/Select/utils/groupItems.js +16 -0
- package/dist/lib/Components/Select/utils/index.d.ts +2 -0
- package/dist/lib/Components/Select/utils/index.d.ts.map +1 -0
- 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/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/libs/utils-shared/dist/index.js +151 -124
- package/dist/node_modules/@base-ui/react/esm/combobox/chips/ComboboxChipsContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js +17 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/collection/GroupCollectionContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js +26 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js +34 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroupContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js +27 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js +221 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js +113 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItemContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js +52 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js +65 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/popup/ComboboxPopup.js +76 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js +24 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortalContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js +102 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositionerContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/AriaCombobox.js +596 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRootContext.js +41 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/constants.js +8 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/index.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/useFilter.js +43 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/row/ComboboxRowContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/store.js +74 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js +135 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/utils/ComboboxInternalDismissButton.js +32 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/utils/stateAttributesMapping.js +15 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js +19 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeList.js +81 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeListContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/useCompositeListItem.js +55 -0
- package/dist/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/field/root/FieldRootContext.js +53 -0
- package/dist/node_modules/@base-ui/react/esm/field/useField.js +51 -0
- package/dist/node_modules/@base-ui/react/esm/field/utils/constants.js +37 -0
- package/dist/node_modules/@base-ui/react/esm/field/utils/getCombinedFieldValidityData.js +12 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js +287 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js +71 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js +218 -4
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js +7 -3
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js +3 -3
- package/dist/node_modules/@base-ui/react/esm/form/FormContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/labelable-provider/LabelableContext.js +19 -0
- package/dist/node_modules/@base-ui/react/esm/labelable-provider/useLabelableId.js +44 -0
- package/dist/node_modules/@base-ui/react/esm/utils/constants.js +11 -8
- package/dist/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.js +22 -13
- package/dist/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js +18 -0
- package/dist/node_modules/@base-ui/react/esm/utils/itemEquality.js +20 -0
- package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.js +13 -6
- package/dist/node_modules/@base-ui/react/esm/utils/resolveAriaLabelledBy.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/utils/resolveValueLabel.js +73 -0
- package/dist/node_modules/@base-ui/react/esm/utils/serializeValue.js +14 -0
- package/dist/node_modules/@base-ui/utils/esm/detectBrowser.js +8 -7
- package/dist/node_modules/@base-ui/utils/esm/empty.js +3 -2
- package/dist/node_modules/@base-ui/utils/esm/useControlled.js +31 -0
- package/dist/node_modules/@base-ui/utils/esm/visuallyHidden.js +5 -1
- package/dist/node_modules/i18next/dist/esm/i18next.js +45 -47
- package/dist/package.json +1 -2
- package/dist/utils/icon-template.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/lib/Patterns/index.d.ts +0 -3
- package/dist/lib/Patterns/index.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListItemContentProps, ListItemDescriptionProps,
|
|
1
|
+
import { ListItemContentProps, ListItemDescriptionProps, ListItemLeadingProps, ListItemProps, ListItemTitleProps, ListItemTrailingProps, ListItemContentRowProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* A flexible list item component that provides a composable structure for displaying
|
|
4
4
|
* interactive list items with leading content, title, description, and trailing content.
|
|
@@ -10,7 +10,7 @@ import { ListItemContentProps, ListItemDescriptionProps, ListItemIconProps, List
|
|
|
10
10
|
*
|
|
11
11
|
* <ListItem onClick={() => console.log('Clicked!')}>
|
|
12
12
|
* <ListItemLeading>
|
|
13
|
-
* <
|
|
13
|
+
* <Spot size={48} appearance="icon" icon={Wallet} />
|
|
14
14
|
* <ListItemContent>
|
|
15
15
|
* <ListItemTitle>Balance</ListItemTitle>
|
|
16
16
|
* <ListItemDescription>Optional description</ListItemDescription>
|
|
@@ -27,32 +27,40 @@ export declare const ListItem: {
|
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* Container for the leading (left) part of the list item.
|
|
30
|
-
* Contains the visual element (
|
|
30
|
+
* Contains the visual element (Spot, Avatar, Icon) and the content (title + description).
|
|
31
31
|
*/
|
|
32
32
|
export declare const ListItemLeading: {
|
|
33
|
-
({ ref, children, className, }: ListItemLeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
({ ref, children, className, ...props }: ListItemLeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
displayName: string;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* Container for the text content (title and description) within the leading area.
|
|
38
38
|
*/
|
|
39
39
|
export declare const ListItemContent: {
|
|
40
|
-
({ ref, children, className, }: ListItemContentProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
({ ref, children, className, ...props }: ListItemContentProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
displayName: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Horizontal row container within ListItemContent to place a title or description
|
|
45
|
+
* alongside additional inline content (e.g. Tag) while preserving text truncation.
|
|
46
|
+
*/
|
|
47
|
+
export declare const ListItemContentRow: {
|
|
48
|
+
({ ref, children, className, ...props }: ListItemContentRowProps): import("react/jsx-runtime").JSX.Element;
|
|
41
49
|
displayName: string;
|
|
42
50
|
};
|
|
43
51
|
/**
|
|
44
52
|
* The main title of the list item.
|
|
45
53
|
*/
|
|
46
54
|
export declare const ListItemTitle: {
|
|
47
|
-
({ ref, children, className, }: ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
({ ref, children, className, ...props }: ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
48
56
|
displayName: string;
|
|
49
57
|
};
|
|
50
58
|
/**
|
|
51
|
-
* Optional description text below the title.
|
|
59
|
+
* Optional description text below the title.
|
|
52
60
|
* Automatically applies disabled styling when the parent ListItem is disabled.
|
|
53
61
|
*/
|
|
54
62
|
export declare const ListItemDescription: {
|
|
55
|
-
({ ref, children, className, }: ListItemDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
({ ref, children, className, ...props }: ListItemDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
56
64
|
displayName: string;
|
|
57
65
|
};
|
|
58
66
|
/**
|
|
@@ -60,26 +68,7 @@ export declare const ListItemDescription: {
|
|
|
60
68
|
* Used for icons, switches, values, tags, chevrons, etc.
|
|
61
69
|
*/
|
|
62
70
|
export declare const ListItemTrailing: {
|
|
63
|
-
({ ref, children, className, }: ListItemTrailingProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
-
displayName: string;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Spot adapter for ListItem. Automatically inherits disabled state from parent ListItem.
|
|
68
|
-
*/
|
|
69
|
-
export declare const ListItemSpot: {
|
|
70
|
-
(props: ListItemSpotProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
-
displayName: string;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Icon adapter for ListItem. Automatically applies disabled styling from parent ListItem.
|
|
75
|
-
* Fixed at size 24 for consistent list item appearance.
|
|
76
|
-
*/
|
|
77
|
-
export declare const ListItemIcon: {
|
|
78
|
-
({ ref, icon: Icon, className, ...props }: ListItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
79
|
-
displayName: string;
|
|
80
|
-
};
|
|
81
|
-
export declare const ListItemTruncate: {
|
|
82
|
-
({ children, className, }: ListItemTruncateProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
({ ref, children, className, ...props }: ListItemTrailingProps): import("react/jsx-runtime").JSX.Element;
|
|
83
72
|
displayName: string;
|
|
84
73
|
};
|
|
85
74
|
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAOjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ;wBAAuB,aAAa;;CAyBxD,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,eAAe;6CAKzB,oBAAoB;;CAUtB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,eAAe;6CAKzB,oBAAoB;;CAUtB,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,kBAAkB;6CAK5B,uBAAuB;;CAUzB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,aAAa;6CAKvB,kBAAkB;;CAwBpB,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,mBAAmB;6CAK7B,wBAAwB;;CAwB1B,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;6CAK1B,qBAAqB;;CAqBvB,CAAC"}
|
|
@@ -1,176 +1,164 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useDisabledContext as o, DisabledProvider as c, cn as
|
|
3
|
-
|
|
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
|
-
}),
|
|
7
|
-
const { children: s, className:
|
|
5
|
+
}), x = ({ ref: e, ...t }) => {
|
|
6
|
+
const { children: s, className: i, disabled: a, ...l } = t, d = o({
|
|
8
7
|
consumerName: "ListItem",
|
|
9
|
-
mergeWith: { disabled:
|
|
8
|
+
mergeWith: { disabled: a }
|
|
10
9
|
});
|
|
11
|
-
return /* @__PURE__ */
|
|
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:
|
|
17
|
-
className:
|
|
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
|
-
|
|
20
|
+
i
|
|
22
21
|
),
|
|
23
|
-
...
|
|
22
|
+
...l,
|
|
24
23
|
children: s
|
|
25
24
|
}
|
|
26
25
|
) });
|
|
27
26
|
};
|
|
28
|
-
|
|
29
|
-
const
|
|
27
|
+
x.displayName = "ListItem";
|
|
28
|
+
const p = ({
|
|
30
29
|
ref: e,
|
|
31
30
|
children: t,
|
|
32
|
-
className: s
|
|
33
|
-
|
|
31
|
+
className: s,
|
|
32
|
+
...i
|
|
33
|
+
}) => /* @__PURE__ */ n(
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
36
|
ref: e,
|
|
37
|
-
className:
|
|
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
|
-
|
|
42
|
-
const
|
|
42
|
+
p.displayName = "ListItemLeading";
|
|
43
|
+
const I = ({
|
|
43
44
|
ref: e,
|
|
44
45
|
children: t,
|
|
45
|
-
className: s
|
|
46
|
-
|
|
46
|
+
className: s,
|
|
47
|
+
...i
|
|
48
|
+
}) => /* @__PURE__ */ n(
|
|
47
49
|
"div",
|
|
48
50
|
{
|
|
49
51
|
ref: e,
|
|
50
|
-
className:
|
|
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
|
-
|
|
55
|
-
const
|
|
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
|
|
79
|
+
const a = o({
|
|
61
80
|
consumerName: "ListItemTitle",
|
|
62
81
|
contextRequired: !0
|
|
63
|
-
}), { isInTrailing:
|
|
82
|
+
}), { isInTrailing: l } = m({
|
|
64
83
|
consumerName: "ListItemTitle",
|
|
65
84
|
contextRequired: !1
|
|
66
85
|
});
|
|
67
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ n(
|
|
68
87
|
"div",
|
|
69
88
|
{
|
|
70
89
|
ref: e,
|
|
71
|
-
className:
|
|
72
|
-
"w-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
82
|
-
const
|
|
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
|
|
108
|
+
const a = o({
|
|
88
109
|
consumerName: "ListItemDescription",
|
|
89
110
|
contextRequired: !0
|
|
90
|
-
}), { isInTrailing:
|
|
111
|
+
}), { isInTrailing: l } = m({
|
|
91
112
|
consumerName: "ListItemDescription",
|
|
92
113
|
contextRequired: !1
|
|
93
114
|
});
|
|
94
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ n(
|
|
95
116
|
"div",
|
|
96
117
|
{
|
|
97
118
|
ref: e,
|
|
98
|
-
className:
|
|
99
|
-
"w-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
109
|
-
const
|
|
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
|
|
137
|
+
const a = o({
|
|
115
138
|
consumerName: "ListItemTrailing",
|
|
116
139
|
contextRequired: !0
|
|
117
140
|
});
|
|
118
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ n(b, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ n(
|
|
119
142
|
"div",
|
|
120
143
|
{
|
|
121
144
|
ref: e,
|
|
122
|
-
className:
|
|
145
|
+
className: r(
|
|
123
146
|
"flex shrink-0 items-center",
|
|
124
|
-
|
|
147
|
+
a && "text-disabled",
|
|
125
148
|
s
|
|
126
149
|
),
|
|
150
|
+
...i,
|
|
127
151
|
children: t
|
|
128
152
|
}
|
|
129
153
|
) });
|
|
130
154
|
};
|
|
131
|
-
|
|
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
|
-
|
|
168
|
-
|
|
169
|
-
f as
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
N as
|
|
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,
|
|
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
|
|
56
|
+
* Props for the ListItemContentRow component
|
|
58
57
|
*/
|
|
59
|
-
export type
|
|
58
|
+
export type ListItemContentRowProps = {
|
|
60
59
|
/**
|
|
61
|
-
* The
|
|
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
|
|
69
|
+
* Props for the ListItemTitle component
|
|
71
70
|
*/
|
|
72
|
-
export type
|
|
71
|
+
export type ListItemTitleProps = {
|
|
73
72
|
/**
|
|
74
|
-
* The
|
|
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
|
|
82
|
+
* Props for the ListItemDescription component
|
|
84
83
|
*/
|
|
85
|
-
export type
|
|
84
|
+
export type ListItemDescriptionProps = {
|
|
86
85
|
/**
|
|
87
|
-
* The
|
|
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
|
|
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
|
|
97
|
+
export type ListItemTrailingProps = {
|
|
104
98
|
/**
|
|
105
|
-
* The content
|
|
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,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC;CAC9D,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MediaImageProps, MediaImageSize } from './types';
|
|
2
|
+
export declare const mediaImageDotSizeMap: Record<MediaImageSize, number>;
|
|
3
|
+
/**
|
|
4
|
+
* A generic media image component that displays an image with optional shape variants.
|
|
5
|
+
* Supports square and circular appearances with consistent sizing.
|
|
6
|
+
*
|
|
7
|
+
* When the image fails to load or no src is provided, displays a background placeholder
|
|
8
|
+
* or an optional text fallback.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* import { MediaImage } from '@ledgerhq/lumen-ui-react';
|
|
12
|
+
*
|
|
13
|
+
* <MediaImage src="https://example.com/icon.png" alt="Bitcoin" size={32} />
|
|
14
|
+
*/
|
|
15
|
+
export declare const MediaImage: {
|
|
16
|
+
({ ref, className, src, alt, size, shape, imgLoading, ...props }: MediaImageProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=MediaImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0B1D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAStD,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU;sEASpB,eAAe;;CA8BjB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as c } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as f } from "class-variance-authority";
|
|
4
|
+
import { useState as z, useEffect as g } from "react";
|
|
5
|
+
const p = {
|
|
6
|
+
root: f(
|
|
7
|
+
"relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-muted-transparent",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
12: "size-12 rounded-xs",
|
|
12
|
+
16: "size-16 rounded-xs",
|
|
13
|
+
20: "size-20 rounded-xs",
|
|
14
|
+
24: "size-24 rounded-sm",
|
|
15
|
+
32: "size-32 rounded-sm",
|
|
16
|
+
40: "size-40 rounded-md",
|
|
17
|
+
48: "size-48 rounded-md",
|
|
18
|
+
56: "size-56 rounded-lg"
|
|
19
|
+
},
|
|
20
|
+
shape: {
|
|
21
|
+
square: "",
|
|
22
|
+
circle: "rounded-full"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
}, N = {
|
|
28
|
+
12: 8,
|
|
29
|
+
16: 8,
|
|
30
|
+
20: 8,
|
|
31
|
+
24: 10,
|
|
32
|
+
32: 12,
|
|
33
|
+
40: 16,
|
|
34
|
+
48: 20,
|
|
35
|
+
56: 24
|
|
36
|
+
}, h = ({
|
|
37
|
+
ref: s,
|
|
38
|
+
className: i,
|
|
39
|
+
src: e,
|
|
40
|
+
alt: o,
|
|
41
|
+
size: t = 48,
|
|
42
|
+
shape: d = "square",
|
|
43
|
+
imgLoading: n = "eager",
|
|
44
|
+
...m
|
|
45
|
+
}) => {
|
|
46
|
+
const [l, a] = z(!1), u = !e || l;
|
|
47
|
+
return g(() => {
|
|
48
|
+
a(!1);
|
|
49
|
+
}, [e]), /* @__PURE__ */ r(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
ref: s,
|
|
53
|
+
className: c(p.root({ size: t, shape: d }), i),
|
|
54
|
+
role: "img",
|
|
55
|
+
"aria-label": o,
|
|
56
|
+
...m,
|
|
57
|
+
children: u ? /* @__PURE__ */ r("span", { className: "text-muted select-none", "aria-hidden": "true" }) : /* @__PURE__ */ r(
|
|
58
|
+
"img",
|
|
59
|
+
{
|
|
60
|
+
src: e,
|
|
61
|
+
alt: "",
|
|
62
|
+
loading: n,
|
|
63
|
+
onError: () => a(!0),
|
|
64
|
+
className: "size-full object-cover",
|
|
65
|
+
"aria-hidden": "true"
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
h.displayName = "MediaImage";
|
|
72
|
+
export {
|
|
73
|
+
h as MediaImage,
|
|
74
|
+
N as mediaImageDotSizeMap
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAChE,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export type MediaImageSize = 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56;
|
|
3
|
+
export type MediaImageShape = 'square' | 'circle';
|
|
4
|
+
export type MediaImageProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Image source URL. When undefined or on load error, displays a fallback.
|
|
7
|
+
* @optional
|
|
8
|
+
*/
|
|
9
|
+
src?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The shape of the media image.
|
|
12
|
+
* @default 'squared'
|
|
13
|
+
*/
|
|
14
|
+
shape?: MediaImageShape;
|
|
15
|
+
/**
|
|
16
|
+
* The size of the media image in pixels.
|
|
17
|
+
* @default 48
|
|
18
|
+
*/
|
|
19
|
+
size?: MediaImageSize;
|
|
20
|
+
/**
|
|
21
|
+
* Loading strategy for the image.
|
|
22
|
+
* - `eager`: Load immediately (default browser behavior)
|
|
23
|
+
* - `lazy`: Defer loading until near viewport
|
|
24
|
+
* @optional
|
|
25
|
+
* @default eager (browser default: eager)
|
|
26
|
+
*/
|
|
27
|
+
imgLoading?: 'eager' | 'lazy';
|
|
28
|
+
/**
|
|
29
|
+
* Alternative text for the image, used for accessibility.
|
|
30
|
+
*/
|
|
31
|
+
alt?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Additional custom CSS classes to apply. Do not use this prop to modify the component's core appearance.
|
|
34
|
+
* @optional
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
} & ComponentPropsWithRef<'div'>;
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +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;AAEnE,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,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 }:
|
|
11
|
-
declare function MenuSub({ ...props }:
|
|
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?:
|
|
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,
|
|
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,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG1D,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,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAErD;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,cAAc,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/NavBar.tsx"],"names":[],"mappings":"
|
|
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"}
|