@caspeco/casper-ui-library 10.0.4 → 10.1.1
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/components/combobox/combobox-button.d.ts +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +78 -77
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +147 -141
- package/dist/components/combobox/types.d.ts +1 -0
- package/dist/components/combobox/types.d.ts.map +1 -1
- package/dist/components/input/input-recipe.d.ts.map +1 -1
- package/dist/components/input/input-recipe.js +8 -3
- package/dist/components/input/input.composition.d.ts.map +1 -1
- package/dist/components/input/input.d.ts +1 -0
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +76 -52
- package/dist/components/input/types.d.ts +2 -2
- package/dist/components/input/types.d.ts.map +1 -1
- package/dist/components/menu/menu-box-button.d.ts +4 -1
- package/dist/components/menu/menu-box-button.d.ts.map +1 -1
- package/dist/components/menu/menu-box-button.js +15 -14
- package/dist/components/phone-input/country-data.d.ts +22 -0
- package/dist/components/phone-input/country-data.d.ts.map +1 -0
- package/dist/components/phone-input/country-data.js +38 -0
- package/dist/components/phone-input/country-data.spec.d.ts +2 -0
- package/dist/components/phone-input/country-data.spec.d.ts.map +1 -0
- package/dist/components/phone-input/country-list.d.ts +19 -0
- package/dist/components/phone-input/country-list.d.ts.map +1 -0
- package/dist/components/phone-input/country-list.js +27 -0
- package/dist/components/phone-input/country-selector.d.ts +59 -0
- package/dist/components/phone-input/country-selector.d.ts.map +1 -0
- package/dist/components/phone-input/country-selector.js +120 -0
- package/dist/components/phone-input/index.d.ts +5 -0
- package/dist/components/phone-input/index.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input-helpers.d.ts +47 -0
- package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input-helpers.js +134 -0
- package/dist/components/phone-input/phone-input-helpers.spec.d.ts +2 -0
- package/dist/components/phone-input/phone-input-helpers.spec.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.composition.d.ts +26 -0
- package/dist/components/phone-input/phone-input.composition.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.d.ts +22 -0
- package/dist/components/phone-input/phone-input.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.js +43 -0
- package/dist/components/phone-input/phone-input.spec.d.ts +2 -0
- package/dist/components/phone-input/phone-input.spec.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.visual.test.d.ts +2 -0
- package/dist/components/phone-input/phone-input.visual.test.d.ts.map +1 -0
- package/dist/components/phone-input/translations.d.ts +60 -0
- package/dist/components/phone-input/translations.d.ts.map +1 -0
- package/dist/components/phone-input/translations.js +54 -0
- package/dist/components/phone-input/types.d.ts +45 -0
- package/dist/components/phone-input/types.d.ts.map +1 -0
- package/dist/components/phone-input/use-phone-input.d.ts +49 -0
- package/dist/components/phone-input/use-phone-input.d.ts.map +1 -0
- package/dist/components/phone-input/use-phone-input.js +138 -0
- package/dist/components/phone-input/use-phone-input.spec.d.ts +2 -0
- package/dist/components/phone-input/use-phone-input.spec.d.ts.map +1 -0
- package/dist/hooks/use-measured-width.d.ts +23 -0
- package/dist/hooks/use-measured-width.d.ts.map +1 -0
- package/dist/hooks/use-measured-width.js +22 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +289 -285
- package/dist/node_modules/country-flag-icons/modules/countries.json.js +4 -0
- package/dist/node_modules/country-flag-icons/modules/hasFlag.js +7 -0
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +6303 -0
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +269 -0
- package/dist/node_modules/libphonenumber-js/es6/ParseError.js +89 -0
- package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +192 -0
- package/dist/node_modules/libphonenumber-js/es6/constants.js +10 -0
- package/dist/node_modules/libphonenumber-js/es6/format.js +98 -0
- package/dist/node_modules/libphonenumber-js/es6/getCountries.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +11 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +16 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +11 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +18 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +46 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +27 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +23 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +39 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +31 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +23 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +25 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +12 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +9 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +43 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +12 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +52 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +14 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isCallingCode.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isCountryCode.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +20 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +6 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +79 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +19 -0
- package/dist/node_modules/libphonenumber-js/es6/isPossible.js +35 -0
- package/dist/node_modules/libphonenumber-js/es6/isValid.js +14 -0
- package/dist/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +59 -0
- package/dist/node_modules/libphonenumber-js/es6/metadata.js +494 -0
- package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +108 -0
- package/dist/node_modules/libphonenumber-js/es6/parse.js +138 -0
- package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +40 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +9 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +55 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +62 -0
- package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.js +14 -0
- package/dist/node_modules/libphonenumber-js/metadata.min.json.js +4 -0
- package/dist/node_modules/libphonenumber-js/min/exports/getCountries.js +8 -0
- package/dist/node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js +8 -0
- package/dist/node_modules/libphonenumber-js/min/exports/isSupportedCountry.js +8 -0
- package/dist/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +8 -0
- package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +8 -0
- package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +8 -0
- package/dist/test-utils/create-visual-tests.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ComboboxInnerProps } from './types.js';
|
|
2
|
-
export declare function ComboboxButton({ id, asPlainText, inputValue, selectedItems, displayItems, toggleItem, highlightState, openState, parentStrings, size, variant, label, placeHolderText, isDisabled, isReadOnly, isInvalid, collapsed, hasPendingDelete, setHasPendingDelete, setInputValue, onSearch, isSingleSelect, }: ComboboxInnerProps): import("react").JSX.Element;
|
|
2
|
+
export declare function ComboboxButton({ id, asPlainText, inputValue, selectedItems, displayItems, toggleItem, clearSelection, highlightState, openState, parentStrings, size, variant, label, placeHolderText, isDisabled, isReadOnly, isInvalid, collapsed, hasPendingDelete, setHasPendingDelete, setInputValue, onSearch, isSingleSelect, }: ComboboxInnerProps): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=combobox-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-button.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-button.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAsBlD,wBAAgB,cAAc,CAAC,EAC9B,EAAE,EACF,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,UAAU,EACV,cAAc,EACd,SAAS,EACT,aAAa,EACb,IAAI,EACJ,OAAO,EACP,KAAK,EACL,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,cAAc,GACd,EAAE,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"combobox-button.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-button.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAsBlD,wBAAgB,cAAc,CAAC,EAC9B,EAAE,EACF,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EACb,IAAI,EACJ,OAAO,EACP,KAAK,EACL,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,cAAc,GACd,EAAE,kBAAkB,+BAgMpB"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useRecipe as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { ComboboxItem as
|
|
6
|
-
import { Tag as
|
|
7
|
-
import { ThemeColorVariable as l, ThemeSpaceVariable as
|
|
8
|
-
import { TreeViewCollapseIcon as
|
|
9
|
-
function
|
|
10
|
-
const s =
|
|
1
|
+
import { jsxs as L, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as ae } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useRecipe as se, Flex as F, Input as ce, Box as N } from "@chakra-ui/react";
|
|
4
|
+
import { Fragment as pe } from "react";
|
|
5
|
+
import { ComboboxItem as ie } from "./combobox-item.js";
|
|
6
|
+
import { Tag as de } from "../tag/tag.js";
|
|
7
|
+
import { ThemeColorVariable as l, ThemeSpaceVariable as H, ThemeIconSizeVariable as fe, ThemeRadiusVariable as ue } from "../../theme/theme-types.js";
|
|
8
|
+
import { TreeViewCollapseIcon as he } from "../icon/icons/tree-view-collapse-icon.js";
|
|
9
|
+
function ne() {
|
|
10
|
+
const s = ae.c(1);
|
|
11
11
|
let e;
|
|
12
|
-
return s[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
12
|
+
return s[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ n(N, { backgroundColor: l.NeutralContainer, width: "8px", borderRadius: "4px", marginRight: "-8px", _before: {
|
|
13
13
|
content: "''",
|
|
14
14
|
borderRadius: "4px",
|
|
15
15
|
marginLeft: "2px",
|
|
@@ -19,61 +19,62 @@ function re() {
|
|
|
19
19
|
backgroundColor: l.Surface
|
|
20
20
|
} }), s[0] = e) : e = s[0], e;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const e =
|
|
24
|
-
id:
|
|
25
|
-
asPlainText:
|
|
22
|
+
function Oe(s) {
|
|
23
|
+
const e = ae.c(68), {
|
|
24
|
+
id: X,
|
|
25
|
+
asPlainText: i,
|
|
26
26
|
inputValue: a,
|
|
27
27
|
selectedItems: o,
|
|
28
|
-
displayItems:
|
|
28
|
+
displayItems: K,
|
|
29
29
|
toggleItem: I,
|
|
30
|
+
clearSelection: U,
|
|
30
31
|
highlightState: c,
|
|
31
32
|
openState: r,
|
|
32
|
-
parentStrings:
|
|
33
|
-
size:
|
|
34
|
-
variant:
|
|
33
|
+
parentStrings: q,
|
|
34
|
+
size: G,
|
|
35
|
+
variant: J,
|
|
35
36
|
label: O,
|
|
36
37
|
placeHolderText: k,
|
|
37
38
|
isDisabled: p,
|
|
38
39
|
isReadOnly: f,
|
|
39
|
-
isInvalid:
|
|
40
|
+
isInvalid: M,
|
|
40
41
|
collapsed: _,
|
|
41
42
|
hasPendingDelete: d,
|
|
42
43
|
setHasPendingDelete: y,
|
|
43
44
|
setInputValue: u,
|
|
44
45
|
onSearch: h,
|
|
45
|
-
isSingleSelect:
|
|
46
|
+
isSingleSelect: D
|
|
46
47
|
} = s;
|
|
47
|
-
let D;
|
|
48
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
49
|
-
key: "combobox"
|
|
50
|
-
}, e[0] = D) : D = e[0];
|
|
51
|
-
const J = ae(D);
|
|
52
48
|
let R;
|
|
53
|
-
e[
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const M = R;
|
|
49
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
|
|
50
|
+
key: "combobox"
|
|
51
|
+
}, e[0] = R) : R = e[0];
|
|
52
|
+
const Q = se(R);
|
|
58
53
|
let T;
|
|
59
|
-
e[
|
|
60
|
-
|
|
54
|
+
e[1] !== Q || e[2] !== G || e[3] !== J ? (T = Q({
|
|
55
|
+
variant: J,
|
|
56
|
+
size: G
|
|
57
|
+
}), e[1] = Q, e[2] = G, e[3] = J, e[4] = T) : T = e[4];
|
|
58
|
+
const Y = T;
|
|
59
|
+
let V;
|
|
60
|
+
e[5] !== i || e[6] !== U || e[7] !== K || e[8] !== d || e[9] !== c || e[10] !== a || e[11] !== D || e[12] !== h || e[13] !== r || e[14] !== o || e[15] !== y || e[16] !== u || e[17] !== I ? (V = (t) => {
|
|
61
|
+
if (t.key === "Enter" && (t.preventDefault(), t.stopPropagation(), r.isOpen ? I(K[c.index]) : r.open()), t.key === "Escape") {
|
|
61
62
|
if (!r.isOpen)
|
|
62
63
|
return;
|
|
63
|
-
t.preventDefault(), t.stopPropagation(), r.close(),
|
|
64
|
+
t.preventDefault(), t.stopPropagation(), r.close(), i || (u(""), h?.(""));
|
|
64
65
|
}
|
|
65
|
-
t.key === "Backspace" ? a.length === 0 && o.length > 0 && !
|
|
66
|
-
}, e[5] =
|
|
67
|
-
const
|
|
68
|
-
let
|
|
69
|
-
e[
|
|
66
|
+
t.key === "Backspace" ? a.length === 0 && o.length > 0 && !i && (d ? (D ? U() : I(o[o.length - 1]), y(!1)) : y(!0)) : y(!1), t.key === "ArrowDown" && (r.isOpen ? c.next() : r.open()), t.key === "ArrowUp" && (r.isOpen ? c.previous() : r.open());
|
|
67
|
+
}, e[5] = i, e[6] = U, e[7] = K, e[8] = d, e[9] = c, e[10] = a, e[11] = D, e[12] = h, e[13] = r, e[14] = o, e[15] = y, e[16] = u, e[17] = I, e[18] = V) : V = e[18];
|
|
68
|
+
const Z = V;
|
|
69
|
+
let P;
|
|
70
|
+
e[19] !== c || e[20] !== h || e[21] !== r || e[22] !== u ? (P = (t) => {
|
|
70
71
|
t.preventDefault(), t.stopPropagation();
|
|
71
|
-
const
|
|
72
|
-
u(
|
|
73
|
-
}, e[
|
|
74
|
-
const
|
|
75
|
-
let
|
|
76
|
-
e[
|
|
72
|
+
const A = t.target.value;
|
|
73
|
+
u(A), h?.(A), c.set(0), r.open();
|
|
74
|
+
}, e[19] = c, e[20] = h, e[21] = r, e[22] = u, e[23] = P) : P = e[23];
|
|
75
|
+
const ee = P, C = o[0], v = o[o.length - 1], oe = r.isOpen || i || k;
|
|
76
|
+
let E;
|
|
77
|
+
e[24] !== oe ? (E = oe ? {
|
|
77
78
|
width: "100%"
|
|
78
79
|
} : {
|
|
79
80
|
position: "absolute",
|
|
@@ -85,61 +86,61 @@ function Ie(s) {
|
|
|
85
86
|
clipPath: "inset(50%)",
|
|
86
87
|
whiteSpace: "nowrap",
|
|
87
88
|
border: 0
|
|
88
|
-
}, e[
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
e[
|
|
89
|
+
}, e[24] = oe, e[25] = E) : E = e[25];
|
|
90
|
+
const te = E;
|
|
91
|
+
let $, j;
|
|
92
|
+
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
|
|
92
93
|
borderColor: l.Error,
|
|
93
94
|
boxShadow: `0 0 0 4px ${l.ErrorContainer}`,
|
|
94
95
|
backgroundColor: l.Surface
|
|
95
|
-
},
|
|
96
|
+
}, j = {
|
|
96
97
|
borderColor: l.Info,
|
|
97
98
|
boxShadow: `0 0 0 4px ${l.InfoContainer}`,
|
|
98
99
|
backgroundColor: l.Surface
|
|
99
|
-
}, e[
|
|
100
|
-
const
|
|
100
|
+
}, e[26] = $, e[27] = j) : ($ = e[26], j = e[27]);
|
|
101
|
+
const le = _ || D ? "nowrap" : "wrap";
|
|
101
102
|
let m;
|
|
102
|
-
e[
|
|
103
|
+
e[28] !== O ? (m = O && /* @__PURE__ */ n(N, { whiteSpace: "nowrap", children: O }), e[28] = O, e[29] = m) : m = e[29];
|
|
103
104
|
let g;
|
|
104
|
-
e[
|
|
105
|
-
o.length > 3 && /* @__PURE__ */
|
|
106
|
-
o.length > 2 && /* @__PURE__ */
|
|
107
|
-
o.length > 1 && /* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
] }) : o.map((t,
|
|
105
|
+
e[30] !== i || e[31] !== _ || e[32] !== d || e[33] !== v || e[34] !== o ? (g = !i && (_ ? o.length > 0 && v && /* @__PURE__ */ L(F, { gap: H.XSmall, flexShrink: "1", overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis", children: [
|
|
106
|
+
o.length > 3 && /* @__PURE__ */ n(ne, {}),
|
|
107
|
+
o.length > 2 && /* @__PURE__ */ n(ne, {}),
|
|
108
|
+
o.length > 1 && /* @__PURE__ */ n(de, { children: o.length - 1 }),
|
|
109
|
+
/* @__PURE__ */ n(ie, { isDeleting: d, item: v, asPlainText: i })
|
|
110
|
+
] }) : o.map((t, A) => /* @__PURE__ */ n(ie, { item: t, asPlainText: i, isDeleting: A === o.length - 1 && d }, t.id))), e[30] = i, e[31] = _, e[32] = d, e[33] = v, e[34] = o, e[35] = g) : g = e[35];
|
|
110
111
|
let b;
|
|
111
|
-
e[
|
|
112
|
-
let
|
|
113
|
-
e[
|
|
112
|
+
e[36] !== i || e[37] !== C || e[38] !== a || e[39] !== q || e[40] !== o.length ? (b = i && o.length > 0 && C && a === C.label && q[C.id]?.map(me), e[36] = i, e[37] = C, e[38] = a, e[39] = q, e[40] = o.length, e[41] = b) : b = e[41];
|
|
113
|
+
let z, B;
|
|
114
|
+
e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = {
|
|
114
115
|
color: l.OnSurfaceSubdued
|
|
115
|
-
},
|
|
116
|
+
}, B = {
|
|
116
117
|
cursor: "not-allowed",
|
|
117
118
|
color: l.OnSurfaceSubdued
|
|
118
|
-
}, e[
|
|
119
|
+
}, e[42] = z, e[43] = B) : (z = e[42], B = e[43]);
|
|
119
120
|
let S;
|
|
120
|
-
e[
|
|
121
|
+
e[44] !== X || e[45] !== te || e[46] !== a || e[47] !== p || e[48] !== f || e[49] !== ee || e[50] !== Z || e[51] !== k ? (S = /* @__PURE__ */ n(ce, { id: X, disabled: p, readOnly: f, onKeyDown: Z, unstyled: !0, value: a, autoComplete: "off", minWidth: H.XLarge, onChange: ee, placeholder: k, border: "none", flex: 1, color: l.OnSurface, outline: "none", _placeholder: z, _disabled: B, css: te }), e[44] = X, e[45] = te, e[46] = a, e[47] = p, e[48] = f, e[49] = ee, e[50] = Z, e[51] = k, e[52] = S) : S = e[52];
|
|
121
122
|
let x;
|
|
122
|
-
e[
|
|
123
|
+
e[53] !== g || e[54] !== b || e[55] !== S || e[56] !== le || e[57] !== m ? (x = /* @__PURE__ */ L(F, { flexWrap: le, gap: H.Small, overflow: "hidden", children: [
|
|
123
124
|
m,
|
|
124
125
|
g,
|
|
125
126
|
b,
|
|
126
127
|
S
|
|
127
|
-
] }), e[
|
|
128
|
-
const
|
|
128
|
+
] }), e[53] = g, e[54] = b, e[55] = S, e[56] = le, e[57] = m, e[58] = x) : x = e[58];
|
|
129
|
+
const re = p ? l.OnSurfaceSubdued : l.OnSurface;
|
|
129
130
|
let w;
|
|
130
|
-
e[
|
|
131
|
-
let
|
|
132
|
-
return e[
|
|
131
|
+
e[59] !== re ? (w = /* @__PURE__ */ n(F, { className: "combobox-dropdown-icon", justifyContent: "center", alignItems: "center", cursor: "pointer", children: /* @__PURE__ */ n(he, { size: fe.Small, color: re }) }), e[59] = re, e[60] = w) : w = e[60];
|
|
132
|
+
let W;
|
|
133
|
+
return e[61] !== p || e[62] !== M || e[63] !== f || e[64] !== Y || e[65] !== x || e[66] !== w ? (W = /* @__PURE__ */ L(F, { css: Y, "aria-disabled": p, "aria-readonly": f, "aria-invalid": M, borderRadius: ue.Small, padding: H.Small, _invalid: $, _focusWithin: j, children: [
|
|
133
134
|
x,
|
|
134
135
|
w
|
|
135
|
-
] }), e[
|
|
136
|
+
] }), e[61] = p, e[62] = M, e[63] = f, e[64] = Y, e[65] = x, e[66] = w, e[67] = W) : W = e[67], W;
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
/* @__PURE__ */
|
|
138
|
+
function me(s) {
|
|
139
|
+
return /* @__PURE__ */ L(pe, { children: [
|
|
140
|
+
/* @__PURE__ */ n(N, { color: l.OnSurfaceSubdued, textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "nowrap", children: s }),
|
|
141
|
+
/* @__PURE__ */ n(N, { color: l.OnSurfaceSubdued, children: "/" })
|
|
141
142
|
] }, s);
|
|
142
143
|
}
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
Oe as ComboboxButton
|
|
145
146
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAIX,aAAa,EAGb,MAAM,SAAS,CAAC;AA0GjB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EACxB,EAAE,EACF,KAAU,EACV,cAAsB,EACtB,aAAkB,EAClB,MAAgB,EAChB,IAAW,EACX,OAAmB,EACnB,WAAmB,EACnB,QAAQ,EACR,KAAK,EACL,eAAe,EACf,QAAQ,EACR,MAAM,EACN,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,SAAiB,EACjB,WAAuB,EACvB,qBAAqB,EACrB,GAAG,KAAK,EACR,EAAE,aAAa,+
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAIX,aAAa,EAGb,MAAM,SAAS,CAAC;AA0GjB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EACxB,EAAE,EACF,KAAU,EACV,cAAsB,EACtB,aAAkB,EAClB,MAAgB,EAChB,IAAW,EACX,OAAmB,EACnB,WAAmB,EACnB,QAAQ,EACR,KAAK,EACL,eAAe,EACf,QAAQ,EACR,MAAM,EACN,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,SAAiB,EACjB,WAAuB,EACvB,qBAAqB,EACrB,GAAG,KAAK,EACR,EAAE,aAAa,+BA4Uf"}
|