@purpurds/notification 5.32.0 → 5.34.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.
@@ -1,12 +1,13 @@
1
1
  import { jsxs as b, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as E } from "react";
2
+ import { forwardRef as L } from "react";
3
3
  const Z = {
4
+ XS: "xs",
4
5
  SM: "sm",
5
6
  MD: "md",
6
7
  LG: "lg"
7
8
  };
8
- function H(t) {
9
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
9
+ function H(e) {
10
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10
11
  }
11
12
  var I = { exports: {} };
12
13
  /*!
@@ -14,17 +15,17 @@ var I = { exports: {} };
14
15
  Licensed under the MIT License (MIT), see
15
16
  http://jedwatson.github.io/classnames
16
17
  */
17
- (function(t) {
18
+ (function(e) {
18
19
  (function() {
19
20
  var p = {}.hasOwnProperty;
20
21
  function a() {
21
- for (var r = "", e = 0; e < arguments.length; e++) {
22
- var n = arguments[e];
23
- n && (r = i(r, u(n)));
22
+ for (var r = "", t = 0; t < arguments.length; t++) {
23
+ var n = arguments[t];
24
+ n && (r = u(r, i(n)));
24
25
  }
25
26
  return r;
26
27
  }
27
- function u(r) {
28
+ function i(r) {
28
29
  if (typeof r == "string" || typeof r == "number")
29
30
  return r;
30
31
  if (typeof r != "object")
@@ -33,21 +34,21 @@ var I = { exports: {} };
33
34
  return a.apply(null, r);
34
35
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
35
36
  return r.toString();
36
- var e = "";
37
+ var t = "";
37
38
  for (var n in r)
38
- p.call(r, n) && r[n] && (e = i(e, n));
39
- return e;
39
+ p.call(r, n) && r[n] && (t = u(t, n));
40
+ return t;
40
41
  }
41
- function i(r, e) {
42
- return e ? r ? r + " " + e : r + e : r;
42
+ function u(r, t) {
43
+ return t ? r ? r + " " + t : r + t : r;
43
44
  }
44
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
45
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
45
46
  })();
46
47
  })(I);
47
- var U = I.exports;
48
- const q = /* @__PURE__ */ H(U), V = "_rotate_1xozj_1", F = "_dash_1xozj_1", h = {
48
+ var V = I.exports;
49
+ const j = /* @__PURE__ */ H(V), U = "_rotate_1xozj_1", F = "_dash_1xozj_1", h = {
49
50
  "purpur-spinner": "_purpur-spinner_1xozj_1",
50
- rotate: V,
51
+ rotate: U,
51
52
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
52
53
  "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
53
54
  "purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
@@ -64,21 +65,21 @@ const q = /* @__PURE__ */ H(U), V = "_rotate_1xozj_1", F = "_dash_1xozj_1", h =
64
65
  MD: "md",
65
66
  LG: "lg"
66
67
  }, W = ({
67
- ["data-testid"]: t,
68
+ ["data-testid"]: e,
68
69
  disabled: p = !1,
69
70
  negative: a = !1,
70
- size: u = X.SM,
71
- ...i
71
+ size: i = X.SM,
72
+ ...u
72
73
  }) => /* @__PURE__ */ s(
73
74
  "div",
74
75
  {
75
- className: q([h[v], h[`${v}--${u}`]]),
76
- "data-testid": t,
77
- ...i,
76
+ className: j([h[v], h[`${v}--${i}`]]),
77
+ "data-testid": e,
78
+ ...u,
78
79
  children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
79
80
  "circle",
80
81
  {
81
- className: q(h[`${v}__circle`], {
82
+ className: j(h[`${v}__circle`], {
82
83
  [h[`${v}__circle--disabled`]]: p,
83
84
  [h[`${v}__circle--negative`]]: a
84
85
  }),
@@ -89,8 +90,8 @@ const q = /* @__PURE__ */ H(U), V = "_rotate_1xozj_1", F = "_dash_1xozj_1", h =
89
90
  ) })
90
91
  }
91
92
  );
92
- function Y(t) {
93
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
93
+ function Y(e) {
94
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
94
95
  }
95
96
  var R = { exports: {} };
96
97
  /*!
@@ -98,17 +99,17 @@ var R = { exports: {} };
98
99
  Licensed under the MIT License (MIT), see
99
100
  http://jedwatson.github.io/classnames
100
101
  */
101
- (function(t) {
102
+ (function(e) {
102
103
  (function() {
103
104
  var p = {}.hasOwnProperty;
104
105
  function a() {
105
- for (var r = "", e = 0; e < arguments.length; e++) {
106
- var n = arguments[e];
107
- n && (r = i(r, u.call(this, n)));
106
+ for (var r = "", t = 0; t < arguments.length; t++) {
107
+ var n = arguments[t];
108
+ n && (r = u(r, i.call(this, n)));
108
109
  }
109
110
  return r;
110
111
  }
111
- function u(r) {
112
+ function i(r) {
112
113
  if (typeof r == "string" || typeof r == "number")
113
114
  return this && this[r] || r;
114
115
  if (typeof r != "object")
@@ -117,54 +118,55 @@ var R = { exports: {} };
117
118
  return a.apply(this, r);
118
119
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
119
120
  return r.toString();
120
- var e = "";
121
+ var t = "";
121
122
  for (var n in r)
122
- p.call(r, n) && r[n] && (e = i(e, this && this[n] || n));
123
- return e;
123
+ p.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
124
+ return t;
124
125
  }
125
- function i(r, e) {
126
- return e ? r ? r + " " + e : r + e : r;
126
+ function u(r, t) {
127
+ return t ? r ? r + " " + t : r + t : r;
127
128
  }
128
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
129
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
129
130
  })();
130
131
  })(R);
131
132
  var J = R.exports;
132
133
  const K = /* @__PURE__ */ Y(J), Q = {
133
- "purpur-button": "_purpur-button_1acxn_1",
134
- "purpur-button--sm": "_purpur-button--sm_1acxn_33",
135
- "purpur-button--icon-only": "_purpur-button--icon-only_1acxn_36",
136
- "purpur-button--md": "_purpur-button--md_1acxn_39",
137
- "purpur-button--lg": "_purpur-button--lg_1acxn_45",
138
- "purpur-button--full-width": "_purpur-button--full-width_1acxn_51",
139
- "purpur-button--primary": "_purpur-button--primary_1acxn_54",
140
- "purpur-button--disabled": "_purpur-button--disabled_1acxn_58",
141
- "purpur-button--primary-negative": "_purpur-button--primary-negative_1acxn_64",
142
- "purpur-button--secondary": "_purpur-button--secondary_1acxn_76",
143
- "purpur-button--secondary-negative": "_purpur-button--secondary-negative_1acxn_87",
144
- "purpur-button--expressive": "_purpur-button--expressive_1acxn_98",
145
- "purpur-button--expressive-negative": "_purpur-button--expressive-negative_1acxn_108",
146
- "purpur-button--negative": "_purpur-button--negative_1acxn_120",
147
- "purpur-button--destructive": "_purpur-button--destructive_1acxn_127",
148
- "purpur-button--destructive-negative": "_purpur-button--destructive-negative_1acxn_137",
149
- "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_1acxn_147",
150
- "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
151
- "purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
152
- "purpur-button--text": "_purpur-button--text_1acxn_175"
153
- }, rr = K.bind(Q), f = "purpur-button", er = ({
154
- children: t,
134
+ "purpur-button": "_purpur-button_w455q_1",
135
+ "purpur-button--xs": "_purpur-button--xs_w455q_33",
136
+ "purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
137
+ "purpur-button--sm": "_purpur-button--sm_w455q_39",
138
+ "purpur-button--md": "_purpur-button--md_w455q_45",
139
+ "purpur-button--lg": "_purpur-button--lg_w455q_51",
140
+ "purpur-button--full-width": "_purpur-button--full-width_w455q_57",
141
+ "purpur-button--primary": "_purpur-button--primary_w455q_60",
142
+ "purpur-button--disabled": "_purpur-button--disabled_w455q_64",
143
+ "purpur-button--primary-negative": "_purpur-button--primary-negative_w455q_70",
144
+ "purpur-button--secondary": "_purpur-button--secondary_w455q_82",
145
+ "purpur-button--secondary-negative": "_purpur-button--secondary-negative_w455q_93",
146
+ "purpur-button--expressive": "_purpur-button--expressive_w455q_104",
147
+ "purpur-button--expressive-negative": "_purpur-button--expressive-negative_w455q_114",
148
+ "purpur-button--negative": "_purpur-button--negative_w455q_126",
149
+ "purpur-button--destructive": "_purpur-button--destructive_w455q_133",
150
+ "purpur-button--destructive-negative": "_purpur-button--destructive-negative_w455q_143",
151
+ "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_w455q_153",
152
+ "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
153
+ "purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
154
+ "purpur-button--text": "_purpur-button--text_w455q_181"
155
+ }, rr = K.bind(Q), f = "purpur-button", tr = ({
156
+ children: e,
155
157
  className: p,
156
158
  ["data-testid"]: a,
157
- disabled: u = !1,
158
- fullWidth: i = !1,
159
+ disabled: i = !1,
160
+ fullWidth: u = !1,
159
161
  iconOnly: r,
160
- loading: e = !1,
162
+ loading: t = !1,
161
163
  negative: n = !1,
162
- onClick: _,
164
+ onClick: c,
163
165
  size: d = "md",
164
166
  variant: o,
165
167
  type: g = "button",
166
- ...w
167
- }, N) => {
168
+ ...x
169
+ }, S) => {
168
170
  if (r && o === "destructive")
169
171
  return null;
170
172
  const B = rr(
@@ -176,34 +178,34 @@ const K = /* @__PURE__ */ Y(J), Q = {
176
178
  {
177
179
  [`${f}--icon-only`]: r,
178
180
  [`${f}--negative`]: n,
179
- [`${f}--full-width`]: i,
180
- [`${f}--disabled`]: u || e
181
+ [`${f}--full-width`]: u,
182
+ [`${f}--disabled`]: i || t
181
183
  },
182
184
  p
183
- ), G = (j) => {
184
- u || e ? j.preventDefault() : _ && _(j);
185
- }, A = !!w["aria-disabled"] || u || e;
185
+ ), G = (A) => {
186
+ i || t ? A.preventDefault() : c && c(A);
187
+ }, O = !!x["aria-disabled"] || i || t;
186
188
  return /* @__PURE__ */ b(
187
189
  "button",
188
190
  {
189
191
  className: B,
190
192
  "data-testid": a,
191
193
  type: g,
192
- ref: N,
193
- "aria-disabled": A,
194
+ ref: S,
195
+ "aria-disabled": O,
194
196
  onClick: G,
195
- ...w,
197
+ ...x,
196
198
  children: [
197
- e && /* @__PURE__ */ s(W, { size: d === Z.LG ? "xs" : "xxs", negative: n, disabled: A }),
199
+ t && /* @__PURE__ */ s(W, { size: d === Z.LG ? "xs" : "xxs", negative: n, disabled: O }),
198
200
  " ",
199
- t
201
+ e
200
202
  ]
201
203
  }
202
204
  );
203
- }, P = E(er);
205
+ }, P = L(tr);
204
206
  P.displayName = "Button";
205
- function tr(t) {
206
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
207
+ function er(e) {
208
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
207
209
  }
208
210
  var M = { exports: {} };
209
211
  /*!
@@ -211,17 +213,17 @@ var M = { exports: {} };
211
213
  Licensed under the MIT License (MIT), see
212
214
  http://jedwatson.github.io/classnames
213
215
  */
214
- (function(t) {
216
+ (function(e) {
215
217
  (function() {
216
218
  var p = {}.hasOwnProperty;
217
219
  function a() {
218
- for (var r = "", e = 0; e < arguments.length; e++) {
219
- var n = arguments[e];
220
- n && (r = i(r, u(n)));
220
+ for (var r = "", t = 0; t < arguments.length; t++) {
221
+ var n = arguments[t];
222
+ n && (r = u(r, i(n)));
221
223
  }
222
224
  return r;
223
225
  }
224
- function u(r) {
226
+ function i(r) {
225
227
  if (typeof r == "string" || typeof r == "number")
226
228
  return r;
227
229
  if (typeof r != "object")
@@ -230,19 +232,19 @@ var M = { exports: {} };
230
232
  return a.apply(null, r);
231
233
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
232
234
  return r.toString();
233
- var e = "";
235
+ var t = "";
234
236
  for (var n in r)
235
- p.call(r, n) && r[n] && (e = i(e, n));
236
- return e;
237
+ p.call(r, n) && r[n] && (t = u(t, n));
238
+ return t;
237
239
  }
238
- function i(r, e) {
239
- return e ? r ? r + " " + e : r + e : r;
240
+ function u(r, t) {
241
+ return t ? r ? r + " " + t : r + t : r;
240
242
  }
241
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
243
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
242
244
  })();
243
245
  })(M);
244
246
  var nr = M.exports;
245
- const ar = /* @__PURE__ */ tr(nr), $ = {
247
+ const ar = /* @__PURE__ */ er(nr), $ = {
246
248
  "purpur-heading": "_purpur-heading_k9fhq_1",
247
249
  "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
248
250
  "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
@@ -267,30 +269,30 @@ const ar = /* @__PURE__ */ tr(nr), $ = {
267
269
  TITLE600: "title-600",
268
270
  TITLE700: "title-700",
269
271
  SUBSECTION100: "subsection-100"
270
- }, S = "purpur-heading", T = ({
271
- ["data-testid"]: t,
272
+ }, q = "purpur-heading", T = ({
273
+ ["data-testid"]: e,
272
274
  children: p,
273
275
  className: a = "",
274
- enableHyphenation: u = !1,
275
- negative: i = !1,
276
+ enableHyphenation: i = !1,
277
+ negative: u = !1,
276
278
  tag: r,
277
- variant: e = pr.TITLE100,
279
+ variant: t = pr.TITLE100,
278
280
  ...n
279
281
  }) => {
280
- const _ = r, d = ar([
282
+ const c = r, d = ar([
281
283
  a,
282
- $[S],
283
- $[`${S}--${e}`],
284
+ $[q],
285
+ $[`${q}--${t}`],
284
286
  {
285
- [$[`${S}--hyphens`]]: u,
286
- [$[`${S}--negative`]]: i
287
+ [$[`${q}--hyphens`]]: i,
288
+ [$[`${q}--negative`]]: u
287
289
  }
288
290
  ]);
289
- return /* @__PURE__ */ s(_, { ...n, className: d, "data-testid": t, children: p });
291
+ return /* @__PURE__ */ s(c, { ...n, className: d, "data-testid": e, children: p });
290
292
  };
291
293
  T.displayName = "Heading";
292
- function ir(t) {
293
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
294
+ function ur(e) {
295
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
294
296
  }
295
297
  var k = { exports: {} };
296
298
  /*!
@@ -298,17 +300,17 @@ var k = { exports: {} };
298
300
  Licensed under the MIT License (MIT), see
299
301
  http://jedwatson.github.io/classnames
300
302
  */
301
- (function(t) {
303
+ (function(e) {
302
304
  (function() {
303
305
  var p = {}.hasOwnProperty;
304
306
  function a() {
305
- for (var r = "", e = 0; e < arguments.length; e++) {
306
- var n = arguments[e];
307
- n && (r = i(r, u.call(this, n)));
307
+ for (var r = "", t = 0; t < arguments.length; t++) {
308
+ var n = arguments[t];
309
+ n && (r = u(r, i.call(this, n)));
308
310
  }
309
311
  return r;
310
312
  }
311
- function u(r) {
313
+ function i(r) {
312
314
  if (typeof r == "string" || typeof r == "number")
313
315
  return this && this[r] || r;
314
316
  if (typeof r != "object")
@@ -317,19 +319,19 @@ var k = { exports: {} };
317
319
  return a.apply(this, r);
318
320
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
319
321
  return r.toString();
320
- var e = "";
322
+ var t = "";
321
323
  for (var n in r)
322
- p.call(r, n) && r[n] && (e = i(e, this && this[n] || n));
323
- return e;
324
+ p.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
325
+ return t;
324
326
  }
325
- function i(r, e) {
326
- return e ? r ? r + " " + e : r + e : r;
327
+ function u(r, t) {
328
+ return t ? r ? r + " " + t : r + t : r;
327
329
  }
328
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
330
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
329
331
  })();
330
332
  })(k);
331
- var ur = k.exports;
332
- const or = /* @__PURE__ */ ir(ur), sr = {
333
+ var ir = k.exports;
334
+ const or = /* @__PURE__ */ ur(ir), sr = {
333
335
  "purpur-icon": "_purpur-icon_8u1lq_1",
334
336
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
335
337
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -342,12 +344,12 @@ const or = /* @__PURE__ */ ir(ur), sr = {
342
344
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm1.038-14.81-.247 6.875h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.916c0 .649-.585 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
343
345
  keywords: ["alert-filled"],
344
346
  category: "status"
345
- }, cr = {
347
+ }, _r = {
346
348
  name: "check-circle-filled",
347
349
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
348
350
  keywords: ["check-circle-filled"],
349
351
  category: "status"
350
- }, _r = {
352
+ }, cr = {
351
353
  name: "close",
352
354
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
353
355
  keywords: ["close"],
@@ -362,40 +364,40 @@ const or = /* @__PURE__ */ ir(ur), sr = {
362
364
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM10.9 7.786c0 .591.516 1.077 1.108 1.077.576 0 1.092-.486 1.092-1.077 0-.592-.516-1.078-1.092-1.078-.592 0-1.108.486-1.108 1.078Zm.167 9.74h1.866V9.94h-1.866v7.586Z" clip-rule="evenodd"/></svg>',
363
365
  keywords: ["info-filled"],
364
366
  category: "status"
365
- }, gr = or.bind(sr), L = "purpur-icon", hr = "md", vr = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), mr = ({ content: t = "", title: p } = {}) => {
367
+ }, gr = or.bind(sr), E = "purpur-icon", hr = "md", vr = (e) => e.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), mr = ({ content: e = "", title: p } = {}) => {
366
368
  const a = [
367
369
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
368
370
  { name: "fill", value: "currentColor" },
369
371
  { name: "viewBox", value: "0 0 24 24" },
370
372
  p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
371
- ], u = p ? `<title>${p}</title>` : "";
372
- return `<svg ${vr(a)}>${u}${t}</svg>`;
373
- }, yr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
374
- ["data-testid"]: t,
373
+ ], i = p ? `<title>${p}</title>` : "";
374
+ return `<svg ${vr(a)}>${i}${e}</svg>`;
375
+ }, yr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), N = ({
376
+ ["data-testid"]: e,
375
377
  svg: p,
376
378
  allyTitle: a,
377
- className: u,
378
- size: i = hr,
379
+ className: i,
380
+ size: u = hr,
379
381
  ...r
380
382
  }) => {
381
- const e = mr({
383
+ const t = mr({
382
384
  content: yr(p.svg),
383
385
  title: a
384
- }), n = gr(u, L, `${L}--${i}`);
386
+ }), n = gr(i, E, `${E}--${u}`);
385
387
  return /* @__PURE__ */ s(
386
388
  "span",
387
389
  {
388
390
  "aria-label": a,
389
391
  className: n,
390
- "data-testid": t,
391
- dangerouslySetInnerHTML: { __html: e },
392
+ "data-testid": e,
393
+ dangerouslySetInnerHTML: { __html: t },
392
394
  ...r
393
395
  }
394
396
  );
395
397
  };
396
- O.displayName = "Icon";
397
- function br(t) {
398
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
398
+ N.displayName = "Icon";
399
+ function br(e) {
400
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
399
401
  }
400
402
  var z = { exports: {} };
401
403
  /*!
@@ -403,17 +405,17 @@ var z = { exports: {} };
403
405
  Licensed under the MIT License (MIT), see
404
406
  http://jedwatson.github.io/classnames
405
407
  */
406
- (function(t) {
408
+ (function(e) {
407
409
  (function() {
408
410
  var p = {}.hasOwnProperty;
409
411
  function a() {
410
- for (var r = "", e = 0; e < arguments.length; e++) {
411
- var n = arguments[e];
412
- n && (r = i(r, u(n)));
412
+ for (var r = "", t = 0; t < arguments.length; t++) {
413
+ var n = arguments[t];
414
+ n && (r = u(r, i(n)));
413
415
  }
414
416
  return r;
415
417
  }
416
- function u(r) {
418
+ function i(r) {
417
419
  if (typeof r == "string" || typeof r == "number")
418
420
  return r;
419
421
  if (typeof r != "object")
@@ -422,19 +424,19 @@ var z = { exports: {} };
422
424
  return a.apply(null, r);
423
425
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
424
426
  return r.toString();
425
- var e = "";
427
+ var t = "";
426
428
  for (var n in r)
427
- p.call(r, n) && r[n] && (e = i(e, n));
428
- return e;
429
+ p.call(r, n) && r[n] && (t = u(t, n));
430
+ return t;
429
431
  }
430
- function i(r, e) {
431
- return e ? r ? r + " " + e : r + e : r;
432
+ function u(r, t) {
433
+ return t ? r ? r + " " + t : r + t : r;
432
434
  }
433
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
435
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
434
436
  })();
435
437
  })(z);
436
- var xr = z.exports;
437
- const wr = /* @__PURE__ */ br(xr), m = {
438
+ var wr = z.exports;
439
+ const xr = /* @__PURE__ */ br(wr), m = {
438
440
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
439
441
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
440
442
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -461,30 +463,30 @@ const wr = /* @__PURE__ */ br(xr), m = {
461
463
  OVERLINE100: "overline-100",
462
464
  OVERLINE200: "overline-200"
463
465
  }, y = "purpur-paragraph", C = ({
464
- ["data-testid"]: t,
466
+ ["data-testid"]: e,
465
467
  children: p,
466
468
  className: a,
467
- disabled: u,
468
- enableHyphenation: i = !1,
469
+ disabled: i,
470
+ enableHyphenation: u = !1,
469
471
  negative: r = !1,
470
- variant: e = $r.PARAGRAPH100,
472
+ variant: t = $r.PARAGRAPH100,
471
473
  ...n
472
474
  }) => {
473
- const _ = wr([
475
+ const c = xr([
474
476
  a,
475
477
  m[y],
476
- m[`${y}--${e}`],
478
+ m[`${y}--${t}`],
477
479
  {
478
- [m[`${y}--hyphens`]]: i,
479
- [m[`${y}--disabled`]]: u,
480
+ [m[`${y}--hyphens`]]: u,
481
+ [m[`${y}--disabled`]]: i,
480
482
  [m[`${y}--negative`]]: r
481
483
  }
482
484
  ]);
483
- return /* @__PURE__ */ s("p", { ...n, className: _, "data-testid": t, children: p });
485
+ return /* @__PURE__ */ s("p", { ...n, className: c, "data-testid": e, children: p });
484
486
  };
485
487
  C.displayName = "Paragraph";
486
- function Sr(t) {
487
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
488
+ function qr(e) {
489
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
488
490
  }
489
491
  var D = { exports: {} };
490
492
  /*!
@@ -492,17 +494,17 @@ var D = { exports: {} };
492
494
  Licensed under the MIT License (MIT), see
493
495
  http://jedwatson.github.io/classnames
494
496
  */
495
- (function(t) {
497
+ (function(e) {
496
498
  (function() {
497
499
  var p = {}.hasOwnProperty;
498
500
  function a() {
499
- for (var r = "", e = 0; e < arguments.length; e++) {
500
- var n = arguments[e];
501
- n && (r = i(r, u(n)));
501
+ for (var r = "", t = 0; t < arguments.length; t++) {
502
+ var n = arguments[t];
503
+ n && (r = u(r, i(n)));
502
504
  }
503
505
  return r;
504
506
  }
505
- function u(r) {
507
+ function i(r) {
506
508
  if (typeof r == "string" || typeof r == "number")
507
509
  return r;
508
510
  if (typeof r != "object")
@@ -511,19 +513,19 @@ var D = { exports: {} };
511
513
  return a.apply(null, r);
512
514
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
513
515
  return r.toString();
514
- var e = "";
516
+ var t = "";
515
517
  for (var n in r)
516
- p.call(r, n) && r[n] && (e = i(e, n));
517
- return e;
518
+ p.call(r, n) && r[n] && (t = u(t, n));
519
+ return t;
518
520
  }
519
- function i(r, e) {
520
- return e ? r ? r + " " + e : r + e : r;
521
+ function u(r, t) {
522
+ return t ? r ? r + " " + t : r + t : r;
521
523
  }
522
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
524
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
523
525
  })();
524
526
  })(D);
525
- var Nr = D.exports;
526
- const Or = /* @__PURE__ */ Sr(Nr), l = {
527
+ var Sr = D.exports;
528
+ const Nr = /* @__PURE__ */ qr(Sr), l = {
527
529
  "purpur-notification": "_purpur-notification_10qwf_1",
528
530
  "purpur-notification__top": "_purpur-notification__top_10qwf_14",
529
531
  "purpur-notification__header": "_purpur-notification__header_10qwf_20",
@@ -537,44 +539,44 @@ const Or = /* @__PURE__ */ Sr(Nr), l = {
537
539
  "purpur-notification--info": "_purpur-notification--info_10qwf_63",
538
540
  "purpur-notification--hidden": "_purpur-notification--hidden_10qwf_72",
539
541
  "purpur-notification--has-close-button": "_purpur-notification--has-close-button_10qwf_76"
540
- }, x = {
542
+ }, w = {
541
543
  SUCCESS: "success",
542
544
  WARNING: "warning",
543
545
  ERROR: "error",
544
546
  INFO: "info"
545
- }, Pr = Object.values(x), Ar = {
547
+ }, Pr = Object.values(w), Or = {
546
548
  POLITE: "polite",
547
549
  ASSERTIVE: "assertive"
548
- }, Mr = Object.values(Ar), jr = {
550
+ }, Mr = Object.values(Or), Ar = {
549
551
  ALERT: "alert",
550
552
  DIALOG: "dialog",
551
553
  ALERTDIALOG: "alertdialog"
552
- }, Tr = Object.values(jr), c = "purpur-notification", qr = (t) => {
553
- switch (t) {
554
- case x.INFO:
554
+ }, Tr = Object.values(Ar), _ = "purpur-notification", jr = (e) => {
555
+ switch (e) {
556
+ case w.INFO:
555
557
  return fr;
556
- case x.SUCCESS:
557
- return cr;
558
- case x.WARNING:
558
+ case w.SUCCESS:
559
+ return _r;
560
+ case w.WARNING:
559
561
  return lr;
560
- case x.ERROR:
562
+ case w.ERROR:
561
563
  return dr;
562
564
  }
563
- }, Lr = ({
564
- ["data-testid"]: t,
565
+ }, Er = ({
566
+ ["data-testid"]: e,
565
567
  ["aria-live"]: p,
566
568
  children: a,
567
- className: u,
568
- closeButtonAllyLabel: i,
569
+ className: i,
570
+ closeButtonAllyLabel: u,
569
571
  headingTag: r = "h4",
570
- role: e,
572
+ role: t,
571
573
  status: n = "info",
572
- heading: _,
574
+ heading: c,
573
575
  hidden: d,
574
576
  id: o,
575
577
  onClose: g,
576
- ...w
577
- }, N) => /* @__PURE__ */ b(
578
+ ...x
579
+ }, S) => /* @__PURE__ */ b(
578
580
  "div",
579
581
  {
580
582
  id: o,
@@ -582,36 +584,36 @@ const Or = /* @__PURE__ */ Sr(Nr), l = {
582
584
  "aria-describedby": o ? `${o}-body` : void 0,
583
585
  "aria-live": p,
584
586
  "aria-hidden": !!d,
585
- className: Or(u, l[c], l[`${c}--${n}`], {
586
- [l[`${c}--hidden`]]: d,
587
- [l[`${c}--has-close-button`]]: !!g
587
+ className: Nr(i, l[_], l[`${_}--${n}`], {
588
+ [l[`${_}--hidden`]]: d,
589
+ [l[`${_}--has-close-button`]]: !!g
588
590
  }),
589
- "data-testid": t,
590
- ref: N,
591
- role: e,
592
- ...w,
591
+ "data-testid": e,
592
+ ref: S,
593
+ role: t,
594
+ ...x,
593
595
  children: [
594
- /* @__PURE__ */ b("div", { className: l[`${c}__top`], children: [
595
- /* @__PURE__ */ b("div", { className: l[`${c}__header`], children: [
596
+ /* @__PURE__ */ b("div", { className: l[`${_}__top`], children: [
597
+ /* @__PURE__ */ b("div", { className: l[`${_}__header`], children: [
596
598
  /* @__PURE__ */ s(
597
- O,
599
+ N,
598
600
  {
599
- "data-testid": t ? `${t}-icon` : void 0,
600
- className: l[`${c}__icon`],
601
- svg: qr(n),
601
+ "data-testid": e ? `${e}-icon` : void 0,
602
+ className: l[`${_}__icon`],
603
+ svg: jr(n),
602
604
  size: "md"
603
605
  }
604
606
  ),
605
- !!_ && /* @__PURE__ */ s(
607
+ !!c && /* @__PURE__ */ s(
606
608
  T,
607
609
  {
608
- "data-testid": t ? `${t}-heading` : void 0,
610
+ "data-testid": e ? `${e}-heading` : void 0,
609
611
  variant: "subsection-100",
610
612
  tag: r,
611
- className: l[`${c}__heading`],
613
+ className: l[`${_}__heading`],
612
614
  children: /* @__PURE__ */ b("span", { id: o ? `${o}-heading` : void 0, children: [
613
615
  " ",
614
- _
616
+ c
615
617
  ] })
616
618
  }
617
619
  )
@@ -619,27 +621,27 @@ const Or = /* @__PURE__ */ Sr(Nr), l = {
619
621
  g && /* @__PURE__ */ s(
620
622
  P,
621
623
  {
622
- "data-testid": t ? `${t}-close-button` : void 0,
624
+ "data-testid": e ? `${e}-close-button` : void 0,
623
625
  variant: "tertiary-purple",
624
626
  size: "sm",
625
627
  iconOnly: !0,
626
- "aria-label": i,
628
+ "aria-label": u,
627
629
  onClick: g,
628
- className: l[`${c}__close-button`],
629
- children: /* @__PURE__ */ s(O, { svg: _r, size: "sm" })
630
+ className: l[`${_}__close-button`],
631
+ children: /* @__PURE__ */ s(N, { svg: cr, size: "sm" })
630
632
  }
631
633
  )
632
634
  ] }),
633
635
  a && /* @__PURE__ */ s(
634
636
  "div",
635
637
  {
636
- "data-testid": t ? `${t}-body` : void 0,
637
- className: l[`${c}__body`],
638
+ "data-testid": e ? `${e}-body` : void 0,
639
+ className: l[`${_}__body`],
638
640
  id: o ? `${o}-body` : void 0,
639
641
  children: typeof a == "string" ? /* @__PURE__ */ s(
640
642
  C,
641
643
  {
642
- "data-testid": t ? `${t}-paragraph` : void 0,
644
+ "data-testid": e ? `${e}-paragraph` : void 0,
643
645
  variant: "paragraph-100",
644
646
  children: a
645
647
  }
@@ -648,13 +650,13 @@ const Or = /* @__PURE__ */ Sr(Nr), l = {
648
650
  )
649
651
  ]
650
652
  }
651
- ), Er = E(Lr);
652
- Er.displayName = "Notification";
653
+ ), Lr = L(Er);
654
+ Lr.displayName = "Notification";
653
655
  export {
654
- Ar as NOTIFICATION_ARIA_LIVE,
655
- jr as NOTIFICATION_ROLE,
656
- x as NOTIFICATION_STATUS,
657
- Er as Notification,
656
+ Or as NOTIFICATION_ARIA_LIVE,
657
+ Ar as NOTIFICATION_ROLE,
658
+ w as NOTIFICATION_STATUS,
659
+ Lr as Notification,
658
660
  Mr as notificationAriaLiveValues,
659
661
  Tr as notificationRoles,
660
662
  Pr as notificationStatuses