asma-ui-core 3.80.2 → 3.81.0
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/Readme.md +32 -0
- package/dist/asma-ui-core.css +1 -1
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +2 -2
- package/dist/components/inputs/phone-field/CountryCodeOptions.js +39 -0
- package/dist/components/inputs/phone-field/CountryCodeSelect.js +145 -0
- package/dist/components/inputs/phone-field/StyledCountryFlag.js +25 -0
- package/dist/components/inputs/phone-field/StyledPhoneField.js +74 -0
- package/dist/components/inputs/phone-field/useCountryPicker.js +55 -0
- package/dist/components/inputs/search-field/StyledSearchField.js +28 -24
- package/dist/components/inputs/select/StyledSelect.js +24 -24
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +35 -35
- package/dist/index.js +117 -113
- package/dist/src/components/inputs/phone-field/CountryCodeOptions.d.ts +20 -0
- package/dist/src/components/inputs/phone-field/CountryCodeSelect.d.ts +30 -0
- package/dist/src/components/inputs/phone-field/StyledCountryFlag.d.ts +34 -0
- package/dist/src/components/inputs/phone-field/StyledPhoneField.d.ts +81 -0
- package/dist/src/components/inputs/phone-field/index.d.ts +3 -0
- package/dist/src/components/inputs/phone-field/types.d.ts +24 -0
- package/dist/src/components/inputs/phone-field/useCountryPicker.d.ts +30 -0
- package/dist/src/components/inputs/phone-field/useCountryPicker.test.d.ts +1 -0
- package/dist/src/components/inputs/select/StyledSelectItem.d.ts +2 -1
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,30 +5,30 @@ import { CheckIcon as Ze } from "../../icons/check-icon/CheckIcon.js";
|
|
|
5
5
|
import { PlusIconCircle as Ke } from "../../icons/plus-icon-circle/PlusIconCircle.js";
|
|
6
6
|
import { StyledChip as et } from "../../data-display/chip/StyledChip.js";
|
|
7
7
|
import { StyledCheckbox as te } from "../checkbox/base-ui/StyledCheckbox.js";
|
|
8
|
-
import { TOP_LAYER_PROPS as tt, TOP_LAYER_RESET_STYLE as lt, getOpenModalDialogAncestor as rt, shouldUsePopoverTopLayer as
|
|
8
|
+
import { TOP_LAYER_PROPS as tt, TOP_LAYER_RESET_STYLE as lt, getOpenModalDialogAncestor as rt, shouldUsePopoverTopLayer as st, useTopLayerRef as ot } from "../../../hooks/useTopLayer.hook.js";
|
|
9
9
|
import { LoadingIcon as nt } from "../../../table/shared-components/LoadingIcon.js";
|
|
10
10
|
import O from "./StyledSelectAutocomplete.module.js";
|
|
11
11
|
import { useEffect as le, useMemo as z, useRef as re, useState as D } from "react";
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { FloatingPortal as at, autoUpdate as it, flip as ct, offset as dt, shift as ut, size as pt, useDismiss as ft, useFloating as mt, useInteractions as ht, useMergeRefs as
|
|
12
|
+
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
13
|
+
import { FloatingPortal as at, autoUpdate as it, flip as ct, offset as dt, shift as ut, size as pt, useDismiss as ft, useFloating as mt, useInteractions as ht, useMergeRefs as se, useRole as bt } from "@floating-ui/react";
|
|
14
14
|
var gt = (l) => typeof l == "object" && l !== null && "label" in l ? String(l.label) : String(l), xt = (l) => typeof l == "object" && l !== null && "disabled" in l && !!l.disabled;
|
|
15
|
-
function Lt({ dataTest: l, options: h, renderInput:
|
|
16
|
-
const
|
|
15
|
+
function Lt({ dataTest: l, options: h, renderInput: oe, value: I, onChange: N, getOptionLabel: ne, getOptionKey: A, isOptionEqualToValue: W, renderOption: H, renderValue: T, filterOptions: _, loading: U, loadingText: ae = "Loading…", noOptionsText: ie = "No options", disabled: C, readOnly: b, error: ce, helperText: de, size: ue = "small", disableClearable: pe, disableCloseOnSelect: fe, popupIcon: me, autoHeight: he, multiple: be, allowSelectAll: ge, selectAllLabel: V = "Select all", fullWidth: xe, classes: we, inputValue: R, onInputChange: ye, open: Y, onOpen: ke, onClose: De, className: ve, wrapperClassName: Ie, getOptionDisabled: Ne, slotProps: q }) {
|
|
16
|
+
const o = be === !0, c = ne ?? gt, S = (e, t) => W ? W(e, t) : e === t, [Ae, Ce] = D(!1), n = Y ?? Ae, d = (e) => {
|
|
17
17
|
e && (b || C) || (Y === void 0 && Ce(e), e ? ke?.() : (y(null), De?.()));
|
|
18
18
|
}, [Re, B] = D(""), g = R ?? Re, P = (e, t, r) => {
|
|
19
19
|
R === void 0 && B(t), ye?.(e, t, r);
|
|
20
|
-
}, [a, y] = D(null), G = re([]), J = re(null), [Se, Pe] = D(null), [Q, Me] = D(null), u =
|
|
20
|
+
}, [a, y] = D(null), G = re([]), J = re(null), [Se, Pe] = D(null), [Q, Me] = D(null), u = o ? Array.isArray(I) ? I : [] : [], x = o ? null : I ?? null, X = !o && x !== null ? c(x) : "";
|
|
21
21
|
le(() => {
|
|
22
|
-
R !== void 0 ||
|
|
22
|
+
R !== void 0 || o || B(X);
|
|
23
23
|
}, [
|
|
24
24
|
R,
|
|
25
|
-
|
|
25
|
+
o,
|
|
26
26
|
X
|
|
27
27
|
]);
|
|
28
|
-
const F = (e) =>
|
|
28
|
+
const F = (e) => o ? u.some((t) => S(e, t)) : x !== null && S(e, x), M = (e) => Ne?.(e) ?? xt(e), Z = z(() => {
|
|
29
29
|
const e = [...h];
|
|
30
30
|
if (_) return _(e, { inputValue: g });
|
|
31
|
-
const t = !
|
|
31
|
+
const t = !o && x !== null ? c(x).toLowerCase() : null;
|
|
32
32
|
if (!g || g.toLowerCase() === t) return e;
|
|
33
33
|
const r = g.toLowerCase();
|
|
34
34
|
return e.filter((p) => c(p).toLowerCase().includes(r));
|
|
@@ -64,19 +64,19 @@ function Lt({ dataTest: l, options: h, renderInput: se, value: I, onChange: N, g
|
|
|
64
64
|
Pe(e.reference.width), Me(he ? t - 8 : Math.min(t - 8, 320));
|
|
65
65
|
} })
|
|
66
66
|
]
|
|
67
|
-
}), { getReferenceProps: $e, getFloatingProps: Ee, getItemProps: _e } = ht([ft(K), bt(K, { role: "listbox" })]), Fe =
|
|
67
|
+
}), { getReferenceProps: $e, getFloatingProps: Ee, getItemProps: _e } = ht([ft(K), bt(K, { role: "listbox" })]), Fe = se([L.setReference]), ee = z(() => n ? rt(L.reference.current) : void 0, [n, L]), j = st(ee), je = se([ot(L.setFloating, j)]), Oe = (e) => i.includes(k) ? k : i[e === 1 ? 0 : i.length - 1] ?? null, ze = (e) => {
|
|
68
68
|
i.length !== 0 && y((t) => {
|
|
69
69
|
const r = i.indexOf(t ?? k);
|
|
70
70
|
return r === -1 ? i[e === 1 ? 0 : i.length - 1] ?? null : i[Math.min(Math.max(r + e, 0), i.length - 1)] ?? null;
|
|
71
71
|
});
|
|
72
|
-
}, $ = (e, t, r = !
|
|
73
|
-
if (
|
|
72
|
+
}, $ = (e, t, r = !o || !fe) => {
|
|
73
|
+
if (o) {
|
|
74
74
|
const p = u.some((f) => S(t, f)), w = p ? u.filter((f) => !S(t, f)) : [...u, t];
|
|
75
75
|
N?.(e, w, p ? "removeOption" : "selectOption", { option: t }), P(e, "", "reset"), r && d(!1);
|
|
76
76
|
} else
|
|
77
77
|
N?.(e, t, "selectOption", { option: t }), P(e, c(t), "reset"), r && d(!1);
|
|
78
78
|
}, We = (e) => {
|
|
79
|
-
N?.(e,
|
|
79
|
+
N?.(e, o ? [] : null, "clear", void 0), P(e, "", "clear");
|
|
80
80
|
}, He = (e) => {
|
|
81
81
|
if (e.key === "Enter" && !n)
|
|
82
82
|
e.preventDefault(), d(!0);
|
|
@@ -97,9 +97,9 @@ function Lt({ dataTest: l, options: h, renderInput: se, value: I, onChange: N, g
|
|
|
97
97
|
const t = m[a];
|
|
98
98
|
M(t) || $(e, t, !1);
|
|
99
99
|
} else e.key === "Escape" ? (e.preventDefault(), d(!1)) : e.key === "Tab" && d(!1);
|
|
100
|
-
}, Te = !pe && !b && !C && (
|
|
100
|
+
}, Te = !pe && !b && !C && (o ? u.length > 0 : x !== null), Ue = (e) => {
|
|
101
101
|
e.preventDefault(), !(C || b) && (J.current?.focus(), d(!n));
|
|
102
|
-
}, Ve =
|
|
102
|
+
}, Ve = o ? T ? T(u, ({ index: e }) => ({ "data-index": e })) : u.map((e, t) => /* @__PURE__ */ s(et, {
|
|
103
103
|
dataTest: `selected-chip-${c(e)}`,
|
|
104
104
|
label: c(e),
|
|
105
105
|
readOnly: b,
|
|
@@ -107,26 +107,26 @@ function Lt({ dataTest: l, options: h, renderInput: se, value: I, onChange: N, g
|
|
|
107
107
|
}, A ? A(e) : `${c(e)}-${t}`)) : void 0, Ye = /* @__PURE__ */ v("span", {
|
|
108
108
|
className: "flex items-center gap-1",
|
|
109
109
|
children: [
|
|
110
|
-
U && /* @__PURE__ */
|
|
110
|
+
U && /* @__PURE__ */ s(nt, {
|
|
111
111
|
width: 20,
|
|
112
112
|
height: 20,
|
|
113
113
|
className: "animate-spin"
|
|
114
114
|
}),
|
|
115
|
-
Te && /* @__PURE__ */
|
|
115
|
+
Te && /* @__PURE__ */ s("button", {
|
|
116
116
|
type: "button",
|
|
117
117
|
tabIndex: -1,
|
|
118
118
|
"aria-label": "Clear",
|
|
119
119
|
"data-testid": `${l}-clear`,
|
|
120
|
-
className: "flex min-h-6 min-w-6 cursor-pointer items-center justify-center rounded-full border-0 bg-delta-50",
|
|
120
|
+
className: "invisible flex min-h-6 min-w-6 cursor-pointer items-center justify-center rounded-full border-0 bg-delta-50 group-focus-within:visible",
|
|
121
121
|
onMouseDown: (e) => e.preventDefault(),
|
|
122
122
|
onClick: We,
|
|
123
|
-
children: /* @__PURE__ */
|
|
123
|
+
children: /* @__PURE__ */ s(Xe, {
|
|
124
124
|
width: 20,
|
|
125
125
|
height: 20,
|
|
126
126
|
className: "text-delta-700"
|
|
127
127
|
})
|
|
128
128
|
}),
|
|
129
|
-
b ? null : /* @__PURE__ */
|
|
129
|
+
b ? null : /* @__PURE__ */ s("button", {
|
|
130
130
|
type: "button",
|
|
131
131
|
tabIndex: -1,
|
|
132
132
|
"aria-label": "Toggle options",
|
|
@@ -135,11 +135,11 @@ function Lt({ dataTest: l, options: h, renderInput: se, value: I, onChange: N, g
|
|
|
135
135
|
className: "flex cursor-pointer items-center border-0 bg-transparent",
|
|
136
136
|
onMouseDown: (e) => e.preventDefault(),
|
|
137
137
|
onClick: Ue,
|
|
138
|
-
children: me ?? (
|
|
138
|
+
children: me ?? (o ? /* @__PURE__ */ s(Ke, {
|
|
139
139
|
width: 24,
|
|
140
140
|
height: 24,
|
|
141
141
|
className: "text-delta-700"
|
|
142
|
-
}) : /* @__PURE__ */
|
|
142
|
+
}) : /* @__PURE__ */ s(Qe, {
|
|
143
143
|
width: 24,
|
|
144
144
|
height: 24,
|
|
145
145
|
className: E(O["select-custom-icon"], n && O["select-custom-icon-open"], "text-delta-700")
|
|
@@ -180,25 +180,25 @@ function Lt({ dataTest: l, options: h, renderInput: se, value: I, onChange: N, g
|
|
|
180
180
|
return /* @__PURE__ */ v("li", {
|
|
181
181
|
...w,
|
|
182
182
|
children: [
|
|
183
|
-
e["data-active"] !== void 0 && /* @__PURE__ */
|
|
183
|
+
e["data-active"] !== void 0 && /* @__PURE__ */ s("span", {
|
|
184
184
|
"aria-hidden": "true",
|
|
185
|
-
className: "pointer-events-none absolute inset-y-0 left-0 border-l border-solid border-focus-ring"
|
|
185
|
+
className: "pointer-events-none absolute inset-y-0 left-0 border-l-[4px] border-solid border-focus-ring"
|
|
186
186
|
}),
|
|
187
|
-
|
|
187
|
+
o ? /* @__PURE__ */ s(te, {
|
|
188
188
|
dataTest: `${l}-${c(t)}-checkbox`,
|
|
189
189
|
checked: r.selected,
|
|
190
190
|
size: "small",
|
|
191
191
|
hideWrapper: !0,
|
|
192
192
|
decorative: !0
|
|
193
|
-
}) : /* @__PURE__ */
|
|
193
|
+
}) : /* @__PURE__ */ s("span", {
|
|
194
194
|
className: "w-5",
|
|
195
|
-
children: r.selected && /* @__PURE__ */
|
|
195
|
+
children: r.selected && /* @__PURE__ */ s(Ze, {
|
|
196
196
|
width: 20,
|
|
197
197
|
height: 20,
|
|
198
198
|
className: "text-gama-500"
|
|
199
199
|
})
|
|
200
200
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ s("span", {
|
|
202
202
|
className: "line-clamp-2 min-w-0 flex-1 break-words",
|
|
203
203
|
children: c(t)
|
|
204
204
|
})
|
|
@@ -232,7 +232,7 @@ function Lt({ dataTest: l, options: h, renderInput: se, value: I, onChange: N, g
|
|
|
232
232
|
};
|
|
233
233
|
return /* @__PURE__ */ v("div", {
|
|
234
234
|
className: E(O.styledSelectAutocompleteWrapper, !xe && "w-auto", Ie, ve),
|
|
235
|
-
children: [
|
|
235
|
+
children: [oe(qe), n && /* @__PURE__ */ s(at, {
|
|
236
236
|
root: ee,
|
|
237
237
|
children: /* @__PURE__ */ v("ul", {
|
|
238
238
|
ref: je,
|
|
@@ -247,10 +247,10 @@ function Lt({ dataTest: l, options: h, renderInput: se, value: I, onChange: N, g
|
|
|
247
247
|
},
|
|
248
248
|
...Ee(),
|
|
249
249
|
className: E("z-[1300] m-0 list-none overflow-auto rounded border border-solid border-delta-300 bg-white px-0 py-2 shadow-[0px_2px_4px_0px_rgba(34,33,51,0.15)]", "[&>li:not(:last-child)]:border-0 [&>li:not(:last-child)]:border-b", "[&>li:not(:last-child)]:border-solid [&>li:not(:last-child)]:border-delta-200", we?.listbox, q?.popper?.className),
|
|
250
|
-
children: [ge &&
|
|
250
|
+
children: [ge && o && /* @__PURE__ */ v("div", {
|
|
251
251
|
role: "group",
|
|
252
252
|
className: "flex min-h-12 items-center gap-x-1 border-0 border-b border-solid border-delta-200 px-4 text-sm text-delta-700",
|
|
253
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ s(te, {
|
|
254
254
|
dataTest: `${l}-select-all`,
|
|
255
255
|
"aria-label": V,
|
|
256
256
|
checked: h.length > 0 && u.length === h.length,
|
|
@@ -261,15 +261,15 @@ function Lt({ dataTest: l, options: h, renderInput: se, value: I, onChange: N, g
|
|
|
261
261
|
const t = h.length > 0 && u.length === h.length;
|
|
262
262
|
N?.(e, t ? [] : h, t ? "clear" : "selectOption", void 0);
|
|
263
263
|
}
|
|
264
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ s("span", {
|
|
265
265
|
className: "flex-1 truncate py-2",
|
|
266
266
|
children: V
|
|
267
267
|
})]
|
|
268
|
-
}), U ? /* @__PURE__ */
|
|
268
|
+
}), U ? /* @__PURE__ */ s("li", {
|
|
269
269
|
role: "presentation",
|
|
270
270
|
className: "px-3 py-2 text-sm text-delta-600",
|
|
271
271
|
children: ae
|
|
272
|
-
}) : m.length === 0 ? /* @__PURE__ */
|
|
272
|
+
}) : m.length === 0 ? /* @__PURE__ */ s("li", {
|
|
273
273
|
role: "presentation",
|
|
274
274
|
className: "px-3 py-2 text-sm text-delta-600",
|
|
275
275
|
children: ie
|
package/dist/index.js
CHANGED
|
@@ -227,58 +227,60 @@ import { StyledSwitch as Tp } from "./components/inputs/switch/base-ui/StyledSwi
|
|
|
227
227
|
import { StyledRadioGroup as Ap } from "./components/inputs/radio-button/base-ui/StyledRadioGroup.js";
|
|
228
228
|
import { StyledLabel as Mp } from "./components/inputs/label/StyledLabel.js";
|
|
229
229
|
import { StyledDynamicSelect as wp } from "./components/inputs/dynamic-select/StyledDynamicSelect.js";
|
|
230
|
-
import {
|
|
231
|
-
import {
|
|
232
|
-
import {
|
|
233
|
-
import {
|
|
234
|
-
import {
|
|
235
|
-
import {
|
|
236
|
-
import {
|
|
237
|
-
import {
|
|
238
|
-
import {
|
|
239
|
-
import {
|
|
240
|
-
import {
|
|
241
|
-
import {
|
|
242
|
-
import {
|
|
243
|
-
import {
|
|
244
|
-
import {
|
|
245
|
-
import {
|
|
246
|
-
import {
|
|
247
|
-
import {
|
|
248
|
-
import {
|
|
249
|
-
import {
|
|
250
|
-
import {
|
|
251
|
-
import {
|
|
252
|
-
import {
|
|
253
|
-
import {
|
|
254
|
-
import {
|
|
255
|
-
import {
|
|
256
|
-
import {
|
|
257
|
-
import {
|
|
258
|
-
import {
|
|
259
|
-
import {
|
|
260
|
-
import {
|
|
261
|
-
import {
|
|
262
|
-
import {
|
|
263
|
-
import {
|
|
264
|
-
import {
|
|
265
|
-
import {
|
|
266
|
-
import {
|
|
267
|
-
import {
|
|
268
|
-
import {
|
|
269
|
-
import {
|
|
270
|
-
import {
|
|
271
|
-
import {
|
|
272
|
-
import {
|
|
273
|
-
import {
|
|
274
|
-
import {
|
|
275
|
-
import {
|
|
276
|
-
import {
|
|
277
|
-
import {
|
|
278
|
-
import {
|
|
279
|
-
import {
|
|
230
|
+
import { StyledLink as Hp } from "./components/navigation/link/StyledLink.js";
|
|
231
|
+
import { StyledPhoneField as xp } from "./components/inputs/phone-field/StyledPhoneField.js";
|
|
232
|
+
import { StyledCountryFlag as Ep } from "./components/inputs/phone-field/StyledCountryFlag.js";
|
|
233
|
+
import { StyledFormControl as Up } from "./components/miscellaneous/StyledFormControl.js";
|
|
234
|
+
import { defaultDatePickerValidationMessages as zp, useDatePickerValidation as Gp } from "./datetime/components/date-picker/hooks/useDatePickerValidation.js";
|
|
235
|
+
import { StyledDrawer as qp } from "./components/navigation/drawer/StyledDrawer.js";
|
|
236
|
+
import { StyledDatePicker as Qp } from "./datetime/components/date-picker/StyledDatePicker.js";
|
|
237
|
+
import { PopupState as jp, bindPopover as Jp, bindPopper as Yp, bindTrigger as $p, usePopupState as of } from "./hooks/usePopupState.js";
|
|
238
|
+
import { ClickAwayListener as mf } from "./components/mui-compat/ClickAwayListener.js";
|
|
239
|
+
import { Paper as ef } from "./components/mui-compat/Paper.js";
|
|
240
|
+
import { Stack as pf } from "./components/mui-compat/Stack.js";
|
|
241
|
+
import { Container as cf } from "./components/mui-compat/Container.js";
|
|
242
|
+
import { Avatar as If } from "./components/mui-compat/Avatar.js";
|
|
243
|
+
import { Skeleton as df } from "./components/mui-compat/Skeleton.js";
|
|
244
|
+
import { FormLabel as Sf } from "./components/mui-compat/FormLabel.js";
|
|
245
|
+
import { Fade as yf } from "./components/mui-compat/Fade.js";
|
|
246
|
+
import { Popper as Of } from "./components/mui-compat/Popper.js";
|
|
247
|
+
import { defaultTimePickerHelperMessages as Df } from "./datetime/components/time-picker/components/HelperText.js";
|
|
248
|
+
import { StyledTimePicker as kf } from "./datetime/components/time-picker/StyledTimePicker.js";
|
|
249
|
+
import { setMidnightTime as Lf, setZeroTime as Pf } from "./datetime/helpers/date.helper.js";
|
|
250
|
+
import { StyledFormControlLabel as Ff } from "./components/miscellaneous/StyledFormControlLabel.js";
|
|
251
|
+
import { StyledFormHelperText as Rf } from "./components/miscellaneous/StyledFormHelperText.js";
|
|
252
|
+
import { StyledInputLabel as vf } from "./components/miscellaneous/StyledInputLabel.js";
|
|
253
|
+
import { StyledFormGroup as Bf } from "./components/miscellaneous/StyledFormGroup.js";
|
|
254
|
+
import { StyledTab as Nf } from "./components/navigation/tabs/StyledTab.js";
|
|
255
|
+
import { StyledTabs as _f } from "./components/navigation/tabs/StyledTabs.js";
|
|
256
|
+
import { StyledTitleChevron as Wf } from "./components/navigation/title-chevron/StyledTitleChevron.js";
|
|
257
|
+
import { Listbox as Vf } from "./components/navigation/listbox/Listbox.js";
|
|
258
|
+
import { StyledAccordion as Gf } from "./components/utils/accordion/base-ui/StyledAccordion.js";
|
|
259
|
+
import { StyledAccordionSummary as qf } from "./components/utils/accordion/base-ui/StyledAccordionSummary.js";
|
|
260
|
+
import { StyledAccordionDetails as Qf } from "./components/utils/accordion/base-ui/StyledAccordionDetails.js";
|
|
261
|
+
import { ACTIONS_COLUMN_ID as jf, DND_HANDLE_COLUMN_ID as Jf, EXPAND_COLUMN_ID as Yf, INTERNAL_COLUMN_IDS as $f, SELECT_COLUMN_ID as oc, SHOW_FULL_TEXT_ID as rc, isCustomAction as mc } from "./table/types.js";
|
|
262
|
+
import { RowDragHandleCell as ic } from "./table/components/columns/dndHandleColumn.js";
|
|
263
|
+
import { StyledTable as nc } from "./table/components/StyledTableIndex.js";
|
|
264
|
+
import { createColumnHelper as fc } from "./table/index.js";
|
|
265
|
+
import { DynamicToolbarLayoutContext as lc, useDynamicToolbarLayout as Ic } from "./components/custom/module/header-layout/DynamicToolbarLayoutContext.js";
|
|
266
|
+
import { StyledFilterButton as dc } from "./components/utils/filter-menu/StyledFilterButton.js";
|
|
267
|
+
import { StyledFilterMenu as Sc } from "./components/utils/filter-menu/StyledFilterMenu.js";
|
|
268
|
+
import { CopyButton as yc } from "./components/utils/copy-wrapper/CopyButton.js";
|
|
269
|
+
import { CopyWrapper as Oc } from "./components/utils/copy-wrapper/CopyWrapper.js";
|
|
270
|
+
import { VirtualList as Dc } from "./components/utils/virtual-list/VirtualList.js";
|
|
271
|
+
import { StyledWidgetTitle as kc } from "./components/custom/widget/widget-title/StyledWidgetTitle.js";
|
|
272
|
+
import { StyledWidgetHeader as Lc } from "./components/custom/widget/widget-header/StyledWidgetHeader.js";
|
|
273
|
+
import { StyledWidget as Tc } from "./components/custom/widget/widget/StyledWidget.js";
|
|
274
|
+
import { StyledModuleTitle as Ac } from "./components/custom/module/module-title/StyledModuleTitle.js";
|
|
275
|
+
import { DynamicToolbar as Mc } from "./components/custom/module/header-layout/DynamicToolbar.js";
|
|
276
|
+
import { PageHeader as wc } from "./components/custom/page/page-header/PageHeader.js";
|
|
277
|
+
import { MinimizableDialog as Hc } from "./components/feedback/minimizable-dialog/MinimizableDialog.js";
|
|
278
|
+
import { MinimizableDialogV2 as xc } from "./components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js";
|
|
279
|
+
import { createDialogStack as Ec } from "./components/feedback/minimizable-dialog/stack/createDialogStack.js";
|
|
280
|
+
import { PathfinderCard as Uc } from "./components/custom/pathfinder-card/PathfinderCard.js";
|
|
281
|
+
import { useRouteHeadingFocus as zc } from "./hooks/useRouteHeadingFocus.js";
|
|
280
282
|
export {
|
|
281
|
-
|
|
283
|
+
jf as ACTIONS_COLUMN_ID,
|
|
282
284
|
Bn as ACTION_GAP_PX,
|
|
283
285
|
zi as AppRegistrationIcon,
|
|
284
286
|
wo as ArchiveIcon,
|
|
@@ -289,7 +291,7 @@ export {
|
|
|
289
291
|
j as AssignmentIcon,
|
|
290
292
|
Y as AssignmentOutlineIcon,
|
|
291
293
|
wt as AttachFileIcon,
|
|
292
|
-
|
|
294
|
+
If as Avatar,
|
|
293
295
|
xm as BackIcon,
|
|
294
296
|
Mi as BackupIcon,
|
|
295
297
|
tm as BadgeIcon,
|
|
@@ -317,22 +319,22 @@ export {
|
|
|
317
319
|
s as ChevronRightIcon,
|
|
318
320
|
Uo as ChevronUpIcon,
|
|
319
321
|
Ui as CircleWarningOutlineIcon,
|
|
320
|
-
|
|
322
|
+
mf as ClickAwayListener,
|
|
321
323
|
Lm as ClockOutlineIcon,
|
|
322
324
|
zo as CloseIcon,
|
|
323
325
|
At as CloudDoneOutlineIcon,
|
|
324
326
|
Mt as CloudIcon,
|
|
325
327
|
Ji as CloudOffOutlineIcon,
|
|
326
328
|
Zr as ConsentsIcon,
|
|
327
|
-
|
|
329
|
+
cf as Container,
|
|
328
330
|
St as ContentCopyIcon,
|
|
329
331
|
Dt as ContentCopyOutlineIcon,
|
|
330
332
|
yt as ContentCutIcon,
|
|
331
333
|
Ot as ContentPasteIcon,
|
|
332
334
|
ri as ConversionPathIcon,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
335
|
+
yc as CopyButton,
|
|
336
|
+
Oc as CopyWrapper,
|
|
337
|
+
Jf as DND_HANDLE_COLUMN_ID,
|
|
336
338
|
F as DashboardViewIcon,
|
|
337
339
|
R as DashboardViewOutlineIcon,
|
|
338
340
|
cr as DeleteOutlineIcon,
|
|
@@ -351,16 +353,16 @@ export {
|
|
|
351
353
|
Ao as DropUpIcon,
|
|
352
354
|
yr as DvrIcon,
|
|
353
355
|
Ai as DvrIconOutline,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
356
|
+
Mc as DynamicToolbar,
|
|
357
|
+
lc as DynamicToolbarLayoutContext,
|
|
358
|
+
Yf as EXPAND_COLUMN_ID,
|
|
357
359
|
Er as EarthIcon,
|
|
358
360
|
ye as EditNotesIcon,
|
|
359
361
|
em as EditSquareIcon,
|
|
360
362
|
tr as EmptyPageIcon,
|
|
361
363
|
Si as EnvelopeIcon,
|
|
362
364
|
Or as ErrorOutlineIcon,
|
|
363
|
-
|
|
365
|
+
yf as Fade,
|
|
364
366
|
Tr as FastCheckOutlineIcon,
|
|
365
367
|
Ti as FileDocIcon,
|
|
366
368
|
De as FileImageIcon,
|
|
@@ -373,7 +375,7 @@ export {
|
|
|
373
375
|
yo as FindReplacePeopleIcon,
|
|
374
376
|
yi as FingerprintIcon,
|
|
375
377
|
Dm as FormIcon,
|
|
376
|
-
|
|
378
|
+
Sf as FormLabel,
|
|
377
379
|
tt as FormatListBulletedIcon,
|
|
378
380
|
et as FormatListBulletedOutlineIcon,
|
|
379
381
|
ti as GraphIcon,
|
|
@@ -388,7 +390,7 @@ export {
|
|
|
388
390
|
de as HistoryToggleOffIcon,
|
|
389
391
|
Me as HubIcon,
|
|
390
392
|
we as HubIconFilled,
|
|
391
|
-
|
|
393
|
+
$f as INTERNAL_COLUMN_IDS,
|
|
392
394
|
Jo as InboxOutboxIcon,
|
|
393
395
|
$o as InboxOutboxOutlineIcon,
|
|
394
396
|
Te as IndeterminateIcon,
|
|
@@ -401,7 +403,7 @@ export {
|
|
|
401
403
|
xr as ListSettingsLineIcon,
|
|
402
404
|
Mr as ListStatusIcon,
|
|
403
405
|
wr as ListViewOutlineIcon,
|
|
404
|
-
|
|
406
|
+
Vf as Listbox,
|
|
405
407
|
Ue as LoadCurrentIcon,
|
|
406
408
|
To as LoadingIcon,
|
|
407
409
|
Om as LocationIcon,
|
|
@@ -414,8 +416,8 @@ export {
|
|
|
414
416
|
io as MessageProcessingOutlineIcon,
|
|
415
417
|
rm as MessageReplyIcon,
|
|
416
418
|
Am as MicrosoftOutlookIcon,
|
|
417
|
-
|
|
418
|
-
|
|
419
|
+
Hc as MinimizableDialog,
|
|
420
|
+
xc as MinimizableDialogV2,
|
|
419
421
|
Jr as MinimizeIcon,
|
|
420
422
|
Xe as MoveUpIcon,
|
|
421
423
|
G as NewCalendarIcon,
|
|
@@ -426,9 +428,9 @@ export {
|
|
|
426
428
|
Kt as OutlineCheckboxIconChecked,
|
|
427
429
|
Jt as OutlineCheckboxIconIndeterminate,
|
|
428
430
|
zt as OutlineNotificationsIcon,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
431
|
+
wc as PageHeader,
|
|
432
|
+
ef as Paper,
|
|
433
|
+
Uc as PathfinderCard,
|
|
432
434
|
P as PdfIcon,
|
|
433
435
|
zr as PencilOutlineIcon,
|
|
434
436
|
B as PeopleIcon,
|
|
@@ -442,8 +444,8 @@ export {
|
|
|
442
444
|
Sm as PinIcon,
|
|
443
445
|
pm as PlusIcon,
|
|
444
446
|
cm as PlusIconCircle,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
+
Of as Popper,
|
|
448
|
+
jp as PopupState,
|
|
447
449
|
b as QnrIcon,
|
|
448
450
|
kt as RefreshIcon,
|
|
449
451
|
di as RemoveIcon,
|
|
@@ -454,11 +456,11 @@ export {
|
|
|
454
456
|
Ie as ResetSettingsIcon,
|
|
455
457
|
Ee as RocketLaunchIcon,
|
|
456
458
|
ze as RotateAutoIcon,
|
|
457
|
-
|
|
459
|
+
ic as RowDragHandleCell,
|
|
458
460
|
It as RuleIcon,
|
|
459
461
|
dt as RuleOutlineIcon,
|
|
460
|
-
|
|
461
|
-
|
|
462
|
+
oc as SELECT_COLUMN_ID,
|
|
463
|
+
rc as SHOW_FULL_TEXT_ID,
|
|
462
464
|
Ii as SaveIcon,
|
|
463
465
|
Lo as SearchIcon,
|
|
464
466
|
Ht as SendIcon,
|
|
@@ -467,46 +469,48 @@ export {
|
|
|
467
469
|
Lt as SettingsNoteIcon,
|
|
468
470
|
ao as SettingsOutlineIcon,
|
|
469
471
|
Ki as ShareIcon,
|
|
470
|
-
|
|
472
|
+
df as Skeleton,
|
|
471
473
|
te as SmsIcon,
|
|
472
474
|
Jn as SnackbarProvider,
|
|
473
|
-
|
|
475
|
+
pf as Stack,
|
|
474
476
|
un as StyledAIDisclosure,
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
477
|
+
Gf as StyledAccordion,
|
|
478
|
+
Qf as StyledAccordionDetails,
|
|
479
|
+
qf as StyledAccordionSummary,
|
|
478
480
|
Zn as StyledAlert,
|
|
479
481
|
f as StyledBadge,
|
|
480
482
|
sn as StyledButton,
|
|
481
483
|
$e as StyledCheckbox,
|
|
482
484
|
Je as StyledChip,
|
|
483
|
-
|
|
485
|
+
Ep as StyledCountryFlag,
|
|
486
|
+
Qp as StyledDatePicker,
|
|
484
487
|
Cn as StyledDialog,
|
|
485
488
|
gn as StyledDialogActions,
|
|
486
489
|
hn as StyledDialogContent,
|
|
487
490
|
Un as StyledDialogFooter,
|
|
488
491
|
bn as StyledDialogTitle,
|
|
489
|
-
|
|
492
|
+
qp as StyledDrawer,
|
|
490
493
|
wp as StyledDynamicSelect,
|
|
491
494
|
zn as StyledEmptyPage,
|
|
492
|
-
|
|
493
|
-
|
|
495
|
+
dc as StyledFilterButton,
|
|
496
|
+
Sc as StyledFilterMenu,
|
|
494
497
|
Xn as StyledFilteredEmptyState,
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
498
|
+
Up as StyledFormControl,
|
|
499
|
+
Ff as StyledFormControlLabel,
|
|
500
|
+
Bf as StyledFormGroup,
|
|
501
|
+
Rf as StyledFormHelperText,
|
|
499
502
|
an as StyledFormLabel,
|
|
500
503
|
dp as StyledInputField,
|
|
501
|
-
|
|
504
|
+
vf as StyledInputLabel,
|
|
502
505
|
tn as StyledInteractiveChip,
|
|
503
506
|
Mp as StyledLabel,
|
|
504
|
-
|
|
507
|
+
Hp as StyledLink,
|
|
505
508
|
Kn as StyledLoading,
|
|
506
509
|
Rn as StyledMenu,
|
|
507
510
|
vn as StyledMenuItem,
|
|
508
511
|
Fn as StyledMenuList,
|
|
509
|
-
|
|
512
|
+
Ac as StyledModuleTitle,
|
|
513
|
+
xp as StyledPhoneField,
|
|
510
514
|
Pn as StyledPopover,
|
|
511
515
|
rn as StyledRadio,
|
|
512
516
|
Ap as StyledRadioGroup,
|
|
@@ -517,17 +521,17 @@ export {
|
|
|
517
521
|
Lp as StyledSlider,
|
|
518
522
|
$n as StyledSnackbar,
|
|
519
523
|
Tp as StyledSwitch,
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
524
|
+
Nf as StyledTab,
|
|
525
|
+
nc as StyledTable,
|
|
526
|
+
_f as StyledTabs,
|
|
523
527
|
yp as StyledTextarea,
|
|
524
|
-
|
|
525
|
-
|
|
528
|
+
kf as StyledTimePicker,
|
|
529
|
+
Wf as StyledTitleChevron,
|
|
526
530
|
nn as StyledTooltip,
|
|
527
531
|
ln as StyledTypography,
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
532
|
+
Tc as StyledWidget,
|
|
533
|
+
Lc as StyledWidgetHeader,
|
|
534
|
+
kc as StyledWidgetTitle,
|
|
531
535
|
Xt as SyncIcon,
|
|
532
536
|
Zi as SyncSavedLocallyIcon,
|
|
533
537
|
Hr as TextBoxCheckOutlineIcon,
|
|
@@ -539,7 +543,7 @@ export {
|
|
|
539
543
|
Ar as UnknownDocumentOutlineRoundedIcon,
|
|
540
544
|
Km as UnlockIcon,
|
|
541
545
|
Oi as UploadIcon,
|
|
542
|
-
|
|
546
|
+
Dc as VirtualList,
|
|
543
547
|
fn as VirtualizedList,
|
|
544
548
|
re as VisibilityOffOutlineIcon,
|
|
545
549
|
$i as VisibilityOutlineIcon,
|
|
@@ -548,18 +552,18 @@ export {
|
|
|
548
552
|
He as WidgetIcon,
|
|
549
553
|
xe as WidgetIconFilled,
|
|
550
554
|
ym as WorkIcon,
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
555
|
+
Jp as bindPopover,
|
|
556
|
+
Yp as bindPopper,
|
|
557
|
+
$p as bindTrigger,
|
|
554
558
|
cp as closeSnackbar,
|
|
555
559
|
m as cn,
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
+
fc as createColumnHelper,
|
|
561
|
+
Ec as createDialogStack,
|
|
562
|
+
zp as defaultDatePickerValidationMessages,
|
|
563
|
+
Df as defaultTimePickerHelperMessages,
|
|
560
564
|
lp as enqueueSnackbar,
|
|
561
565
|
Nn as estimateToolbarActionWidth,
|
|
562
|
-
|
|
566
|
+
mc as isCustomAction,
|
|
563
567
|
pp as message,
|
|
564
568
|
i as omit,
|
|
565
569
|
xn as planBulkToolbarActions,
|
|
@@ -569,11 +573,11 @@ export {
|
|
|
569
573
|
tp as processDefaultSnackbar,
|
|
570
574
|
ep as processInfoSnackbar,
|
|
571
575
|
En as resolveToolbarActionWidth,
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
576
|
+
Lf as setMidnightTime,
|
|
577
|
+
Pf as setZeroTime,
|
|
578
|
+
Gp as useDatePickerValidation,
|
|
579
|
+
Ic as useDynamicToolbarLayout,
|
|
580
|
+
of as usePopupState,
|
|
581
|
+
zc as useRouteHeadingFocus,
|
|
578
582
|
Ip as useSnackbar
|
|
579
583
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PhoneCountryChoice, RenderCountryFlag } from './types';
|
|
2
|
+
export interface CountryCodeOptionsProps {
|
|
3
|
+
dataTest: string;
|
|
4
|
+
/** Already filtered — the caller owns the query. */
|
|
5
|
+
visible: readonly PhoneCountryChoice[];
|
|
6
|
+
selectedIso2: string;
|
|
7
|
+
activeIndex: number;
|
|
8
|
+
optionId: (index: number) => string;
|
|
9
|
+
onSelect: (iso2: string) => void;
|
|
10
|
+
listId: string;
|
|
11
|
+
/** Accessible name for the list. Consumer copy, same string that titles the mobile sheet. */
|
|
12
|
+
label: string;
|
|
13
|
+
renderFlag?: RenderCountryFlag;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The country listbox. Presentation only — filtering, the active row and the keyboard live in
|
|
18
|
+
* [[useCountryPicker]], so the desktop trigger and the mobile sheet render the same list.
|
|
19
|
+
*/
|
|
20
|
+
export declare const CountryCodeOptions: ({ dataTest, visible, selectedIso2, activeIndex, optionId, onSelect, listId, label, renderFlag, className, }: CountryCodeOptionsProps) => JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PhoneCountryChoice, RenderCountryFlag } from './types';
|
|
2
|
+
export interface CountryCodeSelectProps {
|
|
3
|
+
dataTest: string;
|
|
4
|
+
countries: readonly PhoneCountryChoice[];
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (iso2: string) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** Title of the mobile picker sheet; supplied by the consumer — this library ships no copy. */
|
|
9
|
+
selectCountryLabel: string;
|
|
10
|
+
/** Placeholder of the mobile sheet's search box. Consumer-supplied. */
|
|
11
|
+
searchPlaceholder: string;
|
|
12
|
+
renderFlag?: RenderCountryFlag;
|
|
13
|
+
/** `id` of the field label, so the trigger inherits the field's accessible name. */
|
|
14
|
+
labelledBy?: string;
|
|
15
|
+
/** Surface class shared with the number input so the pair matches. */
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Collapsed country trigger (flag + calling code + chevron) and the picker it opens.
|
|
20
|
+
*
|
|
21
|
+
* Two presentations, one list and one keyboard contract ([[useCountryPicker]]):
|
|
22
|
+
*
|
|
23
|
+
* - **Desktop** — the trigger *is* the combobox. Opening it turns the calling-code slot into an
|
|
24
|
+
* input and typing filters the list below, which is what Figma draws (the open trigger carries a
|
|
25
|
+
* text cursor, and the menu holds rows only — node 8565:284950 has no search field).
|
|
26
|
+
* - **Mobile** — a full-screen sheet with its own search box, per node 8699:112423. The break is
|
|
27
|
+
* `StyledDialog`'s own `fullScreen ?? isMobile` default (≤743 px), so the two never disagree
|
|
28
|
+
* about what "mobile" means.
|
|
29
|
+
*/
|
|
30
|
+
export declare const CountryCodeSelect: ({ dataTest, countries, value, onChange, disabled, selectCountryLabel, searchPlaceholder, renderFlag, labelledBy, className, }: CountryCodeSelectProps) => JSX.Element;
|