asma-ui-core 3.107.2 → 3.107.3

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.
@@ -1,27 +1,26 @@
1
1
  import { cn as u } from "../../../helpers/cn.js";
2
- import { StyledSelectItem as h } from "../select/StyledSelectItem.js";
3
- import { useEffect as x, useRef as N } from "react";
4
- import { jsx as l, jsxs as i } from "react/jsx-runtime";
5
- var j = ({ dataTest: o, visible: m, selectedIso2: n, activeIndex: s, optionId: r, onSelect: c, listId: d, label: f, renderFlag: p, className: b }) => {
6
- const a = N(null);
7
- return x(() => {
8
- s !== null && a.current?.querySelector(`#${CSS.escape(r(s))}`)?.scrollIntoView({ block: "nearest" });
2
+ import { StyledSelectItem as x } from "../select/StyledSelectItem.js";
3
+ import { useEffect as w, useRef as b } from "react";
4
+ import { jsx as l, jsxs as r } from "react/jsx-runtime";
5
+ var g = ({ dataTest: o, visible: n, selectedIso2: m, activeIndex: s, optionId: t, onSelect: c, listId: f, label: d, renderFlag: p, className: h }) => {
6
+ const a = b(null);
7
+ return w(() => {
8
+ s !== null && a.current?.querySelector(`#${CSS.escape(t(s))}`)?.scrollIntoView({ block: "nearest" });
9
9
  }), /* @__PURE__ */ l("ul", {
10
10
  ref: a,
11
- id: d,
11
+ id: f,
12
12
  role: "listbox",
13
- "aria-label": f,
13
+ "aria-label": d,
14
14
  "data-testid": `${o}-listbox`,
15
- className: u("m-0 min-h-0 flex-1 list-none overflow-y-auto p-0", b),
16
- children: m.map((e, t) => /* @__PURE__ */ l(h, {
17
- id: r(t),
18
- selected: e.iso2 === n,
19
- active: t === s,
15
+ className: u("m-0 min-h-0 flex-1 list-none overflow-y-auto p-0", "[&>li:not(:last-child)]:shadow-[inset_0_-1px_0_var(--colors-delta-200)]", h),
16
+ children: n.map((e, i) => /* @__PURE__ */ l(x, {
17
+ id: t(i),
18
+ selected: e.iso2 === m,
19
+ active: i === s,
20
20
  onClick: () => c(e.iso2),
21
- className: "border-0 border-b border-solid border-delta-100",
22
- children: /* @__PURE__ */ i("span", {
21
+ children: /* @__PURE__ */ r("span", {
23
22
  className: "flex w-full items-center justify-between gap-2",
24
- children: [/* @__PURE__ */ i("span", {
23
+ children: [/* @__PURE__ */ r("span", {
25
24
  className: "flex min-w-0 items-center gap-2",
26
25
  children: [p?.(e.iso2, "eager"), /* @__PURE__ */ l("span", {
27
26
  className: "truncate",
@@ -36,5 +35,5 @@ var j = ({ dataTest: o, visible: m, selectedIso2: n, activeIndex: s, optionId: r
36
35
  });
37
36
  };
38
37
  export {
39
- j as CountryCodeOptions
38
+ g as CountryCodeOptions
40
39
  };
@@ -149,7 +149,7 @@ var re = ({ dataTest: r, countries: g, value: s, onChange: A, disabled: c, selec
149
149
  anchorEl: B,
150
150
  onClose: e.dismiss,
151
151
  tabIntoContent: !1,
152
- slotProps: { paper: { className: "flex max-h-80 w-80 flex-col overflow-hidden" } },
152
+ slotProps: { paper: { className: "flex max-h-80 w-80 flex-col overflow-hidden py-2" } },
153
153
  children: N
154
154
  })] });
155
155
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.107.2",
6
+ "version": "3.107.3",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",