@simplexable/ui 0.2.1 → 0.2.2
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 +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10268,17 +10268,18 @@ function S_({ activeDescendant: e, ariaProps: r, clearSelection: i, disabled: a
|
|
|
10268
10268
|
return l ? /* @__PURE__ */ n("div", {
|
|
10269
10269
|
className: "sx-select__control-row",
|
|
10270
10270
|
children: [
|
|
10271
|
-
/* @__PURE__ */ t("
|
|
10271
|
+
/* @__PURE__ */ t("div", {
|
|
10272
10272
|
...r,
|
|
10273
10273
|
"aria-activedescendant": e,
|
|
10274
10274
|
"aria-controls": u ? f : void 0,
|
|
10275
10275
|
"aria-expanded": u,
|
|
10276
10276
|
"aria-haspopup": "listbox",
|
|
10277
|
+
"aria-label": d,
|
|
10277
10278
|
className: x_("sx-field__control", "sx-select__trigger", !o && "sx-select__trigger--placeholder"),
|
|
10278
10279
|
id: c,
|
|
10279
10280
|
ref: g,
|
|
10280
10281
|
role: "combobox",
|
|
10281
|
-
|
|
10282
|
+
tabIndex: 0,
|
|
10282
10283
|
onClick: h,
|
|
10283
10284
|
onKeyDown: s,
|
|
10284
10285
|
children: /* @__PURE__ */ t("span", {
|
|
@@ -10291,7 +10292,9 @@ function S_({ activeDescendant: e, ariaProps: r, clearSelection: i, disabled: a
|
|
|
10291
10292
|
className: "sx-select__clear",
|
|
10292
10293
|
type: "button",
|
|
10293
10294
|
onClick: i,
|
|
10294
|
-
onMouseDown: (e) =>
|
|
10295
|
+
onMouseDown: (e) => {
|
|
10296
|
+
e.preventDefault(), e.stopPropagation();
|
|
10297
|
+
},
|
|
10295
10298
|
children: /* @__PURE__ */ t(Ye, {
|
|
10296
10299
|
"aria-hidden": !0,
|
|
10297
10300
|
size: 14,
|
|
@@ -10304,7 +10307,10 @@ function S_({ activeDescendant: e, ariaProps: r, clearSelection: i, disabled: a
|
|
|
10304
10307
|
disabled: a,
|
|
10305
10308
|
tabIndex: -1,
|
|
10306
10309
|
type: "button",
|
|
10307
|
-
onClick:
|
|
10310
|
+
onClick: () => {
|
|
10311
|
+
h(), g.current?.focus();
|
|
10312
|
+
},
|
|
10313
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
10308
10314
|
children: t(u ? Fe : Ne, {
|
|
10309
10315
|
"aria-hidden": !0,
|
|
10310
10316
|
size: 16,
|