@ledgerhq/lumen-ui-react 0.1.58 → 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 +172 -176
- 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.js +9 -9
- package/dist/lib/Components/core/DotIcon/index.d.ts +0 -7
- package/dist/lib/Components/core/DotIcon/index.d.ts.map +1 -1
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +4 -4
- package/dist/lib/Components/core/DotSymbol/index.d.ts +0 -12
- 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.js +3 -3
- 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 +1 -1
- package/package.json +3 -3
- package/dist/lib/Components/core/DotIcon/index.js +0 -10
- package/dist/lib/Components/core/DotSymbol/index.js +0 -15
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -43,20 +43,20 @@ const ue = O(
|
|
|
43
43
|
hasLabel: !1
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
),
|
|
46
|
+
), xe = ({
|
|
47
47
|
ref: w,
|
|
48
48
|
className: B,
|
|
49
49
|
containerClassName: C,
|
|
50
50
|
inputClassName: L,
|
|
51
|
-
labelClassName:
|
|
51
|
+
labelClassName: V,
|
|
52
52
|
label: t,
|
|
53
|
-
id:
|
|
54
|
-
disabled:
|
|
53
|
+
id: x,
|
|
54
|
+
disabled: y,
|
|
55
55
|
helperText: l,
|
|
56
56
|
maxCount: r,
|
|
57
57
|
status: n,
|
|
58
|
-
suffix:
|
|
59
|
-
prefix:
|
|
58
|
+
suffix: N,
|
|
59
|
+
prefix: P,
|
|
60
60
|
onClear: j,
|
|
61
61
|
hideClearButton: F = !1,
|
|
62
62
|
readOnly: m = !1,
|
|
@@ -72,7 +72,7 @@ const ue = O(
|
|
|
72
72
|
}) => {
|
|
73
73
|
const h = Z({
|
|
74
74
|
consumerName: "BaseInput",
|
|
75
|
-
mergeWith: { disabled:
|
|
75
|
+
mergeWith: { disabled: y }
|
|
76
76
|
}), { t: k } = oe(), {
|
|
77
77
|
inputRef: q,
|
|
78
78
|
composedRef: f,
|
|
@@ -86,7 +86,7 @@ const ue = O(
|
|
|
86
86
|
onChange: R,
|
|
87
87
|
onClear: j,
|
|
88
88
|
ref: w
|
|
89
|
-
}), G = ee(), c =
|
|
89
|
+
}), G = ee(), c = x || `input-${G}`, J = D ?? (n === "error" ? !0 : void 0), { inputPlaceholder: K, labelStaysFloatedWithPlaceholder: Q } = _({
|
|
90
90
|
label: t,
|
|
91
91
|
placeholder: S
|
|
92
92
|
}), U = M && !h && !m && !F, X = z.length, p = !!(r && r > 0), g = `${c}-helper`, o = !!l, b = {
|
|
@@ -108,7 +108,7 @@ const ue = O(
|
|
|
108
108
|
onClick: E,
|
|
109
109
|
"aria-label": k("components.baseInput.clearInputAriaLabel")
|
|
110
110
|
}
|
|
111
|
-
) :
|
|
111
|
+
) : N;
|
|
112
112
|
return /* @__PURE__ */ d("div", { className: B, children: [
|
|
113
113
|
/* @__PURE__ */ d(
|
|
114
114
|
"div",
|
|
@@ -131,7 +131,7 @@ const ue = O(
|
|
|
131
131
|
});
|
|
132
132
|
},
|
|
133
133
|
children: [
|
|
134
|
-
|
|
134
|
+
P,
|
|
135
135
|
s ? /* @__PURE__ */ e(
|
|
136
136
|
ne,
|
|
137
137
|
{
|
|
@@ -158,7 +158,7 @@ const ue = O(
|
|
|
158
158
|
status: n,
|
|
159
159
|
floated: Q,
|
|
160
160
|
multiline: s,
|
|
161
|
-
className:
|
|
161
|
+
className: V,
|
|
162
162
|
children: t
|
|
163
163
|
}
|
|
164
164
|
),
|
|
@@ -189,5 +189,5 @@ const ue = O(
|
|
|
189
189
|
] });
|
|
190
190
|
};
|
|
191
191
|
export {
|
|
192
|
-
|
|
192
|
+
xe as BaseInput
|
|
193
193
|
};
|
|
@@ -25,11 +25,11 @@ const c = x(
|
|
|
25
25
|
scrollbarWidth: "auto"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
), R = (s,
|
|
28
|
+
), R = (s, a) => {
|
|
29
29
|
const t = v(!1), o = (e) => {
|
|
30
|
-
const
|
|
31
|
-
t.current = !n &&
|
|
32
|
-
`) &&
|
|
30
|
+
const r = e.target, n = "isComposing" in e.nativeEvent && e.nativeEvent.isComposing === !0;
|
|
31
|
+
t.current = !n && r.value.endsWith(`
|
|
32
|
+
`) && r.selectionStart === r.value.length, a?.(e);
|
|
33
33
|
};
|
|
34
34
|
return w(() => {
|
|
35
35
|
if (!t.current) return;
|
|
@@ -39,11 +39,11 @@ const c = x(
|
|
|
39
39
|
}), o;
|
|
40
40
|
}, I = ({
|
|
41
41
|
ref: s,
|
|
42
|
-
className:
|
|
42
|
+
className: a,
|
|
43
43
|
hasLabel: t = !1,
|
|
44
44
|
minLines: o = 1,
|
|
45
45
|
maxLines: e,
|
|
46
|
-
scrollbarWidth:
|
|
46
|
+
scrollbarWidth: r = "auto",
|
|
47
47
|
onChange: n,
|
|
48
48
|
...d
|
|
49
49
|
}) => {
|
|
@@ -59,9 +59,9 @@ const c = x(
|
|
|
59
59
|
rows: o,
|
|
60
60
|
className: u(
|
|
61
61
|
"peer",
|
|
62
|
-
c({ hasLabel: t, scrollbarWidth:
|
|
62
|
+
c({ hasLabel: t, scrollbarWidth: r }),
|
|
63
63
|
t && "mt-16",
|
|
64
|
-
|
|
64
|
+
a
|
|
65
65
|
),
|
|
66
66
|
onChange: h,
|
|
67
67
|
...d
|
|
@@ -75,8 +75,8 @@ const c = x(
|
|
|
75
75
|
readOnly: !0,
|
|
76
76
|
tabIndex: -1,
|
|
77
77
|
className: u(
|
|
78
|
-
c({ hasLabel: t, scrollbarWidth:
|
|
79
|
-
|
|
78
|
+
c({ hasLabel: t, scrollbarWidth: r }),
|
|
79
|
+
a,
|
|
80
80
|
"invisible absolute top-0 left-0 h-0 transform-gpu overflow-hidden py-0"
|
|
81
81
|
)
|
|
82
82
|
}
|