@ledgerhq/lumen-ui-react 0.1.61 → 0.1.63
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.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -63
- package/dist/lib/Components/core/AddressInput/AddressInput.js +1 -1
- package/dist/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.js +17 -17
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +2 -2
- package/dist/lib/Components/core/Banner/Banner.js +9 -9
- package/dist/lib/Components/core/Button/Button.js +4 -4
- package/dist/lib/Components/core/Card/Card.js +15 -15
- package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
- package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
- package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.js +42 -42
- package/dist/lib/Components/core/Dialog/DialogHeader/DialogHeader.js +1 -1
- package/dist/lib/Components/core/Divider/Divider.js +4 -4
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +11 -11
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +7 -7
- package/dist/lib/Components/core/Link/Link.d.ts +1 -1
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +25 -23
- 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/MediaCard/MediaCard.js +1 -1
- package/dist/lib/Components/core/MediaImage/MediaImage.js +5 -5
- package/dist/lib/Components/core/Menu/Menu.js +25 -25
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/core/NavBar/NavBar.js +3 -3
- package/dist/lib/Components/core/PageIndicator/PageIndicator.js +5 -5
- package/dist/lib/Components/core/Pagination/Pagination.js +1 -1
- package/dist/lib/Components/core/Popover/Popover.js +13 -13
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +80 -84
- package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/core/Select/Select.js +108 -107
- package/dist/lib/Components/core/SideBar/SideBar.js +33 -33
- package/dist/lib/Components/core/Spinner/Spinner.js +1 -1
- package/dist/lib/Components/core/Spot/Spot.js +13 -13
- package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +137 -62
- package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
- package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/core/Subheader/Subheader.js +33 -29
- package/dist/lib/Components/core/Table/Table.js +10 -10
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.js +6 -6
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts +1 -1
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
- package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
- package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
- package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
- package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
- package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.js +68 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toaster.js +92 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
- package/dist/lib/Components/core/Toast/index.d.ts +5 -0
- package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
- package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.js +77 -0
- package/dist/lib/Components/core/Toast/types.d.ts +81 -0
- package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Trend/Trend.js +3 -3
- package/dist/lib/Components/core/index.d.ts +2 -0
- package/dist/lib/Components/core/index.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +7 -7
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +22 -22
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +4 -4
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +3 -3
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +36 -35
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.js +31 -31
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +2 -2
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutRing.js +13 -12
- package/dist/lib/Components/visualization/DonutChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.js +6 -10
- package/dist/lib/Components/visualization/Legend/types.d.ts +2 -2
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.js +90 -84
- package/dist/lib/Components/visualization/LineChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts +2 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.js +23 -22
- package/dist/lib/Components/visualization/config.d.ts +0 -3
- package/dist/lib/Components/visualization/config.d.ts.map +1 -1
- package/dist/lib/Components/visualization/config.js +3 -6
- package/dist/libs/utils-shared/dist/index.js +353 -140
- package/dist/package.json +4 -6
- package/dist/translations/index.d.ts +3 -0
- package/dist/translations/index.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.d.ts +0 -5
- package/dist/translations/languages.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.js +1 -2
- package/dist/{i18n → translations}/locales/en.json.d.ts +11 -0
- package/dist/{i18n → translations}/locales/en.json.js +2 -2
- package/dist/translations/translations.d.ts +727 -0
- package/dist/translations/translations.d.ts.map +1 -0
- package/dist/translations/translations.js +22 -0
- package/package.json +4 -6
- package/dist/_virtual/dynamic-import-helper.js +0 -9
- package/dist/i18n/I18nProvider.d.ts +0 -8
- package/dist/i18n/I18nProvider.d.ts.map +0 -1
- package/dist/i18n/I18nProvider.js +0 -14
- package/dist/i18n/i18n.d.ts +0 -12
- package/dist/i18n/i18n.d.ts.map +0 -1
- package/dist/i18n/i18n.js +0 -42
- package/dist/i18n/index.d.ts +0 -4
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/languages.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.d.ts +0 -2
- package/dist/i18n/useCommonTranslation.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.js +0 -6
- package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1479
- package/dist/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -19
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -17
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -8
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -11
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -65
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -57
- /package/dist/{i18n → translations}/locales/de.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/de.json.js +0 -0
- /package/dist/{i18n → translations}/locales/es.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/es.json.js +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.js +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.js +0 -0
- /package/dist/{i18n → translations}/locales/th.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/th.json.js +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.js +0 -0
|
@@ -5,26 +5,27 @@ import { useLayoutEffect as F } from "react";
|
|
|
5
5
|
import { SelectProvider as M, useSelectContext as p } from "./SelectContext.js";
|
|
6
6
|
import { useControllableState as W } from "../../../../utils/useControllableState/useControllableState.js";
|
|
7
7
|
import { useSelectItems as A } from "./useSelectItems/useSelectItems.js";
|
|
8
|
-
import { resolveValue as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
8
|
+
import { resolveValue as h } from "./utils/groupItems.js";
|
|
9
|
+
import { useCommonTranslation as B } from "../../../../translations/translations.js";
|
|
10
|
+
import { SearchInput as H } from "../SearchInput/SearchInput.js";
|
|
11
|
+
import { Check as J } from "../../symbols/icons/Check.js";
|
|
12
|
+
import { Divider as K } from "../Divider/Divider.js";
|
|
13
|
+
import { ChevronDown as O } from "../../symbols/icons/ChevronDown.js";
|
|
14
|
+
import { ComboboxRoot as Q } from "../../../../node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js";
|
|
15
|
+
import { ComboboxTrigger as g } from "../../../../node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js";
|
|
16
|
+
import { ComboboxPortal as U } from "../../../../node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js";
|
|
17
|
+
import { ComboboxPositioner as X } from "../../../../node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js";
|
|
18
|
+
import { ComboboxPopup as Y } from "../../../../node_modules/@base-ui/react/esm/combobox/popup/ComboboxPopup.js";
|
|
19
|
+
import { ComboboxInput as Z } from "../../../../node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js";
|
|
20
|
+
import { ComboboxList as _ } from "../../../../node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js";
|
|
21
|
+
import { ComboboxGroup as $ } from "../../../../node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js";
|
|
22
|
+
import { ComboboxCollection as ee } from "../../../../node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js";
|
|
23
|
+
import { ComboboxItem as te } from "../../../../node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js";
|
|
24
|
+
import { ComboboxItemIndicator as oe } from "../../../../node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js";
|
|
25
|
+
import { ComboboxEmpty as ae } from "../../../../node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js";
|
|
26
|
+
import { ComboboxValue as S } from "../../../../node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js";
|
|
27
|
+
import { ComboboxGroupLabel as re } from "../../../../node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js";
|
|
28
|
+
function le({
|
|
28
29
|
value: o,
|
|
29
30
|
defaultValue: a,
|
|
30
31
|
onValueChange: e,
|
|
@@ -35,9 +36,9 @@ function re({
|
|
|
35
36
|
searchValue: c,
|
|
36
37
|
defaultSearchValue: m,
|
|
37
38
|
onSearchValueChange: b,
|
|
38
|
-
open:
|
|
39
|
-
defaultOpen:
|
|
40
|
-
onOpenChange:
|
|
39
|
+
open: f,
|
|
40
|
+
defaultOpen: C,
|
|
41
|
+
onOpenChange: v,
|
|
41
42
|
name: N,
|
|
42
43
|
required: w,
|
|
43
44
|
children: I
|
|
@@ -45,7 +46,7 @@ function re({
|
|
|
45
46
|
const V = G({
|
|
46
47
|
consumerName: "Select",
|
|
47
48
|
mergeWith: { disabled: r }
|
|
48
|
-
}), [
|
|
49
|
+
}), [x, T] = W(
|
|
49
50
|
{
|
|
50
51
|
prop: o,
|
|
51
52
|
defaultProp: a ?? null,
|
|
@@ -55,9 +56,9 @@ function re({
|
|
|
55
56
|
}
|
|
56
57
|
), {
|
|
57
58
|
isGrouped: L,
|
|
58
|
-
groupedItems:
|
|
59
|
-
filteredItemsForRoot:
|
|
60
|
-
resolvedSearchValue:
|
|
59
|
+
groupedItems: P,
|
|
60
|
+
filteredItemsForRoot: R,
|
|
61
|
+
resolvedSearchValue: q,
|
|
61
62
|
searchMounted: j,
|
|
62
63
|
registerSearch: z,
|
|
63
64
|
handleSearchValueChange: D
|
|
@@ -70,47 +71,47 @@ function re({
|
|
|
70
71
|
onSearchValueChange: b
|
|
71
72
|
});
|
|
72
73
|
return /* @__PURE__ */ t(
|
|
73
|
-
|
|
74
|
+
Q,
|
|
74
75
|
{
|
|
75
76
|
"data-slot": "select",
|
|
76
77
|
filter: null,
|
|
77
|
-
items:
|
|
78
|
-
filteredItems:
|
|
79
|
-
inputValue:
|
|
78
|
+
items: P ?? s,
|
|
79
|
+
filteredItems: R,
|
|
80
|
+
inputValue: q,
|
|
80
81
|
onInputValueChange: D,
|
|
81
|
-
value:
|
|
82
|
-
onValueChange: (d) => T(
|
|
83
|
-
isItemEqualToValue: (d, E) =>
|
|
84
|
-
open:
|
|
85
|
-
defaultOpen:
|
|
86
|
-
onOpenChange:
|
|
82
|
+
value: x,
|
|
83
|
+
onValueChange: (d) => T(h(d)),
|
|
84
|
+
isItemEqualToValue: (d, E) => h(d) === h(E),
|
|
85
|
+
open: f,
|
|
86
|
+
defaultOpen: C,
|
|
87
|
+
onOpenChange: v,
|
|
87
88
|
name: N,
|
|
88
89
|
required: w,
|
|
89
90
|
disabled: V,
|
|
90
91
|
children: /* @__PURE__ */ t(
|
|
91
92
|
M,
|
|
92
93
|
{
|
|
93
|
-
value: { selectedValue:
|
|
94
|
+
value: { selectedValue: x, registerSearch: z, isGrouped: L, searchMounted: j },
|
|
94
95
|
children: I
|
|
95
96
|
}
|
|
96
97
|
)
|
|
97
98
|
}
|
|
98
99
|
);
|
|
99
100
|
}
|
|
100
|
-
const
|
|
101
|
+
const se = l(
|
|
101
102
|
"group relative flex h-48 w-full cursor-pointer items-center justify-between gap-8",
|
|
102
103
|
"rounded-sm bg-muted px-16",
|
|
103
104
|
"body-2 text-base",
|
|
104
105
|
"hover:bg-muted-hover",
|
|
105
106
|
"transition-colors duration-200 focus:ring-2 focus:ring-active focus:outline-hidden",
|
|
106
107
|
"disabled:cursor-not-allowed disabled:text-disabled"
|
|
107
|
-
),
|
|
108
|
+
), ne = l(
|
|
108
109
|
"pointer-events-none absolute left-16 origin-left text-muted transition-all duration-300",
|
|
109
110
|
"top-10 -translate-y-4 body-4",
|
|
110
111
|
"group-data-placeholder:top-14 group-data-placeholder:translate-y-0 group-data-placeholder:body-2",
|
|
111
112
|
"group-data-disabled:text-disabled",
|
|
112
113
|
"max-w-[calc(100%-var(--size-56))] truncate"
|
|
113
|
-
),
|
|
114
|
+
), ie = ({
|
|
114
115
|
ref: o,
|
|
115
116
|
className: a,
|
|
116
117
|
labelClassName: e,
|
|
@@ -122,15 +123,15 @@ const le = l(
|
|
|
122
123
|
contextRequired: !0
|
|
123
124
|
}), i = n !== null && n !== "";
|
|
124
125
|
return /* @__PURE__ */ u(
|
|
125
|
-
|
|
126
|
+
g,
|
|
126
127
|
{
|
|
127
128
|
ref: o,
|
|
128
129
|
"data-slot": "select-trigger",
|
|
129
130
|
"data-placeholder": i ? void 0 : "",
|
|
130
|
-
className: l(
|
|
131
|
+
className: l(se, a),
|
|
131
132
|
...s,
|
|
132
133
|
children: [
|
|
133
|
-
r && /* @__PURE__ */ t("label", { className: l(
|
|
134
|
+
r && /* @__PURE__ */ t("label", { className: l(ne, e), children: r }),
|
|
134
135
|
/* @__PURE__ */ t(
|
|
135
136
|
"span",
|
|
136
137
|
{
|
|
@@ -139,11 +140,11 @@ const le = l(
|
|
|
139
140
|
r && "mt-16 opacity-100 transition-opacity delay-100 duration-300",
|
|
140
141
|
r && !i && "mt-0 opacity-0"
|
|
141
142
|
),
|
|
142
|
-
children: /* @__PURE__ */ t(
|
|
143
|
+
children: /* @__PURE__ */ t(S, {})
|
|
143
144
|
}
|
|
144
145
|
),
|
|
145
146
|
/* @__PURE__ */ t(
|
|
146
|
-
|
|
147
|
+
O,
|
|
147
148
|
{
|
|
148
149
|
size: 20,
|
|
149
150
|
className: "text-muted group-data-disabled:text-disabled"
|
|
@@ -152,7 +153,7 @@ const le = l(
|
|
|
152
153
|
]
|
|
153
154
|
}
|
|
154
155
|
);
|
|
155
|
-
},
|
|
156
|
+
}, ce = ({
|
|
156
157
|
render: o,
|
|
157
158
|
disabled: a,
|
|
158
159
|
...e
|
|
@@ -160,9 +161,9 @@ const le = l(
|
|
|
160
161
|
const { selectedValue: r } = p({
|
|
161
162
|
consumerName: "SelectTrigger",
|
|
162
163
|
contextRequired: !0
|
|
163
|
-
}), s = /* @__PURE__ */ t(
|
|
164
|
+
}), s = /* @__PURE__ */ t(S, {});
|
|
164
165
|
return o ? /* @__PURE__ */ t(
|
|
165
|
-
|
|
166
|
+
g,
|
|
166
167
|
{
|
|
167
168
|
disabled: a,
|
|
168
169
|
ref: e.ref,
|
|
@@ -172,8 +173,8 @@ const le = l(
|
|
|
172
173
|
selectedContent: s
|
|
173
174
|
})
|
|
174
175
|
}
|
|
175
|
-
) : /* @__PURE__ */ t(
|
|
176
|
-
},
|
|
176
|
+
) : /* @__PURE__ */ t(ie, { ...e, disabled: a });
|
|
177
|
+
}, de = k(
|
|
177
178
|
[
|
|
178
179
|
"group/select-content relative flex max-h-(--available-height) w-(--anchor-width) flex-col overflow-hidden",
|
|
179
180
|
"rounded-sm bg-surface",
|
|
@@ -201,7 +202,7 @@ const le = l(
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
|
-
),
|
|
205
|
+
), me = ({
|
|
205
206
|
ref: o,
|
|
206
207
|
className: a,
|
|
207
208
|
children: e,
|
|
@@ -210,8 +211,8 @@ const le = l(
|
|
|
210
211
|
align: n = "start",
|
|
211
212
|
initialFocus: i = !0,
|
|
212
213
|
...c
|
|
213
|
-
}) => /* @__PURE__ */ t(
|
|
214
|
-
|
|
214
|
+
}) => /* @__PURE__ */ t(U, { "data-slot": "select-portal", children: /* @__PURE__ */ t(
|
|
215
|
+
X,
|
|
215
216
|
{
|
|
216
217
|
"data-slot": "select-positioner",
|
|
217
218
|
className: "pointer-events-auto z-select",
|
|
@@ -219,18 +220,18 @@ const le = l(
|
|
|
219
220
|
sideOffset: s,
|
|
220
221
|
align: n,
|
|
221
222
|
children: /* @__PURE__ */ t(
|
|
222
|
-
|
|
223
|
+
Y,
|
|
223
224
|
{
|
|
224
225
|
ref: o,
|
|
225
226
|
"data-slot": "select-content",
|
|
226
227
|
initialFocus: i,
|
|
227
|
-
className: l(
|
|
228
|
+
className: l(de({ side: r }), a),
|
|
228
229
|
...c,
|
|
229
230
|
children: e
|
|
230
231
|
}
|
|
231
232
|
)
|
|
232
233
|
}
|
|
233
|
-
) }),
|
|
234
|
+
) }), ue = ({
|
|
234
235
|
ref: o,
|
|
235
236
|
className: a,
|
|
236
237
|
renderItem: e,
|
|
@@ -241,7 +242,7 @@ const le = l(
|
|
|
241
242
|
contextRequired: !0
|
|
242
243
|
});
|
|
243
244
|
return /* @__PURE__ */ t(
|
|
244
|
-
|
|
245
|
+
_,
|
|
245
246
|
{
|
|
246
247
|
ref: o,
|
|
247
248
|
"data-slot": "select-list",
|
|
@@ -251,29 +252,29 @@ const le = l(
|
|
|
251
252
|
),
|
|
252
253
|
...r,
|
|
253
254
|
children: s ? (n, i) => /* @__PURE__ */ u(
|
|
254
|
-
|
|
255
|
+
$,
|
|
255
256
|
{
|
|
256
257
|
items: n.items,
|
|
257
258
|
"data-slot": "select-group",
|
|
258
259
|
children: [
|
|
259
|
-
i > 0 && /* @__PURE__ */ t(
|
|
260
|
-
n.label && /* @__PURE__ */ t(
|
|
261
|
-
/* @__PURE__ */ t(
|
|
260
|
+
i > 0 && /* @__PURE__ */ t(y, {}),
|
|
261
|
+
n.label && /* @__PURE__ */ t(pe, { children: n.label }),
|
|
262
|
+
/* @__PURE__ */ t(ee, { children: e })
|
|
262
263
|
]
|
|
263
264
|
},
|
|
264
265
|
n.label
|
|
265
266
|
) : e
|
|
266
267
|
}
|
|
267
268
|
);
|
|
268
|
-
},
|
|
269
|
-
|
|
269
|
+
}, pe = ({ ref: o, className: a, ...e }) => /* @__PURE__ */ t(
|
|
270
|
+
re,
|
|
270
271
|
{
|
|
271
272
|
ref: o,
|
|
272
273
|
"data-slot": "select-label",
|
|
273
274
|
className: l("mb-4 px-8 pt-8 pb-0 body-3-semi-bold text-muted", a),
|
|
274
275
|
...e
|
|
275
276
|
}
|
|
276
|
-
),
|
|
277
|
+
), be = l(
|
|
277
278
|
"group/item flex w-full min-w-0 cursor-pointer items-center gap-12 bg-base-transparent select-none",
|
|
278
279
|
"rounded-sm p-8",
|
|
279
280
|
"body-2 text-base",
|
|
@@ -281,28 +282,28 @@ const le = l(
|
|
|
281
282
|
"data-highlighted:bg-base-transparent-hover",
|
|
282
283
|
"active:bg-base-transparent-pressed",
|
|
283
284
|
"data-disabled:cursor-not-allowed data-disabled:text-disabled"
|
|
284
|
-
),
|
|
285
|
+
), fe = ({
|
|
285
286
|
ref: o,
|
|
286
287
|
className: a,
|
|
287
288
|
children: e,
|
|
288
289
|
...r
|
|
289
290
|
}) => /* @__PURE__ */ u(
|
|
290
|
-
|
|
291
|
+
te,
|
|
291
292
|
{
|
|
292
293
|
ref: o,
|
|
293
294
|
"data-slot": "select-item",
|
|
294
|
-
className: l(
|
|
295
|
+
className: l(be, a),
|
|
295
296
|
...r,
|
|
296
297
|
children: [
|
|
297
298
|
e,
|
|
298
|
-
/* @__PURE__ */ t(
|
|
299
|
+
/* @__PURE__ */ t(oe, { className: "ml-auto flex shrink-0 items-center justify-center", children: /* @__PURE__ */ t(J, { size: 24, className: "shrink-0 text-active" }) })
|
|
299
300
|
]
|
|
300
301
|
}
|
|
301
|
-
),
|
|
302
|
+
), y = ({
|
|
302
303
|
ref: o,
|
|
303
304
|
className: a,
|
|
304
305
|
...e
|
|
305
|
-
}) => /* @__PURE__ */ t(
|
|
306
|
+
}) => /* @__PURE__ */ t(K, { ref: o, className: l("mx-8 my-4 w-auto", a), ...e }), he = ({ ref: o, className: a, ...e }) => /* @__PURE__ */ t(
|
|
306
307
|
"span",
|
|
307
308
|
{
|
|
308
309
|
ref: o,
|
|
@@ -310,7 +311,7 @@ const le = l(
|
|
|
310
311
|
className: l("truncate body-2", a),
|
|
311
312
|
...e
|
|
312
313
|
}
|
|
313
|
-
),
|
|
314
|
+
), xe = ({
|
|
314
315
|
ref: o,
|
|
315
316
|
className: a,
|
|
316
317
|
children: e,
|
|
@@ -324,7 +325,7 @@ const le = l(
|
|
|
324
325
|
...r,
|
|
325
326
|
children: e
|
|
326
327
|
}
|
|
327
|
-
),
|
|
328
|
+
), ge = ({
|
|
328
329
|
ref: o,
|
|
329
330
|
className: a,
|
|
330
331
|
children: e,
|
|
@@ -342,9 +343,9 @@ const le = l(
|
|
|
342
343
|
...r,
|
|
343
344
|
children: e
|
|
344
345
|
}
|
|
345
|
-
),
|
|
346
|
+
), Se = ({
|
|
346
347
|
className: o,
|
|
347
|
-
placeholder: a
|
|
348
|
+
placeholder: a,
|
|
348
349
|
helperText: e,
|
|
349
350
|
status: r,
|
|
350
351
|
"aria-invalid": s,
|
|
@@ -355,35 +356,35 @@ const le = l(
|
|
|
355
356
|
const { registerSearch: m } = p({
|
|
356
357
|
consumerName: "SelectSearch",
|
|
357
358
|
contextRequired: !0
|
|
358
|
-
});
|
|
359
|
+
}), { t: b } = B();
|
|
359
360
|
return F(() => m(), [m]), /* @__PURE__ */ t(
|
|
360
|
-
|
|
361
|
+
Z,
|
|
361
362
|
{
|
|
362
|
-
render: (
|
|
363
|
-
|
|
363
|
+
render: (f) => /* @__PURE__ */ t(
|
|
364
|
+
H,
|
|
364
365
|
{
|
|
365
|
-
...
|
|
366
|
+
...f,
|
|
366
367
|
"aria-invalid": s,
|
|
367
368
|
helperText: e,
|
|
368
369
|
status: r,
|
|
369
370
|
suffix: n,
|
|
370
371
|
onClear: i,
|
|
371
372
|
hideClearButton: c,
|
|
372
|
-
placeholder: a,
|
|
373
|
+
placeholder: a ?? b("components.select.searchPlaceholder"),
|
|
373
374
|
containerClassName: "rounded-b-none ring-inset",
|
|
374
375
|
className: l(o, "rounded-b-none ring-inset")
|
|
375
376
|
}
|
|
376
377
|
)
|
|
377
378
|
}
|
|
378
379
|
);
|
|
379
|
-
},
|
|
380
|
+
}, ye = ({
|
|
380
381
|
ref: o,
|
|
381
382
|
className: a,
|
|
382
383
|
title: e,
|
|
383
384
|
description: r,
|
|
384
385
|
...s
|
|
385
386
|
}) => /* @__PURE__ */ u(
|
|
386
|
-
|
|
387
|
+
ae,
|
|
387
388
|
{
|
|
388
389
|
ref: o,
|
|
389
390
|
"data-slot": "select-empty-state",
|
|
@@ -399,32 +400,32 @@ const le = l(
|
|
|
399
400
|
]
|
|
400
401
|
}
|
|
401
402
|
);
|
|
402
|
-
function
|
|
403
|
+
function Ue() {
|
|
403
404
|
return {
|
|
404
|
-
Select:
|
|
405
|
-
SelectTrigger:
|
|
406
|
-
SelectContent:
|
|
407
|
-
SelectSearch:
|
|
408
|
-
SelectList:
|
|
409
|
-
SelectItemText:
|
|
410
|
-
SelectItemContent:
|
|
411
|
-
SelectItemDescription:
|
|
412
|
-
SelectItem:
|
|
413
|
-
SelectSeparator:
|
|
414
|
-
SelectEmptyState:
|
|
405
|
+
Select: le,
|
|
406
|
+
SelectTrigger: ce,
|
|
407
|
+
SelectContent: me,
|
|
408
|
+
SelectSearch: Se,
|
|
409
|
+
SelectList: ue,
|
|
410
|
+
SelectItemText: he,
|
|
411
|
+
SelectItemContent: xe,
|
|
412
|
+
SelectItemDescription: ge,
|
|
413
|
+
SelectItem: fe,
|
|
414
|
+
SelectSeparator: y,
|
|
415
|
+
SelectEmptyState: ye
|
|
415
416
|
};
|
|
416
417
|
}
|
|
417
418
|
export {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
419
|
+
le as Select,
|
|
420
|
+
me as SelectContent,
|
|
421
|
+
ye as SelectEmptyState,
|
|
422
|
+
fe as SelectItem,
|
|
423
|
+
xe as SelectItemContent,
|
|
424
|
+
ge as SelectItemDescription,
|
|
425
|
+
he as SelectItemText,
|
|
426
|
+
ue as SelectList,
|
|
427
|
+
Se as SelectSearch,
|
|
428
|
+
y as SelectSeparator,
|
|
429
|
+
ce as SelectTrigger,
|
|
430
|
+
Ue as createSelect
|
|
430
431
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as e, jsxs as x, Fragment as
|
|
2
|
-
import { createSafeContext as
|
|
1
|
+
import { jsx as e, jsxs as x, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as V, cn as m, useDisabledContext as q } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as C } from "class-variance-authority";
|
|
4
4
|
import { useCallback as S } from "react";
|
|
5
5
|
import { Tooltip as N, TooltipTrigger as T, TooltipContent as w } from "../Tooltip/Tooltip.js";
|
|
6
|
-
import { useCommonTranslation as A } from "../../../../
|
|
6
|
+
import { useCommonTranslation as A } from "../../../../translations/translations.js";
|
|
7
7
|
import { useControllableState as B } from "../../../../utils/useControllableState/useControllableState.js";
|
|
8
8
|
import { ExpandRight as z } from "../../symbols/icons/ExpandRight.js";
|
|
9
9
|
import { ExpandLeft as E } from "../../symbols/icons/ExpandLeft.js";
|
|
10
|
-
const [
|
|
10
|
+
const [F, y] = V("SideBar"), f = {
|
|
11
11
|
root: C(
|
|
12
12
|
[
|
|
13
13
|
"flex h-full flex-col justify-between gap-16 overflow-y-auto rounded-xl bg-surface-transparent p-16",
|
|
@@ -50,13 +50,13 @@ const [O, y] = R("SideBar"), f = {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
|
-
},
|
|
53
|
+
}, O = ({
|
|
54
54
|
ref: n,
|
|
55
55
|
collapsed: t,
|
|
56
|
-
defaultCollapsed:
|
|
56
|
+
defaultCollapsed: s = !1,
|
|
57
57
|
onCollapsedChange: a,
|
|
58
58
|
active: o,
|
|
59
|
-
defaultActive:
|
|
59
|
+
defaultActive: r,
|
|
60
60
|
onActiveChange: i,
|
|
61
61
|
children: d,
|
|
62
62
|
className: l,
|
|
@@ -64,15 +64,15 @@ const [O, y] = R("SideBar"), f = {
|
|
|
64
64
|
}) => {
|
|
65
65
|
const { t: c } = A(), [b, g] = B({
|
|
66
66
|
prop: t,
|
|
67
|
-
defaultProp:
|
|
67
|
+
defaultProp: s,
|
|
68
68
|
onChange: a
|
|
69
69
|
}), [v, u] = B({
|
|
70
70
|
prop: o,
|
|
71
|
-
defaultProp:
|
|
71
|
+
defaultProp: r ?? "",
|
|
72
72
|
onChange: i ? (h) => i(h) : void 0
|
|
73
73
|
});
|
|
74
74
|
return /* @__PURE__ */ e(
|
|
75
|
-
|
|
75
|
+
F,
|
|
76
76
|
{
|
|
77
77
|
value: { collapsed: b, setCollapsed: g, active: v, onActiveChange: u },
|
|
78
78
|
children: /* @__PURE__ */ e(
|
|
@@ -87,39 +87,39 @@ const [O, y] = R("SideBar"), f = {
|
|
|
87
87
|
)
|
|
88
88
|
}
|
|
89
89
|
);
|
|
90
|
-
},
|
|
90
|
+
}, D = ({
|
|
91
91
|
ref: n,
|
|
92
92
|
children: t,
|
|
93
|
-
className:
|
|
93
|
+
className: s,
|
|
94
94
|
...a
|
|
95
95
|
}) => /* @__PURE__ */ e(
|
|
96
96
|
"div",
|
|
97
97
|
{
|
|
98
98
|
ref: n,
|
|
99
|
-
className: m(f.section(),
|
|
99
|
+
className: m(f.section(), s),
|
|
100
100
|
...a,
|
|
101
101
|
children: t
|
|
102
102
|
}
|
|
103
103
|
), W = ({
|
|
104
104
|
ref: n,
|
|
105
105
|
children: t,
|
|
106
|
-
className:
|
|
106
|
+
className: s,
|
|
107
107
|
...a
|
|
108
108
|
}) => /* @__PURE__ */ e(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
111
|
ref: n,
|
|
112
|
-
className: m("mt-auto", f.section(),
|
|
112
|
+
className: m("mt-auto", f.section(), s),
|
|
113
113
|
...a,
|
|
114
114
|
children: t
|
|
115
115
|
}
|
|
116
116
|
), G = ({
|
|
117
117
|
ref: n,
|
|
118
118
|
value: t,
|
|
119
|
-
icon:
|
|
119
|
+
icon: s,
|
|
120
120
|
activeIcon: a,
|
|
121
121
|
label: o,
|
|
122
|
-
tooltipContent:
|
|
122
|
+
tooltipContent: r,
|
|
123
123
|
disabled: i = !1,
|
|
124
124
|
className: d,
|
|
125
125
|
onClick: l,
|
|
@@ -131,15 +131,15 @@ const [O, y] = R("SideBar"), f = {
|
|
|
131
131
|
}), { collapsed: b, active: g, onActiveChange: v } = y({
|
|
132
132
|
consumerName: "SideBarItem",
|
|
133
133
|
contextRequired: !0
|
|
134
|
-
}), u = g === t, h = u ? a :
|
|
135
|
-
(
|
|
136
|
-
c || (l?.(
|
|
134
|
+
}), u = g === t, h = u ? a : s, I = r ?? o, L = S(
|
|
135
|
+
(P) => {
|
|
136
|
+
c || (l?.(P), v?.(t));
|
|
137
137
|
},
|
|
138
138
|
[c, l, v, t]
|
|
139
|
-
),
|
|
139
|
+
), j = /* @__PURE__ */ x(R, { children: [
|
|
140
140
|
/* @__PURE__ */ e(h, { size: 20 }),
|
|
141
141
|
o != null && /* @__PURE__ */ e("span", { className: "translate-x-8 truncate", children: o })
|
|
142
|
-
] }),
|
|
142
|
+
] }), k = /* @__PURE__ */ e(
|
|
143
143
|
"button",
|
|
144
144
|
{
|
|
145
145
|
ref: n,
|
|
@@ -152,24 +152,24 @@ const [O, y] = R("SideBar"), f = {
|
|
|
152
152
|
),
|
|
153
153
|
"aria-current": u ? "page" : void 0,
|
|
154
154
|
...p,
|
|
155
|
-
children:
|
|
155
|
+
children: j
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
158
|
return /* @__PURE__ */ x(N, { open: b ? void 0 : !1, children: [
|
|
159
|
-
/* @__PURE__ */ e(T, { asChild: !0, children:
|
|
159
|
+
/* @__PURE__ */ e(T, { asChild: !0, children: k }),
|
|
160
160
|
/* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: I })
|
|
161
161
|
] });
|
|
162
162
|
}, H = ({
|
|
163
163
|
className: n,
|
|
164
164
|
tooltipContent: t,
|
|
165
|
-
...
|
|
165
|
+
...s
|
|
166
166
|
}) => {
|
|
167
|
-
const { t: a } = A(), { collapsed: o, setCollapsed:
|
|
167
|
+
const { t: a } = A(), { collapsed: o, setCollapsed: r } = y({
|
|
168
168
|
consumerName: "SideBarCollapseToggle",
|
|
169
169
|
contextRequired: !0
|
|
170
170
|
}), i = S(() => {
|
|
171
|
-
|
|
172
|
-
}, [o,
|
|
171
|
+
r(!o);
|
|
172
|
+
}, [o, r]), d = o ? z : E, l = /* @__PURE__ */ e(
|
|
173
173
|
"button",
|
|
174
174
|
{
|
|
175
175
|
type: "button",
|
|
@@ -179,7 +179,7 @@ const [O, y] = R("SideBar"), f = {
|
|
|
179
179
|
n
|
|
180
180
|
),
|
|
181
181
|
"aria-label": a(o ? "components.sideBar.expandAriaLabel" : "components.sideBar.collapseAriaLabel"),
|
|
182
|
-
...
|
|
182
|
+
...s,
|
|
183
183
|
children: /* @__PURE__ */ e(d, { size: 20 })
|
|
184
184
|
}
|
|
185
185
|
), p = t ?? a("components.sideBar.collapseAriaLabel");
|
|
@@ -190,18 +190,18 @@ const [O, y] = R("SideBar"), f = {
|
|
|
190
190
|
};
|
|
191
191
|
function $() {
|
|
192
192
|
return {
|
|
193
|
-
SideBar:
|
|
194
|
-
SideBarLeading:
|
|
193
|
+
SideBar: O,
|
|
194
|
+
SideBarLeading: D,
|
|
195
195
|
SideBarTrailing: W,
|
|
196
196
|
SideBarItem: G,
|
|
197
197
|
SideBarCollapseToggle: H
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
export {
|
|
201
|
-
|
|
201
|
+
O as SideBar,
|
|
202
202
|
H as SideBarCollapseToggle,
|
|
203
203
|
G as SideBarItem,
|
|
204
|
-
|
|
204
|
+
D as SideBarLeading,
|
|
205
205
|
W as SideBarTrailing,
|
|
206
206
|
$ as createSideBar
|
|
207
207
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cn as s } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { useCommonTranslation as a } from "../../../../
|
|
3
|
+
import { useCommonTranslation as a } from "../../../../translations/translations.js";
|
|
4
4
|
const c = ({
|
|
5
5
|
ref: r,
|
|
6
6
|
className: t,
|