@ledgerhq/lumen-ui-react 0.1.57 → 0.1.59
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/dist/index.js +34 -34
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +6 -6
- package/dist/lib/Components/core/Avatar/Avatar.d.ts.map +1 -1
- package/dist/lib/Components/core/Avatar/Avatar.js +31 -35
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.d.ts +9 -0
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.d.ts.map +1 -1
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +23 -5
- package/dist/lib/Components/core/Banner/Banner.js +25 -25
- package/dist/lib/Components/core/Button/Button.js +4 -4
- package/dist/lib/Components/core/Card/Card.js +16 -16
- package/dist/lib/Components/core/CardButton/CardButton.js +8 -8
- package/dist/lib/Components/core/CardButton/types.d.ts +1 -1
- package/dist/lib/Components/core/CardButton/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Dialog/Dialog.js +4 -4
- package/dist/lib/Components/core/Divider/Divider.js +4 -4
- package/dist/lib/Components/core/DotIcon/DotIcon.d.ts +0 -13
- package/dist/lib/Components/core/DotIcon/DotIcon.d.ts.map +1 -1
- package/dist/lib/Components/core/DotIcon/DotIcon.js +20 -33
- package/dist/lib/Components/core/DotIcon/getDotIconProps.d.ts +66 -0
- package/dist/lib/Components/core/DotIcon/getDotIconProps.d.ts.map +1 -0
- package/dist/lib/Components/core/DotIcon/getDotIconProps.js +19 -0
- package/dist/lib/Components/core/DotIcon/index.d.ts +2 -1
- package/dist/lib/Components/core/DotIcon/index.d.ts.map +1 -1
- package/dist/lib/Components/core/DotSymbol/DotSymbol.d.ts +1 -5
- package/dist/lib/Components/core/DotSymbol/DotSymbol.d.ts.map +1 -1
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +18 -37
- package/dist/lib/Components/core/DotSymbol/getDotSymbolProps.d.ts +102 -0
- package/dist/lib/Components/core/DotSymbol/getDotSymbolProps.d.ts.map +1 -0
- package/dist/lib/Components/core/DotSymbol/getDotSymbolProps.js +25 -0
- package/dist/lib/Components/core/DotSymbol/index.d.ts +2 -1
- package/dist/lib/Components/core/DotSymbol/index.d.ts.map +1 -1
- package/dist/lib/Components/core/IconButton/IconButton.js +5 -5
- package/dist/lib/Components/core/Link/Link.js +6 -6
- package/dist/lib/Components/core/Link/types.d.ts +1 -1
- package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
- package/dist/lib/Components/core/ListItem/ListItem.js +8 -8
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +4 -4
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/core/Popover/Popover.js +4 -4
- package/dist/lib/Components/core/SearchInput/SearchInput.js +2 -2
- package/dist/lib/Components/core/SectionHeader/SectionHeader.js +4 -4
- package/dist/lib/Components/core/SegmentedControl/types.d.ts +1 -1
- package/dist/lib/Components/core/SegmentedControl/types.d.ts.map +1 -1
- package/dist/lib/Components/core/SideBar/types.d.ts +1 -1
- package/dist/lib/Components/core/SideBar/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Spinner/types.d.ts +1 -1
- package/dist/lib/Components/core/Spinner/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/core/Spot/Spot.js +65 -54
- package/dist/lib/Components/core/Spot/types.d.ts +1 -1
- package/dist/lib/Components/core/Spot/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +10 -10
- package/dist/lib/Components/core/Switch/Switch.js +4 -4
- package/dist/lib/Components/core/Tag/types.d.ts +1 -1
- package/dist/lib/Components/core/Tag/types.d.ts.map +1 -1
- package/dist/lib/Components/core/TileButton/types.d.ts +1 -1
- package/dist/lib/Components/core/TileButton/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Tooltip/Tooltip.d.ts +0 -8
- package/dist/lib/Components/core/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/lib/Components/core/Tooltip/Tooltip.js +4 -4
- package/dist/lib/Components/internal/BaseButton/BaseButton.d.ts +1 -1
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +12 -12
- package/dist/lib/Components/internal/BaseButton/types.d.ts +1 -1
- package/dist/lib/Components/internal/BaseButton/types.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +12 -12
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +10 -10
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +19 -19
- package/dist/lib/Components/symbols/Icon/createIcon.js +3 -3
- package/dist/lib/Components/symbols/icons/CloudSync.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/CloudSync.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/CloudSync.js +28 -0
- package/dist/lib/Components/symbols/icons/Dollar.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Dollar.js +26 -14
- package/dist/lib/Components/symbols/icons/DollarConvert.js +3 -3
- package/dist/lib/Components/symbols/icons/DollarFill.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/DollarFill.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/DollarFill.js +25 -0
- package/dist/lib/Components/symbols/icons/FaceId.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/FaceId.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/FaceId.js +28 -0
- package/dist/lib/Components/symbols/icons/Fingerprint.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Fingerprint.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Fingerprint.js +28 -0
- package/dist/lib/Components/symbols/icons/Pause.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Pause.js +8 -7
- package/dist/lib/Components/symbols/icons/Range.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Range.js +8 -11
- package/dist/lib/Components/symbols/icons/Telegram.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Telegram.js +15 -12
- package/dist/lib/Components/symbols/icons/Usb.js +1 -1
- package/dist/lib/Components/symbols/index.d.ts +4 -0
- package/dist/lib/Components/symbols/index.d.ts.map +1 -1
- package/dist/lib/Components/symbols/index.js +482 -474
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +2 -2
- package/dist/lib/Components/visualization/Legend/Legend.js +4 -4
- package/dist/lib/Components/visualization/config.d.ts +22 -22
- package/dist/package.json +3 -3
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as n, getButtonA11yProps as v } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as b } from "class-variance-authority";
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useCommonTranslation as
|
|
4
|
+
import { useState as g, useEffect as h } from "react";
|
|
5
|
+
import { useCommonTranslation as x } from "../../../../i18n/useCommonTranslation.js";
|
|
6
6
|
import { Close as N } from "../../symbols/icons/Close.js";
|
|
7
7
|
import { InteractiveIcon as w } from "../InteractiveIcon/InteractiveIcon.js";
|
|
8
8
|
const y = b(
|
|
@@ -26,8 +26,8 @@ const y = b(
|
|
|
26
26
|
onClick: o,
|
|
27
27
|
...m
|
|
28
28
|
}) => {
|
|
29
|
-
const { t: u } =
|
|
30
|
-
|
|
29
|
+
const { t: u } = x(), [f, l] = g(!1);
|
|
30
|
+
h(() => {
|
|
31
31
|
l(!1);
|
|
32
32
|
}, [t]);
|
|
33
33
|
const p = t && !f;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as c } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
const o = ({
|
|
4
4
|
ref: s,
|
|
5
5
|
ticker: t,
|
|
6
6
|
leadingContent: n,
|
|
7
|
-
className:
|
|
8
|
-
}) => /* @__PURE__ */
|
|
7
|
+
className: r
|
|
8
|
+
}) => /* @__PURE__ */ a(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: s,
|
|
12
12
|
className: c(
|
|
13
13
|
"flex items-center gap-8 rounded-full bg-muted-transparent p-8 pr-12",
|
|
14
|
-
|
|
14
|
+
r
|
|
15
15
|
),
|
|
16
16
|
"data-slot": "coin-capsule",
|
|
17
17
|
children: [
|
|
@@ -3,8 +3,8 @@ import { createSafeContext as l, cn as p } from "../../../../libs/utils-shared/d
|
|
|
3
3
|
import { cva as v } from "class-variance-authority";
|
|
4
4
|
import { createPopoverHandle as c } from "../../../../node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js";
|
|
5
5
|
import { PopoverRoot as f } from "../../../../node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js";
|
|
6
|
-
import { PopoverTrigger as
|
|
7
|
-
import { PopoverPortal as
|
|
6
|
+
import { PopoverTrigger as u } from "../../../../node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js";
|
|
7
|
+
import { PopoverPortal as P } from "../../../../node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js";
|
|
8
8
|
import { PopoverBackdrop as g } from "../../../../node_modules/@base-ui/react/esm/popover/backdrop/PopoverBackdrop.js";
|
|
9
9
|
import { PopoverPositioner as h } from "../../../../node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js";
|
|
10
10
|
import { PopoverPopup as x } from "../../../../node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js";
|
|
@@ -67,7 +67,7 @@ const [b, y] = l("Popover"), C = v(
|
|
|
67
67
|
className: e,
|
|
68
68
|
...n
|
|
69
69
|
}) => /* @__PURE__ */ t(
|
|
70
|
-
|
|
70
|
+
u,
|
|
71
71
|
{
|
|
72
72
|
"data-slot": "popover-trigger",
|
|
73
73
|
handle: o,
|
|
@@ -89,7 +89,7 @@ const [b, y] = l("Popover"), C = v(
|
|
|
89
89
|
consumerName: "PopoverContent",
|
|
90
90
|
contextRequired: !0
|
|
91
91
|
});
|
|
92
|
-
return /* @__PURE__ */ m(
|
|
92
|
+
return /* @__PURE__ */ m(P, { children: [
|
|
93
93
|
d && /* @__PURE__ */ t(
|
|
94
94
|
g,
|
|
95
95
|
{
|
|
@@ -13,7 +13,7 @@ const m = n("", {
|
|
|
13
13
|
defaultVariants: {
|
|
14
14
|
appearance: "plain"
|
|
15
15
|
}
|
|
16
|
-
}),
|
|
16
|
+
}), u = n("", {
|
|
17
17
|
variants: {
|
|
18
18
|
appearance: {
|
|
19
19
|
plain: "",
|
|
@@ -47,7 +47,7 @@ const m = n("", {
|
|
|
47
47
|
m({ appearance: a }),
|
|
48
48
|
i
|
|
49
49
|
),
|
|
50
|
-
inputClassName: t(
|
|
50
|
+
inputClassName: t(u({ appearance: a }), p),
|
|
51
51
|
...o
|
|
52
52
|
}
|
|
53
53
|
);
|
|
@@ -22,7 +22,7 @@ const i = o("flex w-full min-w-0 items-center gap-4", {
|
|
|
22
22
|
...a,
|
|
23
23
|
children: e
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), u = ({
|
|
26
26
|
children: e,
|
|
27
27
|
className: n,
|
|
28
28
|
...a
|
|
@@ -36,7 +36,7 @@ const i = o("flex w-full min-w-0 items-center gap-4", {
|
|
|
36
36
|
...a,
|
|
37
37
|
children: e
|
|
38
38
|
}
|
|
39
|
-
),
|
|
39
|
+
), l = ({
|
|
40
40
|
appearance: e = "no-background",
|
|
41
41
|
className: n,
|
|
42
42
|
children: a,
|
|
@@ -50,7 +50,7 @@ const i = o("flex w-full min-w-0 items-center gap-4", {
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
l as SectionHeader,
|
|
54
54
|
p as SectionHeaderLeading,
|
|
55
|
-
|
|
55
|
+
u as SectionHeaderTitle
|
|
56
56
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { IconSize } from '../../symbols/Icon
|
|
2
|
+
import { IconSize } from '../../symbols/Icon';
|
|
3
3
|
export type SegmentedControlValue = string;
|
|
4
4
|
export type SegmentedControlProps<T extends SegmentedControlValue = SegmentedControlValue> = {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/SegmentedControl/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/SegmentedControl/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,qBAAqB,CAC/B,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IACrD;IACF;;OAEG;IACH,aAAa,EAAE,CAAC,CAAC;IACjB;;OAEG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,YAAY,GAAG,eAAe,CAAC;IAC5C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC5B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEtD,KAAK,aAAa,GAAG,aAAa,CAAC;IACjC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IACrD;IACF;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC;IACT;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;CAC7B,GAAG,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ComponentType, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { IconSize } from '../../symbols/Icon
|
|
2
|
+
import { IconSize } from '../../symbols/Icon';
|
|
3
3
|
export type SideBarValue = string;
|
|
4
4
|
/**
|
|
5
5
|
* Context value for passing state to SideBar sub-components
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/SideBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/SideBar/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Spinner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Spinner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spot.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Spot/Spot.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,SAAS,CAAC;AA8BnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,
|
|
1
|
+
{"version":3,"file":"Spot.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Spot/Spot.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,SAAS,CAAC;AA8BnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,4CAyFpC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { Spinner as
|
|
6
|
-
import { InformationFill as
|
|
7
|
-
import { WarningFill as
|
|
8
|
-
import { DeleteCircleFill as
|
|
9
|
-
import { CheckmarkCircleFill as
|
|
10
|
-
import { BluetoothCircleFill as
|
|
11
|
-
const
|
|
2
|
+
import { useDisabledContext as x, cn as w } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as y } from "class-variance-authority";
|
|
4
|
+
import { useMemo as P } from "react";
|
|
5
|
+
import { Spinner as C } from "../Spinner/Spinner.js";
|
|
6
|
+
import { InformationFill as F } from "../../symbols/icons/InformationFill.js";
|
|
7
|
+
import { WarningFill as k } from "../../symbols/icons/WarningFill.js";
|
|
8
|
+
import { DeleteCircleFill as N } from "../../symbols/icons/DeleteCircleFill.js";
|
|
9
|
+
import { CheckmarkCircleFill as S } from "../../symbols/icons/CheckmarkCircleFill.js";
|
|
10
|
+
import { BluetoothCircleFill as v } from "../../symbols/icons/BluetoothCircleFill.js";
|
|
11
|
+
const I = y(
|
|
12
12
|
"flex shrink-0 items-center justify-center rounded-full bg-muted-transparent",
|
|
13
13
|
{
|
|
14
14
|
variants: {
|
|
@@ -34,68 +34,79 @@ const N = g(
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
),
|
|
38
|
-
const {
|
|
39
|
-
appearance: a,
|
|
40
|
-
className: n,
|
|
41
|
-
disabled: i = !1,
|
|
42
|
-
size: o = 48,
|
|
43
|
-
ref: c,
|
|
44
|
-
...l
|
|
45
|
-
} = r, m = b({
|
|
46
|
-
consumerName: "Spot",
|
|
47
|
-
mergeWith: { disabled: i }
|
|
48
|
-
}), d = {
|
|
37
|
+
), G = (t) => {
|
|
38
|
+
const s = t.size ?? 48, i = {
|
|
49
39
|
32: 12,
|
|
50
40
|
40: 16,
|
|
51
41
|
48: 20,
|
|
52
42
|
56: 24,
|
|
53
43
|
72: 40
|
|
54
|
-
},
|
|
44
|
+
}, c = {
|
|
55
45
|
32: "body-2-semi-bold",
|
|
56
46
|
40: "body-1-semi-bold",
|
|
57
47
|
48: "heading-5",
|
|
58
48
|
56: "heading-4",
|
|
59
49
|
72: "heading-2"
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
case "warning":
|
|
75
|
-
return /* @__PURE__ */ e(y, { size: t });
|
|
76
|
-
case "info":
|
|
77
|
-
return /* @__PURE__ */ e(w, { size: t });
|
|
78
|
-
case "loader":
|
|
79
|
-
return /* @__PURE__ */ e(z, { size: t });
|
|
50
|
+
}, o = i[s] ?? 20, a = c[s] ?? "heading-5", { componentProps: m, content: p } = P(() => {
|
|
51
|
+
if (t.appearance === "icon") {
|
|
52
|
+
const { icon: n, ...r } = t;
|
|
53
|
+
return {
|
|
54
|
+
componentProps: r,
|
|
55
|
+
content: /* @__PURE__ */ e(n, { size: o })
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
if (t.appearance === "number") {
|
|
59
|
+
const { number: n, ...r } = t;
|
|
60
|
+
return {
|
|
61
|
+
componentProps: r,
|
|
62
|
+
content: /* @__PURE__ */ e("span", { className: a, children: n })
|
|
63
|
+
};
|
|
80
64
|
}
|
|
81
|
-
|
|
65
|
+
const z = (() => {
|
|
66
|
+
switch (t.appearance) {
|
|
67
|
+
case "bluetooth":
|
|
68
|
+
return /* @__PURE__ */ e(v, { size: o });
|
|
69
|
+
case "check":
|
|
70
|
+
return /* @__PURE__ */ e(S, { size: o });
|
|
71
|
+
case "error":
|
|
72
|
+
return /* @__PURE__ */ e(N, { size: o });
|
|
73
|
+
case "warning":
|
|
74
|
+
return /* @__PURE__ */ e(k, { size: o });
|
|
75
|
+
case "info":
|
|
76
|
+
return /* @__PURE__ */ e(F, { size: o });
|
|
77
|
+
case "loader":
|
|
78
|
+
return /* @__PURE__ */ e(C, { size: o });
|
|
79
|
+
}
|
|
80
|
+
})();
|
|
81
|
+
return { componentProps: t, content: z };
|
|
82
|
+
}, [t, o, a]), {
|
|
83
|
+
appearance: l,
|
|
84
|
+
className: d,
|
|
85
|
+
disabled: u = !1,
|
|
86
|
+
size: h = 48,
|
|
87
|
+
ref: b,
|
|
88
|
+
...f
|
|
89
|
+
} = m, g = x({
|
|
90
|
+
consumerName: "Spot",
|
|
91
|
+
mergeWith: { disabled: u }
|
|
92
|
+
});
|
|
82
93
|
return /* @__PURE__ */ e(
|
|
83
94
|
"div",
|
|
84
95
|
{
|
|
85
|
-
ref:
|
|
86
|
-
className:
|
|
87
|
-
|
|
88
|
-
disabled:
|
|
89
|
-
appearance:
|
|
90
|
-
size:
|
|
96
|
+
ref: b,
|
|
97
|
+
className: w(
|
|
98
|
+
I({
|
|
99
|
+
disabled: g,
|
|
100
|
+
appearance: l,
|
|
101
|
+
size: h
|
|
91
102
|
}),
|
|
92
|
-
|
|
103
|
+
d
|
|
93
104
|
),
|
|
94
|
-
...
|
|
95
|
-
children:
|
|
105
|
+
...f,
|
|
106
|
+
children: p
|
|
96
107
|
}
|
|
97
108
|
);
|
|
98
109
|
};
|
|
99
110
|
export {
|
|
100
|
-
|
|
111
|
+
G as Spot
|
|
101
112
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ComponentType } from 'react';
|
|
2
|
-
import { IconSize } from '../../symbols/Icon
|
|
2
|
+
import { IconSize } from '../../symbols/Icon';
|
|
3
3
|
export type SpotAppearance = 'icon' | 'bluetooth' | 'check' | 'error' | 'warning' | 'info' | 'loader' | 'number';
|
|
4
4
|
type SpotIconProps = {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Spot/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Spot/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,WAAW,GACX,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC9D,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC/C,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;CACxD,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,aAAa,GACb,eAAe,GACf,eAAe,CAAC;AAEpB,MAAM,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,sBAAsB,GAAG;IAC/C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as v, cn as d, getStepperCalculations as D } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
const s = 48, i = 4, W = ({
|
|
4
|
-
className:
|
|
4
|
+
className: h,
|
|
5
5
|
currentStep: t,
|
|
6
6
|
totalSteps: r,
|
|
7
|
-
disabled:
|
|
7
|
+
disabled: m = !1,
|
|
8
8
|
label: o,
|
|
9
9
|
ref: u,
|
|
10
10
|
...f
|
|
11
11
|
}) => {
|
|
12
12
|
const k = v({
|
|
13
13
|
consumerName: "Stepper",
|
|
14
|
-
mergeWith: { disabled:
|
|
14
|
+
mergeWith: { disabled: m }
|
|
15
15
|
}), {
|
|
16
16
|
displayLabel: p,
|
|
17
|
-
r:
|
|
18
|
-
cx:
|
|
17
|
+
r: n,
|
|
18
|
+
cx: l,
|
|
19
19
|
cy: c,
|
|
20
20
|
trackDashArray: b,
|
|
21
21
|
progressDashArray: x,
|
|
@@ -38,7 +38,7 @@ const s = 48, i = 4, W = ({
|
|
|
38
38
|
"aria-label": p,
|
|
39
39
|
className: d(
|
|
40
40
|
"relative flex size-48 shrink-0 items-center justify-center rounded-full",
|
|
41
|
-
|
|
41
|
+
h
|
|
42
42
|
),
|
|
43
43
|
...f,
|
|
44
44
|
children: [
|
|
@@ -54,9 +54,9 @@ const s = 48, i = 4, W = ({
|
|
|
54
54
|
/* @__PURE__ */ e(
|
|
55
55
|
"circle",
|
|
56
56
|
{
|
|
57
|
-
cx:
|
|
57
|
+
cx: l,
|
|
58
58
|
cy: c,
|
|
59
|
-
r:
|
|
59
|
+
r: n,
|
|
60
60
|
fill: "none",
|
|
61
61
|
stroke: "currentColor",
|
|
62
62
|
strokeLinecap: "round",
|
|
@@ -71,9 +71,9 @@ const s = 48, i = 4, W = ({
|
|
|
71
71
|
/* @__PURE__ */ e(
|
|
72
72
|
"circle",
|
|
73
73
|
{
|
|
74
|
-
cx:
|
|
74
|
+
cx: l,
|
|
75
75
|
cy: c,
|
|
76
|
-
r:
|
|
76
|
+
r: n,
|
|
77
77
|
fill: "none",
|
|
78
78
|
stroke: "currentColor",
|
|
79
79
|
strokeLinecap: "round",
|
|
@@ -40,12 +40,12 @@ const b = d(
|
|
|
40
40
|
defaultSelected: n,
|
|
41
41
|
onChange: c,
|
|
42
42
|
size: t = "md",
|
|
43
|
-
disabled:
|
|
44
|
-
...
|
|
43
|
+
disabled: u,
|
|
44
|
+
...l
|
|
45
45
|
}) => {
|
|
46
46
|
const m = h({
|
|
47
47
|
consumerName: "Switch",
|
|
48
|
-
mergeWith: { disabled:
|
|
48
|
+
mergeWith: { disabled: u }
|
|
49
49
|
});
|
|
50
50
|
return /* @__PURE__ */ e(
|
|
51
51
|
a.Root,
|
|
@@ -56,7 +56,7 @@ const b = d(
|
|
|
56
56
|
defaultChecked: n,
|
|
57
57
|
onCheckedChange: c,
|
|
58
58
|
disabled: m,
|
|
59
|
-
...
|
|
59
|
+
...l,
|
|
60
60
|
children: /* @__PURE__ */ e(a.Thumb, { className: g({ size: t }) })
|
|
61
61
|
}
|
|
62
62
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,QAAQ,GAAG;IACrB;;;OAGG;IACH,UAAU,CAAC,EACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,eAAe,GACf,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,CAAC;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ComponentType, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { IconSize } from '../../symbols/Icon
|
|
2
|
+
import { IconSize } from '../../symbols/Icon';
|
|
3
3
|
export type TileButtonProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The icon component to render above the label.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/TileButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/TileButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -89,14 +89,6 @@ export declare const TooltipTrigger: ({ ...props }: TooltipTriggerProps) => impo
|
|
|
89
89
|
* <TooltipContent sideOffset={8}>
|
|
90
90
|
* <p className="text-accent">This tooltip provides helpful information</p>
|
|
91
91
|
* </TooltipContent>
|
|
92
|
-
*
|
|
93
|
-
* // With custom styling for layout
|
|
94
|
-
* <TooltipContent sideOffset={12} className="max-w-xs">
|
|
95
|
-
* <div className="space-y-2">
|
|
96
|
-
* <h4 className="heading-2">Tip Title</h4>
|
|
97
|
-
* <p>Detailed explanation of the feature.</p>
|
|
98
|
-
* </div>
|
|
99
|
-
* </TooltipContent>
|
|
100
92
|
*/
|
|
101
93
|
export declare const TooltipContent: ({ className, sideOffset, side, children, ...props }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
102
94
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAqBjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAI,6BAO7B,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,4CAQlD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,OAAO,GAAI,6BAAmC,YAAY,4CAMtE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,GAAI,cAAc,mBAAmB,4CAE/D,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAqBjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAI,6BAO7B,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,4CAQlD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,OAAO,GAAI,6BAAmC,YAAY,4CAMtE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,GAAI,cAAc,mBAAmB,4CAE/D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,cAAc,GAAI,qDAM5B,mBAAmB,4CAerB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { cn as s } from "../../../../libs/utils-shared/dist/index.js";
|
|
|
3
3
|
import * as e from "@radix-ui/react-tooltip";
|
|
4
4
|
import { cva as d } from "class-variance-authority";
|
|
5
5
|
const m = d(
|
|
6
|
-
"z-tooltip w-fit rounded-xs bg-interactive px-8 py-4 body-3 text-on-interactive select-none",
|
|
6
|
+
"z-tooltip w-fit max-w-224 rounded-xs bg-interactive px-8 py-4 body-3 text-on-interactive select-none",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
side: {
|
|
@@ -31,7 +31,7 @@ const m = d(
|
|
|
31
31
|
delayDuration: t,
|
|
32
32
|
...i
|
|
33
33
|
}
|
|
34
|
-
),
|
|
34
|
+
), v = ({ delayDuration: t = 200, ...i }) => /* @__PURE__ */ o(c, { delayDuration: t, children: /* @__PURE__ */ o(e.Root, { "data-slot": "tooltip", ...i }) }), g = ({ ...t }) => /* @__PURE__ */ o(e.Trigger, { "data-slot": "tooltip-trigger", ...t }), x = ({
|
|
35
35
|
className: t,
|
|
36
36
|
sideOffset: i = 0,
|
|
37
37
|
side: a,
|
|
@@ -52,8 +52,8 @@ const m = d(
|
|
|
52
52
|
}
|
|
53
53
|
) });
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
v as Tooltip,
|
|
56
56
|
x as TooltipContent,
|
|
57
57
|
c as TooltipProvider,
|
|
58
|
-
|
|
58
|
+
g as TooltipTrigger
|
|
59
59
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseButtonProps } from './types';
|
|
2
2
|
export declare const baseButtonVariants: (props?: ({
|
|
3
|
-
appearance?: "base" | "
|
|
3
|
+
appearance?: "base" | "red" | "gray" | "transparent" | "accent" | "no-background" | null | undefined;
|
|
4
4
|
disabled?: boolean | null | undefined;
|
|
5
5
|
loading?: boolean | null | undefined;
|
|
6
6
|
size?: "md" | "sm" | "xs" | "lg" | null | undefined;
|
|
@@ -13,7 +13,7 @@ const N = l(
|
|
|
13
13
|
accent: "bg-accent text-on-accent hover:bg-accent-hover active:bg-accent-pressed",
|
|
14
14
|
transparent: "bg-muted-transparent text-base hover:bg-muted-transparent-hover active:bg-muted-transparent-pressed",
|
|
15
15
|
"no-background": "bg-transparent text-base hover:bg-base-transparent-hover active:bg-base-transparent-pressed disabled:bg-base-transparent",
|
|
16
|
-
red: "bg-error text-error hover:bg-error-hover active:bg-error-pressed"
|
|
16
|
+
red: "bg-error-transparent text-error hover:bg-error-transparent-hover active:bg-error-transparent-pressed"
|
|
17
17
|
},
|
|
18
18
|
disabled: {
|
|
19
19
|
true: "",
|
|
@@ -70,18 +70,18 @@ const N = l(
|
|
|
70
70
|
className: u,
|
|
71
71
|
appearance: a = "base",
|
|
72
72
|
size: s,
|
|
73
|
-
isFull:
|
|
74
|
-
disabled:
|
|
73
|
+
isFull: p,
|
|
74
|
+
disabled: v = !1,
|
|
75
75
|
asChild: r = !1,
|
|
76
|
-
icon:
|
|
77
|
-
loading:
|
|
78
|
-
children:
|
|
76
|
+
icon: o,
|
|
77
|
+
loading: n = !1,
|
|
78
|
+
children: i,
|
|
79
79
|
onClick: g,
|
|
80
80
|
...m
|
|
81
81
|
}) => {
|
|
82
82
|
const e = f({
|
|
83
83
|
consumerName: "BaseButton",
|
|
84
|
-
mergeWith: { disabled:
|
|
84
|
+
mergeWith: { disabled: v }
|
|
85
85
|
}), d = s ? {
|
|
86
86
|
xs: 16,
|
|
87
87
|
sm: 20,
|
|
@@ -92,7 +92,7 @@ const N = l(
|
|
|
92
92
|
r ? z : "button",
|
|
93
93
|
{
|
|
94
94
|
className: h(
|
|
95
|
-
N({ disabled: e, loading:
|
|
95
|
+
N({ disabled: e, loading: n, appearance: a, size: s, isFull: p }),
|
|
96
96
|
u
|
|
97
97
|
),
|
|
98
98
|
ref: c,
|
|
@@ -102,21 +102,21 @@ const N = l(
|
|
|
102
102
|
...r ? {} : { type: "button" },
|
|
103
103
|
...m,
|
|
104
104
|
children: [
|
|
105
|
-
|
|
105
|
+
n && /* @__PURE__ */ t(
|
|
106
106
|
B,
|
|
107
107
|
{
|
|
108
108
|
size: d,
|
|
109
109
|
className: b({ appearance: a, disabled: e })
|
|
110
110
|
}
|
|
111
111
|
),
|
|
112
|
-
!
|
|
113
|
-
|
|
112
|
+
!n && o && /* @__PURE__ */ t(
|
|
113
|
+
o,
|
|
114
114
|
{
|
|
115
115
|
size: d,
|
|
116
116
|
className: b({ appearance: a, disabled: e })
|
|
117
117
|
}
|
|
118
118
|
),
|
|
119
|
-
|
|
119
|
+
i && (r ? /* @__PURE__ */ t(S, { children: i }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-left", children: i }))
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/internal/BaseButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/internal/BaseButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,UAAU,CAAC,EACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,eAAe,GACf,KAAK,CAAC;IACV;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/D,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC"}
|