@orfium/ictinus 5.26.0 → 5.28.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/dist/index.js CHANGED
@@ -17937,33 +17937,7 @@ const kD = (e) => e, ae = kD(fe()), TD = (e) => ({
17937
17937
  }], Ot = ae;
17938
17938
  Ot.toDate(), Ot.subtract(1, "day").toDate(), Ot.subtract(2, "day").toDate(), Ot.subtract(4, "day").toDate();
17939
17939
  Ot.subtract(7, "day").toDate(), Ot.add(7, "day").toDate(), Ot.subtract(7, "day").toDate(), Ot.add(7, "day").toDate();
17940
- const LD = () => (e) => /* @__PURE__ */ y("max-height:inherit;overflow:auto;background-color:", e.tokens.colors.get("palette.tertiary.base"), ";margin-top:", e.globals.spacing.get("4"), ";box-shadow:", e.tokens.boxShadow.get("3"), ";border-radius:", e.dimension.borderRadius.get("md"), ";border-color:", e.tokens.colors.get("borderColor.decorative.default"), ";", ""), Ws = {
17941
- single: {
17942
- minWidth: 120,
17943
- maxWidth: 300
17944
- },
17945
- multi: {
17946
- minWidth: 140,
17947
- maxWidth: 440
17948
- },
17949
- maxHeight: 340
17950
- }, MD = 253, ID = {
17951
- height: {
17952
- value: "{sizing.9}",
17953
- type: "sizing",
17954
- description: "Sets fixed height for filter"
17955
- }
17956
- }, BD = (e) => ze(ID, e), qD = ({
17957
- isActive: e = !1,
17958
- isPopulated: t = !1,
17959
- isMulti: r = !1,
17960
- isDisabled: n
17961
- }) => (o) => {
17962
- const a = BD(o), i = (l = !1) => e ? o.tokens.colors.get("palette.primary.contrast") : l ? o.tokens.colors.get("palette.secondary.muted") : o.tokens.colors.get("palette.secondary.base");
17963
- return /* @__PURE__ */ y("display:flex;align-items:center;cursor:", n ? "not-allowed" : "pointer", ";height:", a("height"), ";padding:0 ", o.dimension.spacing.get("md"), " 0 ", o.dimension.spacing.get("lg"), ";max-width:", $(Ws[r ? "multi" : "single"].maxWidth), ";gap:", o.dimension.spacing.get("xs"), ";background-color:", i(), ";color:", o.tokens.colors.get(e ? "textColor.inverted.primary" : "textColor.default.active"), ";border:", o.dimension.borderWidth.get("default"), " solid ", o.tokens.colors.get("borderColor.interactive.default"), ";border-radius:", o.dimension.borderRadius.get("circle"), ";", U(o.tokens.typography.get("normal.label02")), ";&:not([disabled]){&:focus-visible,&:hover{background-color:", i(!0), ";}}transition:background-color 0.1s ease-in-out;opacity:", n ? o.tokens.disabledState.get("default") : 1, ";", "");
17964
- }, DD = ({
17965
- isActive: e
17966
- }) => () => /* @__PURE__ */ y("transform:rotate(", e ? "180" : "0", "deg);", be(0.2), ";", ""), c1 = {
17940
+ const LD = () => (e) => /* @__PURE__ */ y("max-height:inherit;overflow:auto;background-color:", e.tokens.colors.get("palette.tertiary.base"), ";margin-top:", e.globals.spacing.get("4"), ";box-shadow:", e.tokens.boxShadow.get("3"), ";border-radius:", e.dimension.borderRadius.get("md"), ";border-color:", e.tokens.colors.get("borderColor.decorative.default"), ";", ""), c1 = {
17967
17941
  blue: {
17968
17942
  text: "textColor.default.active",
17969
17943
  border: "palette.primaryAlt.contrast",
@@ -17994,7 +17968,7 @@ const LD = () => (e) => /* @__PURE__ */ y("max-height:inherit;overflow:auto;back
17994
17968
  border: "borderColor.interactive.warning",
17995
17969
  fill: "palette.warning.muted"
17996
17970
  }
17997
- }, ND = {
17971
+ }, MD = {
17998
17972
  normal: {
17999
17973
  height: {
18000
17974
  value: "{sizing.6}",
@@ -18009,16 +17983,16 @@ const LD = () => (e) => /* @__PURE__ */ y("max-height:inherit;overflow:auto;back
18009
17983
  description: "sets fixed height for small tag"
18010
17984
  }
18011
17985
  }
18012
- }, HD = (e) => ze(ND, e), FD = ({
17986
+ }, ID = (e) => ze(MD, e), BD = ({
18013
17987
  size: e = "normal",
18014
17988
  color: t = "blue",
18015
17989
  isSelectable: r,
18016
17990
  isClearable: n,
18017
17991
  isSelected: o
18018
17992
  }) => (a) => {
18019
- const i = HD(a), l = r || n, s = () => l ? o ? a.tokens.colors.get("palette.secondary.muted") : a.tokens.colors.get("palette.secondary.base") : a.tokens.colors.get(c1[t].fill), c = e === "normal" ? "normal.label02" : "normal.label03";
17993
+ const i = ID(a), l = r || n, s = () => l ? o ? a.tokens.colors.get("palette.secondary.muted") : a.tokens.colors.get("palette.secondary.base") : a.tokens.colors.get(c1[t].fill), c = e === "normal" ? "normal.label02" : "normal.label03";
18020
17994
  return /* @__PURE__ */ y("display:flex;justify-content:center;align-items:center;height:", i(`${e}.height`), ";width:fit-content;box-sizing:border-box;gap:", a.dimension.spacing.get("xs"), ";padding:", `${a.dimension.spacing.get("2xs")} ${a.dimension.spacing.get(e === "normal" ? "sm" : "xs")}`, ";cursor:", r ? "pointer" : "auto", ";background:", s(), ";color:", l ? a.tokens.colors.get(c1.blue.text) : a.tokens.colors.get(c1[t].text), ";border:", a.dimension.borderWidth.get("default"), " solid;border-color:", l ? a.tokens.colors.get("borderColor.interactive.default") : a.tokens.colors.get(c1[t].border), ";border-radius:", a.dimension.borderRadius.get(e === "normal" ? "md" : "sm"), ";&:hover{background:", r ? a.tokens.colors.get("palette.secondary.muted") : null, ";}&:focus-visible{background:", l ? a.tokens.colors.get("palette.secondary.muted") : null, ";border-color:", l ? a.tokens.colors.get("borderColor.interactive.active") : null, ";}", U(a.tokens.typography.get(c)), " ", L1, ";", "");
18021
- }, zD = () => (e) => /* @__PURE__ */ y("/** @TODO: revisit all these styles when Interactive Icon is implemented */width:", $(16), ";height:", $(16), ";display:flex;align-items:center;justify-content:center;cursor:pointer;&:hover{background:", e.tokens.state.get("backgroundColor.hover"), ";border-radius:", e.globals.borderRadius.get("7"), ";}", ""), VD = ({
17995
+ }, qD = () => (e) => /* @__PURE__ */ y("/** @TODO: revisit all these styles when Interactive Icon is implemented */width:", $(16), ";height:", $(16), ";display:flex;align-items:center;justify-content:center;cursor:pointer;&:hover{background:", e.tokens.state.get("backgroundColor.hover"), ";border-radius:", e.globals.borderRadius.get("7"), ";}", ""), DD = ({
18022
17996
  color: e = "neutral",
18023
17997
  iconName: t,
18024
17998
  onSelect: r,
@@ -18028,7 +18002,7 @@ const LD = () => (e) => /* @__PURE__ */ y("max-height:inherit;overflow:auto;back
18028
18002
  }) => {
18029
18003
  const i = D(), l = r && !n, s = !!n, c = l || s, u = W((C) => {
18030
18004
  C.key === "Enter" && l && r && r(), C.key === "Enter" && s && n && n();
18031
- }, [s, l, n, r]), p = Q(() => l && o ? /* @__PURE__ */ d(H, { dataTestId: `${a}_tag_prefix`, size: i.dimension.sizing.get("icon.sm"), name: "check", color: i.tokens.colors.get("textColor.default.active") }) : !c && t ? /* @__PURE__ */ d(H, { size: i.dimension.sizing.get("icon.sm"), name: t, color: i.tokens.colors.get(c1[e].text) }) : null, [e, a, t, c, l, o, i.dimension.sizing, i.tokens.colors]), f = Q(() => s ? /* @__PURE__ */ d("div", { tabIndex: -1, "aria-hidden": "true", css: zD(), children: /* @__PURE__ */ d(H, { onClick: n, hasHover: !1, size: i.dimension.sizing.get("icon.sm"), name: "close", color: i.tokens.colors.get("textColor.default.active"), dataTestId: `${a}_tag_suffix` }) }) : null, [a, s, n, i.dimension.sizing, i.tokens.colors]);
18005
+ }, [s, l, n, r]), p = Q(() => l && o ? /* @__PURE__ */ d(H, { dataTestId: `${a}_tag_prefix`, size: i.dimension.sizing.get("icon.sm"), name: "check", color: i.tokens.colors.get("textColor.default.active") }) : !c && t ? /* @__PURE__ */ d(H, { size: i.dimension.sizing.get("icon.sm"), name: t, color: i.tokens.colors.get(c1[e].text) }) : null, [e, a, t, c, l, o, i.dimension.sizing, i.tokens.colors]), f = Q(() => s ? /* @__PURE__ */ d("div", { tabIndex: -1, "aria-hidden": "true", css: qD(), children: /* @__PURE__ */ d(H, { onClick: n, hasHover: !1, size: i.dimension.sizing.get("icon.sm"), name: "close", color: i.tokens.colors.get("textColor.default.active"), dataTestId: `${a}_tag_suffix` }) }) : null, [a, s, n, i.dimension.sizing, i.tokens.colors]);
18032
18006
  return {
18033
18007
  isSelectable: l,
18034
18008
  isClearable: s,
@@ -18056,7 +18030,7 @@ const LD = () => (e) => /* @__PURE__ */ y("max-height:inherit;overflow:auto;back
18056
18030
  handleKeyDown: m,
18057
18031
  prefix: v,
18058
18032
  suffix: w
18059
- } = VD({
18033
+ } = DD({
18060
18034
  color: e,
18061
18035
  iconName: r,
18062
18036
  onSelect: n,
@@ -18064,7 +18038,7 @@ const LD = () => (e) => /* @__PURE__ */ y("max-height:inherit;overflow:auto;back
18064
18038
  isSelected: a,
18065
18039
  dataTestPrefixId: l
18066
18040
  });
18067
- return /* @__PURE__ */ E("div", { onClick: n, onKeyDown: m, tabIndex: C ? 0 : -1, css: FD({
18041
+ return /* @__PURE__ */ E("div", { onClick: n, onKeyDown: m, tabIndex: C ? 0 : -1, css: BD({
18068
18042
  size: t,
18069
18043
  color: e,
18070
18044
  isSelectable: p,
@@ -18077,6 +18051,33 @@ const LD = () => (e) => /* @__PURE__ */ y("max-height:inherit;overflow:auto;back
18077
18051
  ] });
18078
18052
  });
18079
18053
  tl.displayName = "Tag";
18054
+ const Ws = {
18055
+ single: {
18056
+ minWidth: 120,
18057
+ maxWidth: 300
18058
+ },
18059
+ multi: {
18060
+ minWidth: 140,
18061
+ maxWidth: 440
18062
+ },
18063
+ maxHeight: 340
18064
+ }, ND = 253, HD = {
18065
+ height: {
18066
+ value: "{sizing.9}",
18067
+ type: "sizing",
18068
+ description: "Sets fixed height for filter"
18069
+ }
18070
+ }, FD = (e) => ze(HD, e), zD = ({
18071
+ isActive: e = !1,
18072
+ isPopulated: t = !1,
18073
+ isMulti: r = !1,
18074
+ isDisabled: n
18075
+ }) => (o) => {
18076
+ const a = FD(o), i = (l = !1) => e ? o.tokens.colors.get("palette.primary.contrast") : l ? o.tokens.colors.get("palette.secondary.muted") : o.tokens.colors.get("palette.secondary.base");
18077
+ return /* @__PURE__ */ y("display:flex;align-items:center;cursor:", n ? "not-allowed" : "pointer", ";height:", a("height"), ";padding:0 ", o.dimension.spacing.get("md"), " 0 ", o.dimension.spacing.get("lg"), ";max-width:", $(Ws[r ? "multi" : "single"].maxWidth), ";gap:", o.dimension.spacing.get("xs"), ";background-color:", i(), ";color:", o.tokens.colors.get(e ? "textColor.inverted.primary" : "textColor.default.active"), ";border:", o.dimension.borderWidth.get("default"), " solid ", o.tokens.colors.get("borderColor.interactive.default"), ";border-radius:", o.dimension.borderRadius.get("circle"), ";", U(o.tokens.typography.get("normal.label02")), ";&:not([disabled]){&:focus-visible,&:hover{background-color:", i(!0), ";}}transition:background-color 0.1s ease-in-out;opacity:", n ? o.tokens.disabledState.get("default") : 1, ";", "");
18078
+ }, VD = ({
18079
+ isActive: e
18080
+ }) => () => /* @__PURE__ */ y("transform:rotate(", e ? "180" : "0", "deg);", be(0.2), ";", "");
18080
18081
  var WD = {
18081
18082
  name: "12wal98",
18082
18083
  styles: "text-overflow:ellipsis;overflow:hidden;white-space:nowrap"
@@ -18100,7 +18101,7 @@ const rc = P.forwardRef((e, t) => {
18100
18101
  } = e, C = D(), m = r === "added", v = P.useMemo(() => a ? void 0 : (w) => {
18101
18102
  w.stopPropagation(), i();
18102
18103
  }, [a, i]);
18103
- return /* @__PURE__ */ E("button", { css: qD({
18104
+ return /* @__PURE__ */ E("button", { css: zD({
18104
18105
  isActive: l,
18105
18106
  isPopulated: s,
18106
18107
  isMulti: p,
@@ -18111,10 +18112,10 @@ const rc = P.forwardRef((e, t) => {
18111
18112
  "+",
18112
18113
  c
18113
18114
  ] }),
18114
- /* @__PURE__ */ d("div", { css: DD({
18115
+ /* @__PURE__ */ d("div", { css: VD({
18115
18116
  isActive: l
18116
18117
  }), children: /* @__PURE__ */ d(H, { name: "triangleDown", size: C.dimension.sizing.get("icon.sm"), color: C.tokens.colors.get(l ? "textColor.inverted.primary" : "textColor.default.active") }) }),
18117
- m && /* @__PURE__ */ d(H, { name: "close", size: C.dimension.sizing.get("icon.sm"), color: C.tokens.colors.get(l ? "textColor.inverted.primary" : "textColor.default.active"), onClick: v, dataTestPrefixId: `${u}_filter_close` })
18118
+ m && /* @__PURE__ */ d(H, { role: "button", "aria-label": "Remove filter", name: "close", size: C.dimension.sizing.get("icon.sm"), color: C.tokens.colors.get(l ? "textColor.inverted.primary" : "textColor.default.active"), onClick: v, dataTestPrefixId: `${u}_filter_close` })
18118
18119
  ] });
18119
18120
  });
18120
18121
  rc.displayName = "FilterButton";
@@ -18209,115 +18210,21 @@ const UD = {
18209
18210
  description: "Sets horizontal/vertical padding for field content"
18210
18211
  }
18211
18212
  }
18212
- }, Gt = (e) => ze(UD, e), ZD = ({
18213
- isTextfield: e,
18214
- label: t,
18215
- placeholder: r,
18216
- isRequired: n,
18217
- isLocked: o,
18218
- hasValue: a,
18219
- value: i,
18220
- onOptionDelete: l,
18221
- onClearAllOptions: s,
18222
- onKeyDown: c
18223
- }) => {
18224
- const u = P.useRef(null), p = D(), f = !!t, C = Q(() => {
18225
- if (!a && r)
18226
- return n ? `${r} *` : r;
18227
- if (!a)
18228
- return t;
18229
- }, [a, t, r, n]), m = Q(() => {
18230
- if (o)
18231
- return "lock";
18232
- if (a)
18233
- return "close";
18234
- if (!e)
18235
- return "search";
18236
- }, [a, e, o]), v = (h) => (x) => {
18237
- i === "" && x.key === "Backspace" && l(h), c && c(x);
18238
- }, w = Q(() => {
18239
- const h = m === "close" ? () => s() : void 0;
18240
- if (m)
18241
- return /* @__PURE__ */ d(H, { size: 20, name: m, color: p.tokens.colors.get("textColor.default.secondary"), onClick: h, dataTestId: "select-right-icon" });
18242
- }, [m, s, p.tokens.colors]);
18243
- return {
18244
- inputPlaceholder: C,
18245
- handleKeyDown: v,
18246
- icon: w,
18247
- hasLabel: f,
18248
- TextfieldRef: u
18249
- };
18250
- }, dr = $(3), GD = ({
18213
+ }, Gt = (e) => ze(UD, e), dr = $(3), ZD = ({
18251
18214
  isAnimated: e,
18252
18215
  hasError: t,
18253
18216
  size: r = "normal"
18254
18217
  }) => (n) => {
18255
18218
  const o = r === "normal" ? "normal.body02" : "normal.body03";
18256
18219
  return /* @__PURE__ */ y("transition:transform 0.25s,opacity 0.25s ease-in-out;transform-origin:0 0;width:100%;position:absolute;user-select:none;transform:", e ? `translate(${dr}, -95%) scale(0.8);` : `translate(${dr}, 0)`, ";color:", t ? n.tokens.colors.get("textColor.default.error") : n.tokens.colors.get("textColor.default.secondary"), ";align-items:center;display:flex;top:0;bottom:0;right:", $(3), ";margin:auto;white-space:nowrap;overflow:hidden;", U(n.tokens.typography.get(o)), ";", "");
18257
- }, KD = ({
18258
- maxWidth: e
18259
- }) => () => /* @__PURE__ */ y("white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:", e ? q(e - 120) : "unset", ";", ""), YD = () => (e) => /* @__PURE__ */ y("position:absolute!important;bottom:0;right:", e.globals.spacing.get("4"), ";top:0;display:flex;align-items:center;", ""), XD = () => (e) => /* @__PURE__ */ y("padding-right:", e.globals.spacing.get("5"), ";", ""), QD = () => (e) => /* @__PURE__ */ y("position:relative;margin-right:", e.globals.spacing.get("3"), ";", ""), JD = () => (e) => /* @__PURE__ */ y("position:static;width:100%;display:flex;flex-wrap:wrap;row-gap:", e.globals.spacing.get("3"), ";z-index:2;", ""), eN = ({
18260
- hasValue: e,
18261
- hasLabel: t,
18262
- isResponsive: r,
18263
- isTextfield: n
18264
- }) => (o) => {
18265
- const a = {
18266
- fontWeight: `${o.globals.typography.fontWeight.get("bold")}`,
18267
- transform: `translate(${dr}, -82%) scale(0.8) !important`,
18268
- bottom: "auto"
18269
- }, i = t ? 21 : 13, l = t ? 5 : 13, s = Gt(o);
18270
- return {
18271
- wrapper: {
18272
- height: "unset",
18273
- // TODO - fix this
18274
- minHeight: `${q(52)} !important`,
18275
- ...e ? {
18276
- label: a
18277
- } : {
18278
- "input:focus": {
18279
- label: a
18280
- },
18281
- label: {
18282
- transform: `translate(${dr}, -8px)`
18283
- }
18284
- }
18285
- },
18286
- textField: {
18287
- // For the paddings we use specifically custom numbers that don't match the
18288
- // ictinus spacing (the are calculated by combining internal absolute positioned component widths)
18289
- // so we can override the existing TextFieldInputBase paddings to
18290
- // perfectly position and align the content inside.
18291
- padding: `${q(i)} ${q(40)} ${q(l)} ${o.globals.spacing.get("5")}`,
18292
- ...r ? {
18293
- width: "max-content",
18294
- minWidth: q(s("minWidth.large.normal"))
18295
- } : {},
18296
- ...n ? {
18297
- minWidth: q(s("minWidth.large.normal")),
18298
- width: "100%"
18299
- } : {}
18300
- }
18301
- };
18302
- }, tN = () => ({
18303
- input: {
18304
- top: "unset",
18305
- flex: "1 1 0%",
18306
- minWidth: "20%",
18307
- "&:focus, &:not(:placeholder-shown)": {
18308
- "& + label": {
18309
- transform: `translate(${dr}, -82%) scale(0.8)`
18310
- }
18311
- }
18312
- }
18313
- }), rl = ({
18220
+ }, rl = ({
18314
18221
  hasError: e = !1,
18315
18222
  htmlFor: t,
18316
18223
  label: r,
18317
18224
  size: n = "normal",
18318
18225
  isRequired: o = !1,
18319
18226
  isAnimated: a = !1
18320
- }) => /* @__PURE__ */ E("label", { htmlFor: t, css: GD({
18227
+ }) => /* @__PURE__ */ E("label", { htmlFor: t, css: ZD({
18321
18228
  isAnimated: a,
18322
18229
  hasError: e,
18323
18230
  size: n
@@ -18325,7 +18232,7 @@ const UD = {
18325
18232
  r,
18326
18233
  " ",
18327
18234
  o && "*"
18328
- ] }), rN = {
18235
+ ] }), GD = {
18329
18236
  height: {
18330
18237
  linear: {
18331
18238
  value: "{sizing.1}",
@@ -18338,14 +18245,14 @@ const UD = {
18338
18245
  description: "Sets fxed height for normal linearBlock progress indicator"
18339
18246
  }
18340
18247
  }
18341
- }, nN = (e) => ze(rN, e), oN = ({
18248
+ }, KD = (e) => ze(GD, e), YD = ({
18342
18249
  isBlock: e
18343
- }) => (t) => /* @__PURE__ */ y("display:grid;grid-template-areas:'label value' 'bar bar';grid-template-columns:1fr auto;gap:", $(4), ";width:100%;&:not([aria-valuenow]){.fill{width:50%;border-radius:", e ? t.dimension.borderRadius.get("none") : t.dimension.borderRadius.get("circle"), ";animation:indeterminate 1.7s infinite ease-in-out;will-change:transform;}}@keyframes indeterminate{from{transform:translateX(-100%);}to{transform:translateX(200%);}}", ""), aN = ({
18250
+ }) => (t) => /* @__PURE__ */ y("display:grid;grid-template-areas:'label value' 'bar bar';grid-template-columns:1fr auto;gap:", $(4), ";width:100%;&:not([aria-valuenow]){.fill{width:50%;border-radius:", e ? t.dimension.borderRadius.get("none") : t.dimension.borderRadius.get("circle"), ";animation:indeterminate 1.7s infinite ease-in-out;will-change:transform;}}@keyframes indeterminate{from{transform:translateX(-100%);}to{transform:translateX(200%);}}", ""), XD = ({
18344
18251
  isBlock: e
18345
18252
  }) => (t) => {
18346
- const r = nN(t);
18253
+ const r = KD(t);
18347
18254
  return /* @__PURE__ */ y("grid-area:bar;background-color:", t.tokens.colors.get("palette.primaryAlt.muted"), ";height:", r(e ? "height.linearBlock" : "height.linear"), ";border-radius:", e ? t.dimension.borderRadius.get("none") : t.dimension.borderRadius.get("circle"), ";overflow:hidden;will-change:transform;", "");
18348
- }, iN = ({
18255
+ }, QD = ({
18349
18256
  status: e,
18350
18257
  value: t,
18351
18258
  isBlock: r
@@ -18365,18 +18272,18 @@ const UD = {
18365
18272
  value: e
18366
18273
  }
18367
18274
  };
18368
- return /* @__PURE__ */ d(j4, { ...a, css: oN({
18275
+ return /* @__PURE__ */ d(j4, { ...a, css: YD({
18369
18276
  isBlock: r
18370
- }), ref: o, children: () => /* @__PURE__ */ d("div", { css: aN({
18277
+ }), ref: o, children: () => /* @__PURE__ */ d("div", { css: XD({
18371
18278
  isBlock: r
18372
- }), className: "bar", "data-testid": `${n}_linear_progress_container`, children: /* @__PURE__ */ d("div", { css: iN({
18279
+ }), className: "bar", "data-testid": `${n}_linear_progress_container`, children: /* @__PURE__ */ d("div", { css: QD({
18373
18280
  status: t,
18374
18281
  value: e,
18375
18282
  isBlock: r
18376
18283
  }), className: "fill", "data-testid": `${n}_linear_progress_value` }) }) });
18377
18284
  });
18378
18285
  Zd.displayName = "ProgressBar";
18379
- const lN = (e) => () => /* @__PURE__ */ y("transition:stroke-dashoffset 0.5s;", e && `
18286
+ const JD = (e) => () => /* @__PURE__ */ y("transition:stroke-dashoffset 0.5s;", e && `
18380
18287
  @keyframes rotating {
18381
18288
  from {
18382
18289
  transform: rotate(0deg);
@@ -18391,7 +18298,7 @@ const lN = (e) => () => /* @__PURE__ */ y("transition:stroke-dashoffset 0.5s;",
18391
18298
  animation: rotating 2s linear infinite;
18392
18299
 
18393
18300
  `, ";", "");
18394
- var sN = {
18301
+ var eN = {
18395
18302
  name: "zjik7",
18396
18303
  styles: "display:flex"
18397
18304
  };
@@ -18408,9 +18315,9 @@ const Gd = P.forwardRef(({
18408
18315
  isIndeterminate: !0
18409
18316
  }
18410
18317
  }, a = D(), i = 16, l = a.dimension.sizing.get("icon.sm"), s = dp(Number.parseFloat(a.dimension.borderWidth.get("active"))), u = 2 * (16 - s) * Math.PI, p = t === "error";
18411
- return /* @__PURE__ */ d(j4, { ...o, ref: n, css: sN, children: ({
18318
+ return /* @__PURE__ */ d(j4, { ...o, ref: n, css: eN, children: ({
18412
18319
  percentage: f = e ?? 75
18413
- }) => /* @__PURE__ */ d("svg", { width: l, height: l, viewBox: "0 0 32 32", fill: "none", strokeWidth: s, "data-testid": `${r}_circular_progress_container`, children: /* @__PURE__ */ d("circle", { cx: i, cy: i, r: 14, stroke: p ? a.tokens.colors.get("textColor.inverted.error") : a.tokens.colors.get("palette.primary.muted"), strokeDasharray: `${u} ${u}`, strokeDashoffset: u - f / 100 * u, strokeLinecap: "round", transform: "rotate(-90 16 16)", css: lN(Js(e)), "data-testid": `${r}_circular_progress_value` }) }) });
18320
+ }) => /* @__PURE__ */ d("svg", { width: l, height: l, viewBox: "0 0 32 32", fill: "none", strokeWidth: s, "data-testid": `${r}_circular_progress_container`, children: /* @__PURE__ */ d("circle", { cx: i, cy: i, r: 14, stroke: p ? a.tokens.colors.get("textColor.inverted.error") : a.tokens.colors.get("palette.primary.muted"), strokeDasharray: `${u} ${u}`, strokeDashoffset: u - f / 100 * u, strokeLinecap: "round", transform: "rotate(-90 16 16)", css: JD(Js(e)), "data-testid": `${r}_circular_progress_value` }) }) });
18414
18321
  });
18415
18322
  Gd.displayName = "ProgressCircle";
18416
18323
  const nl = P.forwardRef(({
@@ -18421,7 +18328,7 @@ const nl = P.forwardRef(({
18421
18328
  dataTestPrefixId: o
18422
18329
  }, a) => e === "linear" ? /* @__PURE__ */ d(Zd, { value: t, isBlock: n, status: r, ref: a, dataTestPrefixId: o }) : /* @__PURE__ */ d(Gd, { value: t, status: r, ref: a, dataTestPrefixId: o }));
18423
18330
  nl.displayName = "ProgressIndicator";
18424
- const cN = ({
18331
+ const tN = ({
18425
18332
  theme: e,
18426
18333
  hasError: t,
18427
18334
  isLocked: r,
@@ -18445,7 +18352,7 @@ const cN = ({
18445
18352
  backgroundColor: i,
18446
18353
  ...o ? s : {}
18447
18354
  };
18448
- }, uN = ({
18355
+ }, rN = ({
18449
18356
  isDisabled: e,
18450
18357
  status: t,
18451
18358
  isInteractive: r,
@@ -18467,7 +18374,7 @@ const cN = ({
18467
18374
  cursor: e ? "not-allowed" : "text",
18468
18375
  height: s(`container.${n}`),
18469
18376
  minWidth: $(s(`minWidth.small.${n}`)),
18470
- ...cN({
18377
+ ...tN({
18471
18378
  theme: a,
18472
18379
  hasError: l,
18473
18380
  isLocked: i,
@@ -18476,7 +18383,7 @@ const cN = ({
18476
18383
  }),
18477
18384
  ...o == null ? void 0 : o.wrapper
18478
18385
  }, "", "");
18479
- }, dN = ({
18386
+ }, nN = ({
18480
18387
  sx: e
18481
18388
  }) => (t) => {
18482
18389
  const r = Gt(t);
@@ -18548,7 +18455,7 @@ const cN = ({
18548
18455
  },
18549
18456
  ...a == null ? void 0 : a.input
18550
18457
  }, "", "");
18551
- }, pN = ({
18458
+ }, oN = ({
18552
18459
  status: e,
18553
18460
  isDisabled: t
18554
18461
  }) => (r) => /* @__PURE__ */ y({
@@ -18562,7 +18469,7 @@ const cN = ({
18562
18469
  alignItems: "stretch",
18563
18470
  padding: 0
18564
18471
  }
18565
- }, I1(r), "", ""), fN = ({
18472
+ }, I1(r), "", ""), aN = ({
18566
18473
  isDisabled: e,
18567
18474
  dataTestId: t,
18568
18475
  status: r = {
@@ -18573,7 +18480,7 @@ const cN = ({
18573
18480
  children: a,
18574
18481
  sx: i
18575
18482
  }) => {
18576
- const l = D(), s = r.hintMessage && /* @__PURE__ */ E("div", { "data-testid": J("error", t), css: pN({
18483
+ const l = D(), s = r.hintMessage && /* @__PURE__ */ E("div", { "data-testid": J("error", t), css: oN({
18577
18484
  status: r,
18578
18485
  isDisabled: e
18579
18486
  }), children: [
@@ -18581,18 +18488,112 @@ const cN = ({
18581
18488
  /* @__PURE__ */ d("span", { id: r.id, children: r.hintMessage })
18582
18489
  ] });
18583
18490
  return /* @__PURE__ */ E(P.Fragment, { children: [
18584
- /* @__PURE__ */ d("div", { "data-testid": t, css: uN({
18491
+ /* @__PURE__ */ d("div", { "data-testid": t, css: rN({
18585
18492
  isDisabled: e,
18586
18493
  status: r,
18587
18494
  size: n,
18588
18495
  sx: i,
18589
18496
  isInteractive: o
18590
- }), children: /* @__PURE__ */ d("div", { css: dN({
18497
+ }), children: /* @__PURE__ */ d("div", { css: nN({
18591
18498
  sx: i
18592
18499
  }), children: a }) }),
18593
18500
  r.hintMessage && s
18594
18501
  ] });
18595
- }, j1 = P.memo(fN, ce), ol = P.forwardRef((e, t) => {
18502
+ }, j1 = P.memo(aN, ce), iN = ({
18503
+ isTextfield: e,
18504
+ label: t,
18505
+ placeholder: r,
18506
+ isRequired: n,
18507
+ isLocked: o,
18508
+ hasValue: a,
18509
+ value: i,
18510
+ onOptionDelete: l,
18511
+ onClearAllOptions: s,
18512
+ onKeyDown: c
18513
+ }) => {
18514
+ const u = P.useRef(null), p = D(), f = !!t, C = Q(() => {
18515
+ if (!a && r)
18516
+ return n ? `${r} *` : r;
18517
+ if (!a)
18518
+ return t;
18519
+ }, [a, t, r, n]), m = Q(() => {
18520
+ if (o)
18521
+ return "lock";
18522
+ if (a)
18523
+ return "close";
18524
+ if (!e)
18525
+ return "search";
18526
+ }, [a, e, o]), v = (h) => (x) => {
18527
+ i === "" && x.key === "Backspace" && l(h), c && c(x);
18528
+ }, w = Q(() => {
18529
+ const h = m === "close" ? () => s() : void 0;
18530
+ if (m)
18531
+ return /* @__PURE__ */ d(H, { role: "button", "aria-label": "Remove all", size: 20, name: m, color: p.tokens.colors.get("textColor.default.secondary"), onClick: h, dataTestId: "select-right-icon" });
18532
+ }, [m, s, p.tokens.colors]);
18533
+ return {
18534
+ inputPlaceholder: C,
18535
+ handleKeyDown: v,
18536
+ icon: w,
18537
+ hasLabel: f,
18538
+ TextfieldRef: u
18539
+ };
18540
+ }, lN = ({
18541
+ maxWidth: e
18542
+ }) => () => /* @__PURE__ */ y("white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:", e ? q(e - 120) : "unset", ";", ""), sN = () => (e) => /* @__PURE__ */ y("position:absolute!important;bottom:0;right:", e.globals.spacing.get("4"), ";top:0;display:flex;align-items:center;", ""), cN = () => (e) => /* @__PURE__ */ y("padding-right:", e.globals.spacing.get("5"), ";", ""), uN = () => (e) => /* @__PURE__ */ y("position:relative;margin-right:", e.globals.spacing.get("3"), ";", ""), dN = () => (e) => /* @__PURE__ */ y("position:static;width:100%;display:flex;flex-wrap:wrap;row-gap:", e.globals.spacing.get("3"), ";z-index:2;", ""), pN = ({
18543
+ hasValue: e,
18544
+ hasLabel: t,
18545
+ isResponsive: r,
18546
+ isTextfield: n
18547
+ }) => (o) => {
18548
+ const a = {
18549
+ fontWeight: `${o.globals.typography.fontWeight.get("bold")}`,
18550
+ transform: `translate(${dr}, -82%) scale(0.8) !important`,
18551
+ bottom: "auto"
18552
+ }, i = t ? 21 : 13, l = t ? 5 : 13, s = Gt(o);
18553
+ return {
18554
+ wrapper: {
18555
+ height: "unset",
18556
+ // TODO - fix this
18557
+ minHeight: `${q(52)} !important`,
18558
+ ...e ? {
18559
+ label: a
18560
+ } : {
18561
+ "input:focus": {
18562
+ label: a
18563
+ },
18564
+ label: {
18565
+ transform: `translate(${dr}, -8px)`
18566
+ }
18567
+ }
18568
+ },
18569
+ textField: {
18570
+ // For the paddings we use specifically custom numbers that don't match the
18571
+ // ictinus spacing (the are calculated by combining internal absolute positioned component widths)
18572
+ // so we can override the existing TextFieldInputBase paddings to
18573
+ // perfectly position and align the content inside.
18574
+ padding: `${q(i)} ${q(40)} ${q(l)} ${o.globals.spacing.get("5")}`,
18575
+ ...r ? {
18576
+ width: "max-content",
18577
+ minWidth: q(s("minWidth.large.normal"))
18578
+ } : {},
18579
+ ...n ? {
18580
+ minWidth: q(s("minWidth.large.normal")),
18581
+ width: "100%"
18582
+ } : {}
18583
+ }
18584
+ };
18585
+ }, fN = () => ({
18586
+ input: {
18587
+ top: "unset",
18588
+ flex: "1 1 0%",
18589
+ minWidth: "20%",
18590
+ "&:focus, &:not(:placeholder-shown)": {
18591
+ "& + label": {
18592
+ transform: `translate(${dr}, -82%) scale(0.8)`
18593
+ }
18594
+ }
18595
+ }
18596
+ }), ol = P.forwardRef((e, t) => {
18596
18597
  const {
18597
18598
  selectedOptions: r,
18598
18599
  value: n,
@@ -18620,7 +18621,7 @@ const cN = ({
18620
18621
  icon: I,
18621
18622
  hasLabel: A,
18622
18623
  TextfieldRef: B
18623
- } = ZD({
18624
+ } = iN({
18624
18625
  isTextfield: w,
18625
18626
  label: l,
18626
18627
  placeholder: c,
@@ -18633,7 +18634,7 @@ const cN = ({
18633
18634
  onKeyDown: h
18634
18635
  }), L = Q(() => /* @__PURE__ */ d(xe, { children: r == null ? void 0 : r.map((N, X) => {
18635
18636
  var oe;
18636
- return /* @__PURE__ */ d("span", { css: QD(), children: /* @__PURE__ */ d(tl, { onClear: (a == null ? void 0 : a.type) === "read-only" || o ? void 0 : () => p(N), dataTestPrefixId: `tag_${X}`, children: /* @__PURE__ */ d("div", { title: typeof N == "string" ? N : N.label, css: KD({
18637
+ return /* @__PURE__ */ d("span", { css: uN(), children: /* @__PURE__ */ d(tl, { onClear: (a == null ? void 0 : a.type) === "read-only" || o ? void 0 : () => p(N), dataTestPrefixId: `tag_${X}`, children: /* @__PURE__ */ d("div", { title: typeof N == "string" ? N : N.label, css: lN({
18637
18638
  maxWidth: (oe = B.current) == null ? void 0 : oe.getBoundingClientRect().width
18638
18639
  }), children: typeof N == "string" ? N : N.label }) }) }, au("tag" + (typeof N == "string" ? N : N.label)));
18639
18640
  }) }), [o, p, r, a == null ? void 0 : a.type]);
@@ -18642,24 +18643,24 @@ const cN = ({
18642
18643
  id: k
18643
18644
  } : {
18644
18645
  type: "normal"
18645
- }, ...S, isInteractive: m, sx: O4(eN({
18646
+ }, ...S, isInteractive: m, sx: O4(pN({
18646
18647
  hasValue: b,
18647
18648
  hasLabel: A,
18648
18649
  isResponsive: v,
18649
18650
  isTextfield: w
18650
18651
  })(R), x), children: [
18651
- /* @__PURE__ */ E("div", { css: JD(), children: [
18652
+ /* @__PURE__ */ E("div", { css: dN(), "data-testid": "selected-tags", children: [
18652
18653
  L,
18653
18654
  /* @__PURE__ */ d("input", { readOnly: _ || i, onKeyDown: Z(Q9(r)), css: Xr({
18654
18655
  placeholder: c,
18655
18656
  label: l,
18656
- sx: tN(),
18657
+ sx: fN(),
18657
18658
  isLocked: _,
18658
18659
  isDisabled: o
18659
18660
  }), placeholder: M, required: u, id: T, disabled: o || _, "data-testid": S.dataTestId ? `input_${S.dataTestId}` : "input", "aria-invalid": (a == null ? void 0 : a.type) === "error", "aria-describedby": k, ...Ye(S, "dataTestId"), value: n, ref: t }),
18660
18661
  l && /* @__PURE__ */ d(rl, { htmlFor: T, label: l, isRequired: u, isAnimated: b, hasError: !o && (a == null ? void 0 : a.type) === "error" })
18661
18662
  ] }),
18662
- !o && /* @__PURE__ */ d("div", { css: YD(), children: C ? /* @__PURE__ */ d("div", { css: XD(), children: /* @__PURE__ */ d(nl, { type: "circular", dataTestPrefixId: "multi_textdield_base" }) }) : I })
18663
+ !o && /* @__PURE__ */ d("div", { css: sN(), children: C ? /* @__PURE__ */ d("div", { css: cN(), children: /* @__PURE__ */ d(nl, { type: "circular", dataTestPrefixId: "multi_textdield_base" }) }) : I })
18663
18664
  ] }) });
18664
18665
  });
18665
18666
  ol.displayName = "MultiTextFieldBase";
@@ -20226,7 +20227,7 @@ const ZF = () => UF, GF = ({
20226
20227
  dataTestPrefixId: l,
20227
20228
  listRef: s
20228
20229
  }) => {
20229
- const c = e.length > Rm, u = c ? MD : void 0, p = W((f) => {
20230
+ const c = e.length > Rm, u = c ? ND : void 0, p = W((f) => {
20230
20231
  const C = String(st(Array.from(f)));
20231
20232
  if (C === Te.value)
20232
20233
  t(Te);
@@ -20237,7 +20238,7 @@ const ZF = () => UF, GF = ({
20237
20238
  }, [e, t]);
20238
20239
  return e.length ? /* @__PURE__ */ d("div", { css: XF({
20239
20240
  isMulti: i
20240
- }), children: /* @__PURE__ */ E(io, { ref: s, label: "filter-options", selectedKeys: i === !1 && n ? [n.value] : [], disabledKeys: e.filter((f) => f.isDisabled).map((f) => f.value), onSelectionChange: p, isVirtualized: o && c, height: u, dataTestPrefixId: `${l}_filter_list`, children: [
20241
+ }), children: /* @__PURE__ */ E(io, { ref: s, label: "filter-options", selectedKeys: i === !1 && n ? [n.value] : [], disabledKeys: e.filter((f) => f.isDisabled).map((f) => f.value), onSelectionChange: p, isVirtualized: o && c, height: u, dataTestPrefixId: `${l}_filter_list`, "aria-label": "Available options", children: [
20241
20242
  a ? /* @__PURE__ */ d(Ke, { textValue: Te.label, children: /* @__PURE__ */ d(ut, { children: Te.label }) }, Te.value) : null,
20242
20243
  e.filter((f) => f.value !== r.value).map((f) => /* @__PURE__ */ d(Ke, { children: /* @__PURE__ */ d(ut, { children: f.label }) }, f.value))
20243
20244
  ] }) }) : /* @__PURE__ */ d("div", { css: QF(), "data-testid": `${l}_filter_list_no_options`, children: "No options" });
@@ -20963,7 +20964,7 @@ const VG = P.memo(x9, ce), bz = /* @__PURE__ */ Ae("div", {
20963
20964
  var w;
20964
20965
  return /* @__PURE__ */ d(Ez, { dataTestId: `${a ?? ""}thumb_${v}`, restProps: C, isDisabled: o, value: m, initialValue: (w = l.current) == null ? void 0 : w[v] }, `thumb_${v}`);
20965
20966
  };
20966
- return /* @__PURE__ */ E(kz, { "data-testid": `${a ?? ""}slider_component`, children: [
20967
+ return /* @__PURE__ */ E(kz, { "data-testid": `${a ?? ""}slider_component`, "aria-disabled": o ? "true" : "false", children: [
20967
20968
  /* @__PURE__ */ d("div", { css: /* @__PURE__ */ y({
20968
20969
  opacity: o ? i.tokens.disabledState.get("default") : "inherit"
20969
20970
  }, "", ""), children: /* @__PURE__ */ d(j8, { step: n ? js : $z, min: u1, max: Rn, disabled: o, values: e, onChange: t, onFinalChange: r, renderMark: u, renderTrack: p, renderThumb: f }) }),
@@ -22104,11 +22105,11 @@ const QV = (e = !1) => (t) => /* @__PURE__ */ y("border:none;background:", t.tok
22104
22105
  const {
22105
22106
  id: u,
22106
22107
  label: p,
22107
- counter: f
22108
- } = c, C = u === n;
22108
+ counter: f = null
22109
+ } = c, C = typeof f == "number", m = u === n;
22109
22110
  return /* @__PURE__ */ E(A9, { id: u, "data-testid": `${i}_tab_${u}`, sx: s == null ? void 0 : s.tab, children: [
22110
22111
  /* @__PURE__ */ d("span", { children: p }),
22111
- !!f && /* @__PURE__ */ d(tl, { css: QV(C), dataTestPrefixId: `${i}_tab_${u}_counter`, children: f })
22112
+ C && /* @__PURE__ */ d(tl, { css: QV(m), dataTestPrefixId: `${i}_tab_${u}_counter`, children: f })
22112
22113
  ] }, u);
22113
22114
  }) }),
22114
22115
  l