@akad/design-system 1.0.0-alpha.7 → 1.1.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.
@@ -20,7 +20,7 @@ function Cn(t) {
20
20
  };
21
21
  globalThis.window.dataLayer.push(s);
22
22
  }
23
- function xn(t) {
23
+ function An(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
26
  var Tt = { exports: {} }, st = { exports: {} }, H = {};
@@ -33,14 +33,14 @@ var Tt = { exports: {} }, st = { exports: {} }, H = {};
33
33
  * LICENSE file in the root directory of this source tree.
34
34
  */
35
35
  var jt;
36
- function wn() {
36
+ function xn() {
37
37
  if (jt) return H;
38
38
  jt = 1;
39
39
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, S = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, U = t ? Symbol.for("react.scope") : 60119;
40
40
  function T(p) {
41
41
  if (typeof p == "object" && p !== null) {
42
- var A = p.$$typeof;
43
- switch (A) {
42
+ var w = p.$$typeof;
43
+ switch (w) {
44
44
  case e:
45
45
  switch (p = p.type, p) {
46
46
  case u:
@@ -59,20 +59,20 @@ function wn() {
59
59
  case i:
60
60
  return p;
61
61
  default:
62
- return A;
62
+ return w;
63
63
  }
64
64
  }
65
65
  case s:
66
- return A;
66
+ return w;
67
67
  }
68
68
  }
69
69
  }
70
- function w(p) {
70
+ function x(p) {
71
71
  return T(p) === d;
72
72
  }
73
73
  return H.AsyncMode = u, H.ConcurrentMode = d, H.ContextConsumer = l, H.ContextProvider = i, H.Element = e, H.ForwardRef = h, H.Fragment = n, H.Lazy = S, H.Memo = y, H.Portal = s, H.Profiler = a, H.StrictMode = r, H.Suspense = f, H.isAsyncMode = function(p) {
74
- return w(p) || T(p) === u;
75
- }, H.isConcurrentMode = w, H.isContextConsumer = function(p) {
74
+ return x(p) || T(p) === u;
75
+ }, H.isConcurrentMode = x, H.isContextConsumer = function(p) {
76
76
  return T(p) === l;
77
77
  }, H.isContextProvider = function(p) {
78
78
  return T(p) === i;
@@ -108,17 +108,17 @@ var W = {};
108
108
  * LICENSE file in the root directory of this source tree.
109
109
  */
110
110
  var Pt;
111
- function An() {
111
+ function wn() {
112
112
  return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
113
113
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, S = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, U = t ? Symbol.for("react.scope") : 60119;
114
114
  function T(k) {
115
115
  return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
116
116
  k === n || k === d || k === a || k === r || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof === S || k.$$typeof === y || k.$$typeof === i || k.$$typeof === l || k.$$typeof === h || k.$$typeof === m || k.$$typeof === C || k.$$typeof === U || k.$$typeof === v);
117
117
  }
118
- function w(k) {
118
+ function x(k) {
119
119
  if (typeof k == "object" && k !== null) {
120
- var xe = k.$$typeof;
121
- switch (xe) {
120
+ var Ae = k.$$typeof;
121
+ switch (Ae) {
122
122
  case e:
123
123
  var tt = k.type;
124
124
  switch (tt) {
@@ -139,60 +139,60 @@ function An() {
139
139
  case i:
140
140
  return Lt;
141
141
  default:
142
- return xe;
142
+ return Ae;
143
143
  }
144
144
  }
145
145
  case s:
146
- return xe;
146
+ return Ae;
147
147
  }
148
148
  }
149
149
  }
150
- var p = u, A = d, B = l, z = i, L = e, te = h, le = n, ue = S, ye = y, se = s, De = a, re = r, ce = f, ke = !1;
150
+ var p = u, w = d, B = l, z = i, L = e, te = h, le = n, ue = S, ye = y, se = s, De = a, re = r, ce = f, ke = !1;
151
151
  function Ce(k) {
152
- return ke || (ke = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || w(k) === u;
152
+ return ke || (ke = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || x(k) === u;
153
153
  }
154
154
  function g(k) {
155
- return w(k) === d;
155
+ return x(k) === d;
156
156
  }
157
157
  function E(k) {
158
- return w(k) === l;
158
+ return x(k) === l;
159
159
  }
160
160
  function $(k) {
161
- return w(k) === i;
161
+ return x(k) === i;
162
162
  }
163
163
  function N(k) {
164
164
  return typeof k == "object" && k !== null && k.$$typeof === e;
165
165
  }
166
166
  function I(k) {
167
- return w(k) === h;
167
+ return x(k) === h;
168
168
  }
169
169
  function b(k) {
170
- return w(k) === n;
170
+ return x(k) === n;
171
171
  }
172
172
  function D(k) {
173
- return w(k) === S;
173
+ return x(k) === S;
174
174
  }
175
175
  function V(k) {
176
- return w(k) === y;
176
+ return x(k) === y;
177
177
  }
178
178
  function q(k) {
179
- return w(k) === s;
179
+ return x(k) === s;
180
180
  }
181
181
  function F(k) {
182
- return w(k) === a;
182
+ return x(k) === a;
183
183
  }
184
184
  function P(k) {
185
- return w(k) === r;
185
+ return x(k) === r;
186
186
  }
187
187
  function J(k) {
188
- return w(k) === f;
188
+ return x(k) === f;
189
189
  }
190
- W.AsyncMode = p, W.ConcurrentMode = A, W.ContextConsumer = B, W.ContextProvider = z, W.Element = L, W.ForwardRef = te, W.Fragment = le, W.Lazy = ue, W.Memo = ye, W.Portal = se, W.Profiler = De, W.StrictMode = re, W.Suspense = ce, W.isAsyncMode = Ce, W.isConcurrentMode = g, W.isContextConsumer = E, W.isContextProvider = $, W.isElement = N, W.isForwardRef = I, W.isFragment = b, W.isLazy = D, W.isMemo = V, W.isPortal = q, W.isProfiler = F, W.isStrictMode = P, W.isSuspense = J, W.isValidElementType = T, W.typeOf = w;
190
+ W.AsyncMode = p, W.ConcurrentMode = w, W.ContextConsumer = B, W.ContextProvider = z, W.Element = L, W.ForwardRef = te, W.Fragment = le, W.Lazy = ue, W.Memo = ye, W.Portal = se, W.Profiler = De, W.StrictMode = re, W.Suspense = ce, W.isAsyncMode = Ce, W.isConcurrentMode = g, W.isContextConsumer = E, W.isContextProvider = $, W.isElement = N, W.isForwardRef = I, W.isFragment = b, W.isLazy = D, W.isMemo = V, W.isPortal = q, W.isProfiler = F, W.isStrictMode = P, W.isSuspense = J, W.isValidElementType = T, W.typeOf = x;
191
191
  }()), W;
192
192
  }
193
193
  var qt;
194
194
  function ss() {
195
- return qt || (qt = 1, process.env.NODE_ENV === "production" ? st.exports = wn() : st.exports = An()), st.exports;
195
+ return qt || (qt = 1, process.env.NODE_ENV === "production" ? st.exports = xn() : st.exports = wn()), st.exports;
196
196
  }
197
197
  /*
198
198
  object-assign
@@ -340,9 +340,9 @@ function Dn() {
340
340
  symbol: C("symbol"),
341
341
  any: U(),
342
342
  arrayOf: T,
343
- element: w(),
343
+ element: x(),
344
344
  elementType: p(),
345
- instanceOf: A,
345
+ instanceOf: w,
346
346
  node: te(),
347
347
  objectOf: z,
348
348
  oneOf: B,
@@ -368,11 +368,11 @@ function Dn() {
368
368
  );
369
369
  throw k.name = "Invariant Violation", k;
370
370
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
371
- var xe = q + ":" + V;
372
- !E[xe] && // Avoid spamming the console because they are often not actionable except for lib authors
371
+ var Ae = q + ":" + V;
372
+ !E[Ae] && // Avoid spamming the console because they are often not actionable except for lib authors
373
373
  $ < 3 && (a(
374
374
  "You are manually calling a React.PropTypes validation function for the `" + P + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
375
- ), E[xe] = !0, $++);
375
+ ), E[Ae] = !0, $++);
376
376
  }
377
377
  }
378
378
  return D[V] == null ? b ? D[V] === null ? new v("The " + F + " `" + P + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new v("The " + F + " `" + P + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : g(D, V, q, F, P);
@@ -415,7 +415,7 @@ function Dn() {
415
415
  }
416
416
  return m(E);
417
417
  }
418
- function w() {
418
+ function x() {
419
419
  function g(E, $, N, I, b) {
420
420
  var D = E[$];
421
421
  if (!l(D)) {
@@ -437,7 +437,7 @@ function Dn() {
437
437
  }
438
438
  return m(g);
439
439
  }
440
- function A(g) {
440
+ function w(g) {
441
441
  function E($, N, I, b, D) {
442
442
  if (!($[N] instanceof g)) {
443
443
  var V = g.name || _, q = Ce($[N]);
@@ -457,8 +457,8 @@ function Dn() {
457
457
  if (S(V, g[q]))
458
458
  return null;
459
459
  var F = JSON.stringify(g, function(J, k) {
460
- var xe = ce(k);
461
- return xe === "symbol" ? String(k) : k;
460
+ var Ae = ce(k);
461
+ return Ae === "symbol" ? String(k) : k;
462
462
  });
463
463
  return new v("Invalid " + b + " `" + D + "` of value `" + String(V) + "` " + ("supplied to `" + I + "`, expected one of " + F + "."));
464
464
  }
@@ -498,8 +498,8 @@ function Dn() {
498
498
  return null;
499
499
  k.data && n(k.data, "expectedType") && F.push(k.data.expectedType);
500
500
  }
501
- var xe = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
502
- return new v("Invalid " + V + " `" + q + "` supplied to " + ("`" + D + "`" + xe + "."));
501
+ var Ae = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
502
+ return new v("Invalid " + V + " `" + q + "` supplied to " + ("`" + D + "`" + Ae + "."));
503
503
  }
504
504
  return m(N);
505
505
  }
@@ -680,7 +680,7 @@ if (process.env.NODE_ENV !== "production") {
680
680
  } else
681
681
  Tt.exports = On()();
682
682
  var Nn = Tt.exports;
683
- const o = /* @__PURE__ */ xn(Nn);
683
+ const o = /* @__PURE__ */ An(Nn);
684
684
  var rs = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Neutral = "neutral", t))(rs || {}), as = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Outline = "outline", t.Text = "text", t))(as || {}), is = /* @__PURE__ */ ((t) => (t.Large = "lg", t.Medium = "md", t.Small = "sm", t))(is || {}), os = /* @__PURE__ */ ((t) => (t.Right = "right", t.Left = "left", t))(os || {}), Bn = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Bn || {});
685
685
  const X = {
686
686
  name: "Button",
@@ -860,7 +860,7 @@ const ut = ({
860
860
  fullSize: y = X.props.fullSize.default,
861
861
  trackingData: S
862
862
  }) => {
863
- const v = n && X.props.size.options.find((z) => z === n) ? `${X.class}--${n}` : `${X.class}__${X.props.size.default}`, m = r && `${X.class}--disabled`, C = `${X.class}__${h}--${d}`, U = u && `${X.class}--elevation-${u}`, T = a && `${X.class}--with-icon`, w = y ? `${X.class}--full-size` : "", p = _ === "right" ? `${X.class}__icon` : `${X.class}__icon--left`, A = _ === "right" ? `${X.class}__text` : `${X.class}__text--reversed`, B = (z) => {
863
+ const v = n && X.props.size.options.find((z) => z === n) ? `${X.class}--${n}` : `${X.class}__${X.props.size.default}`, m = r && `${X.class}--disabled`, C = `${X.class}__${h}--${d}`, U = u && `${X.class}--elevation-${u}`, T = a && `${X.class}--with-icon`, x = y ? `${X.class}--full-size` : "", p = _ === "right" ? `${X.class}__icon` : `${X.class}__icon--left`, w = _ === "right" ? `${X.class}__text` : `${X.class}__text--reversed`, B = (z) => {
864
864
  S && Cn(S), s && s(z);
865
865
  };
866
866
  return /* @__PURE__ */ c(
@@ -868,7 +868,7 @@ const ut = ({
868
868
  {
869
869
  className: [
870
870
  X.class,
871
- w,
871
+ x,
872
872
  m,
873
873
  v,
874
874
  C,
@@ -880,7 +880,7 @@ const ut = ({
880
880
  disabled: r,
881
881
  id: i,
882
882
  onClick: r ? void 0 : B,
883
- children: /* @__PURE__ */ R("span", { className: ["ds-button__text", A].join(" "), children: [
883
+ children: /* @__PURE__ */ R("span", { className: ["ds-button__text", w].join(" "), children: [
884
884
  t,
885
885
  a && /* @__PURE__ */ c(
886
886
  Z,
@@ -1214,7 +1214,7 @@ function ys(t, e) {
1214
1214
  return e(a, r) && (s[r] = a), s;
1215
1215
  }, {});
1216
1216
  }
1217
- const x = {
1217
+ const A = {
1218
1218
  NONE: "NONE",
1219
1219
  LEFT: "LEFT",
1220
1220
  FORCE_LEFT: "FORCE_LEFT",
@@ -1223,10 +1223,10 @@ const x = {
1223
1223
  };
1224
1224
  function Ln(t) {
1225
1225
  switch (t) {
1226
- case x.LEFT:
1227
- return x.FORCE_LEFT;
1228
- case x.RIGHT:
1229
- return x.FORCE_RIGHT;
1226
+ case A.LEFT:
1227
+ return A.FORCE_LEFT;
1228
+ case A.RIGHT:
1229
+ return A.FORCE_RIGHT;
1230
1230
  default:
1231
1231
  return t;
1232
1232
  }
@@ -1302,8 +1302,8 @@ class jn {
1302
1302
  }
1303
1303
  /** Remove direction */
1304
1304
  get removeDirection() {
1305
- return !this.removedCount || this.insertedCount ? x.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
1306
- this.oldSelection.end === this.oldSelection.start ? x.RIGHT : x.LEFT;
1305
+ return !this.removedCount || this.insertedCount ? A.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
1306
+ this.oldSelection.end === this.oldSelection.start ? A.RIGHT : A.LEFT;
1307
1307
  }
1308
1308
  }
1309
1309
  function O(t, e) {
@@ -1654,7 +1654,7 @@ class Un {
1654
1654
  }
1655
1655
  /** Aligns cursor to nearest available position */
1656
1656
  alignCursor() {
1657
- this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, x.LEFT));
1657
+ this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, A.LEFT));
1658
1658
  }
1659
1659
  /** Aligns cursor only if selection is empty */
1660
1660
  alignCursorFriendly() {
@@ -1685,9 +1685,9 @@ class Un {
1685
1685
  }), n = this.masked.rawInputValue, r = this.masked.splice(s.startChangePos, s.removed.length, s.inserted, s.removeDirection, {
1686
1686
  input: !0,
1687
1687
  raw: !0
1688
- }).offset, a = n === this.masked.rawInputValue ? s.removeDirection : x.NONE;
1688
+ }).offset, a = n === this.masked.rawInputValue ? s.removeDirection : A.NONE;
1689
1689
  let i = this.masked.nearestInputPos(s.startChangePos + r, a);
1690
- a !== x.NONE && (i = this.masked.nearestInputPos(i, x.NONE)), this.updateControl(i), delete this._inputEvent;
1690
+ a !== A.NONE && (i = this.masked.nearestInputPos(i, A.NONE)), this.updateControl(i), delete this._inputEvent;
1691
1691
  }
1692
1692
  /** Handles view change event and commits model value */
1693
1693
  _onChange() {
@@ -1997,7 +1997,7 @@ class ie {
1997
1997
  this.commit && this.commit(this.value, this);
1998
1998
  }
1999
1999
  splice(e, s, n, r, a) {
2000
- n === void 0 && (n = ""), r === void 0 && (r = x.NONE), a === void 0 && (a = {
2000
+ n === void 0 && (n = ""), r === void 0 && (r = A.NONE), a === void 0 && (a = {
2001
2001
  input: !0
2002
2002
  });
2003
2003
  const i = e + s, l = this.extractTail(i), u = this.eager === !0 || this.eager === "remove";
@@ -2007,14 +2007,14 @@ class ie {
2007
2007
  }));
2008
2008
  let h = e;
2009
2009
  const f = new M();
2010
- if (r !== x.NONE && (h = this.nearestInputPos(e, s > 1 && e !== 0 && !u ? x.NONE : r), f.tailShift = h - e), f.aggregate(this.remove(h)), u && r !== x.NONE && d === this.rawInputValue)
2011
- if (r === x.FORCE_LEFT) {
2010
+ if (r !== A.NONE && (h = this.nearestInputPos(e, s > 1 && e !== 0 && !u ? A.NONE : r), f.tailShift = h - e), f.aggregate(this.remove(h)), u && r !== A.NONE && d === this.rawInputValue)
2011
+ if (r === A.FORCE_LEFT) {
2012
2012
  let _;
2013
2013
  for (; d === this.rawInputValue && (_ = this.displayValue.length); )
2014
2014
  f.aggregate(new M({
2015
2015
  tailShift: -1
2016
2016
  })).aggregate(this.remove(_ - 1));
2017
- } else r === x.FORCE_RIGHT && l.unshift();
2017
+ } else r === A.FORCE_RIGHT && l.unshift();
2018
2018
  return f.aggregate(this.append(n, a, l));
2019
2019
  }
2020
2020
  maskEquals(e) {
@@ -2193,38 +2193,38 @@ class zn {
2193
2193
  }
2194
2194
  pushLeftBeforeFilled() {
2195
2195
  return this._pushLeft(() => {
2196
- if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, x.FORCE_LEFT), this.offset !== 0))
2196
+ if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, A.FORCE_LEFT), this.offset !== 0))
2197
2197
  return !0;
2198
2198
  });
2199
2199
  }
2200
2200
  pushLeftBeforeInput() {
2201
2201
  return this._pushLeft(() => {
2202
2202
  if (!this.block.isFixed)
2203
- return this.offset = this.block.nearestInputPos(this.offset, x.LEFT), !0;
2203
+ return this.offset = this.block.nearestInputPos(this.offset, A.LEFT), !0;
2204
2204
  });
2205
2205
  }
2206
2206
  pushLeftBeforeRequired() {
2207
2207
  return this._pushLeft(() => {
2208
2208
  if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
2209
- return this.offset = this.block.nearestInputPos(this.offset, x.LEFT), !0;
2209
+ return this.offset = this.block.nearestInputPos(this.offset, A.LEFT), !0;
2210
2210
  });
2211
2211
  }
2212
2212
  pushRightBeforeFilled() {
2213
2213
  return this._pushRight(() => {
2214
- if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, x.FORCE_RIGHT), this.offset !== this.block.value.length))
2214
+ if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, A.FORCE_RIGHT), this.offset !== this.block.value.length))
2215
2215
  return !0;
2216
2216
  });
2217
2217
  }
2218
2218
  pushRightBeforeInput() {
2219
2219
  return this._pushRight(() => {
2220
2220
  if (!this.block.isFixed)
2221
- return this.offset = this.block.nearestInputPos(this.offset, x.NONE), !0;
2221
+ return this.offset = this.block.nearestInputPos(this.offset, A.NONE), !0;
2222
2222
  });
2223
2223
  }
2224
2224
  pushRightBeforeRequired() {
2225
2225
  return this._pushRight(() => {
2226
2226
  if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
2227
- return this.offset = this.block.nearestInputPos(this.offset, x.NONE), !0;
2227
+ return this.offset = this.block.nearestInputPos(this.offset, A.NONE), !0;
2228
2228
  });
2229
2229
  }
2230
2230
  }
@@ -2257,15 +2257,15 @@ class Es {
2257
2257
  return e === void 0 && (e = 0), s === void 0 && (s = this._value.length), this._value = this._value.slice(0, e) + this._value.slice(s), this._value || (this._isRawInput = !1), new M();
2258
2258
  }
2259
2259
  nearestInputPos(e, s) {
2260
- s === void 0 && (s = x.NONE);
2260
+ s === void 0 && (s = A.NONE);
2261
2261
  const n = 0, r = this._value.length;
2262
2262
  switch (s) {
2263
- case x.LEFT:
2264
- case x.FORCE_LEFT:
2263
+ case A.LEFT:
2264
+ case A.FORCE_LEFT:
2265
2265
  return n;
2266
- case x.NONE:
2267
- case x.RIGHT:
2268
- case x.FORCE_RIGHT:
2266
+ case A.NONE:
2267
+ case A.RIGHT:
2268
+ case A.FORCE_RIGHT:
2269
2269
  default:
2270
2270
  return r;
2271
2271
  }
@@ -2400,16 +2400,16 @@ class dt {
2400
2400
  return e === void 0 && (e = 0), s === void 0 && (s = this.value.length), this.masked.extractInput(e, s, n);
2401
2401
  }
2402
2402
  nearestInputPos(e, s) {
2403
- s === void 0 && (s = x.NONE);
2403
+ s === void 0 && (s = A.NONE);
2404
2404
  const n = 0, r = this.value.length, a = Math.min(Math.max(e, n), r);
2405
2405
  switch (s) {
2406
- case x.LEFT:
2407
- case x.FORCE_LEFT:
2406
+ case A.LEFT:
2407
+ case A.FORCE_LEFT:
2408
2408
  return this.isComplete ? a : n;
2409
- case x.RIGHT:
2410
- case x.FORCE_RIGHT:
2409
+ case A.RIGHT:
2410
+ case A.FORCE_RIGHT:
2411
2411
  return this.isComplete ? a : r;
2412
- case x.NONE:
2412
+ case A.NONE:
2413
2413
  default:
2414
2414
  return a;
2415
2415
  }
@@ -2727,22 +2727,22 @@ class oe extends ie {
2727
2727
  }), n;
2728
2728
  }
2729
2729
  nearestInputPos(e, s) {
2730
- if (s === void 0 && (s = x.NONE), !this._blocks.length) return 0;
2730
+ if (s === void 0 && (s = A.NONE), !this._blocks.length) return 0;
2731
2731
  const n = new zn(this, e);
2732
- if (s === x.NONE)
2732
+ if (s === A.NONE)
2733
2733
  return n.pushRightBeforeInput() || (n.popState(), n.pushLeftBeforeInput()) ? n.pos : this.displayValue.length;
2734
- if (s === x.LEFT || s === x.FORCE_LEFT) {
2735
- if (s === x.LEFT) {
2734
+ if (s === A.LEFT || s === A.FORCE_LEFT) {
2735
+ if (s === A.LEFT) {
2736
2736
  if (n.pushRightBeforeFilled(), n.ok && n.pos === e) return e;
2737
2737
  n.popState();
2738
2738
  }
2739
- if (n.pushLeftBeforeInput(), n.pushLeftBeforeRequired(), n.pushLeftBeforeFilled(), s === x.LEFT) {
2739
+ if (n.pushLeftBeforeInput(), n.pushLeftBeforeRequired(), n.pushLeftBeforeFilled(), s === A.LEFT) {
2740
2740
  if (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.ok && n.pos <= e || (n.popState(), n.ok && n.pos <= e)) return n.pos;
2741
2741
  n.popState();
2742
2742
  }
2743
- return n.ok ? n.pos : s === x.FORCE_LEFT ? 0 : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : 0);
2743
+ return n.ok ? n.pos : s === A.FORCE_LEFT ? 0 : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : 0);
2744
2744
  }
2745
- return s === x.RIGHT || s === x.FORCE_RIGHT ? (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.pushRightBeforeFilled() ? n.pos : s === x.FORCE_RIGHT ? this.displayValue.length : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : this.nearestInputPos(e, x.LEFT))) : e;
2745
+ return s === A.RIGHT || s === A.FORCE_RIGHT ? (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.pushRightBeforeFilled() ? n.pos : s === A.FORCE_RIGHT ? this.displayValue.length : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : this.nearestInputPos(e, A.LEFT))) : e;
2746
2746
  }
2747
2747
  totalInputPositions(e, s) {
2748
2748
  e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length);
@@ -3149,13 +3149,13 @@ gt.DEFAULTS = {
3149
3149
  dispatch: (t, e, s, n) => {
3150
3150
  if (!e.compiledMasks.length) return;
3151
3151
  const r = e.rawInputValue, a = e.compiledMasks.map((i, l) => {
3152
- const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length, x.FORCE_LEFT);
3152
+ const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length, A.FORCE_LEFT);
3153
3153
  return i.rawInputValue !== r ? (i.reset(), i.append(r, {
3154
3154
  raw: !0
3155
3155
  })) : u || i.remove(d), i.append(t, e.currentMaskFlags(s)), i.appendTail(n), {
3156
3156
  index: l,
3157
3157
  weight: i.rawInputValue.length,
3158
- totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length, x.FORCE_LEFT)))
3158
+ totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length, A.FORCE_LEFT)))
3159
3159
  };
3160
3160
  });
3161
3161
  return a.sort((i, l) => l.weight - i.weight || l.totalInputPositions - i.totalInputPositions), e.compiledMasks[a[0].index];
@@ -3185,7 +3185,7 @@ class mt extends oe {
3185
3185
  }
3186
3186
  _appendCharRaw(e, s) {
3187
3187
  s === void 0 && (s = {});
3188
- const n = Math.min(this.nearestInputPos(0, x.FORCE_RIGHT), this.value.length), r = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, n));
3188
+ const n = Math.min(this.nearestInputPos(0, A.FORCE_RIGHT), this.value.length), r = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, n));
3189
3189
  if (r.length) {
3190
3190
  r.length === 1 && this._forEachBlocksInRange(0, this.value.length, (i, l) => {
3191
3191
  const u = r[0][l];
@@ -3203,7 +3203,7 @@ class mt extends oe {
3203
3203
  }
3204
3204
  remove(e, s) {
3205
3205
  if (e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), e === s) return new M();
3206
- const n = Math.min(super.nearestInputPos(0, x.FORCE_RIGHT), this.value.length);
3206
+ const n = Math.min(super.nearestInputPos(0, A.FORCE_RIGHT), this.value.length);
3207
3207
  let r;
3208
3208
  for (r = e; r >= 0 && !(this.enum.filter((l) => this.matchValue(l, this.value.slice(n, r), n)).length > 1); --r)
3209
3209
  ;
@@ -3347,19 +3347,19 @@ class ge extends ie {
3347
3347
  nearestInputPos(e, s) {
3348
3348
  if (!this.thousandsSeparator) return e;
3349
3349
  switch (s) {
3350
- case x.NONE:
3351
- case x.LEFT:
3352
- case x.FORCE_LEFT: {
3350
+ case A.NONE:
3351
+ case A.LEFT:
3352
+ case A.FORCE_LEFT: {
3353
3353
  const n = this._findSeparatorAround(e - 1);
3354
3354
  if (n >= 0) {
3355
3355
  const r = n + this.thousandsSeparator.length;
3356
- if (e < r || this.value.length <= r || s === x.FORCE_LEFT)
3356
+ if (e < r || this.value.length <= r || s === A.FORCE_LEFT)
3357
3357
  return n;
3358
3358
  }
3359
3359
  break;
3360
3360
  }
3361
- case x.RIGHT:
3362
- case x.FORCE_RIGHT: {
3361
+ case A.RIGHT:
3362
+ case A.FORCE_RIGHT: {
3363
3363
  const n = this._findSeparatorAround(e);
3364
3364
  if (n >= 0)
3365
3365
  return n + this.thousandsSeparator.length;
@@ -3555,7 +3555,7 @@ try {
3555
3555
  globalThis.IMask = O;
3556
3556
  } catch {
3557
3557
  }
3558
- const xs = {
3558
+ const As = {
3559
3559
  // common
3560
3560
  mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number, O.Masked]), o.instanceOf(O.Masked)]),
3561
3561
  value: o.any,
@@ -3602,7 +3602,7 @@ const xs = {
3602
3602
  inputRef: o.oneOfType([o.func, o.shape({
3603
3603
  current: o.object
3604
3604
  })])
3605
- }, ws = Object.keys(xs).filter((t) => t !== "value"), Gn = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Zn = ws.filter((t) => Gn.indexOf(t) < 0);
3605
+ }, xs = Object.keys(As).filter((t) => t !== "value"), Gn = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Zn = xs.filter((t) => Gn.indexOf(t) < 0);
3606
3606
  function Qn(t) {
3607
3607
  var e;
3608
3608
  const s = (e = class extends Se.Component {
@@ -3645,7 +3645,7 @@ function Qn(t) {
3645
3645
  const {
3646
3646
  ...i
3647
3647
  } = a;
3648
- return ws.forEach((l) => {
3648
+ return xs.forEach((l) => {
3649
3649
  l !== "maxLength" && delete i[l];
3650
3650
  }), "defaultValue" in i || (i.defaultValue = a.mask ? "" : i.value), delete i.value, i;
3651
3651
  }
@@ -3668,7 +3668,7 @@ function Qn(t) {
3668
3668
  });
3669
3669
  }
3670
3670
  }, e.displayName = void 0, e.propTypes = void 0, e), n = t.displayName || t.name || "Component";
3671
- return s.displayName = "IMask(" + n + ")", s.propTypes = xs, Se.forwardRef((r, a) => Se.createElement(s, {
3671
+ return s.displayName = "IMask(" + n + ")", s.propTypes = As, Se.forwardRef((r, a) => Se.createElement(s, {
3672
3672
  ...r,
3673
3673
  ref: a
3674
3674
  }));
@@ -3707,39 +3707,39 @@ function tr(t, e) {
3707
3707
  typedValue: p.typedValue
3708
3708
  }), m(p.typedValue), S(p.unmaskedValue), _(p.value));
3709
3709
  }, []), T = Te((p) => {
3710
- const A = u.current;
3711
- A && (U(), s == null || s(A.value, A, p));
3712
- }, [s]), w = Te((p) => u.current && (n == null ? void 0 : n(u.current.value, u.current, p)), [n]);
3710
+ const w = u.current;
3711
+ w && (U(), s == null || s(w.value, w, p));
3712
+ }, [s]), x = Te((p) => u.current && (n == null ? void 0 : n(u.current.value, u.current, p)), [n]);
3713
3713
  return G(() => {
3714
3714
  const {
3715
3715
  value: p,
3716
- ...A
3716
+ ...w
3717
3717
  } = d, B = u.current;
3718
- !B || f === void 0 || (p !== f && (B.value = f, B.value !== f && T()), h(A));
3718
+ !B || f === void 0 || (p !== f && (B.value = f, B.value !== f && T()), h(w));
3719
3719
  }, [f]), G(() => {
3720
3720
  const {
3721
3721
  unmaskedValue: p,
3722
- ...A
3722
+ ...w
3723
3723
  } = d, B = u.current;
3724
- !B || y === void 0 || (p !== y && (B.unmaskedValue = y, B.unmaskedValue !== y && T()), h(A));
3724
+ !B || y === void 0 || (p !== y && (B.unmaskedValue = y, B.unmaskedValue !== y && T()), h(w));
3725
3725
  }, [y]), G(() => {
3726
3726
  const {
3727
3727
  typedValue: p,
3728
- ...A
3728
+ ...w
3729
3729
  } = d, B = u.current;
3730
- !B || v === void 0 || (p !== v && (B.typedValue = v, B.masked.typedValueEquals(v) || T()), h(A));
3730
+ !B || v === void 0 || (p !== v && (B.typedValue = v, B.masked.typedValueEquals(v) || T()), h(w));
3731
3731
  }, [v]), G(() => {
3732
3732
  const p = r.current;
3733
3733
  if (!p || !(t != null && t.mask)) return C();
3734
- const A = u.current;
3735
- A ? A == null || A.updateOptions(t) : p && t != null && t.mask && (u.current = O(p, t), U(), a !== void 0 && _(a), i !== void 0 && S(i), l !== void 0 && m(l));
3734
+ const w = u.current;
3735
+ w ? w == null || w.updateOptions(t) : p && t != null && t.mask && (u.current = O(p, t), U(), a !== void 0 && _(a), i !== void 0 && S(i), l !== void 0 && m(l));
3736
3736
  }, [t, C, T]), G(() => {
3737
3737
  if (!u.current) return;
3738
3738
  const p = u.current;
3739
- return p.on("accept", T), p.on("complete", w), () => {
3740
- p.off("accept", T), p.off("complete", w);
3739
+ return p.on("accept", T), p.on("complete", x), () => {
3740
+ p.off("accept", T), p.off("complete", x);
3741
3741
  };
3742
- }, [T, w]), G(() => C, [C]), {
3742
+ }, [T, x]), G(() => C, [C]), {
3743
3743
  ref: r,
3744
3744
  maskRef: u,
3745
3745
  value: f,
@@ -3750,7 +3750,7 @@ function tr(t, e) {
3750
3750
  setTypedValue: m
3751
3751
  };
3752
3752
  }
3753
- var As = /* @__PURE__ */ ((t) => (t.Text = "text", t.Password = "password", t.Email = "email", t.Date = "date", t.Number = "number", t))(As || {}), Ts = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ts || {}), Fs = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Fs || {}), Ds = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Ds || {}), Os = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Os || {});
3753
+ var ws = /* @__PURE__ */ ((t) => (t.Text = "text", t.Password = "password", t.Email = "email", t.Date = "date", t.Number = "number", t))(ws || {}), Ts = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ts || {}), Fs = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Fs || {}), Ds = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Ds || {}), Os = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Os || {});
3754
3754
  const K = {
3755
3755
  name: "Input",
3756
3756
  class: "ds-input",
@@ -3766,7 +3766,7 @@ const K = {
3766
3766
  type: {
3767
3767
  type: String,
3768
3768
  default: "text",
3769
- options: Object.values(As)
3769
+ options: Object.values(ws)
3770
3770
  },
3771
3771
  animated: {
3772
3772
  type: Boolean,
@@ -3875,8 +3875,11 @@ const K = {
3875
3875
  // Tamanho máximo do CPF
3876
3876
  },
3877
3877
  {
3878
- mask: "00.000.000/0000-00",
3879
- startsWith: /[0-9]/,
3878
+ mask: "AA.AAA.AAA/AAAA-AA",
3879
+ definitions: {
3880
+ A: /[0-9A-Z]/
3881
+ },
3882
+ startsWith: /[A-Z0-9]/,
3880
3883
  maxLength: 18
3881
3884
  // Tamanho máximo do CNPJ
3882
3885
  }
@@ -3888,7 +3891,7 @@ const K = {
3888
3891
  }
3889
3892
  };
3890
3893
  var Is = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Is || {}), Rs = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Rs || {});
3891
- const we = {
3894
+ const xe = {
3892
3895
  name: "Tooltip",
3893
3896
  class: "ds-tooltip",
3894
3897
  props: {
@@ -3913,17 +3916,17 @@ const we = {
3913
3916
  }
3914
3917
  }, We = ({
3915
3918
  children: t,
3916
- position: e = we.props.position.default,
3917
- placement: s = we.props.placement.default,
3918
- text: n = we.props.text.default,
3919
- testId: r = we.props.testId.default,
3919
+ position: e = xe.props.position.default,
3920
+ placement: s = xe.props.placement.default,
3921
+ text: n = xe.props.text.default,
3922
+ testId: r = xe.props.testId.default,
3920
3923
  className: a
3921
3924
  }) => {
3922
- const i = He(null), [l, u] = j(0), [d, h] = j(0), [f, _] = j(!1), y = e && we.props.position.options.find(
3925
+ const i = He(null), [l, u] = j(0), [d, h] = j(0), [f, _] = j(!1), y = e && xe.props.position.options.find(
3923
3926
  (C) => C === e
3924
- ) && `${we.class}--${e}`, S = s && we.props.placement.options.find(
3927
+ ) && `${xe.class}--${e}`, S = s && xe.props.placement.options.find(
3925
3928
  (C) => C === s
3926
- ) && `${we.class}--${s}`;
3929
+ ) && `${xe.class}--${s}`;
3927
3930
  let v;
3928
3931
  kn(() => {
3929
3932
  var C, U;
@@ -3987,7 +3990,7 @@ const we = {
3987
3990
  return /* @__PURE__ */ R(
3988
3991
  "div",
3989
3992
  {
3990
- className: [we.class, a].join(" "),
3993
+ className: [xe.class, a].join(" "),
3991
3994
  "data-testid": r,
3992
3995
  onMouseEnter: () => _(!0),
3993
3996
  onMouseLeave: () => _(!1),
@@ -4002,7 +4005,7 @@ const we = {
4002
4005
  children: /* @__PURE__ */ c(
4003
4006
  "span",
4004
4007
  {
4005
- className: `${we.class}__wrapper`,
4008
+ className: `${xe.class}__wrapper`,
4006
4009
  "data-testid": "ds-tooltip-wrapper",
4007
4010
  style: v,
4008
4011
  children: n
@@ -4043,13 +4046,13 @@ const et = Se.forwardRef(
4043
4046
  noMargin: C = K.props.noMargin.default,
4044
4047
  disabled: U = K.props.disabled.default,
4045
4048
  className: T,
4046
- mask: w,
4049
+ mask: x,
4047
4050
  onChangeHandler: p = K.props.onChangeHandler.default,
4048
- onBlurHandler: A,
4051
+ onBlurHandler: w,
4049
4052
  onKeyDownHandler: B,
4050
4053
  onFocusHandler: z
4051
4054
  }, L) => {
4052
- const [te, le] = j(!1), [ue, ye] = j(!1), se = !!p && !!w, De = (F, P, J) => {
4055
+ const [te, le] = j(!1), [ue, ye] = j(!1), se = !!p && !!x, De = (F, P, J) => {
4053
4056
  if (se && J) {
4054
4057
  const k = {
4055
4058
  ...J,
@@ -4063,12 +4066,12 @@ const et = Se.forwardRef(
4063
4066
  };
4064
4067
  p(k);
4065
4068
  }
4066
- }, re = ve(() => typeof w == "object" ? { lazy: !0, ...w } : Qt[w] ? {
4067
- ...Qt[w],
4069
+ }, re = ve(() => typeof x == "object" ? { lazy: !0, ...x } : Qt[x] ? {
4070
+ ...Qt[x],
4068
4071
  min: u,
4069
4072
  max: d,
4070
4073
  lazy: !0
4071
- } : { mask: w ?? "", min: u, max: d, lazy: !0 }, [w]), { ref: ce, setUnmaskedValue: ke } = tr(
4074
+ } : { mask: x ?? "", min: u, max: d, lazy: !0 }, [x]), { ref: ce, setUnmaskedValue: ke } = tr(
4072
4075
  re,
4073
4076
  {
4074
4077
  onAccept: De
@@ -4078,7 +4081,7 @@ const et = Se.forwardRef(
4078
4081
  }, g = (F) => {
4079
4082
  B && B(F);
4080
4083
  }, E = (F) => {
4081
- le(!1), A && A(F);
4084
+ le(!1), w && w(F);
4082
4085
  }, $ = (F) => {
4083
4086
  le(!0), z && z(F);
4084
4087
  }, N = () => {
@@ -4091,8 +4094,8 @@ const et = Se.forwardRef(
4091
4094
  return (te || l) && F.push(`${K.class}__label--active`), F.join(" ");
4092
4095
  }, [l, te]), V = () => !n && i ? i : "", q = () => S && S === "error" ? "info" : "check_circle";
4093
4096
  return G(() => {
4094
- w && ke(l ?? "");
4095
- }, [l, w, ke]), /* @__PURE__ */ R("div", { className: b(), ref: L, children: [
4097
+ x && ke(l ?? "");
4098
+ }, [l, x, ke]), /* @__PURE__ */ R("div", { className: b(), ref: L, children: [
4096
4099
  m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ R(pt, { children: [
4097
4100
  /* @__PURE__ */ c(Z, { image: q() }),
4098
4101
  v
@@ -4115,7 +4118,7 @@ const et = Se.forwardRef(
4115
4118
  placeholder: V(),
4116
4119
  ref: ce,
4117
4120
  type: I,
4118
- ...!w && { value: l ?? "" }
4121
+ ...!x && { value: l ?? "" }
4119
4122
  }
4120
4123
  ),
4121
4124
  /* @__PURE__ */ R("label", { className: D, htmlFor: t, children: [
@@ -4708,11 +4711,11 @@ const Q = {
4708
4711
  feedback: C,
4709
4712
  ...U
4710
4713
  }, T) => {
4711
- const [w, p] = j(!1), A = (L) => {
4714
+ const [x, p] = j(!1), w = (L) => {
4712
4715
  p(!1), h && h(L, L.target.value), f && f(L, L.target.value);
4713
4716
  }, B = () => {
4714
4717
  const L = [Q.class, "select-placeholder"];
4715
- return L.push(`${Q.class}--${_}`), y && L.push(`${Q.class}--${y}`), w && L.push(`${Q.class}--active`), s && L.push(`${Q.class}--disabled`), e && L.push(e), L.join(" ");
4718
+ return L.push(`${Q.class}--${_}`), y && L.push(`${Q.class}--${y}`), x && L.push(`${Q.class}--active`), s && L.push(`${Q.class}--disabled`), e && L.push(e), L.join(" ");
4716
4719
  }, z = ve(() => {
4717
4720
  const L = [`${Q.class}__label`];
4718
4721
  return !n && L.push(`${Q.class}__label--not-animated`), u && L.push(`${Q.class}__label--has-value`), n && !u && !S && L.push(`${Q.class}__label--hidden`), L.join(" ");
@@ -4754,7 +4757,7 @@ const Q = {
4754
4757
  multiple: r,
4755
4758
  name: i,
4756
4759
  onBlur: () => p(!1),
4757
- onChange: (L) => A(L),
4760
+ onChange: (L) => w(L),
4758
4761
  onFocus: () => p(!0),
4759
4762
  ref: T,
4760
4763
  value: u ?? "",
@@ -4819,7 +4822,7 @@ Ks.propTypes = {
4819
4822
  };
4820
4823
  Ks.displayName = "DsSelect";
4821
4824
  var Gs = /* @__PURE__ */ ((t) => (t.Large = "large", t.Small = "small", t))(Gs || {});
4822
- const xt = {
4825
+ const At = {
4823
4826
  name: "Subtitle",
4824
4827
  class: "ds-subtitle",
4825
4828
  props: {
@@ -4835,11 +4838,11 @@ const xt = {
4835
4838
  testId: s = "ds-subtitle-test",
4836
4839
  type: n
4837
4840
  }) => {
4838
- const r = xt.props.type.options.find((a) => a === n) && `${xt.class}--${n}`;
4841
+ const r = At.props.type.options.find((a) => a === n) && `${At.class}--${n}`;
4839
4842
  return /* @__PURE__ */ c(
4840
4843
  "p",
4841
4844
  {
4842
- className: [xt.class, r, e].filter((a) => a).join(" "),
4845
+ className: [At.class, r, e].filter((a) => a).join(" "),
4843
4846
  "data-testid": s,
4844
4847
  children: t
4845
4848
  }
@@ -4955,9 +4958,9 @@ const ne = {
4955
4958
  onChangeHandler: C,
4956
4959
  onBlurHandler: U,
4957
4960
  onKeyDownHandler: T,
4958
- onFocusHandler: w,
4961
+ onFocusHandler: x,
4959
4962
  rows: p = ne.props.rows.default,
4960
- cols: A,
4963
+ cols: w,
4961
4964
  description: B,
4962
4965
  style: z
4963
4966
  }, L) => {
@@ -4972,7 +4975,7 @@ const ne = {
4972
4975
  }, ke = (b) => {
4973
4976
  le(!1), U && U(b);
4974
4977
  }, Ce = (b) => {
4975
- le(!0), w && w(b);
4978
+ le(!0), x && x(b);
4976
4979
  }, g = () => {
4977
4980
  const b = [`${ne.class}`];
4978
4981
  return n && b.push(`${ne.class}--${n}`), s && b.push(`${ne.class}--animated`), d && b.push(`${ne.class}--with-icon`), f && b.push(`${ne.class}--${f}`), v && b.push(v), b.join(" ");
@@ -4993,7 +4996,7 @@ const ne = {
4993
4996
  "textarea",
4994
4997
  {
4995
4998
  className: "ds-textarea__textarea",
4996
- cols: A,
4999
+ cols: w,
4997
5000
  "data-testid": e,
4998
5001
  defaultValue: i ?? "",
4999
5002
  disabled: y,
@@ -5176,7 +5179,7 @@ const nn = ({
5176
5179
  G(() => {
5177
5180
  y <= 768 ? v("6") : v("12");
5178
5181
  }, [y]);
5179
- const m = (T) => /^[+-]?\d+$/.test(T), C = () => e.split(",").map((w) => (w = w.trim(), w === "0" || w === "*" || w === "auto" ? "auto" : m(w) ? w + "fr" : w)).join(" "), U = () => `repeat(${S}, minmax(0, 1fr))`;
5182
+ const m = (T) => /^[+-]?\d+$/.test(T), C = () => e.split(",").map((x) => (x = x.trim(), x === "0" || x === "*" || x === "auto" ? "auto" : m(x) ? x + "fr" : x)).join(" "), U = () => `repeat(${S}, minmax(0, 1fr))`;
5180
5183
  return /* @__PURE__ */ c(
5181
5184
  "div",
5182
5185
  {
@@ -5303,7 +5306,7 @@ const be = {
5303
5306
  );
5304
5307
  };
5305
5308
  Qe.displayName = "DsWrapper";
5306
- const wt = {
5309
+ const xt = {
5307
5310
  name: "Accordion",
5308
5311
  class: "ds-accordion",
5309
5312
  props: {
@@ -5387,8 +5390,8 @@ Vt.propTypes = {
5387
5390
  };
5388
5391
  Vt.displayName = "DsAccordionItem";
5389
5392
  const rn = ({
5390
- items: t = wt.props.items.default,
5391
- activeItem: e = wt.props.activeItem.default,
5393
+ items: t = xt.props.items.default,
5394
+ activeItem: e = xt.props.activeItem.default,
5392
5395
  onClick: s
5393
5396
  }) => {
5394
5397
  const [n, r] = j(-1);
@@ -5404,7 +5407,7 @@ const rn = ({
5404
5407
  return s && s(-1), r(-1);
5405
5408
  r(i), s && s(i);
5406
5409
  };
5407
- return /* @__PURE__ */ c("ul", { className: wt.class, children: t.map((i, l) => /* @__PURE__ */ c(
5410
+ return /* @__PURE__ */ c("ul", { className: xt.class, children: t.map((i, l) => /* @__PURE__ */ c(
5408
5411
  Vt,
5409
5412
  {
5410
5413
  active: n === l,
@@ -5676,9 +5679,9 @@ const Y = {
5676
5679
  showOptionsOnFocus: C = !1,
5677
5680
  inputType: U,
5678
5681
  inputMin: T,
5679
- inputMax: w,
5682
+ inputMax: x,
5680
5683
  inputTooltip: p,
5681
- inputTooltipPosition: A,
5684
+ inputTooltipPosition: w,
5682
5685
  inputTooltipPlacement: B,
5683
5686
  inputFeedback: z,
5684
5687
  inputHasFeedback: L,
@@ -5741,7 +5744,7 @@ const Y = {
5741
5744
  hasFeedback: L,
5742
5745
  label: t,
5743
5746
  mask: le,
5744
- max: w,
5747
+ max: x,
5745
5748
  min: T,
5746
5749
  name: e,
5747
5750
  noMargin: te,
@@ -5755,7 +5758,7 @@ const Y = {
5755
5758
  testId: s,
5756
5759
  tooltip: p,
5757
5760
  tooltipPlacement: B,
5758
- tooltipPosition: A,
5761
+ tooltipPosition: w,
5759
5762
  type: U,
5760
5763
  value: n
5761
5764
  },
@@ -6106,17 +6109,17 @@ const hn = ({
6106
6109
  s && `${pe.class}--${s}`,
6107
6110
  d && `${pe.class}--elevation-${d}`,
6108
6111
  t
6109
- ].join(" "), w = () => S((z) => (z === 0 && U(!1), z - 100));
6112
+ ].join(" "), x = () => S((z) => (z === 0 && U(!1), z - 100));
6110
6113
  G(() => {
6111
6114
  !i && !u && U(!0);
6112
6115
  let z;
6113
- return !v && i && (z = setInterval(w, 100)), () => {
6116
+ return !v && i && (z = setInterval(x, 100)), () => {
6114
6117
  clearInterval(z);
6115
6118
  };
6116
6119
  }, [v, i, l, C, u]);
6117
6120
  const p = () => {
6118
6121
  m(!0);
6119
- }, A = () => {
6122
+ }, w = () => {
6120
6123
  m(!1);
6121
6124
  }, B = (z) => {
6122
6125
  U(!1), f && f(z);
@@ -6128,7 +6131,7 @@ const hn = ({
6128
6131
  "data-testid": _,
6129
6132
  id: n,
6130
6133
  onMouseEnter: p,
6131
- onMouseLeave: A,
6134
+ onMouseLeave: w,
6132
6135
  children: [
6133
6136
  /* @__PURE__ */ c(Qe, { bottom: "nano", top: "nano", children: /* @__PURE__ */ R(Ve, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
6134
6137
  /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
@@ -6165,7 +6168,7 @@ const hn = ({
6165
6168
  ) : null;
6166
6169
  };
6167
6170
  hn.displayName = "DsNotification";
6168
- const At = {
6171
+ const wt = {
6169
6172
  name: "DsPasswordConfirmation",
6170
6173
  class: "ds-password-confirmation",
6171
6174
  props: {
@@ -6211,9 +6214,9 @@ const At = {
6211
6214
  weak: "Fraco"
6212
6215
  }, fn = ({
6213
6216
  onChange: t,
6214
- validationList: e = At.props.validationList.default,
6215
- instructionLabel: s = At.props.instructionLabel.default,
6216
- testId: n = At.props.testId.default
6217
+ validationList: e = wt.props.validationList.default,
6218
+ instructionLabel: s = wt.props.instructionLabel.default,
6219
+ testId: n = wt.props.testId.default
6217
6220
  }) => {
6218
6221
  const [r, a] = j(""), [i, l] = j(""), [u, d] = j([]), [h, f] = j({
6219
6222
  score: 0,
@@ -6221,16 +6224,16 @@ const At = {
6221
6224
  label: "Fraco"
6222
6225
  }), [_, y] = j(!1), S = Te(
6223
6226
  (p) => {
6224
- const A = e.map(
6227
+ const w = e.map(
6225
6228
  (B) => B == null ? void 0 : B.rule(p)
6226
6229
  );
6227
- return d(A), A;
6230
+ return d(w), w;
6228
6231
  },
6229
6232
  [e]
6230
6233
  ), v = Te(
6231
6234
  (p) => {
6232
6235
  a(p.currentTarget.value);
6233
- const A = S(p.currentTarget.value), B = T(A);
6236
+ const w = S(p.currentTarget.value), B = T(w);
6234
6237
  t({
6235
6238
  password: p.currentTarget.value,
6236
6239
  confirmationPassword: i,
@@ -6242,7 +6245,7 @@ const At = {
6242
6245
  ), m = Te(
6243
6246
  (p) => {
6244
6247
  l(p.currentTarget.value);
6245
- const A = S(r), B = T(A);
6248
+ const w = S(r), B = T(w);
6246
6249
  t({
6247
6250
  password: r,
6248
6251
  confirmationPassword: p.currentTarget.value,
@@ -6253,32 +6256,32 @@ const At = {
6253
6256
  [r, t, S]
6254
6257
  ), C = ve(() => r !== i && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [r, i, _]), U = Te(
6255
6258
  (p) => {
6256
- const A = {
6259
+ const w = {
6257
6260
  score: p,
6258
6261
  color: "danger",
6259
6262
  label: rt.weak
6260
6263
  };
6261
- return p > 30 && p < 75 ? (A.color = "warning", A.label = rt.medium) : p >= 75 && p < 100 ? (A.color = "success", A.label = rt.good) : p === 100 && (A.color = "success-dark", A.label = rt.strong), A;
6264
+ return p > 30 && p < 75 ? (w.color = "warning", w.label = rt.medium) : p >= 75 && p < 100 ? (w.color = "success", w.label = rt.good) : p === 100 && (w.color = "success-dark", w.label = rt.strong), w;
6262
6265
  },
6263
6266
  []
6264
6267
  ), T = Te(
6265
6268
  (p) => {
6266
- const A = p.reduce(
6269
+ const w = p.reduce(
6267
6270
  (z, L) => {
6268
6271
  let te = z;
6269
6272
  return L ? (te++, te) : z;
6270
6273
  },
6271
6274
  0
6272
6275
  ), B = U(
6273
- A * 100 / p.length
6276
+ w * 100 / p.length
6274
6277
  );
6275
6278
  return f(B), B;
6276
6279
  },
6277
6280
  [U]
6278
- ), w = () => /* @__PURE__ */ c("ul", { children: e.map((p, A) => {
6279
- const B = u[A] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
6281
+ ), x = () => /* @__PURE__ */ c("ul", { children: e.map((p, w) => {
6282
+ const B = u[w] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
6280
6283
  return /* @__PURE__ */ R("li", { className: B, children: [
6281
- u[A] ? /* @__PURE__ */ c(
6284
+ u[w] ? /* @__PURE__ */ c(
6282
6285
  Z,
6283
6286
  {
6284
6287
  color: "success-dark",
@@ -6288,7 +6291,7 @@ const At = {
6288
6291
  ) : null,
6289
6292
  /* @__PURE__ */ c(_e, { horizontal: "quark" }),
6290
6293
  /* @__PURE__ */ c(Ne, { children: p.title })
6291
- ] }, A + p.title);
6294
+ ] }, w + p.title);
6292
6295
  }) });
6293
6296
  return /* @__PURE__ */ R(Ve, { className: "ds-password-confirmation", flexDirection: "column", children: [
6294
6297
  /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
@@ -6311,7 +6314,7 @@ const At = {
6311
6314
  }
6312
6315
  ) }),
6313
6316
  /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Ne, { children: s }) }),
6314
- /* @__PURE__ */ c(ae, { children: w() }),
6317
+ /* @__PURE__ */ c(ae, { children: x() }),
6315
6318
  /* @__PURE__ */ c(_e, { vertical: "xxs" }),
6316
6319
  /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
6317
6320
  et,
@@ -6409,7 +6412,7 @@ const Ee = {
6409
6412
  ] });
6410
6413
  };
6411
6414
  pr.displayName = "DsStepper";
6412
- const Ae = {
6415
+ const we = {
6413
6416
  name: "Table",
6414
6417
  class: "ds-table",
6415
6418
  props: {
@@ -6426,13 +6429,13 @@ const Ae = {
6426
6429
  default: []
6427
6430
  }
6428
6431
  }
6429
- }, gn = ({ item: t, columns: e }) => /* @__PURE__ */ c("tr", { className: `${Ae.class}__row`, children: e.map((s, n) => {
6430
- const r = s.align && `${Ae.class}__cell--align-${s.align}`;
6432
+ }, gn = ({ item: t, columns: e }) => /* @__PURE__ */ c("tr", { className: `${we.class}__row`, children: e.map((s, n) => {
6433
+ const r = s.align && `${we.class}__cell--align-${s.align}`;
6431
6434
  return /* @__PURE__ */ c("td", { children: /* @__PURE__ */ c(
6432
6435
  "div",
6433
6436
  {
6434
6437
  className: [
6435
- `${Ae.class}__cell`,
6438
+ `${we.class}__cell`,
6436
6439
  r,
6437
6440
  s.className
6438
6441
  ].filter((a) => a).join(" "),
@@ -6441,22 +6444,22 @@ const Ae = {
6441
6444
  ) }, n);
6442
6445
  }) });
6443
6446
  gn.displayName = "DsTableRow";
6444
- const hr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Ae.class}__wrapper`, children: /* @__PURE__ */ R(
6447
+ const hr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${we.class}__wrapper`, children: /* @__PURE__ */ R(
6445
6448
  "table",
6446
6449
  {
6447
- className: [`${Ae.class}`, s].filter((n) => n).join(" "),
6450
+ className: [`${we.class}`, s].filter((n) => n).join(" "),
6448
6451
  children: [
6449
- /* @__PURE__ */ c("thead", { className: `${Ae.class}__head`, children: /* @__PURE__ */ c("tr", { className: `${Ae.class}__row`, children: t == null ? void 0 : t.map((n, r) => /* @__PURE__ */ c("th", { style: { width: n.size }, children: /* @__PURE__ */ c(
6452
+ /* @__PURE__ */ c("thead", { className: `${we.class}__head`, children: /* @__PURE__ */ c("tr", { className: `${we.class}__row`, children: t == null ? void 0 : t.map((n, r) => /* @__PURE__ */ c("th", { style: { width: n.size }, children: /* @__PURE__ */ c(
6450
6453
  "div",
6451
6454
  {
6452
6455
  className: [
6453
- `${Ae.class}__cell`,
6454
- n.align && `${Ae.class}__cell--align-${n.align}`
6456
+ `${we.class}__cell`,
6457
+ n.align && `${we.class}__cell--align-${n.align}`
6455
6458
  ].filter((a) => a).join(" "),
6456
6459
  children: n.label
6457
6460
  }
6458
6461
  ) }, r)) }) }),
6459
- /* @__PURE__ */ c("tbody", { className: `${Ae.class}__body`, children: e && e.map((n, r) => /* @__PURE__ */ c(gn, { columns: t, item: n }, r)) })
6462
+ /* @__PURE__ */ c("tbody", { className: `${we.class}__body`, children: e && e.map((n, r) => /* @__PURE__ */ c(gn, { columns: t, item: n }, r)) })
6460
6463
  ]
6461
6464
  }
6462
6465
  ) });
@@ -6735,7 +6738,7 @@ export {
6735
6738
  Fs as InputStatus,
6736
6739
  Ds as InputTooltipPlacement,
6737
6740
  Os as InputTooltipPosition,
6738
- As as InputType,
6741
+ ws as InputType,
6739
6742
  Bs as LoadingBackgroundColor,
6740
6743
  Ns as LoadingSize,
6741
6744
  dr as ModalElevation,
@@ -6760,7 +6763,7 @@ export {
6760
6763
  Rs as TooltipPlacement,
6761
6764
  Is as TooltipPosition,
6762
6765
  ze as WrapperSpace,
6763
- wt as accordionConfig,
6766
+ xt as accordionConfig,
6764
6767
  Ue as accordionItemConfig,
6765
6768
  br as activeTagsConfig,
6766
6769
  X as buttonConfig,
@@ -6786,16 +6789,16 @@ export {
6786
6789
  je as notificationListConfig,
6787
6790
  Oe as optionConfig,
6788
6791
  ot as paragraphConfig,
6789
- At as passwordConfirmationConfig,
6792
+ wt as passwordConfirmationConfig,
6790
6793
  Jt as progressConfig,
6791
6794
  Q as selectConfig,
6792
6795
  Ze as spacerConfig,
6793
6796
  Ee as stepperConfig,
6794
- xt as subtitleConfig,
6795
- Ae as tableConfig,
6797
+ At as subtitleConfig,
6798
+ we as tableConfig,
6796
6799
  $e as tabsConfig,
6797
6800
  ne as textAreaConfig,
6798
- we as tooltipConfig,
6801
+ xe as tooltipConfig,
6799
6802
  at as twoColumnsConfig,
6800
6803
  be as wrapperConfig
6801
6804
  };