@ledgerhq/lumen-ui-react 0.1.16 → 0.1.18
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 +7 -1
- package/dist/index.js +148 -142
- package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
- package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
- package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
- package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
- package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
- package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
- package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/Avatar.js +8 -9
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +66 -73
- package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +14 -15
- package/dist/lib/Components/Button/Button.d.ts +1 -4
- package/dist/lib/Components/Button/Button.d.ts.map +1 -1
- package/dist/lib/Components/Button/Button.js +6 -7
- package/dist/lib/Components/Card/Card.d.ts +10 -40
- package/dist/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +115 -134
- package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
- package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +10 -11
- package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
- package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
- package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
- package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
- package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
- package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
- package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/lib/Components/DataTable/DataTable.js +84 -97
- package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
- package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +44 -50
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
- package/dist/lib/Components/Divider/Divider.d.ts +1 -4
- package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
- package/dist/lib/Components/Divider/Divider.js +10 -11
- package/dist/lib/Components/Icon/Icon.d.ts +1 -4
- package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Components/Icon/Icon.js +6 -7
- package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
- package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/lib/Components/IconButton/IconButton.js +5 -6
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
- package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
- package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.d.ts +1 -4
- package/dist/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.js +13 -14
- package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +60 -63
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
- package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
- package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
- package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
- package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
- package/dist/lib/Components/MediaImage/MediaImage.d.ts +16 -0
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -0
- package/dist/lib/Components/MediaImage/MediaImage.js +74 -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 +11 -38
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +100 -116
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
- package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
- package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/NavBar.js +25 -34
- package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
- package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
- package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
- package/dist/lib/Components/Popover/Popover.d.ts +1 -4
- package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
- package/dist/lib/Components/Popover/Popover.js +5 -7
- package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
- package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.js +23 -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 +0 -6
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
- package/dist/lib/Components/Select/Select.d.ts +13 -28
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +339 -207
- 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 +5 -20
- package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
- package/dist/lib/Components/SideBar/SideBar.js +44 -53
- package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
- package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
- package/dist/lib/Components/Spot/Spot.d.ts +1 -4
- package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +11 -12
- package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
- package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/Stepper/Stepper.js +10 -11
- package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
- package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/Subheader.js +14 -15
- package/dist/lib/Components/Subheader/types.d.ts +1 -1
- package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.d.ts +1 -4
- package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.js +2 -3
- package/dist/lib/Components/Table/Table.d.ts +16 -64
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +146 -176
- package/dist/lib/Components/Tag/Tag.d.ts +1 -4
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +10 -11
- package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
- package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/lib/Components/TextInput/TextInput.js +4 -5
- package/dist/lib/Components/Tile/Tile.d.ts +6 -24
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +58 -71
- package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.js +12 -13
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
- package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
- 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/package.json +1 -2
- package/package.json +1 -2
|
@@ -28,7 +28,7 @@ const Q = M(
|
|
|
28
28
|
"group-has-[input:placeholder-shown]:text-muted-subtle",
|
|
29
29
|
"group-has-[input:disabled]:cursor-not-allowed group-has-[input:disabled]:text-disabled",
|
|
30
30
|
'group-has-[input[aria-invalid="true"]]:text-error'
|
|
31
|
-
),
|
|
31
|
+
), H = ({
|
|
32
32
|
ref: x,
|
|
33
33
|
className: S,
|
|
34
34
|
currencyText: s,
|
|
@@ -40,13 +40,13 @@ const Q = M(
|
|
|
40
40
|
thousandsSeparator: N = !0,
|
|
41
41
|
value: u,
|
|
42
42
|
onChange: A,
|
|
43
|
-
...
|
|
43
|
+
...R
|
|
44
44
|
}) => {
|
|
45
|
-
const
|
|
45
|
+
const k = F({
|
|
46
46
|
consumerName: "AmountInput",
|
|
47
47
|
mergeWith: { disabled: v }
|
|
48
|
-
}), c = d(null), r = d(null), [n,
|
|
49
|
-
function
|
|
48
|
+
}), c = d(null), r = d(null), [n, f] = h(u.toString()), [E, m] = h(!1), g = d(n);
|
|
49
|
+
function I(...t) {
|
|
50
50
|
return (e) => {
|
|
51
51
|
t.forEach((o) => {
|
|
52
52
|
o && (typeof o == "function" ? o(e) : o.current = e);
|
|
@@ -60,7 +60,7 @@ const Q = M(
|
|
|
60
60
|
r.current.style.width = `${t + e}px`;
|
|
61
61
|
}
|
|
62
62
|
}, [n]), L(() => {
|
|
63
|
-
|
|
63
|
+
f(u.toString());
|
|
64
64
|
}, [u]);
|
|
65
65
|
const V = (t) => {
|
|
66
66
|
const e = D(t.target.value, {
|
|
@@ -69,7 +69,7 @@ const Q = M(
|
|
|
69
69
|
maxIntegerLength: w,
|
|
70
70
|
maxDecimalLength: y
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
f(e), A({ ...t, target: { ...t.target, value: e } }), e !== g.current && m(!0), g.current = e;
|
|
73
73
|
};
|
|
74
74
|
return /* @__PURE__ */ j(
|
|
75
75
|
"div",
|
|
@@ -103,15 +103,15 @@ const Q = M(
|
|
|
103
103
|
/* @__PURE__ */ l(
|
|
104
104
|
"input",
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
106
|
+
ref: I(x, r),
|
|
107
107
|
type: "text",
|
|
108
108
|
inputMode: "decimal",
|
|
109
|
-
disabled:
|
|
109
|
+
disabled: k,
|
|
110
110
|
value: n,
|
|
111
111
|
onChange: V,
|
|
112
|
-
onAnimationEnd: () =>
|
|
113
|
-
className: a(Q({ isChanging:
|
|
114
|
-
...
|
|
112
|
+
onAnimationEnd: () => m(!1),
|
|
113
|
+
className: a(Q({ isChanging: E }), S),
|
|
114
|
+
...R,
|
|
115
115
|
style: { fontSize: i, letterSpacing: "normal" }
|
|
116
116
|
}
|
|
117
117
|
),
|
|
@@ -127,7 +127,6 @@ const Q = M(
|
|
|
127
127
|
}
|
|
128
128
|
);
|
|
129
129
|
};
|
|
130
|
-
Y.displayName = "AmountInput";
|
|
131
130
|
export {
|
|
132
|
-
|
|
131
|
+
H as AmountInput
|
|
133
132
|
};
|
|
@@ -15,8 +15,5 @@ import { AvatarProps } from './types';
|
|
|
15
15
|
* // With notification indicator
|
|
16
16
|
* <Avatar src="https://example.com/photo.jpg" showNotification />
|
|
17
17
|
*/
|
|
18
|
-
export declare const Avatar: {
|
|
19
|
-
({ ref, className, src, alt, size, imgLoading, showNotification, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
18
|
+
export declare const Avatar: ({ ref, className, src, alt, size, imgLoading, showNotification, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
19
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAmCtC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAmCtC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM,GAAI,4EASpB,WAAW,4CA+Cb,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as g, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cva as l } from "class-variance-authority";
|
|
3
3
|
import { useState as z, useEffect as h } from "react";
|
|
4
|
-
import { useCommonTranslation as
|
|
5
|
-
import { User as
|
|
4
|
+
import { useCommonTranslation as j } from "../../../i18n/useCommonTranslation.js";
|
|
5
|
+
import { User as x } from "../../Symbols/Icons/User.js";
|
|
6
6
|
const n = {
|
|
7
7
|
root: l(
|
|
8
8
|
"relative inline-flex items-center justify-center rounded-full bg-muted-transparent transition-colors",
|
|
@@ -28,11 +28,11 @@ const n = {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
})
|
|
31
|
-
},
|
|
31
|
+
}, A = {
|
|
32
32
|
sm: 16,
|
|
33
33
|
md: 24,
|
|
34
34
|
lg: 32
|
|
35
|
-
},
|
|
35
|
+
}, S = ({
|
|
36
36
|
ref: m,
|
|
37
37
|
className: d,
|
|
38
38
|
src: a,
|
|
@@ -42,7 +42,7 @@ const n = {
|
|
|
42
42
|
showNotification: t = !1,
|
|
43
43
|
...u
|
|
44
44
|
}) => {
|
|
45
|
-
const { t: o } =
|
|
45
|
+
const { t: o } = j(), [p, i] = z(!1), v = !a || p, s = c || o("components.avatar.defaultAlt"), b = t ? `${s}, ${o("components.avatar.notificationAriaLabel")}` : s;
|
|
46
46
|
return h(() => {
|
|
47
47
|
i(!1);
|
|
48
48
|
}, [a]), /* @__PURE__ */ g(
|
|
@@ -62,9 +62,9 @@ const n = {
|
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
v ? /* @__PURE__ */ r(
|
|
65
|
-
|
|
65
|
+
x,
|
|
66
66
|
{
|
|
67
|
-
size:
|
|
67
|
+
size: A[e],
|
|
68
68
|
"aria-label": "Fallback Icon",
|
|
69
69
|
"aria-hidden": "true"
|
|
70
70
|
}
|
|
@@ -83,7 +83,6 @@ const n = {
|
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
85
|
};
|
|
86
|
-
k.displayName = "Avatar";
|
|
87
86
|
export {
|
|
88
|
-
|
|
87
|
+
S as Avatar
|
|
89
88
|
};
|
|
@@ -18,8 +18,5 @@ import { BaseInputProps } from './types';
|
|
|
18
18
|
*
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
|
-
export declare const BaseInput: {
|
|
22
|
-
({ ref, className, containerClassName, inputClassName, labelClassName, label, id, disabled: disabledProp, errorMessage, suffix, prefix, onClear, hideClearButton, "aria-invalid": ariaInvalidProp, onChange: onChangeProp, ...props }: BaseInputProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
displayName: string;
|
|
24
|
-
};
|
|
21
|
+
export declare const BaseInput: ({ ref, className, containerClassName, inputClassName, labelClassName, label, id, disabled: disabledProp, errorMessage, suffix, prefix, onClear, hideClearButton, "aria-invalid": ariaInvalidProp, onChange: onChangeProp, ...props }: BaseInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
22
|
//# sourceMappingURL=BaseInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseInput/BaseInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseInput/BaseInput.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA2BzC;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,SAAS,GAAI,sOAiBvB,cAAc,4CA6JhB,CAAC"}
|
|
@@ -1,150 +1,143 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import { useDisabledContext as O, cn as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { useCommonTranslation as
|
|
5
|
-
import { InteractiveIcon as
|
|
1
|
+
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as O, useMergedRef as $, cn as t } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { useRef as q, useId as H, useState as P, useCallback as U } from "react";
|
|
4
|
+
import { useCommonTranslation as W } from "../../../i18n/useCommonTranslation.js";
|
|
5
|
+
import { InteractiveIcon as G } from "../InteractiveIcon/InteractiveIcon.js";
|
|
6
6
|
import { DeleteCircleFill as w } from "../../Symbols/Icons/DeleteCircleFill.js";
|
|
7
|
-
const
|
|
7
|
+
const J = t(
|
|
8
8
|
"group relative flex h-48 w-full cursor-text items-center gap-8 rounded-sm bg-muted px-16 transition-colors",
|
|
9
9
|
"focus-within:ring-2 focus-within:ring-active hover:bg-muted-hover",
|
|
10
10
|
"has-disabled:cursor-not-allowed has-disabled:bg-disabled has-disabled:text-disabled",
|
|
11
11
|
"has-invalid:border-error has-invalid:ring-1 has-invalid:ring-error",
|
|
12
12
|
'has-[input[aria-invalid="true"]]:border-error has-[input[aria-invalid="true"]]:ring-1 has-[input[aria-invalid="true"]]:ring-error'
|
|
13
|
-
),
|
|
13
|
+
), K = t(
|
|
14
14
|
"peer w-full flex-1 bg-muted body-1 text-base caret-active outline-hidden transition-colors",
|
|
15
15
|
"group-hover:bg-muted-hover group-disabled:bg-disabled",
|
|
16
16
|
"group-has-disabled:cursor-not-allowed group-has-disabled:bg-disabled group-has-disabled:text-disabled",
|
|
17
17
|
"placeholder:text-muted group-has-disabled:placeholder:text-disabled",
|
|
18
18
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
19
19
|
"truncate"
|
|
20
|
-
),
|
|
20
|
+
), Q = t(
|
|
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
|
-
),
|
|
26
|
+
), ne = ({
|
|
27
27
|
ref: x,
|
|
28
28
|
className: y,
|
|
29
29
|
containerClassName: I,
|
|
30
30
|
inputClassName: C,
|
|
31
31
|
labelClassName: S,
|
|
32
|
-
label:
|
|
32
|
+
label: l,
|
|
33
33
|
id: N,
|
|
34
|
-
disabled:
|
|
35
|
-
errorMessage:
|
|
36
|
-
suffix:
|
|
34
|
+
disabled: R,
|
|
35
|
+
errorMessage: n,
|
|
36
|
+
suffix: k,
|
|
37
37
|
prefix: D,
|
|
38
|
-
onClear:
|
|
39
|
-
hideClearButton:
|
|
40
|
-
"aria-invalid":
|
|
41
|
-
onChange:
|
|
42
|
-
...
|
|
38
|
+
onClear: j,
|
|
39
|
+
hideClearButton: z = !1,
|
|
40
|
+
"aria-invalid": u,
|
|
41
|
+
onChange: p,
|
|
42
|
+
...r
|
|
43
43
|
}) => {
|
|
44
|
-
const
|
|
44
|
+
const b = O({
|
|
45
45
|
consumerName: "BaseInput",
|
|
46
|
-
mergeWith: { disabled:
|
|
47
|
-
}), { t:
|
|
48
|
-
|
|
49
|
-
), T =
|
|
50
|
-
(
|
|
51
|
-
s ||
|
|
46
|
+
mergeWith: { disabled: R }
|
|
47
|
+
}), { t: B } = W(), e = q(null), E = H(), d = N || `input-${E}`, F = u || (n ? !0 : void 0), s = r.value !== void 0, [L, h] = P(
|
|
48
|
+
r.defaultValue?.toString() || ""
|
|
49
|
+
), T = U(
|
|
50
|
+
(a) => {
|
|
51
|
+
s || h(a.target.value), p?.(a);
|
|
52
52
|
},
|
|
53
|
-
[s,
|
|
54
|
-
),
|
|
55
|
-
if (!
|
|
53
|
+
[s, p]
|
|
54
|
+
), m = (s ? !!r.value && r.value.toString().length > 0 : L.length > 0) && !b && !z, v = `${d}-error`, V = () => {
|
|
55
|
+
if (!e.current) return;
|
|
56
56
|
Object.getOwnPropertyDescriptor(
|
|
57
57
|
window.HTMLInputElement.prototype,
|
|
58
58
|
"value"
|
|
59
|
-
)?.set?.call(
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
function A(...t) {
|
|
64
|
-
return (l) => {
|
|
65
|
-
t.forEach((e) => {
|
|
66
|
-
e && (typeof e == "function" ? e(l) : e.current = l);
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
}
|
|
59
|
+
)?.set?.call(e.current, ""), s || h("");
|
|
60
|
+
const g = new Event("input", { bubbles: !0 });
|
|
61
|
+
e.current.dispatchEvent(g), e.current.focus(), j?.();
|
|
62
|
+
}, A = $(x, e);
|
|
70
63
|
return /* @__PURE__ */ c("div", { className: y, children: [
|
|
71
64
|
/* @__PURE__ */ c(
|
|
72
65
|
"div",
|
|
73
66
|
{
|
|
74
|
-
className:
|
|
75
|
-
onPointerDown: (
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
79
|
-
const
|
|
67
|
+
className: t(J, I),
|
|
68
|
+
onPointerDown: (a) => {
|
|
69
|
+
if (a.target.closest("input, button, a")) return;
|
|
70
|
+
const o = e.current;
|
|
71
|
+
if (!o) return;
|
|
72
|
+
const f = o.value.length > 0 ? o.value.length : 0;
|
|
80
73
|
window.requestAnimationFrame(() => {
|
|
81
74
|
try {
|
|
82
|
-
|
|
75
|
+
o.setSelectionRange(f, f);
|
|
83
76
|
} catch {
|
|
84
77
|
}
|
|
85
|
-
|
|
78
|
+
o.focus();
|
|
86
79
|
});
|
|
87
80
|
},
|
|
88
81
|
children: [
|
|
89
82
|
D,
|
|
90
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ i(
|
|
91
84
|
"input",
|
|
92
85
|
{
|
|
93
|
-
ref: A
|
|
94
|
-
id:
|
|
95
|
-
disabled:
|
|
86
|
+
ref: A,
|
|
87
|
+
id: d,
|
|
88
|
+
disabled: b,
|
|
96
89
|
placeholder: " ",
|
|
97
90
|
"aria-invalid": F,
|
|
98
|
-
"aria-describedby":
|
|
99
|
-
className:
|
|
100
|
-
|
|
101
|
-
|
|
91
|
+
"aria-describedby": n ? v : void 0,
|
|
92
|
+
className: t(
|
|
93
|
+
K,
|
|
94
|
+
l && "pt-12 body-2",
|
|
102
95
|
C
|
|
103
96
|
),
|
|
104
97
|
onChange: T,
|
|
105
|
-
...
|
|
98
|
+
...r
|
|
106
99
|
}
|
|
107
100
|
),
|
|
108
|
-
|
|
101
|
+
l && /* @__PURE__ */ i(
|
|
109
102
|
"label",
|
|
110
103
|
{
|
|
111
|
-
htmlFor:
|
|
112
|
-
className:
|
|
113
|
-
|
|
114
|
-
|
|
104
|
+
htmlFor: d,
|
|
105
|
+
className: t(
|
|
106
|
+
Q,
|
|
107
|
+
n && "text-error",
|
|
115
108
|
S
|
|
116
109
|
),
|
|
117
|
-
children:
|
|
110
|
+
children: l
|
|
118
111
|
}
|
|
119
112
|
),
|
|
120
|
-
|
|
121
|
-
|
|
113
|
+
m && /* @__PURE__ */ i(
|
|
114
|
+
G,
|
|
122
115
|
{
|
|
123
116
|
iconType: "filled",
|
|
117
|
+
icon: w,
|
|
118
|
+
size: 20,
|
|
124
119
|
onClick: V,
|
|
125
|
-
"aria-label":
|
|
126
|
-
children: /* @__PURE__ */ r(w, { size: 20 })
|
|
120
|
+
"aria-label": B("components.baseInput.clearInputAriaLabel")
|
|
127
121
|
}
|
|
128
122
|
),
|
|
129
|
-
!
|
|
123
|
+
!m && k
|
|
130
124
|
]
|
|
131
125
|
}
|
|
132
126
|
),
|
|
133
|
-
|
|
127
|
+
n && /* @__PURE__ */ c(
|
|
134
128
|
"div",
|
|
135
129
|
{
|
|
136
|
-
id:
|
|
130
|
+
id: v,
|
|
137
131
|
className: "mt-8 flex items-center gap-2 body-3 text-error",
|
|
138
132
|
role: "alert",
|
|
139
133
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ i(w, { size: 16, className: "text-error" }),
|
|
135
|
+
/* @__PURE__ */ i("span", { children: n })
|
|
142
136
|
]
|
|
143
137
|
}
|
|
144
138
|
)
|
|
145
139
|
] });
|
|
146
140
|
};
|
|
147
|
-
Q.displayName = "BaseInput";
|
|
148
141
|
export {
|
|
149
|
-
|
|
142
|
+
ne as BaseInput
|
|
150
143
|
};
|
|
@@ -6,8 +6,5 @@ export declare const baseButtonVariants: (props?: ({
|
|
|
6
6
|
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
7
7
|
isFull?: boolean | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
export declare const BaseButton: {
|
|
10
|
-
({ ref, className, appearance, size, isFull, disabled: disabledProp, asChild, icon: Icon, loading, children, onClick, ...props }: BaseButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
9
|
+
export declare const BaseButton: ({ ref, className, appearance, size, isFull, disabled: disabledProp, asChild, icon: Icon, loading, children, onClick, ...props }: BaseButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
10
|
//# sourceMappingURL=BaseButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/BaseButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,kBAAkB;;;;;;8EAqD9B,CAAC;AAkBF,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/BaseButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,kBAAkB;;;;;;8EAqD9B,CAAC;AAkBF,eAAO,MAAM,UAAU,GAAI,iIAaxB,eAAe,4CAgDjB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as x, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as f, cn as h } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { Slot as
|
|
3
|
+
import { Slot as z, Slottable as S } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as l } from "class-variance-authority";
|
|
5
|
-
import { Spinner as
|
|
6
|
-
const
|
|
5
|
+
import { Spinner as B } from "../Spinner/Spinner.js";
|
|
6
|
+
const N = l(
|
|
7
7
|
"inline-flex size-fit cursor-pointer items-center justify-center rounded-full transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -65,7 +65,7 @@ const S = l(
|
|
|
65
65
|
true: "text-disabled"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), M = ({
|
|
69
69
|
ref: c,
|
|
70
70
|
className: u,
|
|
71
71
|
appearance: a = "base",
|
|
@@ -76,8 +76,8 @@ const S = l(
|
|
|
76
76
|
icon: n,
|
|
77
77
|
loading: r = !1,
|
|
78
78
|
children: i,
|
|
79
|
-
onClick:
|
|
80
|
-
...
|
|
79
|
+
onClick: g,
|
|
80
|
+
...m
|
|
81
81
|
}) => {
|
|
82
82
|
const e = f({
|
|
83
83
|
consumerName: "BaseButton",
|
|
@@ -89,20 +89,20 @@ const S = l(
|
|
|
89
89
|
lg: 24
|
|
90
90
|
}[s] : 24;
|
|
91
91
|
return /* @__PURE__ */ x(
|
|
92
|
-
o ?
|
|
92
|
+
o ? z : "button",
|
|
93
93
|
{
|
|
94
94
|
className: h(
|
|
95
|
-
|
|
95
|
+
N({ disabled: e, loading: r, appearance: a, size: s, isFull: v }),
|
|
96
96
|
u
|
|
97
97
|
),
|
|
98
98
|
ref: c,
|
|
99
99
|
"data-disabled": e || void 0,
|
|
100
100
|
disabled: e,
|
|
101
|
-
onClick:
|
|
102
|
-
...
|
|
101
|
+
onClick: g,
|
|
102
|
+
...m,
|
|
103
103
|
children: [
|
|
104
104
|
r && /* @__PURE__ */ t(
|
|
105
|
-
|
|
105
|
+
B,
|
|
106
106
|
{
|
|
107
107
|
size: d,
|
|
108
108
|
className: b({ appearance: a, disabled: e })
|
|
@@ -115,13 +115,12 @@ const S = l(
|
|
|
115
115
|
className: b({ appearance: a, disabled: e })
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
|
-
i && (o ? /* @__PURE__ */ t(
|
|
118
|
+
i && (o ? /* @__PURE__ */ t(S, { children: i }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-left", children: i }))
|
|
119
119
|
]
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
};
|
|
123
|
-
y.displayName = "BaseButton";
|
|
124
123
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
M as BaseButton,
|
|
125
|
+
N as baseButtonVariants
|
|
127
126
|
};
|
|
@@ -32,8 +32,5 @@ import { ButtonProps } from './types';
|
|
|
32
32
|
* </Button>
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
|
-
export declare const Button: {
|
|
36
|
-
({ ref, className, loading, disabled, children, size, icon, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
displayName: string;
|
|
38
|
-
};
|
|
35
|
+
export declare const Button: ({ ref, className, loading, disabled, children, size, icon, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
36
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAetC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAetC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,MAAM,GAAI,uEASpB,WAAW,4CAcb,CAAC"}
|
|
@@ -13,12 +13,12 @@ const l = e("", {
|
|
|
13
13
|
defaultVariants: {
|
|
14
14
|
size: "md"
|
|
15
15
|
}
|
|
16
|
-
}),
|
|
16
|
+
}), x = ({
|
|
17
17
|
ref: t,
|
|
18
18
|
className: m,
|
|
19
19
|
loading: s,
|
|
20
|
-
disabled:
|
|
21
|
-
children:
|
|
20
|
+
disabled: r,
|
|
21
|
+
children: a,
|
|
22
22
|
size: o,
|
|
23
23
|
icon: i,
|
|
24
24
|
...n
|
|
@@ -27,15 +27,14 @@ const l = e("", {
|
|
|
27
27
|
{
|
|
28
28
|
ref: t,
|
|
29
29
|
size: o,
|
|
30
|
-
disabled:
|
|
30
|
+
disabled: r,
|
|
31
31
|
icon: i,
|
|
32
32
|
loading: s,
|
|
33
33
|
className: d(l({ size: o }), "gap-8", m),
|
|
34
34
|
...n,
|
|
35
|
-
children:
|
|
35
|
+
children: a
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
|
-
u.displayName = "Button";
|
|
39
38
|
export {
|
|
40
|
-
|
|
39
|
+
x as Button
|
|
41
40
|
};
|
|
@@ -25,77 +25,47 @@ export declare const resolveCardInnerContext: ({ type, expanded, onClick, disabl
|
|
|
25
25
|
* </CardHeader>
|
|
26
26
|
* </Card>
|
|
27
27
|
*/
|
|
28
|
-
export declare const Card: {
|
|
29
|
-
({ ref, className, type, expanded, outlined, disabled, onClick, children, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
28
|
+
export declare const Card: ({ ref, className, type, expanded, outlined, disabled, onClick, children, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
29
|
/**
|
|
33
30
|
* Header row container for the card. Lays out CardLeading and CardTrailing horizontally.
|
|
34
31
|
* When the card `type` is `"expandable"`, the header becomes the click target with hover/pressed states.
|
|
35
32
|
*/
|
|
36
|
-
export declare const CardHeader: {
|
|
37
|
-
({ ref, children, className, ...props }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
displayName: string;
|
|
39
|
-
};
|
|
33
|
+
export declare const CardHeader: ({ ref, children, className, ...props }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
34
|
/**
|
|
41
35
|
* Leading section container. Wraps icon + CardContent.
|
|
42
36
|
* Reusable inside both CardHeader and CardFooter.
|
|
43
37
|
*/
|
|
44
|
-
export declare const CardLeading: {
|
|
45
|
-
({ ref, children, className, ...props }: CardLeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
displayName: string;
|
|
47
|
-
};
|
|
38
|
+
export declare const CardLeading: ({ ref, children, className, ...props }: CardLeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
39
|
/**
|
|
49
40
|
* Flex column wrapper for CardContentTitle and CardContentDescription.
|
|
50
41
|
* Supports right alignment via the `align` prop for trailing value displays.
|
|
51
42
|
*/
|
|
52
|
-
export declare const CardContent: {
|
|
53
|
-
({ ref, children, className, ...props }: CardContentProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
-
displayName: string;
|
|
55
|
-
};
|
|
43
|
+
export declare const CardContent: ({ ref, children, className, ...props }: CardContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
44
|
/**
|
|
57
45
|
* Horizontal row wrapper for placing a CardContentTitle or CardContentDescription
|
|
58
46
|
* alongside additional inline content (e.g. Tag) while preserving text truncation.
|
|
59
47
|
*/
|
|
60
|
-
export declare const CardContentRow: {
|
|
61
|
-
({ ref, children, className, ...props }: CardContentRowProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
-
displayName: string;
|
|
63
|
-
};
|
|
48
|
+
export declare const CardContentRow: ({ ref, children, className, ...props }: CardContentRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
49
|
/**
|
|
65
50
|
* Primary text of the card. Inherits the disabled state from the parent Card via context.
|
|
66
51
|
*/
|
|
67
|
-
export declare const CardContentTitle: {
|
|
68
|
-
({ ref, children, className, ...props }: CardContentTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
-
displayName: string;
|
|
70
|
-
};
|
|
52
|
+
export declare const CardContentTitle: ({ ref, children, className, ...props }: CardContentTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
53
|
/**
|
|
72
54
|
* Secondary text of the card. Inherits the disabled state from the parent Card via context.
|
|
73
55
|
*/
|
|
74
|
-
export declare const CardContentDescription: {
|
|
75
|
-
({ ref, children, className, ...props }: CardContentDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
76
|
-
displayName: string;
|
|
77
|
-
};
|
|
56
|
+
export declare const CardContentDescription: ({ ref, children, className, ...props }: CardContentDescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
78
57
|
/**
|
|
79
58
|
* Trailing content container in the header. Used for Button, Tag, or right-aligned CardContent.
|
|
80
59
|
* Inherits the disabled state from the parent Card via context.
|
|
81
60
|
*/
|
|
82
|
-
export declare const CardTrailing: {
|
|
83
|
-
({ ref, children, className, ...props }: CardTrailingProps): import("react/jsx-runtime").JSX.Element;
|
|
84
|
-
displayName: string;
|
|
85
|
-
};
|
|
61
|
+
export declare const CardTrailing: ({ ref, children, className, ...props }: CardTrailingProps) => import("react/jsx-runtime").JSX.Element;
|
|
86
62
|
/**
|
|
87
63
|
* Footer container for the card. Collapses with a 300ms transition
|
|
88
64
|
* when `footerExpanded` is `false` (only happens in `"expandable"` mode).
|
|
89
65
|
*/
|
|
90
|
-
export declare const CardFooter: {
|
|
91
|
-
({ ref, children, className, ...props }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
92
|
-
displayName: string;
|
|
93
|
-
};
|
|
66
|
+
export declare const CardFooter: ({ ref, children, className, ...props }: CardFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
94
67
|
/**
|
|
95
68
|
* Horizontal row container for action buttons inside CardFooter.
|
|
96
69
|
*/
|
|
97
|
-
export declare const CardFooterActions: {
|
|
98
|
-
({ ref, children, className, ...props }: CardFooterActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
99
|
-
displayName: string;
|
|
100
|
-
};
|
|
70
|
+
export declare const CardFooterActions: ({ ref, children, className, ...props }: CardFooterActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
101
71
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Card/Card.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,2BAA2B,EAC3B,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACT,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,uBAAuB,GAAI,wCAKrC;IACD,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAChC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CACjC,KAAG,gBA2BH,CAAC;AAiDF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Card/Card.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,2BAA2B,EAC3B,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACT,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,uBAAuB,GAAI,wCAKrC;IACD,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAChC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CACjC,KAAG,gBA2BH,CAAC;AAiDF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,IAAI,GAAI,qFAUlB,SAAS,4CAkCX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,wCAKxB,eAAe,4CA8BjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,wCAKzB,gBAAgB,4CAUlB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,wCAKzB,gBAAgB,4CAkBlB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CAmBrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,wCAK9B,qBAAqB,4CAmBvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,wCAKpC,2BAA2B,4CAmB7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,wCAK1B,iBAAiB,4CAqBnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,wCAKxB,eAAe,4CA4BjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,wCAK/B,sBAAsB,4CAQxB,CAAC"}
|