uikit-react-public 0.25.4 → 0.25.5

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,7 +1,9 @@
1
1
  import { SpecificIconProps } from '../Icon/Icon';
2
2
  import { ThemeType } from '../../theme';
3
- export type BadgeVariant = 'neutral' | 'neutral-subtle' | 'critical' | 'critical-subtle' | 'caution' | 'caution-subtle' | 'success' | 'success-subtle' | 'warning' | 'warning-subtle' | 'disabled';
3
+ export type BadgeVariant = 'info' | 'info-subtle' | 'neutral' | 'neutral-subtle' | 'critical' | 'critical-subtle' | 'caution' | 'caution-subtle' | 'success' | 'success-subtle' | 'warning' | 'warning-subtle' | 'disabled';
4
4
  export declare const VARIANT_ICON_MAP: {
5
+ info: import('react').FC<SpecificIconProps>;
6
+ 'info-subtle': import('react').FC<SpecificIconProps>;
5
7
  neutral: import('react').FC<SpecificIconProps>;
6
8
  'neutral-subtle': import('react').FC<SpecificIconProps>;
7
9
  critical: import('react').FC<SpecificIconProps>;
package/dist/index.js CHANGED
@@ -12543,12 +12543,12 @@ for (const e in wn)
12543
12543
  ...t
12544
12544
  }
12545
12545
  );
12546
- const eo = ul, vm = T(dl), D = vm;
12547
- Object.assign(D, eo);
12548
- D.getIconNames = () => Object.keys(eo);
12546
+ const eo = ul, vm = T(dl), z = vm;
12547
+ Object.assign(z, eo);
12548
+ z.getIconNames = () => Object.keys(eo);
12549
12549
  let Ao;
12550
12550
  for (Ao in eo)
12551
- D[Ao] = eo[Ao];
12551
+ z[Ao] = eo[Ao];
12552
12552
  var Ut = { exports: {} }, re = {};
12553
12553
  /** @license React v16.13.1
12554
12554
  * react-is.production.min.js
@@ -13142,7 +13142,7 @@ const { light: L, primitives: qe } = Nt, { sans: ml, mono: Fm } = qe.font.family
13142
13142
  lineHeight: L.typography.body["xs-medium"].$value.lineHeight
13143
13143
  }
13144
13144
  }
13145
- }, Bm = "#2C0442", zm = "#500778", Dm = "#6345A5", Nm = "#BBAACC", Tm = "#006B0F", Rm = "#008613", Vm = "#80C289", Om = "#E6F3E8", Zm = "#113B3A", qm = "#52C152", Pm = "#C9D1A8", Um = "#004089", jm = "#004EA8", Jm = "#0D68CF", Ym = "#7FB7F7", Qm = "#E5F0FD", Gm = "#F2F8FE", Km = "#002248", Xm = "#34C6C6", $m = "#B6DCE5", _m = "#D4E6FC", ey = "#C3DDFB", ty = "#B2D3FA", oy = "#504D48", ny = "#FFCA36", ry = "#DAD6CA", iy = "#CC7100", ly = "#FF8D00", ay = "#FFC680", sy = "#FFF4E6", cy = "#811712", dy = "#CA0007", uy = "#E48083", hy = "#E48083", fy = "#FAE6E7", py = "#B1070A", gy = "#990F0E", my = "#4B0A32", yy = "#AC145A", by = "#DEB8C3", vy = "#000000", wy = "#1A1A1A", xy = "#333333", ky = "#4D4D4D", Sy = "#666666", Ay = "#999999", Cy = "#CCCCCC", My = "#D9D9D9", Ly = "#E6E6E6", Iy = "#F2F2F2", Hy = "#ffffff", z = {
13145
+ }, Bm = "#2C0442", zm = "#500778", Dm = "#6345A5", Nm = "#BBAACC", Tm = "#006B0F", Rm = "#008613", Vm = "#80C289", Om = "#E6F3E8", Zm = "#113B3A", qm = "#52C152", Pm = "#C9D1A8", Um = "#004089", jm = "#004EA8", Jm = "#0D68CF", Ym = "#7FB7F7", Qm = "#E5F0FD", Gm = "#F2F8FE", Km = "#002248", Xm = "#34C6C6", $m = "#B6DCE5", _m = "#D4E6FC", ey = "#C3DDFB", ty = "#B2D3FA", oy = "#504D48", ny = "#FFCA36", ry = "#DAD6CA", iy = "#CC7100", ly = "#FF8D00", ay = "#FFC680", sy = "#FFF4E6", cy = "#811712", dy = "#CA0007", uy = "#E48083", hy = "#E48083", fy = "#FAE6E7", py = "#B1070A", gy = "#990F0E", my = "#4B0A32", yy = "#AC145A", by = "#DEB8C3", vy = "#000000", wy = "#1A1A1A", xy = "#333333", ky = "#4D4D4D", Sy = "#666666", Ay = "#999999", Cy = "#CCCCCC", My = "#D9D9D9", Ly = "#E6E6E6", Iy = "#F2F2F2", Hy = "#ffffff", D = {
13146
13146
  purple200: Bm,
13147
13147
  purple50: zm,
13148
13148
  purple40: Dm,
@@ -13196,102 +13196,102 @@ const { light: L, primitives: qe } = Nt, { sans: ml, mono: Fm } = qe.font.family
13196
13196
  black5: Iy,
13197
13197
  white: Hy
13198
13198
  }, Ey = {
13199
- primary: z.black90,
13199
+ primary: D.black90,
13200
13200
  // Primary text, such as body copy, headers, displays, labels.
13201
- secondary: z.black60,
13201
+ secondary: D.black60,
13202
13202
  // Secondary text, such as stand-first, paragraph summary, breadcrumbs.
13203
- muted: z.black40,
13203
+ muted: D.black40,
13204
13204
  // Tertiary text, such as input fields placeholder.
13205
- inverted: z.white,
13205
+ inverted: D.white,
13206
13206
  // Text on bold background, for example primary buttons label.
13207
- interactive: z.blue70,
13207
+ interactive: D.blue70,
13208
13208
  // Link, secondary button.
13209
- default: z.black60,
13209
+ default: D.black60,
13210
13210
  // Status default for component label: tabs, toolbar.
13211
- disabledOnBg: z.black40,
13211
+ disabledOnBg: D.black40,
13212
13212
  // Status disabled on background.
13213
- disabled: z.black20,
13213
+ disabled: D.black20,
13214
13214
  // Status disabled.
13215
- active: z.blue70,
13215
+ active: D.blue70,
13216
13216
  // Status active for components' label: tabs, toolbar.
13217
- hover: z.blue100,
13217
+ hover: D.blue100,
13218
13218
  // Status hover for links and components' label.
13219
- visited: z.purple40,
13219
+ visited: D.purple40,
13220
13220
  // Status visited for links.
13221
- error: z.red70,
13221
+ error: D.red70,
13222
13222
  // Label for buttons or link with destructive purpose.
13223
- errorHover: z.red100,
13223
+ errorHover: D.red100,
13224
13224
  // Error hover.
13225
- errorDisabled: z.red50
13225
+ errorDisabled: D.red50
13226
13226
  // Error disabled.
13227
13227
  }, Wy = {
13228
- blue100: z.blue100,
13229
- blue80: z.blue80,
13230
- blue70: z.blue70,
13231
- blue40: z.blue40,
13232
- blue10: z.blue10,
13233
- blue5: z.blue5
13228
+ blue100: D.blue100,
13229
+ blue80: D.blue80,
13230
+ blue70: D.blue70,
13231
+ blue40: D.blue40,
13232
+ blue10: D.blue10,
13233
+ blue5: D.blue5
13234
13234
  }, Fy = {
13235
- purpleDark: z.purple200,
13236
- purpleVibrant: z.purple50,
13237
- purpleMuted: z.purple20,
13238
- greenDark: z.green200,
13239
- greenVibrant: z.green50,
13240
- greenMuted: z.green20,
13241
- yellowDark: z.yellow200,
13242
- yellowVibrant: z.yellow50,
13243
- yellowMuted: z.yellow20,
13244
- pinkDark: z.pink200,
13245
- pinkVibrant: z.pink50,
13246
- pinkMuted: z.pink20,
13247
- blueDark: z.blue200,
13248
- blueVibrant: z.blue50,
13249
- blueMuted: z.blue20
13235
+ purpleDark: D.purple200,
13236
+ purpleVibrant: D.purple50,
13237
+ purpleMuted: D.purple20,
13238
+ greenDark: D.green200,
13239
+ greenVibrant: D.green50,
13240
+ greenMuted: D.green20,
13241
+ yellowDark: D.yellow200,
13242
+ yellowVibrant: D.yellow50,
13243
+ yellowMuted: D.yellow20,
13244
+ pinkDark: D.pink200,
13245
+ pinkVibrant: D.pink50,
13246
+ pinkMuted: D.pink20,
13247
+ blueDark: D.blue200,
13248
+ blueVibrant: D.blue50,
13249
+ blueMuted: D.blue20
13250
13250
  }, By = {
13251
- red100: z.red100,
13252
- red70: z.red70,
13253
- red40: z.red40,
13254
- red10: z.red10,
13255
- orange100: z.orange100,
13256
- orange70: z.orange70,
13257
- orange40: z.orange40,
13258
- orange10: z.orange10,
13259
- green100: z.green100,
13260
- green70: z.green70,
13261
- green40: z.green40,
13262
- green10: z.green10,
13263
- blue100: z.blue100,
13264
- blue80: z.blue80,
13265
- blue70: z.blue70,
13266
- blue40: z.blue40,
13267
- blue10: z.blue10,
13268
- blue5: z.blue5
13251
+ red100: D.red100,
13252
+ red70: D.red70,
13253
+ red40: D.red40,
13254
+ red10: D.red10,
13255
+ orange100: D.orange100,
13256
+ orange70: D.orange70,
13257
+ orange40: D.orange40,
13258
+ orange10: D.orange10,
13259
+ green100: D.green100,
13260
+ green70: D.green70,
13261
+ green40: D.green40,
13262
+ green10: D.green10,
13263
+ blue100: D.blue100,
13264
+ blue80: D.blue80,
13265
+ blue70: D.blue70,
13266
+ blue40: D.blue40,
13267
+ blue10: D.blue10,
13268
+ blue5: D.blue5
13269
13269
  }, zy = {
13270
- default: z.blue70,
13271
- secondaryDefault: z.black90,
13272
- hover: z.blue100,
13273
- secondaryHover: z.black70,
13274
- visited: z.purple40,
13275
- disabled: z.black20
13270
+ default: D.blue70,
13271
+ secondaryDefault: D.black90,
13272
+ hover: D.blue100,
13273
+ secondaryHover: D.black70,
13274
+ visited: D.purple40,
13275
+ disabled: D.black20
13276
13276
  }, Oo = {
13277
- black: z.black100,
13278
- white: z.white
13277
+ black: D.black100,
13278
+ white: D.white
13279
13279
  }, Dy = {
13280
13280
  black: Oo.black,
13281
- grey90: z.black90,
13282
- grey80: z.black80,
13283
- grey70: z.black70,
13284
- grey60: z.black60,
13285
- grey40: z.black40,
13286
- grey20: z.black20,
13287
- grey15: z.black15,
13288
- grey10: z.black10,
13289
- grey5: z.black5,
13281
+ grey90: D.black90,
13282
+ grey80: D.black80,
13283
+ grey70: D.black70,
13284
+ grey60: D.black60,
13285
+ grey40: D.black40,
13286
+ grey20: D.black20,
13287
+ grey15: D.black15,
13288
+ grey10: D.black10,
13289
+ grey5: D.black5,
13290
13290
  white: Oo.white
13291
13291
  }, Ny = {
13292
13292
  blanket: "rgba(0, 0, 0, 0.5)"
13293
13293
  }, V = {
13294
- base: z,
13294
+ base: D,
13295
13295
  text: Ey,
13296
13296
  interaction: Wy,
13297
13297
  display: Fy,
@@ -14126,7 +14126,7 @@ const { light: L, primitives: qe } = Nt, { sans: ml, mono: Fm } = qe.font.family
14126
14126
  ...r,
14127
14127
  role: "alert",
14128
14128
  children: [
14129
- /* @__PURE__ */ n(D.Info, { className: c }),
14129
+ /* @__PURE__ */ n(z.Info, { className: c }),
14130
14130
  t
14131
14131
  ]
14132
14132
  }
@@ -16995,7 +16995,7 @@ const b3 = (e, t) => {
16995
16995
  "data-testid": i,
16996
16996
  ...a,
16997
16997
  children: [
16998
- /* @__PURE__ */ n(D.CheckCircle, { className: h }),
16998
+ /* @__PURE__ */ n(z.CheckCircle, { className: h }),
16999
16999
  /* @__PURE__ */ n("span", { children: r }),
17000
17000
  /* @__PURE__ */ g("span", { className: f, children: [
17001
17001
  e === "close" && /* @__PURE__ */ n(
@@ -17005,7 +17005,7 @@ const b3 = (e, t) => {
17005
17005
  "<Snackbar> close action triggered but unassigned"
17006
17006
  )),
17007
17007
  "data-testid": `${i}-close-button`,
17008
- children: /* @__PURE__ */ n(D.X, { size: 24 })
17008
+ children: /* @__PURE__ */ n(z.X, { size: 24 })
17009
17009
  }
17010
17010
  ),
17011
17011
  e === "undo" && /* @__PURE__ */ n(
@@ -17107,23 +17107,33 @@ const b3 = (e, t) => {
17107
17107
  "data-testid": `${l}-image`,
17108
17108
  className: A
17109
17109
  }
17110
- ) : (e === "initials" || e === "image") && m ? /* @__PURE__ */ n("span", { className: M, children: m }) : /* @__PURE__ */ n(D.Avatar, { className: S })
17110
+ ) : (e === "initials" || e === "image") && m ? /* @__PURE__ */ n("span", { className: M, children: m }) : /* @__PURE__ */ n(z.Avatar, { className: S })
17111
17111
  }
17112
17112
  );
17113
17113
  }
17114
17114
  ), Y3 = T(J3), Q3 = {
17115
- neutral: D.Info,
17116
- "neutral-subtle": D.Info,
17117
- critical: D.XCircle,
17118
- "critical-subtle": D.XCircle,
17119
- caution: D.AlertCircle,
17120
- "caution-subtle": D.AlertCircle,
17121
- success: D.CheckCircle,
17122
- "success-subtle": D.CheckCircle,
17123
- warning: D.AlertTriangle,
17124
- "warning-subtle": D.AlertTriangle,
17115
+ info: z.Info,
17116
+ "info-subtle": z.Info,
17117
+ neutral: z.Info,
17118
+ "neutral-subtle": z.Info,
17119
+ critical: z.XCircle,
17120
+ "critical-subtle": z.XCircle,
17121
+ caution: z.AlertCircle,
17122
+ "caution-subtle": z.AlertCircle,
17123
+ success: z.CheckCircle,
17124
+ "success-subtle": z.CheckCircle,
17125
+ warning: z.AlertTriangle,
17126
+ "warning-subtle": z.AlertTriangle,
17125
17127
  disabled: null
17126
17128
  }, G3 = (e) => ({
17129
+ info: {
17130
+ color: e.colour.text.inverse,
17131
+ backgroundColor: e.colour.fill.brandPrimary
17132
+ },
17133
+ "info-subtle": {
17134
+ color: e.colour.text.default,
17135
+ backgroundColor: e.primitiveColour.brandPurple["03"].$value.hex
17136
+ },
17127
17137
  neutral: {
17128
17138
  color: e.colour.text.default,
17129
17139
  backgroundColor: "transparent",
@@ -18061,7 +18071,7 @@ const Eo = "ucl-uikit-breadcrumb", yb = "ucl-uikit-breadcrumb--active", bb = "uc
18061
18071
  children: [
18062
18072
  s,
18063
18073
  p < h.length - 1 && /* @__PURE__ */ n(
18064
- D.ChevronRight,
18074
+ z.ChevronRight,
18065
18075
  {
18066
18076
  size: 24,
18067
18077
  className: a
@@ -18182,7 +18192,7 @@ const gr = "ucl-uikit-checkbox", kb = Se(
18182
18192
  }
18183
18193
  ),
18184
18194
  !e && m && /* @__PURE__ */ n(
18185
- D.Empty,
18195
+ z.Empty,
18186
18196
  {
18187
18197
  className: W,
18188
18198
  size: 24,
@@ -18192,7 +18202,7 @@ const gr = "ucl-uikit-checkbox", kb = Se(
18192
18202
  }
18193
18203
  ),
18194
18204
  e && /* @__PURE__ */ n(
18195
- D.Empty,
18205
+ z.Empty,
18196
18206
  {
18197
18207
  className: H,
18198
18208
  size: 24,
@@ -18638,7 +18648,7 @@ const gr = "ucl-uikit-checkbox", kb = Se(
18638
18648
  {
18639
18649
  onClick: a,
18640
18650
  onKeyDown: s,
18641
- icon: /* @__PURE__ */ n(D.ChevronLeft, {}),
18651
+ icon: /* @__PURE__ */ n(z.ChevronLeft, {}),
18642
18652
  className: f,
18643
18653
  "aria-label": "Go Back",
18644
18654
  children: "Back"
@@ -18857,7 +18867,7 @@ const Vl = Qe({}), Ol = () => Ne(Vl), Bb = ({
18857
18867
  {
18858
18868
  onClick: c,
18859
18869
  "aria-label": "Close menu",
18860
- children: /* @__PURE__ */ n(D.X, { size: 40 })
18870
+ children: /* @__PURE__ */ n(z.X, { size: 40 })
18861
18871
  }
18862
18872
  )
18863
18873
  ] }),
@@ -18933,7 +18943,7 @@ const Vl = Qe({}), Ol = () => Ne(Vl), Bb = ({
18933
18943
  children: [
18934
18944
  b,
18935
18945
  a && /* @__PURE__ */ n(
18936
- D.ExternalLink,
18946
+ z.ExternalLink,
18937
18947
  {
18938
18948
  size: 16,
18939
18949
  className: u`
@@ -18984,7 +18994,7 @@ const Vl = Qe({}), Ol = () => Ne(Vl), Bb = ({
18984
18994
  "aria-haspopup": "true",
18985
18995
  "aria-expanded": r ? "true" : "false",
18986
18996
  ...t,
18987
- children: /* @__PURE__ */ n(D.Menu, {})
18997
+ children: /* @__PURE__ */ n(z.Menu, {})
18988
18998
  }
18989
18999
  );
18990
19000
  }, Pb = T(qb), Wo = "ucl-uikit-menu", Ub = ({
@@ -19173,7 +19183,7 @@ const Rt = ({
19173
19183
  t == null || t(), a == null || a.setIsOpen(!1);
19174
19184
  },
19175
19185
  className: s,
19176
- children: /* @__PURE__ */ n(D.X, { size: 32 })
19186
+ children: /* @__PURE__ */ n(z.X, { size: 32 })
19177
19187
  }
19178
19188
  )
19179
19189
  ]
@@ -19276,7 +19286,7 @@ const Rt = ({
19276
19286
  expanded: e,
19277
19287
  className: t
19278
19288
  }) => e ? /* @__PURE__ */ n(
19279
- D.ChevronUp,
19289
+ z.ChevronUp,
19280
19290
  {
19281
19291
  className: t,
19282
19292
  size: 24,
@@ -19285,7 +19295,7 @@ const Rt = ({
19285
19295
  testId: "ucl-uikit-menu__accordion__icon--chevron-up"
19286
19296
  }
19287
19297
  ) : /* @__PURE__ */ n(
19288
- D.ChevronDown,
19298
+ z.ChevronDown,
19289
19299
  {
19290
19300
  className: t,
19291
19301
  size: 24,
@@ -19466,7 +19476,7 @@ const Rt = ({
19466
19476
  }
19467
19477
  ),
19468
19478
  r && /* @__PURE__ */ n(
19469
- D.ExternalLink,
19479
+ z.ExternalLink,
19470
19480
  {
19471
19481
  size: 16,
19472
19482
  "aria-hidden": "true",
@@ -20102,9 +20112,9 @@ const mv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
20102
20112
  onKeyDown: (M) => {
20103
20113
  M.stopPropagation();
20104
20114
  },
20105
- children: /* @__PURE__ */ n(D.X, {})
20115
+ children: /* @__PURE__ */ n(z.X, {})
20106
20116
  }
20107
- ) : /* @__PURE__ */ n(D.ChevronDown, { className: v })
20117
+ ) : /* @__PURE__ */ n(z.ChevronDown, { className: v })
20108
20118
  ]
20109
20119
  }
20110
20120
  );
@@ -20284,13 +20294,13 @@ const mv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
20284
20294
  color: ${a.color.neutral.grey20};
20285
20295
  }
20286
20296
  `, c = k(Dr, d, o), s = {
20287
- facebook: D.Facebook,
20288
- flickr: D.Flickr,
20289
- instagram: D.Instagram,
20290
- soundcloud: D.Soundcloud,
20291
- tiktok: D.Tiktok,
20292
- x: D.XSocial,
20293
- youtube: D.Youtube
20297
+ facebook: z.Facebook,
20298
+ flickr: z.Flickr,
20299
+ instagram: z.Instagram,
20300
+ soundcloud: z.Soundcloud,
20301
+ tiktok: z.Tiktok,
20302
+ x: z.XSocial,
20303
+ youtube: z.Youtube
20294
20304
  }[e];
20295
20305
  return /* @__PURE__ */ n(
20296
20306
  Ye,
@@ -20711,14 +20721,14 @@ const Rr = "ucl-uikit-footer__column", Ev = ({
20711
20721
  background-color: ${a.colour.fill.brandInverseSecondary};
20712
20722
  }
20713
20723
  `, c = k(Or, d, o), s = {
20714
- bluesky: D.Bluesky,
20715
- facebook: D.Facebook,
20716
- instagram: D.Instagram,
20717
- linkedin: D.Linkedin,
20718
- soundcloud: D.Soundcloud,
20719
- tiktok: D.Tiktok,
20720
- threads: D.Threads,
20721
- youtube: D.Youtube
20724
+ bluesky: z.Bluesky,
20725
+ facebook: z.Facebook,
20726
+ instagram: z.Instagram,
20727
+ linkedin: z.Linkedin,
20728
+ soundcloud: z.Soundcloud,
20729
+ tiktok: z.Tiktok,
20730
+ threads: z.Threads,
20731
+ youtube: z.Youtube
20722
20732
  }[e];
20723
20733
  return /* @__PURE__ */ n(
20724
20734
  Ye,
@@ -21044,7 +21054,7 @@ const Rr = "ucl-uikit-footer__column", Ev = ({
21044
21054
  onClick: l,
21045
21055
  children: [
21046
21056
  "Back to top ",
21047
- /* @__PURE__ */ n(D.ArrowUp, {})
21057
+ /* @__PURE__ */ n(z.ArrowUp, {})
21048
21058
  ]
21049
21059
  }
21050
21060
  )
@@ -21653,7 +21663,7 @@ const ti = "ucl-uikit-header__bottom--breadcrumbs", i6 = ({
21653
21663
  /* @__PURE__ */ n("div", { className: M, children: r })
21654
21664
  ] }),
21655
21665
  /* @__PURE__ */ n(
21656
- D.ChevronDown,
21666
+ z.ChevronDown,
21657
21667
  {
21658
21668
  className: S,
21659
21669
  size: 24
@@ -21703,7 +21713,7 @@ const ti = "ucl-uikit-header__bottom--breadcrumbs", i6 = ({
21703
21713
  children: [
21704
21714
  /* @__PURE__ */ n("span", { className: s, children: r }),
21705
21715
  e && /* @__PURE__ */ n(
21706
- D.ChevronRight,
21716
+ z.ChevronRight,
21707
21717
  {
21708
21718
  className: p,
21709
21719
  size: 24,
@@ -22282,10 +22292,10 @@ const ui = "ucl-uikit-alert__message", A6 = ({
22282
22292
  color: ${a.colour.icon.critical};
22283
22293
  `
22284
22294
  ), y = {
22285
- info: D.Info,
22286
- success: D.CheckCircle,
22287
- warning: D.AlertTriangle,
22288
- error: D.XCircle
22295
+ info: z.Info,
22296
+ success: z.CheckCircle,
22297
+ warning: z.AlertTriangle,
22298
+ error: z.XCircle
22289
22299
  }[e];
22290
22300
  return /* @__PURE__ */ n(I6.Provider, { value: { type: e }, children: /* @__PURE__ */ g(
22291
22301
  "div",
@@ -22481,7 +22491,7 @@ const gi = "ucl-uikit-accordion__heading", mi = "ucl-uikit-accordion__heading__i
22481
22491
  children: [
22482
22492
  e,
22483
22493
  /* @__PURE__ */ n(
22484
- D.ChevronDown,
22494
+ z.ChevronDown,
22485
22495
  {
22486
22496
  size: c === "medium" ? 32 : 24,
22487
22497
  className: y
@@ -22920,7 +22930,7 @@ const wi = "ucl-uikit-dialog__header", J6 = ({
22920
22930
  "aria-label": "Close dialog",
22921
22931
  onClick: f,
22922
22932
  children: /* @__PURE__ */ n(
22923
- D.X,
22933
+ z.X,
22924
22934
  {
22925
22935
  role: "presentation",
22926
22936
  "aria-hidden": "true"
@@ -23188,21 +23198,21 @@ const Si = "ucl-uikit-base-dialog", $6 = 495, _6 = 495, ew = 740, tw = ({
23188
23198
  `
23189
23199
  ), m = {
23190
23200
  success: /* @__PURE__ */ n(
23191
- D.CheckCircle,
23201
+ z.CheckCircle,
23192
23202
  {
23193
23203
  size: Do,
23194
23204
  className: f
23195
23205
  }
23196
23206
  ),
23197
23207
  error: /* @__PURE__ */ n(
23198
- D.XCircle,
23208
+ z.XCircle,
23199
23209
  {
23200
23210
  size: Do,
23201
23211
  className: f
23202
23212
  }
23203
23213
  ),
23204
23214
  warning: /* @__PURE__ */ n(
23205
- D.AlertTriangle,
23215
+ z.AlertTriangle,
23206
23216
  {
23207
23217
  size: Do,
23208
23218
  className: f
@@ -23648,7 +23658,7 @@ const lw = 100, aw = 1e3, sw = () => {
23648
23658
  className: b,
23649
23659
  "aria-label": "Clear date",
23650
23660
  "data-testid": `${Yt}-icon-button`,
23651
- children: /* @__PURE__ */ n(D.X, { className: y })
23661
+ children: /* @__PURE__ */ n(z.X, { className: y })
23652
23662
  }
23653
23663
  ) : /* @__PURE__ */ n(
23654
23664
  De,
@@ -23660,7 +23670,7 @@ const lw = 100, aw = 1e3, sw = () => {
23660
23670
  "data-testid": `${Yt}-icon-button`,
23661
23671
  tabIndex: -1,
23662
23672
  disabled: a,
23663
- children: /* @__PURE__ */ n(D.Calendar, { className: y })
23673
+ children: /* @__PURE__ */ n(z.Calendar, { className: y })
23664
23674
  }
23665
23675
  )
23666
23676
  ]
@@ -23832,7 +23842,7 @@ const lw = 100, aw = 1e3, sw = () => {
23832
23842
  "data-testid": Fi,
23833
23843
  children: [
23834
23844
  /* @__PURE__ */ n(
23835
- D.ChevronLeft,
23845
+ z.ChevronLeft,
23836
23846
  {
23837
23847
  className: l,
23838
23848
  onClick: () => t(-1)
@@ -23847,7 +23857,7 @@ const lw = 100, aw = 1e3, sw = () => {
23847
23857
  /* @__PURE__ */ n("span", { children: e ? e.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear() })
23848
23858
  ] }),
23849
23859
  /* @__PURE__ */ n(
23850
- D.ChevronRight,
23860
+ z.ChevronRight,
23851
23861
  {
23852
23862
  className: l,
23853
23863
  onClick: () => t(1)
@@ -24355,7 +24365,7 @@ const xw = ({
24355
24365
  onClick: ge,
24356
24366
  disabled: i,
24357
24367
  "aria-label": "Go to previous week",
24358
- children: /* @__PURE__ */ n(D.ChevronLeft, {})
24368
+ children: /* @__PURE__ */ n(z.ChevronLeft, {})
24359
24369
  }
24360
24370
  ),
24361
24371
  /* @__PURE__ */ n(
@@ -24379,7 +24389,7 @@ const xw = ({
24379
24389
  onClick: Fe,
24380
24390
  disabled: i,
24381
24391
  "aria-label": "Go to next week",
24382
- children: /* @__PURE__ */ n(D.ChevronRight, {})
24392
+ children: /* @__PURE__ */ n(z.ChevronRight, {})
24383
24393
  }
24384
24394
  ),
24385
24395
  M && /* @__PURE__ */ n(ta, { children: /* @__PURE__ */ n(
@@ -24456,7 +24466,7 @@ const xw = ({
24456
24466
  onClick: i,
24457
24467
  className: m,
24458
24468
  children: /* @__PURE__ */ n(
24459
- D.Calendar,
24469
+ z.Calendar,
24460
24470
  {
24461
24471
  className: b,
24462
24472
  size: 16
@@ -24606,7 +24616,7 @@ const xw = ({
24606
24616
  htmlFor: `file-input-${o}`,
24607
24617
  className: c,
24608
24618
  children: [
24609
- /* @__PURE__ */ n(D.Upload, {}),
24619
+ /* @__PURE__ */ n(z.Upload, {}),
24610
24620
  t
24611
24621
  ]
24612
24622
  }
@@ -24751,7 +24761,7 @@ const xw = ({
24751
24761
  target: "_blank",
24752
24762
  children: [
24753
24763
  "Cookies policy ",
24754
- /* @__PURE__ */ n(D.ExternalLink, { className: b })
24764
+ /* @__PURE__ */ n(z.ExternalLink, { className: b })
24755
24765
  ]
24756
24766
  }
24757
24767
  )
@@ -24863,7 +24873,7 @@ const xw = ({
24863
24873
  "aria-label": "Clear search",
24864
24874
  "data-testid": `${t}-clear-search-btn`,
24865
24875
  ...m,
24866
- children: /* @__PURE__ */ n(D.X, {})
24876
+ children: /* @__PURE__ */ n(z.X, {})
24867
24877
  }
24868
24878
  ),
24869
24879
  /* @__PURE__ */ n("div", { className: _ }),
@@ -24876,7 +24886,7 @@ const xw = ({
24876
24886
  "aria-label": "Search",
24877
24887
  "data-testid": `${t}-search-btn`,
24878
24888
  ...b,
24879
- children: /* @__PURE__ */ n(D.Search, {})
24889
+ children: /* @__PURE__ */ n(z.Search, {})
24880
24890
  }
24881
24891
  )
24882
24892
  ] })
@@ -25097,13 +25107,13 @@ const Ow = ({
25097
25107
  ...l
25098
25108
  }) => {
25099
25109
  const a = !!l["aria-expanded"], d = a ? r : o, c = a ? /* @__PURE__ */ n(
25100
- D.X,
25110
+ z.X,
25101
25111
  {
25102
25112
  title: "Close menu",
25103
25113
  testId: "ucl-uikit-dropdown-menu__icon-close"
25104
25114
  }
25105
25115
  ) : /* @__PURE__ */ n(
25106
- D.Menu2,
25116
+ z.Menu2,
25107
25117
  {
25108
25118
  title: "Open menu",
25109
25119
  testId: "ucl-uikit-dropdown-menu__icon-open"
@@ -25268,7 +25278,7 @@ const Ow = ({
25268
25278
  size: i
25269
25279
  }
25270
25280
  ),
25271
- /* @__PURE__ */ n(D.ChevronDown, { size: 20 })
25281
+ /* @__PURE__ */ n(z.ChevronDown, { size: 20 })
25272
25282
  ]
25273
25283
  }
25274
25284
  ) }),
@@ -25369,7 +25379,7 @@ export {
25369
25379
  Ul as HeaderNew,
25370
25380
  Dl as Heading,
25371
25381
  Dl as HeadingNew,
25372
- D as Icon,
25382
+ z as Icon,
25373
25383
  De as IconButton,
25374
25384
  w4 as Input,
25375
25385
  zl as Label,
@@ -4,6 +4,8 @@ import Badge from './Badge';
4
4
  import { type BadgeVariant } from './Badge';
5
5
 
6
6
  const VARIANTS: BadgeVariant[] = [
7
+ 'info',
8
+ 'info-subtle',
7
9
  'neutral',
8
10
  'neutral-subtle',
9
11
  'critical',
@@ -6,6 +6,8 @@ import type { SpecificIconProps } from '../Icon/Icon';
6
6
  import type { ThemeType } from '../../theme';
7
7
 
8
8
  export type BadgeVariant =
9
+ | 'info'
10
+ | 'info-subtle'
9
11
  | 'neutral'
10
12
  | 'neutral-subtle'
11
13
  | 'critical'
@@ -19,6 +21,8 @@ export type BadgeVariant =
19
21
  | 'disabled';
20
22
 
21
23
  export const VARIANT_ICON_MAP = {
24
+ info: Icon.Info,
25
+ 'info-subtle': Icon.Info,
22
26
  neutral: Icon.Info,
23
27
  'neutral-subtle': Icon.Info,
24
28
  critical: Icon.XCircle,
@@ -41,6 +45,14 @@ export interface BadgeVariantStyle {
41
45
  export const getBadgeVariantColours = (
42
46
  theme: ThemeType
43
47
  ): Record<BadgeVariant, BadgeVariantStyle> => ({
48
+ info: {
49
+ color: theme.colour.text.inverse,
50
+ backgroundColor: theme.colour.fill.brandPrimary,
51
+ },
52
+ 'info-subtle': {
53
+ color: theme.colour.text.default,
54
+ backgroundColor: theme.primitiveColour.brandPurple['03'].$value.hex,
55
+ },
44
56
  neutral: {
45
57
  color: theme.colour.text.default,
46
58
  backgroundColor: 'transparent',
@@ -29,6 +29,25 @@ describe('Badge', () => {
29
29
  expect(container.firstChild).toMatchSnapshot();
30
30
  });
31
31
 
32
+ test('snapshot: variant=info with icon', () => {
33
+ const { container } = wrap(
34
+ <Badge
35
+ variant='info'
36
+ icon
37
+ >
38
+ Info
39
+ </Badge>
40
+ );
41
+ expect(container.firstChild).toMatchSnapshot();
42
+ });
43
+
44
+ test('snapshot: variant=info-subtle', () => {
45
+ const { container } = wrap(
46
+ <Badge variant='info-subtle'>Info subtle</Badge>
47
+ );
48
+ expect(container.firstChild).toMatchSnapshot();
49
+ });
50
+
32
51
  test('snapshot: variant=critical with icon', () => {
33
52
  const { container } = wrap(
34
53
  <Badge
@@ -73,6 +73,48 @@ exports[`Badge > snapshot: variant=disabled 1`] = `
73
73
  </span>
74
74
  `;
75
75
 
76
+ exports[`Badge > snapshot: variant=info with icon 1`] = `
77
+ <span
78
+ class="ucl-uikit-badge css-11fgrnl"
79
+ data-testid="ucl-uikit-badge"
80
+ >
81
+ <svg
82
+ aria-hidden="true"
83
+ class="ucl-uikit-icon css-y1s4m2"
84
+ data-testid="ucl-uikit-icon"
85
+ fill="none"
86
+ focusable="false"
87
+ height="14"
88
+ stroke="currentColor"
89
+ stroke-linecap="round"
90
+ stroke-linejoin="round"
91
+ stroke-width="2"
92
+ viewBox="0 0 24 24"
93
+ width="14"
94
+ xmlns="http://www.w3.org/2000/svg"
95
+ >
96
+ <circle
97
+ cx="12"
98
+ cy="12"
99
+ r="10"
100
+ />
101
+ <path
102
+ d="M12 16v-4m0-4h.01"
103
+ />
104
+ </svg>
105
+ Info
106
+ </span>
107
+ `;
108
+
109
+ exports[`Badge > snapshot: variant=info-subtle 1`] = `
110
+ <span
111
+ class="ucl-uikit-badge css-1t6kxcm"
112
+ data-testid="ucl-uikit-badge"
113
+ >
114
+ Info subtle
115
+ </span>
116
+ `;
117
+
76
118
  exports[`Badge > snapshot: variant=success with icon 1`] = `
77
119
  <span
78
120
  class="ucl-uikit-badge css-16a4ap6"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit-react-public",
3
3
  "private": false,
4
4
  "license": "UNLICENSED",
5
- "version": "0.25.4",
5
+ "version": "0.25.5",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",