asma-ui-core 3.80.1 → 3.80.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.
@@ -1,57 +1,58 @@
1
1
  import { cn as i } from "../../../helpers/cn.js";
2
- import { resolveSx as E } from "../../../helpers/sx.js";
3
- import { CloseIcon as L } from "../../icons/close-icon/CloseIcon.js";
4
- import { consumerOverrides as w } from "../../../helpers/classOverride.js";
5
- import { getChipPadding as U } from "./chipPadding.js";
2
+ import { resolveSx as $ } from "../../../helpers/sx.js";
3
+ import { CloseIcon as E } from "../../icons/close-icon/CloseIcon.js";
4
+ import { consumerOverrides as x } from "../../../helpers/classOverride.js";
5
+ import { getChipPadding as L } from "./chipPadding.js";
6
+ import U from "./StyledChip.module.js";
6
7
  import { forwardRef as q } from "react";
7
- import { jsx as s, jsxs as A } from "react/jsx-runtime";
8
- var Z = q(({ dataTest: u, label: c, size: r = "medium", disabled: t, readOnly: o, clickable: x, icon: _, avatar: g, deleteIcon: k, onDelete: m, onClick: l, onMouseDown: y, onMouseUp: S, className: h, classes: a, sx: j, tabIndex: v, "aria-label": D, role: p, "aria-checked": R, "aria-readonly": B, "data-hovered": C, "data-focus": M, variant: F, color: G }, N) => {
9
- const n = !o && !t && (!!x || !!l), f = g ?? _, b = !!(m && !o), d = U(r, !!f, b), I = {
8
+ import { jsx as m, jsxs as A } from "react/jsx-runtime";
9
+ var z = q(({ dataTest: g, label: l, size: r = "medium", disabled: t, readOnly: o, clickable: b, icon: w, avatar: u, deleteIcon: _, onDelete: c, onClick: p, onMouseDown: k, onMouseUp: y, className: h, classes: a, sx: S, tabIndex: v, "aria-label": j, role: s, "aria-checked": C, "aria-readonly": R, "data-hovered": B, "data-focus": D, variant: F, color: G }, M) => {
10
+ const n = !o && !t && (!!b || !!p), f = u ?? w, d = L(r, !!f, !!(c && !o)), N = {
10
11
  paddingTop: d.top,
11
12
  paddingRight: d.right,
12
13
  paddingBottom: d.bottom,
13
14
  paddingLeft: d.left
15
+ }, I = (e) => {
16
+ e.stopPropagation(), c?.(e);
14
17
  }, K = (e) => {
15
- e.stopPropagation(), m?.(e);
16
- }, P = (e) => {
17
- n && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), l?.(e));
18
- }, W = w(h, "width"), $ = w(h, "max-width");
18
+ n && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), p?.(e));
19
+ }, P = x(h, "width"), W = x(h, "max-width");
19
20
  return /* @__PURE__ */ A("div", {
20
- ref: N,
21
- "data-testid": u,
22
- "aria-label": D,
23
- "data-hovered": C,
24
- "data-focus": M,
25
- role: p ?? (n ? "button" : void 0),
26
- "aria-checked": p ? R : void 0,
27
- "aria-readonly": p ? B : void 0,
21
+ ref: M,
22
+ "data-testid": g,
23
+ "aria-label": j,
24
+ "data-hovered": B,
25
+ "data-focus": D,
26
+ role: s ?? (n ? "button" : void 0),
27
+ "aria-checked": s ? C : void 0,
28
+ "aria-readonly": s ? R : void 0,
28
29
  tabIndex: o ? void 0 : n ? v ?? 0 : v,
29
- onClick: t || o ? void 0 : l,
30
- onKeyDown: t || o ? void 0 : P,
31
- onMouseDown: t || o ? void 0 : y,
32
- onMouseUp: t || o ? void 0 : S,
33
- className: i("box-border inline-flex items-center gap-1 rounded-[25px] border border-solid border-delta-300 bg-white text-base text-delta-700", !W && "w-fit", !$ && "max-w-full", r === "small" ? "h-6" : "h-8", o && "pointer-events-none", t && "pointer-events-none opacity-[0.38]", "data-[focus]:!border-focus-ring data-[focus]:bg-gama-25 data-[focus]:shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]", b && "focus-within:!border-focus-ring focus-within:bg-gama-25 focus-within:shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]", n && i("cursor-pointer outline-none", "data-[hovered]:border-gama-200 data-[hovered]:bg-gama-25 hover:border-gama-200 hover:bg-gama-25", "focus-visible:!border-focus-ring focus-visible:bg-gama-25 focus-visible:shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]", "active:!border-gama-400 active:bg-gama-25 active:shadow-[0_0_0_2px_var(--colors-gama-400)]"), a?.root, h),
30
+ onClick: t || o ? void 0 : p,
31
+ onKeyDown: t || o ? void 0 : K,
32
+ onMouseDown: t || o ? void 0 : k,
33
+ onMouseUp: t || o ? void 0 : y,
34
+ className: i("box-border inline-flex items-center gap-1 rounded-[25px] border border-solid border-delta-300 bg-white text-base text-delta-700", !P && "w-fit", !W && "max-w-full", r === "small" ? "h-6" : "h-8", o && "pointer-events-none", t && "pointer-events-none opacity-[0.38]", n && i("cursor-pointer outline-none", "data-[hovered]:border-gama-200 data-[hovered]:bg-gama-25 hover:border-gama-200 hover:bg-gama-25", "active:!border-gama-400 active:bg-gama-25 active:shadow-[0_0_0_2px_var(--colors-gama-400)]"), U["focus-ring"], a?.root, h),
34
35
  style: {
35
- ...I,
36
- ...E(j)
36
+ ...N,
37
+ ...$(S)
37
38
  },
38
39
  children: [
39
- f && /* @__PURE__ */ s("span", {
40
- className: i("flex shrink-0 items-center justify-center", r === "small" ? "h-[18px] w-[18px]" : "h-6 w-6", g ? a?.avatar : a?.icon),
40
+ f && /* @__PURE__ */ m("span", {
41
+ className: i("flex shrink-0 items-center justify-center", r === "small" ? "h-[18px] w-[18px]" : "h-6 w-6", u ? a?.avatar : a?.icon),
41
42
  children: f
42
43
  }),
43
- /* @__PURE__ */ s("span", {
44
+ /* @__PURE__ */ m("span", {
44
45
  className: i("min-w-0 truncate", a?.label),
45
- children: c
46
+ children: l
46
47
  }),
47
- m && !o && /* @__PURE__ */ s("button", {
48
+ c && !o && /* @__PURE__ */ m("button", {
48
49
  type: "button",
49
- "data-testid": `${u}-delete`,
50
- "aria-label": typeof c == "string" ? `Remove ${c}` : "Remove",
51
- onClick: K,
50
+ "data-testid": `${g}-delete`,
51
+ "aria-label": typeof l == "string" ? `Remove ${l}` : "Remove",
52
+ onClick: I,
52
53
  disabled: t,
53
54
  className: i("flex shrink-0 items-center justify-center rounded-full border border-solid border-delta-100 bg-delta-50 p-0 text-delta-700 [outline:none]", r === "small" ? "h-[18px] w-[18px]" : "h-5 w-5", a?.deleteIcon),
54
- children: k ?? /* @__PURE__ */ s(L, {
55
+ children: _ ?? /* @__PURE__ */ m(E, {
55
56
  height: r === "small" ? 14 : 16,
56
57
  width: r === "small" ? 14 : 16,
57
58
  className: "min-w-0 shrink-0"
@@ -61,5 +62,5 @@ var Z = q(({ dataTest: u, label: c, size: r = "medium", disabled: t, readOnly: o
61
62
  });
62
63
  });
63
64
  export {
64
- Z as StyledChip
65
+ z as StyledChip
65
66
  };
@@ -0,0 +1,4 @@
1
+ var e = { "focus-ring": "_focus-ring_1o5z2_1" };
2
+ export {
3
+ e as default
4
+ };
@@ -16,19 +16,19 @@ var d = () => ({
16
16
  maxHeight: 40,
17
17
  lineHeight: "24px",
18
18
  fontSize: 16
19
- }), b = (e) => e ? {
19
+ }), s = (e) => e ? {
20
20
  top: 0,
21
21
  transform: "translateY(-50%)"
22
22
  } : {
23
23
  top: "50%",
24
24
  transform: "translateY(-50%)"
25
- }, s = ({ focused: e, error: r, disabled: t, readOnly: o, borderless: a }) => n("pointer-events-none absolute inset-0 rounded border border-solid transition-colors", a && !e ? "border-transparent" : t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-[3px] border-focus-ring" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), x = ({ focused: e, error: r, disabled: t, readOnly: o, notched: a = !0 }) => n("pointer-events-none absolute z-0 m-0 box-border min-w-0 overflow-hidden rounded border border-solid transition-colors", a ? "inset-x-0 bottom-0 top-[-5px] px-2 py-0" : "inset-0", t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-[3px] border-focus-ring" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), g = (e) => n("invisible block h-[11px] overflow-hidden p-0 text-xs leading-[23px] transition-[max-width] duration-150", e ? "max-w-full" : "max-w-[0.01px]"), p = ({ shrink: e, focused: r, error: t, disabled: o, readOnly: a }) => n("pointer-events-none absolute left-[14px] z-10 max-w-[calc(100%-1.75rem)] truncate transition-colors duration-150", o ? "text-delta-300" : a ? "text-delta-800" : t ? "text-error-500" : r ? "text-gama-500" : e ? "text-delta-800" : "text-delta-500", e ? "bg-white px-1 text-xs leading-[16px] tracking-[0.24px]" : "text-base leading-[23px] tracking-[0.00938em]");
25
+ }, x = ({ focused: e, error: r, disabled: t, readOnly: o, borderless: a }) => n("pointer-events-none absolute inset-0 rounded border border-solid transition-colors", a && !e ? "border-transparent" : t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-focus-ring shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), b = ({ focused: e, error: r, disabled: t, readOnly: o, notched: a = !0 }) => n("pointer-events-none absolute z-0 m-0 box-border min-w-0 overflow-hidden rounded border border-solid transition-colors", a ? "inset-x-0 bottom-0 top-[-5px] px-2 py-0" : "inset-0", t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-focus-ring shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), g = (e) => n("block h-[11px] overflow-hidden bg-white p-0 text-xs leading-[23px] text-transparent transition-[max-width] duration-150", e ? "max-w-full" : "max-w-[0.01px]"), p = ({ shrink: e, focused: r, error: t, disabled: o, readOnly: a }) => n("pointer-events-none absolute left-[14px] z-10 max-w-[calc(100%-1.75rem)] truncate transition-colors duration-150", o ? "text-delta-300" : a ? "text-delta-800" : t ? "text-error-500" : r ? "text-gama-500" : e ? "text-delta-800" : "text-delta-500", e ? "bg-white px-1 text-xs leading-[16px] tracking-[0.24px]" : "text-base leading-[23px] tracking-[0.00938em]");
26
26
  export {
27
27
  p as floatingLabelClass,
28
- b as floatingLabelLayoutStyle,
28
+ s as floatingLabelLayoutStyle,
29
29
  g as notchedLegendClass,
30
- x as notchedOutlineClass,
31
- s as outlineClass,
30
+ b as notchedOutlineClass,
31
+ x as outlineClass,
32
32
  l as singleLineInputLayoutStyle,
33
33
  d as singleLineShellLayoutStyle
34
34
  };
@@ -14,7 +14,7 @@ var f = ({ id: r, children: o, selected: t, active: i, disabled: a, className: n
14
14
  i && /* @__PURE__ */ e("span", {
15
15
  "aria-hidden": "true",
16
16
  "data-select-active-indicator": !0,
17
- className: "pointer-events-none absolute inset-y-0 left-0 border-l border-solid border-focus-ring"
17
+ className: "pointer-events-none absolute inset-y-0 left-0 border-l-[4px] border-solid border-focus-ring"
18
18
  }),
19
19
  /* @__PURE__ */ e("span", {
20
20
  className: "flex w-6 justify-center",
@@ -1,58 +1,58 @@
1
- var e = "_tbody_z31fh_124", _ = "_expanded_row_z31fh_174", l = "_selected_z31fh_192", t = "_shadowed_z31fh_217", a = "_resizer_z31fh_274", o = "_isResizing_z31fh_286", h = {
2
- "asma-ui-table-styled-table": "_asma-ui-table-styled-table_z31fh_1",
3
- "table-wrapper": "_table-wrapper_z31fh_26",
4
- "table-shell": "_table-shell_z31fh_33",
5
- "table-wrapper--no-rows": "_table-wrapper--no-rows_z31fh_39",
6
- "table-wrapper--proxy": "_table-wrapper--proxy_z31fh_42",
7
- "table-wrapper--proxy-bottom": "_table-wrapper--proxy-bottom_z31fh_43",
8
- "table-wrapper-fetching": "_table-wrapper-fetching_z31fh_53",
9
- "table-scroll": "_table-scroll_z31fh_56",
10
- "table-x--fill-height": "_table-x--fill-height_z31fh_65",
11
- "table-x": "_table-x_z31fh_65",
12
- "table-content": "_table-content_z31fh_80",
13
- "table-header--sticky": "_table-header--sticky_z31fh_85",
14
- "table-hscroll": "_table-hscroll_z31fh_90",
15
- "table-hscroll__content": "_table-hscroll__content_z31fh_100",
16
- "no-rows-overlay-container": "_no-rows-overlay-container_z31fh_103",
17
- "no-rows-overlay-content": "_no-rows-overlay-content_z31fh_111",
18
- "styled-table": "_styled-table_z31fh_115",
19
- tbody: e,
20
- "loading-icon": "_loading-icon_z31fh_129",
21
- "t-row": "_t-row_z31fh_136",
22
- "t-cell": "_t-cell_z31fh_136",
23
- "action-cell": "_action-cell_z31fh_146",
24
- "fixed-cell": "_fixed-cell_z31fh_150",
25
- "fixed-right-cell": "_fixed-right-cell_z31fh_153",
26
- expanded_row: _,
27
- selected: l,
28
- "single-selection": "_single-selection_z31fh_195",
29
- "action-cell--no-shadow": "_action-cell--no-shadow_z31fh_213",
30
- shadowed: t,
31
- "shadowed-right": "_shadowed-right_z31fh_253",
32
- "is-loading": "_is-loading_z31fh_258",
33
- "action-cell-default-background": "_action-cell-default-background_z31fh_261",
34
- "fixed-cell-default-background": "_fixed-cell-default-background_z31fh_264",
35
- "fixed-right-cell-default-background": "_fixed-right-cell-default-background_z31fh_267",
36
- "sortable-column": "_sortable-column_z31fh_270",
37
- resizer: a,
38
- isResizing: o,
39
- "hide-table-header": "_hide-table-header_z31fh_298",
40
- "show-table-header": "_show-table-header_z31fh_302",
41
- "table-header": "_table-header_z31fh_85",
42
- "hide-header": "_hide-header_z31fh_338",
43
- "t-cell__actions": "_t-cell__actions_z31fh_341",
44
- "t-cell__actions--no-shadow": "_t-cell__actions--no-shadow_z31fh_350",
45
- "t-cell__fixed": "_t-cell__fixed_z31fh_355",
46
- "t-cell__fixed-right": "_t-cell__fixed-right_z31fh_363",
47
- "sort-icon": "_sort-icon_z31fh_371",
48
- "header-content": "_header-content_z31fh_375",
49
- "table-footer--sticky": "_table-footer--sticky_z31fh_406",
50
- "table-footer--inline": "_table-footer--inline_z31fh_417",
51
- "table-bottom": "_table-bottom_z31fh_428",
52
- "table-bottom--sticky": "_table-bottom--sticky_z31fh_442",
53
- "cursor-not-allowed": "_cursor-not-allowed_z31fh_446",
54
- "select-control": "_select-control_z31fh_450"
1
+ var t = "_tbody_yxsst_124", e = "_expanded_row_yxsst_174", _ = "_selected_yxsst_192", s = "_shadowed_yxsst_217", l = "_resizer_yxsst_274", a = "_isResizing_yxsst_286", o = {
2
+ "asma-ui-table-styled-table": "_asma-ui-table-styled-table_yxsst_1",
3
+ "table-wrapper": "_table-wrapper_yxsst_26",
4
+ "table-shell": "_table-shell_yxsst_33",
5
+ "table-wrapper--no-rows": "_table-wrapper--no-rows_yxsst_39",
6
+ "table-wrapper--proxy": "_table-wrapper--proxy_yxsst_42",
7
+ "table-wrapper--proxy-bottom": "_table-wrapper--proxy-bottom_yxsst_43",
8
+ "table-wrapper-fetching": "_table-wrapper-fetching_yxsst_53",
9
+ "table-scroll": "_table-scroll_yxsst_56",
10
+ "table-x--fill-height": "_table-x--fill-height_yxsst_65",
11
+ "table-x": "_table-x_yxsst_65",
12
+ "table-content": "_table-content_yxsst_80",
13
+ "table-header--sticky": "_table-header--sticky_yxsst_85",
14
+ "table-hscroll": "_table-hscroll_yxsst_90",
15
+ "table-hscroll__content": "_table-hscroll__content_yxsst_100",
16
+ "no-rows-overlay-container": "_no-rows-overlay-container_yxsst_103",
17
+ "no-rows-overlay-content": "_no-rows-overlay-content_yxsst_111",
18
+ "styled-table": "_styled-table_yxsst_115",
19
+ tbody: t,
20
+ "loading-icon": "_loading-icon_yxsst_129",
21
+ "t-row": "_t-row_yxsst_136",
22
+ "t-cell": "_t-cell_yxsst_136",
23
+ "action-cell": "_action-cell_yxsst_146",
24
+ "fixed-cell": "_fixed-cell_yxsst_150",
25
+ "fixed-right-cell": "_fixed-right-cell_yxsst_153",
26
+ expanded_row: e,
27
+ selected: _,
28
+ "single-selection": "_single-selection_yxsst_195",
29
+ "action-cell--no-shadow": "_action-cell--no-shadow_yxsst_213",
30
+ shadowed: s,
31
+ "shadowed-right": "_shadowed-right_yxsst_253",
32
+ "is-loading": "_is-loading_yxsst_258",
33
+ "action-cell-default-background": "_action-cell-default-background_yxsst_261",
34
+ "fixed-cell-default-background": "_fixed-cell-default-background_yxsst_264",
35
+ "fixed-right-cell-default-background": "_fixed-right-cell-default-background_yxsst_267",
36
+ "sortable-column": "_sortable-column_yxsst_270",
37
+ resizer: l,
38
+ isResizing: a,
39
+ "hide-table-header": "_hide-table-header_yxsst_298",
40
+ "show-table-header": "_show-table-header_yxsst_302",
41
+ "table-header": "_table-header_yxsst_85",
42
+ "hide-header": "_hide-header_yxsst_338",
43
+ "t-cell__actions": "_t-cell__actions_yxsst_341",
44
+ "t-cell__actions--no-shadow": "_t-cell__actions--no-shadow_yxsst_350",
45
+ "t-cell__fixed": "_t-cell__fixed_yxsst_355",
46
+ "t-cell__fixed-right": "_t-cell__fixed-right_yxsst_363",
47
+ "sort-icon": "_sort-icon_yxsst_371",
48
+ "header-content": "_header-content_yxsst_375",
49
+ "table-footer--sticky": "_table-footer--sticky_yxsst_406",
50
+ "table-footer--inline": "_table-footer--inline_yxsst_417",
51
+ "table-bottom": "_table-bottom_yxsst_428",
52
+ "table-bottom--sticky": "_table-bottom--sticky_yxsst_442",
53
+ "cursor-not-allowed": "_cursor-not-allowed_yxsst_446",
54
+ "select-control": "_select-control_yxsst_450"
55
55
  };
56
56
  export {
57
- h as default
57
+ o as default
58
58
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.80.1",
6
+ "version": "3.80.2",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",