@akad/design-system 2.0.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/core.css +1 -1
- package/package.json +1 -1
- package/react/react-lib.js +350 -359
- package/react/react-lib.umd.cjs +5 -5
- package/react/src/components/atoms/Card/Card.config.d.ts +7 -12
- package/react/src/components/atoms/Card/Card.d.ts +6 -5
- package/react/src/components/atoms/Card/Card.stories.d.ts +12 -4
- package/scss/core/components/atoms/button.scss +1 -1
- package/scss/core/components/atoms/card.scss +67 -8
- package/scss/core/helpers/index.scss +0 -1
- package/scss/core/helpers/borders.scss +0 -105
package/react/react-lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as c, jsxs as F, Fragment as
|
|
2
|
-
import xe, { useMemo as
|
|
1
|
+
import { jsx as c, jsxs as F, Fragment as _t } from "react/jsx-runtime";
|
|
2
|
+
import xe, { useMemo as de, useState as q, useEffect as Z, useRef as Xe, useCallback as Ae, useLayoutEffect as Wn, useId as gs, forwardRef as Xn } from "react";
|
|
3
3
|
const Yn = ["amplitude"];
|
|
4
4
|
function Kn(t, e, s, n = Yn) {
|
|
5
5
|
var a;
|
|
@@ -44,23 +44,23 @@ const Qn = {
|
|
|
44
44
|
"pageTitle",
|
|
45
45
|
"pageUrl"
|
|
46
46
|
];
|
|
47
|
-
function
|
|
47
|
+
function kt(t, e) {
|
|
48
48
|
console.warn(`[data-owl] ${t}: ${e}`);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function lt(t, e) {
|
|
51
|
+
kt(t, e);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ft(t) {
|
|
54
54
|
return t == null || typeof t == "string" && !t.trim();
|
|
55
55
|
}
|
|
56
56
|
function sa(t, e) {
|
|
57
|
-
return e.filter((s) =>
|
|
57
|
+
return e.filter((s) => ft(t[s]));
|
|
58
58
|
}
|
|
59
59
|
function na(t, e) {
|
|
60
60
|
const s = [];
|
|
61
61
|
return Object.entries(e).forEach(([n, a]) => {
|
|
62
62
|
const r = t[n];
|
|
63
|
-
if (
|
|
63
|
+
if (ft(r)) return;
|
|
64
64
|
const i = Object.values(a);
|
|
65
65
|
i.includes(r) || s.push(
|
|
66
66
|
`invalid value for ${n}: "${String(r)}" (expected one of: ${i.join(", ")})`
|
|
@@ -69,21 +69,21 @@ function na(t, e) {
|
|
|
69
69
|
}
|
|
70
70
|
function aa(t, e, s, n) {
|
|
71
71
|
if (e === null || typeof e != "object")
|
|
72
|
-
return
|
|
72
|
+
return lt(t, "event data must be an object"), null;
|
|
73
73
|
const a = sa(e, s);
|
|
74
74
|
if (a.length)
|
|
75
|
-
return
|
|
75
|
+
return lt(t, `missing required field(s): ${a.join(", ")}`), null;
|
|
76
76
|
const r = na(e, n);
|
|
77
77
|
if (r.length)
|
|
78
|
-
return
|
|
78
|
+
return lt(t, r.join("; ")), null;
|
|
79
79
|
const i = { ...e };
|
|
80
80
|
if (i.source === Ht.Custom) {
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
81
|
+
if (ft(i.customSource))
|
|
82
|
+
return lt(
|
|
83
83
|
t,
|
|
84
84
|
"customSource is required when source is EventSource.Custom"
|
|
85
85
|
), null;
|
|
86
|
-
} else
|
|
86
|
+
} else ft(i.customSource) || (kt(
|
|
87
87
|
t,
|
|
88
88
|
"customSource is only allowed when source is EventSource.Custom and was discarded"
|
|
89
89
|
), delete i.customSource);
|
|
@@ -107,7 +107,7 @@ function ia(t, e, s, n = []) {
|
|
|
107
107
|
}
|
|
108
108
|
const d = ra(i);
|
|
109
109
|
if (a.has(d)) {
|
|
110
|
-
|
|
110
|
+
kt(
|
|
111
111
|
t,
|
|
112
112
|
`custom property "${i}" collides with the reserved property "${d}" and was discarded`
|
|
113
113
|
);
|
|
@@ -154,7 +154,7 @@ function da(t) {
|
|
|
154
154
|
n
|
|
155
155
|
);
|
|
156
156
|
} catch (s) {
|
|
157
|
-
|
|
157
|
+
kt(
|
|
158
158
|
xt,
|
|
159
159
|
`unexpected error: ${s instanceof Error ? s.message : String(s)}`
|
|
160
160
|
);
|
|
@@ -163,7 +163,7 @@ function da(t) {
|
|
|
163
163
|
function pa(t) {
|
|
164
164
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
165
165
|
}
|
|
166
|
-
var Lt = { exports: {} },
|
|
166
|
+
var Lt = { exports: {} }, ot = { exports: {} }, K = {};
|
|
167
167
|
/** @license React v16.13.1
|
|
168
168
|
* react-is.production.min.js
|
|
169
169
|
*
|
|
@@ -332,7 +332,7 @@ function fa() {
|
|
|
332
332
|
}
|
|
333
333
|
var ts;
|
|
334
334
|
function ks() {
|
|
335
|
-
return ts || (ts = 1, process.env.NODE_ENV === "production" ?
|
|
335
|
+
return ts || (ts = 1, process.env.NODE_ENV === "production" ? ot.exports = ha() : ot.exports = fa()), ot.exports;
|
|
336
336
|
}
|
|
337
337
|
/*
|
|
338
338
|
object-assign
|
|
@@ -883,7 +883,7 @@ const G = {
|
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
885
|
var xs = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.PrimaryLightest = "primary-lightest", t.PrimaryLighter = "primary-lighter", t.PrimaryLight = "primary-light", t.PrimaryDark = "primary-dark", t.PrimaryDarker = "primary-darker", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.Secondary = "secondary", t.SecondaryLightest = "secondary-lightest", t.SecondaryLighter = "secondary-lighter", t.SecondaryLight = "secondary-light", t.SecondaryDark = "secondary-dark", t.SecondaryDarker = "secondary-darker", t.Success = "success", t.SuccessLighter = "success-lighter", t.SuccessLight = "success-light", t.SuccessDark = "success-dark", t.Warning = "warning", t.WarningLighter = "warning-lighter", t.WarningLight = "warning-light", t.WarningDark = "warning-dark", t.Danger = "danger", t.DangerLighter = "danger-lighter", t.DangerLight = "danger-light", t.DangerDark = "danger-dark", t.Info = "info", t.InfoLighter = "info-lighter", t.InfoLight = "info-light", t.InfoDark = "info-dark", t))(xs || {}), Cs = /* @__PURE__ */ ((t) => (t.Outlined = "outlined", t.Rounded = "rounded", t.Sharp = "sharp", t))(Cs || {}), Ds = /* @__PURE__ */ ((t) => (t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t.MD = "md", t.LG = "lg", t.XL = "xl", t.XXL = "xxl", t.XXXL = "xxxl", t.Huge = "huge", t))(Ds || {}), Ts = /* @__PURE__ */ ((t) => (t.Bold = "bold", t.Semibold = "semibold", t.Medium = "medium", t.Regular = "regular", t.Light = "light", t.Extralight = "extralight", t))(Ts || {});
|
|
886
|
-
const
|
|
886
|
+
const ke = {
|
|
887
887
|
name: "Icon",
|
|
888
888
|
class: "ds-icon",
|
|
889
889
|
props: {
|
|
@@ -934,7 +934,7 @@ const _e = {
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
var
|
|
937
|
+
var bt = /* @__PURE__ */ ((t) => (t["primary-darker"] = "primary--darker", t["primary-dark"] = "primary--dark", t["primary-light"] = "primary--light", t["primary-lighter"] = "primary--lighter", t["primary-lightest"] = "primary--lightest", t["secondary-darker"] = "secondary--darker", t["secondary-dark"] = "secondary--dark", t["secondary-light"] = "secondary--light", t["secondary-lighter"] = "secondary--lighter", t["secondary-lightest"] = "secondary--lightest", t["success-dark"] = "success--dark", t["success-light"] = "success--light", t["success-lighter"] = "success--lighter", t["warning-dark"] = "warning--dark", t["warning-light"] = "warning--light", t["warning-lighter"] = "warning--lighter", t["danger-dark"] = "danger--dark", t["danger-light"] = "danger--light", t["danger-lighter"] = "danger--lighter", t["info-dark"] = "info--dark", t["info-light"] = "info--light", t["info-lighter"] = "info--lighter", t))(bt || {});
|
|
938
938
|
const Ea = {
|
|
939
939
|
bold: 700,
|
|
940
940
|
semibold: 600,
|
|
@@ -943,24 +943,24 @@ const Ea = {
|
|
|
943
943
|
light: 300,
|
|
944
944
|
extralight: 200
|
|
945
945
|
}, te = ({
|
|
946
|
-
image: t =
|
|
947
|
-
color: e =
|
|
946
|
+
image: t = ke.props.image.default,
|
|
947
|
+
color: e = ke.props.color.default,
|
|
948
948
|
className: s,
|
|
949
|
-
size: n =
|
|
950
|
-
fill: a =
|
|
951
|
-
weight: r =
|
|
952
|
-
testId: i =
|
|
953
|
-
onClick: o =
|
|
949
|
+
size: n = ke.props.size.default,
|
|
950
|
+
fill: a = ke.props.fill.default,
|
|
951
|
+
weight: r = ke.props.weight.default,
|
|
952
|
+
testId: i = ke.props.testId.default,
|
|
953
|
+
onClick: o = ke.props.onClick.default
|
|
954
954
|
}) => {
|
|
955
|
-
const u = "material-symbols-rounded", d = e &&
|
|
955
|
+
const u = "material-symbols-rounded", d = e && ke.props.color.options.find((f) => f === e) && `color__${bt[e] ?? e}`, h = de(() => ({
|
|
956
956
|
fontVariationSettings: `'FILL' ${a ? 1 : 0}, 'GRAD' 0,'wght' ${Ea[r]}, 'opsz' 48`
|
|
957
957
|
}), [r, a]);
|
|
958
958
|
return /* @__PURE__ */ c(
|
|
959
959
|
"i",
|
|
960
960
|
{
|
|
961
961
|
className: [
|
|
962
|
-
`${
|
|
963
|
-
|
|
962
|
+
`${ke.class}--${n}`,
|
|
963
|
+
ke.class,
|
|
964
964
|
u,
|
|
965
965
|
d,
|
|
966
966
|
s
|
|
@@ -974,16 +974,16 @@ const Ea = {
|
|
|
974
974
|
);
|
|
975
975
|
};
|
|
976
976
|
te.propTypes = {
|
|
977
|
-
color: l.oneOf(
|
|
977
|
+
color: l.oneOf(ke.props.color.options),
|
|
978
978
|
image: l.string,
|
|
979
979
|
fontVariationSettings: l.object,
|
|
980
|
-
size: l.oneOf(
|
|
980
|
+
size: l.oneOf(ke.props.size.options),
|
|
981
981
|
fill: l.bool,
|
|
982
|
-
weight: l.oneOf(
|
|
982
|
+
weight: l.oneOf(ke.props.weight.options),
|
|
983
983
|
onClick: l.func
|
|
984
984
|
};
|
|
985
985
|
te.displayName = "DsIcon";
|
|
986
|
-
const
|
|
986
|
+
const gt = ({
|
|
987
987
|
children: t,
|
|
988
988
|
className: e,
|
|
989
989
|
onClick: s,
|
|
@@ -1045,7 +1045,7 @@ const mt = ({
|
|
|
1045
1045
|
}
|
|
1046
1046
|
);
|
|
1047
1047
|
};
|
|
1048
|
-
|
|
1048
|
+
gt.propTypes = {
|
|
1049
1049
|
color: l.oneOf(G.props.color.options),
|
|
1050
1050
|
variant: l.oneOf(G.props.variant.options),
|
|
1051
1051
|
size: l.oneOf(G.props.size.options),
|
|
@@ -1069,7 +1069,7 @@ mt.propTypes = {
|
|
|
1069
1069
|
businessFlow: l.string.isRequired
|
|
1070
1070
|
})
|
|
1071
1071
|
};
|
|
1072
|
-
|
|
1072
|
+
gt.displayName = "DsButton";
|
|
1073
1073
|
const wa = {
|
|
1074
1074
|
name: "Caption",
|
|
1075
1075
|
class: "ds-caption"
|
|
@@ -1091,8 +1091,8 @@ Fs.propTypes = {
|
|
|
1091
1091
|
testId: l.string
|
|
1092
1092
|
};
|
|
1093
1093
|
Fs.displayName = "DsCaption";
|
|
1094
|
-
var jt = /* @__PURE__ */ ((t) => (t.None = "", t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(jt || {}), Os = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t))(Os || {})
|
|
1095
|
-
const
|
|
1094
|
+
var jt = /* @__PURE__ */ ((t) => (t.None = "", t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral70 = "neutral-70", t.Neutral60 = "neutral-60", t.Neutral50 = "neutral-50", t.Neutral40 = "neutral-40", t.Neutral30 = "neutral-30", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(jt || {}), Os = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t))(Os || {});
|
|
1095
|
+
const ue = {
|
|
1096
1096
|
name: "Card",
|
|
1097
1097
|
class: "ds-card",
|
|
1098
1098
|
props: {
|
|
@@ -1103,20 +1103,12 @@ const ke = {
|
|
|
1103
1103
|
},
|
|
1104
1104
|
borderColor: {
|
|
1105
1105
|
type: String,
|
|
1106
|
-
default: "",
|
|
1106
|
+
default: "neutral-30",
|
|
1107
1107
|
options: Object.values(jt)
|
|
1108
1108
|
},
|
|
1109
|
-
|
|
1110
|
-
type:
|
|
1111
|
-
default:
|
|
1112
|
-
options: [
|
|
1113
|
-
0,
|
|
1114
|
-
1,
|
|
1115
|
-
2,
|
|
1116
|
-
3,
|
|
1117
|
-
4
|
|
1118
|
-
/* Elevation4 */
|
|
1119
|
-
]
|
|
1109
|
+
sideBorder: {
|
|
1110
|
+
type: Boolean,
|
|
1111
|
+
default: !1
|
|
1120
1112
|
},
|
|
1121
1113
|
size: {
|
|
1122
1114
|
type: String,
|
|
@@ -1134,20 +1126,20 @@ const ke = {
|
|
|
1134
1126
|
}
|
|
1135
1127
|
}, Is = ({
|
|
1136
1128
|
id: t,
|
|
1137
|
-
testId: e =
|
|
1129
|
+
testId: e = ue.props.testId.default,
|
|
1138
1130
|
children: s,
|
|
1139
1131
|
className: n,
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
size: o =
|
|
1132
|
+
backgroundColor: a = ue.props.backgroundColor.default,
|
|
1133
|
+
borderColor: r = ue.props.borderColor.default,
|
|
1134
|
+
sideBorder: i = ue.props.sideBorder.default,
|
|
1135
|
+
size: o = ue.props.size.default
|
|
1144
1136
|
}) => {
|
|
1145
|
-
const u =
|
|
1137
|
+
const u = r && ue.props.borderColor.options.includes(r) ? `${ue.class}--border-${r}` : `${ue.class}--border-${ue.props.borderColor.default}`, d = i ? `${ue.class}--side-border` : "", h = a && `bg-color__${bt[a] ?? a}`, f = o && ue.props.size.options.find((y) => y === o) ? `${ue.class}--${o}` : `${ue.class}--${ue.props.size.default}`;
|
|
1146
1138
|
return /* @__PURE__ */ c(
|
|
1147
1139
|
"div",
|
|
1148
1140
|
{
|
|
1149
1141
|
className: [
|
|
1150
|
-
|
|
1142
|
+
ue.class,
|
|
1151
1143
|
n,
|
|
1152
1144
|
u,
|
|
1153
1145
|
d,
|
|
@@ -1163,12 +1155,12 @@ const ke = {
|
|
|
1163
1155
|
Is.propTypes = {
|
|
1164
1156
|
id: l.string,
|
|
1165
1157
|
testId: l.string,
|
|
1166
|
-
backgroundColor: l.oneOf(
|
|
1167
|
-
borderColor: l.oneOf(
|
|
1168
|
-
|
|
1158
|
+
backgroundColor: l.oneOf(ue.props.backgroundColor.options),
|
|
1159
|
+
borderColor: l.oneOf(ue.props.borderColor.options),
|
|
1160
|
+
sideBorder: l.bool
|
|
1169
1161
|
};
|
|
1170
1162
|
Is.displayName = "DsCard";
|
|
1171
|
-
const
|
|
1163
|
+
const ge = {
|
|
1172
1164
|
name: "Checkbox",
|
|
1173
1165
|
class: "ds-checkbox",
|
|
1174
1166
|
props: {
|
|
@@ -1210,18 +1202,18 @@ const fe = {
|
|
|
1210
1202
|
id: t,
|
|
1211
1203
|
className: e,
|
|
1212
1204
|
name: s,
|
|
1213
|
-
testId: n =
|
|
1214
|
-
label: a =
|
|
1215
|
-
description: r =
|
|
1216
|
-
checked: i =
|
|
1217
|
-
disabled: o =
|
|
1218
|
-
changeByChecked: u =
|
|
1205
|
+
testId: n = ge.props.testId.default,
|
|
1206
|
+
label: a = ge.props.label.default,
|
|
1207
|
+
description: r = ge.props.description.default,
|
|
1208
|
+
checked: i = ge.props.checked.default,
|
|
1209
|
+
disabled: o = ge.props.disabled.default,
|
|
1210
|
+
changeByChecked: u = ge.props.changeByChecked.default,
|
|
1219
1211
|
onChangeHandler: d
|
|
1220
1212
|
}, h) => {
|
|
1221
1213
|
const f = u ?? !1, y = i ?? !1, [b, S] = q(y), v = {
|
|
1222
1214
|
image: b ? "check_box" : "check_box_outline_blank",
|
|
1223
|
-
class: b ? `${
|
|
1224
|
-
}, g = o && `${
|
|
1215
|
+
class: b ? `${ge.class}__icon--checked` : `${ge.class}__icon--unchecked`
|
|
1216
|
+
}, g = o && `${ge.class}--disabled`, A = (R) => {
|
|
1225
1217
|
o || (S((w) => !w), d && d(R));
|
|
1226
1218
|
};
|
|
1227
1219
|
return Z(() => {
|
|
@@ -1229,7 +1221,7 @@ const fe = {
|
|
|
1229
1221
|
}, [i, f]), /* @__PURE__ */ F(
|
|
1230
1222
|
"label",
|
|
1231
1223
|
{
|
|
1232
|
-
className: [
|
|
1224
|
+
className: [ge.class, g, e].join(
|
|
1233
1225
|
" "
|
|
1234
1226
|
),
|
|
1235
1227
|
htmlFor: t || s,
|
|
@@ -1238,7 +1230,7 @@ const fe = {
|
|
|
1238
1230
|
"input",
|
|
1239
1231
|
{
|
|
1240
1232
|
checked: b,
|
|
1241
|
-
className: `${
|
|
1233
|
+
className: `${ge.class}__input`,
|
|
1242
1234
|
"data-testid": n,
|
|
1243
1235
|
disabled: o,
|
|
1244
1236
|
id: t || s,
|
|
@@ -1251,18 +1243,18 @@ const fe = {
|
|
|
1251
1243
|
/* @__PURE__ */ c(
|
|
1252
1244
|
te,
|
|
1253
1245
|
{
|
|
1254
|
-
className: `${
|
|
1246
|
+
className: `${ge.class}__icon ${v.class}`,
|
|
1255
1247
|
fill: !0,
|
|
1256
1248
|
image: v.image,
|
|
1257
1249
|
size: "xxl",
|
|
1258
1250
|
testId: `${n}-icon`
|
|
1259
1251
|
}
|
|
1260
1252
|
),
|
|
1261
|
-
(r || a) && /* @__PURE__ */ F("div", { className: `${
|
|
1253
|
+
(r || a) && /* @__PURE__ */ F("div", { className: `${ge.class}__label`, children: [
|
|
1262
1254
|
a && /* @__PURE__ */ c(
|
|
1263
1255
|
"label",
|
|
1264
1256
|
{
|
|
1265
|
-
className: `${
|
|
1257
|
+
className: `${ge.class}__label-title`,
|
|
1266
1258
|
htmlFor: t || s,
|
|
1267
1259
|
children: a
|
|
1268
1260
|
}
|
|
@@ -1270,7 +1262,7 @@ const fe = {
|
|
|
1270
1262
|
r && /* @__PURE__ */ c(
|
|
1271
1263
|
"label",
|
|
1272
1264
|
{
|
|
1273
|
-
className: `${
|
|
1265
|
+
className: `${ge.class}__label-description`,
|
|
1274
1266
|
htmlFor: t || s,
|
|
1275
1267
|
children: r
|
|
1276
1268
|
}
|
|
@@ -1291,7 +1283,7 @@ Ns.propTypes = {
|
|
|
1291
1283
|
disabled: l.bool
|
|
1292
1284
|
};
|
|
1293
1285
|
Ns.displayName = "DsCheckbox";
|
|
1294
|
-
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 || {}), $s = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Light = "light", t))($s || {}),
|
|
1286
|
+
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 || {}), $s = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Light = "light", t))($s || {}), mt = /* @__PURE__ */ ((t) => (t.Left = "left", t.Right = "right", t))(mt || {});
|
|
1295
1287
|
const Be = {
|
|
1296
1288
|
name: "DsChip",
|
|
1297
1289
|
class: "ds-chip",
|
|
@@ -1309,10 +1301,10 @@ const Be = {
|
|
|
1309
1301
|
iconPosition: {
|
|
1310
1302
|
type: String,
|
|
1311
1303
|
default: "left",
|
|
1312
|
-
options: Object.values(
|
|
1304
|
+
options: Object.values(mt)
|
|
1313
1305
|
}
|
|
1314
1306
|
}
|
|
1315
|
-
},
|
|
1307
|
+
}, ir = ({
|
|
1316
1308
|
label: t,
|
|
1317
1309
|
color: e = Be.props.color.default,
|
|
1318
1310
|
variant: s = Be.props.variant.default,
|
|
@@ -1337,9 +1329,9 @@ const Be = {
|
|
|
1337
1329
|
}
|
|
1338
1330
|
) : null;
|
|
1339
1331
|
return /* @__PURE__ */ F("span", { className: u, "data-testid": o, title: i, children: [
|
|
1340
|
-
a ===
|
|
1332
|
+
a === mt.Left && d,
|
|
1341
1333
|
/* @__PURE__ */ c("span", { className: `${Be.class}__label`, children: t }),
|
|
1342
|
-
a ===
|
|
1334
|
+
a === mt.Right && d
|
|
1343
1335
|
] });
|
|
1344
1336
|
};
|
|
1345
1337
|
var Bs = /* @__PURE__ */ ((t) => (t.Heading1 = "heading-1", t.Heading2 = "heading-2", t.Heading3 = "heading-3", t.Heading4 = "heading-4", t.Heading5 = "heading-5", t.Heading6 = "heading-6", t))(Bs || {});
|
|
@@ -1440,7 +1432,7 @@ const T = {
|
|
|
1440
1432
|
RIGHT: "RIGHT",
|
|
1441
1433
|
FORCE_RIGHT: "FORCE_RIGHT"
|
|
1442
1434
|
};
|
|
1443
|
-
function
|
|
1435
|
+
function Aa(t) {
|
|
1444
1436
|
switch (t) {
|
|
1445
1437
|
case T.LEFT:
|
|
1446
1438
|
return T.FORCE_LEFT;
|
|
@@ -1453,13 +1445,13 @@ function xa(t) {
|
|
|
1453
1445
|
function Nt(t) {
|
|
1454
1446
|
return t.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
|
|
1455
1447
|
}
|
|
1456
|
-
function
|
|
1448
|
+
function vt(t, e) {
|
|
1457
1449
|
if (e === t) return !0;
|
|
1458
1450
|
const s = Array.isArray(e), n = Array.isArray(t);
|
|
1459
1451
|
let a;
|
|
1460
1452
|
if (s && n) {
|
|
1461
1453
|
if (e.length != t.length) return !1;
|
|
1462
|
-
for (a = 0; a < e.length; a++) if (!
|
|
1454
|
+
for (a = 0; a < e.length; a++) if (!vt(e[a], t[a])) return !1;
|
|
1463
1455
|
return !0;
|
|
1464
1456
|
}
|
|
1465
1457
|
if (s != n) return !1;
|
|
@@ -1472,13 +1464,13 @@ function yt(t, e) {
|
|
|
1472
1464
|
if (o != u) return !1;
|
|
1473
1465
|
const d = Object.keys(e);
|
|
1474
1466
|
for (a = 0; a < d.length; a++) if (!Object.prototype.hasOwnProperty.call(t, d[a])) return !1;
|
|
1475
|
-
for (a = 0; a < d.length; a++) if (!
|
|
1467
|
+
for (a = 0; a < d.length; a++) if (!vt(t[d[a]], e[d[a]])) return !1;
|
|
1476
1468
|
return !0;
|
|
1477
1469
|
} else if (e && t && typeof e == "function" && typeof t == "function")
|
|
1478
1470
|
return e.toString() === t.toString();
|
|
1479
1471
|
return !1;
|
|
1480
1472
|
}
|
|
1481
|
-
class
|
|
1473
|
+
class xa {
|
|
1482
1474
|
/** Current input value */
|
|
1483
1475
|
/** Current cursor position */
|
|
1484
1476
|
/** Old input value */
|
|
@@ -1532,7 +1524,7 @@ function Ps(t) {
|
|
|
1532
1524
|
if (t == null) throw new Error("mask property should be defined");
|
|
1533
1525
|
return t instanceof RegExp ? I.MaskedRegExp : Pe(t) ? I.MaskedPattern : t === Date ? I.MaskedDate : t === Number ? I.MaskedNumber : Array.isArray(t) || t === Array ? I.MaskedDynamic : I.Masked && t.prototype instanceof I.Masked ? t : I.Masked && t instanceof I.Masked ? t.constructor : t instanceof Function ? I.MaskedFunction : (console.warn("Mask not found for mask", t), I.Masked);
|
|
1534
1526
|
}
|
|
1535
|
-
function
|
|
1527
|
+
function at(t) {
|
|
1536
1528
|
if (!t) throw new Error("Options in not defined");
|
|
1537
1529
|
if (I.Masked) {
|
|
1538
1530
|
if (t.prototype instanceof I.Masked) return {
|
|
@@ -1562,7 +1554,7 @@ function rt(t) {
|
|
|
1562
1554
|
}
|
|
1563
1555
|
function Le(t) {
|
|
1564
1556
|
if (I.Masked && t instanceof I.Masked) return t;
|
|
1565
|
-
const e =
|
|
1557
|
+
const e = at(t), s = Ps(e.mask);
|
|
1566
1558
|
if (!s) throw new Error("Masked class is not found for provided mask " + e.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
1567
1559
|
return e.mask === s && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new s(e);
|
|
1568
1560
|
}
|
|
@@ -1606,7 +1598,7 @@ class Kt {
|
|
|
1606
1598
|
/** */
|
|
1607
1599
|
}
|
|
1608
1600
|
I.MaskElement = Kt;
|
|
1609
|
-
const cs = 90,
|
|
1601
|
+
const cs = 90, Ca = 89;
|
|
1610
1602
|
class St extends Kt {
|
|
1611
1603
|
/** HTMLElement to use mask on */
|
|
1612
1604
|
constructor(e) {
|
|
@@ -1625,7 +1617,7 @@ class St extends Kt {
|
|
|
1625
1617
|
this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", e.drop), this.input.addEventListener("click", e.click), this.input.addEventListener("focus", e.focus), this.input.addEventListener("blur", e.commit), this._handlers = e;
|
|
1626
1618
|
}
|
|
1627
1619
|
_onKeydown(e) {
|
|
1628
|
-
if (this._handlers.redo && (e.keyCode === cs && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode ===
|
|
1620
|
+
if (this._handlers.redo && (e.keyCode === cs && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode === Ca && e.ctrlKey))
|
|
1629
1621
|
return e.preventDefault(), this._handlers.redo(e);
|
|
1630
1622
|
if (this._handlers.undo && e.keyCode === cs && (e.metaKey || e.ctrlKey))
|
|
1631
1623
|
return e.preventDefault(), this._handlers.undo(e);
|
|
@@ -1649,7 +1641,7 @@ class St extends Kt {
|
|
|
1649
1641
|
}
|
|
1650
1642
|
}
|
|
1651
1643
|
I.HTMLMaskElement = St;
|
|
1652
|
-
class
|
|
1644
|
+
class Da extends St {
|
|
1653
1645
|
/** InputElement to use mask on */
|
|
1654
1646
|
constructor(e) {
|
|
1655
1647
|
super(e), this.input = e;
|
|
@@ -1729,13 +1721,13 @@ class Et {
|
|
|
1729
1721
|
}
|
|
1730
1722
|
}
|
|
1731
1723
|
Et.MAX_LENGTH = 100;
|
|
1732
|
-
class
|
|
1724
|
+
class Ta {
|
|
1733
1725
|
/**
|
|
1734
1726
|
View element
|
|
1735
1727
|
*/
|
|
1736
1728
|
/** Internal {@link Masked} model */
|
|
1737
1729
|
constructor(e, s) {
|
|
1738
|
-
this.el = e instanceof Kt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new qs(e) : new
|
|
1730
|
+
this.el = e instanceof Kt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new qs(e) : new Da(e), this.masked = Le(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new Et(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
|
|
1739
1731
|
}
|
|
1740
1732
|
maskEquals(e) {
|
|
1741
1733
|
var s;
|
|
@@ -1894,7 +1886,7 @@ class Fa {
|
|
|
1894
1886
|
/** Handles view input event */
|
|
1895
1887
|
_onInput(e) {
|
|
1896
1888
|
this._inputEvent = e, this._abortUpdateCursor();
|
|
1897
|
-
const s = new
|
|
1889
|
+
const s = new xa({
|
|
1898
1890
|
// new state
|
|
1899
1891
|
value: this.el.value,
|
|
1900
1892
|
cursorPos: this.cursorPos,
|
|
@@ -1938,7 +1930,7 @@ class Fa {
|
|
|
1938
1930
|
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
1939
1931
|
}
|
|
1940
1932
|
}
|
|
1941
|
-
I.InputMask =
|
|
1933
|
+
I.InputMask = Ta;
|
|
1942
1934
|
class P {
|
|
1943
1935
|
/** Inserted symbols */
|
|
1944
1936
|
/** Additional offset if any changes occurred before tail */
|
|
@@ -2010,7 +2002,7 @@ class Re {
|
|
|
2010
2002
|
return this.value = this.value.slice(0, -1), e;
|
|
2011
2003
|
}
|
|
2012
2004
|
}
|
|
2013
|
-
class
|
|
2005
|
+
class he {
|
|
2014
2006
|
/** */
|
|
2015
2007
|
/** */
|
|
2016
2008
|
/** Transforms value before mask processing */
|
|
@@ -2026,7 +2018,7 @@ class pe {
|
|
|
2026
2018
|
/** */
|
|
2027
2019
|
constructor(e) {
|
|
2028
2020
|
this._value = "", this._update({
|
|
2029
|
-
...
|
|
2021
|
+
...he.DEFAULTS,
|
|
2030
2022
|
...e
|
|
2031
2023
|
}), this._initialized = !0;
|
|
2032
2024
|
}
|
|
@@ -2221,7 +2213,7 @@ class pe {
|
|
|
2221
2213
|
});
|
|
2222
2214
|
const i = e + s, o = this.extractTail(i), u = this.eager === !0 || this.eager === "remove";
|
|
2223
2215
|
let d;
|
|
2224
|
-
u && (a =
|
|
2216
|
+
u && (a = Aa(a), d = this.extractInput(0, i, {
|
|
2225
2217
|
raw: !0
|
|
2226
2218
|
}));
|
|
2227
2219
|
let h = e;
|
|
@@ -2240,21 +2232,21 @@ class pe {
|
|
|
2240
2232
|
return this.mask === e;
|
|
2241
2233
|
}
|
|
2242
2234
|
optionsIsChanged(e) {
|
|
2243
|
-
return !
|
|
2235
|
+
return !vt(this, e);
|
|
2244
2236
|
}
|
|
2245
2237
|
typedValueEquals(e) {
|
|
2246
2238
|
const s = this.typedValue;
|
|
2247
|
-
return e === s ||
|
|
2239
|
+
return e === s || he.EMPTY_VALUES.includes(e) && he.EMPTY_VALUES.includes(s) || (this.format ? this.format(e, this) === this.format(this.typedValue, this) : !1);
|
|
2248
2240
|
}
|
|
2249
2241
|
pad(e) {
|
|
2250
2242
|
return new P();
|
|
2251
2243
|
}
|
|
2252
2244
|
}
|
|
2253
|
-
|
|
2245
|
+
he.DEFAULTS = {
|
|
2254
2246
|
skipInvalid: !0
|
|
2255
2247
|
};
|
|
2256
|
-
|
|
2257
|
-
I.Masked =
|
|
2248
|
+
he.EMPTY_VALUES = [void 0, null, ""];
|
|
2249
|
+
I.Masked = he;
|
|
2258
2250
|
class We {
|
|
2259
2251
|
/** */
|
|
2260
2252
|
constructor(e, s) {
|
|
@@ -2351,7 +2343,7 @@ class We {
|
|
|
2351
2343
|
return "";
|
|
2352
2344
|
}
|
|
2353
2345
|
}
|
|
2354
|
-
class
|
|
2346
|
+
class Fa {
|
|
2355
2347
|
constructor(e, s) {
|
|
2356
2348
|
this.masked = e, this._log = [];
|
|
2357
2349
|
const {
|
|
@@ -2543,7 +2535,7 @@ class Us {
|
|
|
2543
2535
|
return this._appendPlaceholder();
|
|
2544
2536
|
}
|
|
2545
2537
|
}
|
|
2546
|
-
class
|
|
2538
|
+
class yt {
|
|
2547
2539
|
/** */
|
|
2548
2540
|
/** */
|
|
2549
2541
|
/** */
|
|
@@ -2664,13 +2656,13 @@ class _t {
|
|
|
2664
2656
|
return new P();
|
|
2665
2657
|
}
|
|
2666
2658
|
}
|
|
2667
|
-
|
|
2659
|
+
yt.DEFAULT_DEFINITIONS = {
|
|
2668
2660
|
0: /\d/,
|
|
2669
2661
|
a: /[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
|
|
2670
2662
|
// http://stackoverflow.com/a/22075070
|
|
2671
2663
|
"*": /./
|
|
2672
2664
|
};
|
|
2673
|
-
class
|
|
2665
|
+
class Oa extends he {
|
|
2674
2666
|
/** */
|
|
2675
2667
|
/** Enable characters overwriting */
|
|
2676
2668
|
/** */
|
|
@@ -2684,8 +2676,8 @@ class Ia extends pe {
|
|
|
2684
2676
|
s && (e.validate = (n) => n.search(s) >= 0), super._update(e);
|
|
2685
2677
|
}
|
|
2686
2678
|
}
|
|
2687
|
-
I.MaskedRegExp =
|
|
2688
|
-
class
|
|
2679
|
+
I.MaskedRegExp = Oa;
|
|
2680
|
+
class fe extends he {
|
|
2689
2681
|
/** */
|
|
2690
2682
|
/** */
|
|
2691
2683
|
/** Single char for empty input */
|
|
@@ -2697,9 +2689,9 @@ class he extends pe {
|
|
|
2697
2689
|
/** */
|
|
2698
2690
|
constructor(e) {
|
|
2699
2691
|
super({
|
|
2700
|
-
...
|
|
2692
|
+
...fe.DEFAULTS,
|
|
2701
2693
|
...e,
|
|
2702
|
-
definitions: Object.assign({},
|
|
2694
|
+
definitions: Object.assign({}, yt.DEFAULT_DEFINITIONS, e == null ? void 0 : e.definitions)
|
|
2703
2695
|
});
|
|
2704
2696
|
}
|
|
2705
2697
|
updateOptions(e) {
|
|
@@ -2724,7 +2716,7 @@ class he extends pe {
|
|
|
2724
2716
|
expose: y,
|
|
2725
2717
|
repeat: b,
|
|
2726
2718
|
...S
|
|
2727
|
-
} =
|
|
2719
|
+
} = at(this.blocks[f]), v = {
|
|
2728
2720
|
lazy: this.lazy,
|
|
2729
2721
|
eager: this.eager,
|
|
2730
2722
|
placeholderChar: this.placeholderChar,
|
|
@@ -2743,7 +2735,7 @@ class he extends pe {
|
|
|
2743
2735
|
}
|
|
2744
2736
|
}
|
|
2745
2737
|
let i = s[r], o = i in e;
|
|
2746
|
-
if (i ===
|
|
2738
|
+
if (i === fe.STOP_CHAR) {
|
|
2747
2739
|
this._stops.push(this._blocks.length);
|
|
2748
2740
|
continue;
|
|
2749
2741
|
}
|
|
@@ -2755,17 +2747,17 @@ class he extends pe {
|
|
|
2755
2747
|
a = !a;
|
|
2756
2748
|
continue;
|
|
2757
2749
|
}
|
|
2758
|
-
if (i ===
|
|
2750
|
+
if (i === fe.ESCAPE_CHAR) {
|
|
2759
2751
|
if (++r, i = s[r], !i) break;
|
|
2760
2752
|
o = !1;
|
|
2761
2753
|
}
|
|
2762
|
-
const u = o ? new
|
|
2754
|
+
const u = o ? new yt({
|
|
2763
2755
|
isOptional: a,
|
|
2764
2756
|
lazy: this.lazy,
|
|
2765
2757
|
eager: this.eager,
|
|
2766
2758
|
placeholderChar: this.placeholderChar,
|
|
2767
2759
|
displayChar: this.displayChar,
|
|
2768
|
-
...
|
|
2760
|
+
...at(e[i]),
|
|
2769
2761
|
parent: this
|
|
2770
2762
|
}) : new Us({
|
|
2771
2763
|
char: i,
|
|
@@ -2947,7 +2939,7 @@ class he extends pe {
|
|
|
2947
2939
|
}
|
|
2948
2940
|
nearestInputPos(e, s) {
|
|
2949
2941
|
if (s === void 0 && (s = T.NONE), !this._blocks.length) return 0;
|
|
2950
|
-
const n = new
|
|
2942
|
+
const n = new Fa(this, e);
|
|
2951
2943
|
if (s === T.NONE)
|
|
2952
2944
|
return n.pushRightBeforeInput() || (n.popState(), n.pushLeftBeforeInput()) ? n.pos : this.displayValue.length;
|
|
2953
2945
|
if (s === T.LEFT || s === T.FORCE_LEFT) {
|
|
@@ -2984,17 +2976,17 @@ class he extends pe {
|
|
|
2984
2976
|
return this._forEachBlocksInRange(0, this.displayValue.length, (n) => s.aggregate(n.pad(e))), s;
|
|
2985
2977
|
}
|
|
2986
2978
|
}
|
|
2987
|
-
|
|
2988
|
-
...
|
|
2979
|
+
fe.DEFAULTS = {
|
|
2980
|
+
...he.DEFAULTS,
|
|
2989
2981
|
lazy: !0,
|
|
2990
2982
|
placeholderChar: "_"
|
|
2991
2983
|
};
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
I.MaskedPattern =
|
|
2997
|
-
class
|
|
2984
|
+
fe.STOP_CHAR = "`";
|
|
2985
|
+
fe.ESCAPE_CHAR = "\\";
|
|
2986
|
+
fe.InputDefinition = yt;
|
|
2987
|
+
fe.FixedDefinition = Us;
|
|
2988
|
+
I.MaskedPattern = fe;
|
|
2989
|
+
class pt extends fe {
|
|
2998
2990
|
/**
|
|
2999
2991
|
Optionally sets max length of pattern.
|
|
3000
2992
|
Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
|
|
@@ -3061,9 +3053,9 @@ class ht extends he {
|
|
|
3061
3053
|
return s;
|
|
3062
3054
|
}
|
|
3063
3055
|
}
|
|
3064
|
-
I.MaskedRange =
|
|
3065
|
-
const
|
|
3066
|
-
class Ve extends
|
|
3056
|
+
I.MaskedRange = pt;
|
|
3057
|
+
const Ia = "d{.}`m{.}`Y";
|
|
3058
|
+
class Ve extends fe {
|
|
3067
3059
|
static extractPatternOptions(e) {
|
|
3068
3060
|
const {
|
|
3069
3061
|
mask: s,
|
|
@@ -3135,27 +3127,27 @@ class Ve extends he {
|
|
|
3135
3127
|
}
|
|
3136
3128
|
Ve.GET_DEFAULT_BLOCKS = () => ({
|
|
3137
3129
|
d: {
|
|
3138
|
-
mask:
|
|
3130
|
+
mask: pt,
|
|
3139
3131
|
from: 1,
|
|
3140
3132
|
to: 31,
|
|
3141
3133
|
maxLength: 2
|
|
3142
3134
|
},
|
|
3143
3135
|
m: {
|
|
3144
|
-
mask:
|
|
3136
|
+
mask: pt,
|
|
3145
3137
|
from: 1,
|
|
3146
3138
|
to: 12,
|
|
3147
3139
|
maxLength: 2
|
|
3148
3140
|
},
|
|
3149
3141
|
Y: {
|
|
3150
|
-
mask:
|
|
3142
|
+
mask: pt,
|
|
3151
3143
|
from: 1900,
|
|
3152
3144
|
to: 9999
|
|
3153
3145
|
}
|
|
3154
3146
|
});
|
|
3155
3147
|
Ve.DEFAULTS = {
|
|
3156
|
-
...
|
|
3148
|
+
...fe.DEFAULTS,
|
|
3157
3149
|
mask: Date,
|
|
3158
|
-
pattern:
|
|
3150
|
+
pattern: Ia,
|
|
3159
3151
|
format: (t, e) => {
|
|
3160
3152
|
if (!t) return "";
|
|
3161
3153
|
const s = String(t.getDate()).padStart(2, "0"), n = String(t.getMonth() + 1).padStart(2, "0"), a = t.getFullYear();
|
|
@@ -3167,7 +3159,7 @@ Ve.DEFAULTS = {
|
|
|
3167
3159
|
}
|
|
3168
3160
|
};
|
|
3169
3161
|
I.MaskedDate = Ve;
|
|
3170
|
-
class wt extends
|
|
3162
|
+
class wt extends he {
|
|
3171
3163
|
constructor(e) {
|
|
3172
3164
|
super({
|
|
3173
3165
|
...wt.DEFAULTS,
|
|
@@ -3182,7 +3174,7 @@ class wt extends pe {
|
|
|
3182
3174
|
const {
|
|
3183
3175
|
expose: n,
|
|
3184
3176
|
...a
|
|
3185
|
-
} =
|
|
3177
|
+
} = at(s), r = Le({
|
|
3186
3178
|
overwrite: this._overwrite,
|
|
3187
3179
|
eager: this._eager,
|
|
3188
3180
|
skipInvalid: this._skipInvalid,
|
|
@@ -3355,7 +3347,7 @@ class wt extends pe {
|
|
|
3355
3347
|
mask: a,
|
|
3356
3348
|
...r
|
|
3357
3349
|
} = e[n];
|
|
3358
|
-
return
|
|
3350
|
+
return vt(s, r) && s.maskEquals(a);
|
|
3359
3351
|
}) : super.maskEquals(e);
|
|
3360
3352
|
}
|
|
3361
3353
|
typedValueEquals(e) {
|
|
@@ -3364,7 +3356,7 @@ class wt extends pe {
|
|
|
3364
3356
|
}
|
|
3365
3357
|
}
|
|
3366
3358
|
wt.DEFAULTS = {
|
|
3367
|
-
...
|
|
3359
|
+
...he.DEFAULTS,
|
|
3368
3360
|
dispatch: (t, e, s, n) => {
|
|
3369
3361
|
if (!e.compiledMasks.length) return;
|
|
3370
3362
|
const a = e.rawInputValue, r = e.compiledMasks.map((i, o) => {
|
|
@@ -3381,7 +3373,7 @@ wt.DEFAULTS = {
|
|
|
3381
3373
|
}
|
|
3382
3374
|
};
|
|
3383
3375
|
I.MaskedDynamic = wt;
|
|
3384
|
-
class At extends
|
|
3376
|
+
class At extends fe {
|
|
3385
3377
|
constructor(e) {
|
|
3386
3378
|
super({
|
|
3387
3379
|
...At.DEFAULTS,
|
|
@@ -3434,11 +3426,11 @@ class At extends he {
|
|
|
3434
3426
|
}
|
|
3435
3427
|
}
|
|
3436
3428
|
At.DEFAULTS = {
|
|
3437
|
-
...
|
|
3429
|
+
...fe.DEFAULTS,
|
|
3438
3430
|
matchValue: (t, e, s) => t.indexOf(e, s) === s
|
|
3439
3431
|
};
|
|
3440
3432
|
I.MaskedEnum = At;
|
|
3441
|
-
class
|
|
3433
|
+
class Na extends he {
|
|
3442
3434
|
/** */
|
|
3443
3435
|
/** Enable characters overwriting */
|
|
3444
3436
|
/** */
|
|
@@ -3454,9 +3446,9 @@ class Ra extends pe {
|
|
|
3454
3446
|
});
|
|
3455
3447
|
}
|
|
3456
3448
|
}
|
|
3457
|
-
I.MaskedFunction =
|
|
3449
|
+
I.MaskedFunction = Na;
|
|
3458
3450
|
var zs;
|
|
3459
|
-
class be extends
|
|
3451
|
+
class be extends he {
|
|
3460
3452
|
/** Single char */
|
|
3461
3453
|
/** Single char */
|
|
3462
3454
|
/** Array of single chars */
|
|
@@ -3641,9 +3633,9 @@ class be extends pe {
|
|
|
3641
3633
|
}
|
|
3642
3634
|
zs = be;
|
|
3643
3635
|
be.UNMASKED_RADIX = ".";
|
|
3644
|
-
be.EMPTY_VALUES = [...
|
|
3636
|
+
be.EMPTY_VALUES = [...he.EMPTY_VALUES, 0];
|
|
3645
3637
|
be.DEFAULTS = {
|
|
3646
|
-
...
|
|
3638
|
+
...he.DEFAULTS,
|
|
3647
3639
|
mask: Number,
|
|
3648
3640
|
radix: ",",
|
|
3649
3641
|
thousandsSeparator: "",
|
|
@@ -3670,13 +3662,13 @@ function Hs(t, e, s) {
|
|
|
3670
3662
|
const n = Le(t);
|
|
3671
3663
|
return (a) => n.runIsolated((r) => (r[e] = a, r[s]));
|
|
3672
3664
|
}
|
|
3673
|
-
function
|
|
3665
|
+
function Ra(t, e, s, n) {
|
|
3674
3666
|
return Hs(e, s, n)(t);
|
|
3675
3667
|
}
|
|
3676
3668
|
I.PIPE_TYPE = Pt;
|
|
3677
3669
|
I.createPipe = Hs;
|
|
3678
|
-
I.pipe =
|
|
3679
|
-
class
|
|
3670
|
+
I.pipe = Ra;
|
|
3671
|
+
class $a extends fe {
|
|
3680
3672
|
get repeatFrom() {
|
|
3681
3673
|
var e;
|
|
3682
3674
|
return (e = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? e : 0;
|
|
@@ -3696,7 +3688,7 @@ class Ba extends he {
|
|
|
3696
3688
|
const {
|
|
3697
3689
|
repeat: r,
|
|
3698
3690
|
...i
|
|
3699
|
-
} =
|
|
3691
|
+
} = at(e);
|
|
3700
3692
|
this._blockOpts = Object.assign({}, this._blockOpts, i);
|
|
3701
3693
|
const o = Le(this._blockOpts);
|
|
3702
3694
|
this.repeat = (s = (n = r ?? o.repeat) != null ? n : this.repeat) != null ? s : 1 / 0, super._update({
|
|
@@ -3769,7 +3761,7 @@ class Ba extends he {
|
|
|
3769
3761
|
this._blocks.length = e._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = e;
|
|
3770
3762
|
}
|
|
3771
3763
|
}
|
|
3772
|
-
I.RepeatBlock =
|
|
3764
|
+
I.RepeatBlock = $a;
|
|
3773
3765
|
try {
|
|
3774
3766
|
globalThis.IMask = I;
|
|
3775
3767
|
} catch {
|
|
@@ -3821,8 +3813,8 @@ const Ws = {
|
|
|
3821
3813
|
inputRef: l.oneOfType([l.func, l.shape({
|
|
3822
3814
|
current: l.object
|
|
3823
3815
|
})])
|
|
3824
|
-
}, Xs = Object.keys(Ws).filter((t) => t !== "value"),
|
|
3825
|
-
function
|
|
3816
|
+
}, Xs = Object.keys(Ws).filter((t) => t !== "value"), Ba = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Ma = Xs.filter((t) => Ba.indexOf(t) < 0);
|
|
3817
|
+
function Va(t) {
|
|
3826
3818
|
var e;
|
|
3827
3819
|
const s = (e = class extends xe.Component {
|
|
3828
3820
|
constructor(r) {
|
|
@@ -3856,7 +3848,7 @@ function La(t) {
|
|
|
3856
3848
|
const {
|
|
3857
3849
|
...i
|
|
3858
3850
|
} = r;
|
|
3859
|
-
return Object.keys(i).filter((o) =>
|
|
3851
|
+
return Object.keys(i).filter((o) => Ma.indexOf(o) < 0).forEach((o) => {
|
|
3860
3852
|
delete i[o];
|
|
3861
3853
|
}), i;
|
|
3862
3854
|
}
|
|
@@ -3892,7 +3884,7 @@ function La(t) {
|
|
|
3892
3884
|
ref: r
|
|
3893
3885
|
}));
|
|
3894
3886
|
}
|
|
3895
|
-
const
|
|
3887
|
+
const La = Va((t) => {
|
|
3896
3888
|
let {
|
|
3897
3889
|
inputRef: e,
|
|
3898
3890
|
...s
|
|
@@ -3901,12 +3893,12 @@ const ja = La((t) => {
|
|
|
3901
3893
|
...s,
|
|
3902
3894
|
ref: e
|
|
3903
3895
|
});
|
|
3904
|
-
}),
|
|
3896
|
+
}), ja = (t, e) => xe.createElement(La, {
|
|
3905
3897
|
...t,
|
|
3906
3898
|
ref: e
|
|
3907
3899
|
});
|
|
3908
|
-
xe.forwardRef(
|
|
3909
|
-
function
|
|
3900
|
+
xe.forwardRef(ja);
|
|
3901
|
+
function Pa(t, e) {
|
|
3910
3902
|
let {
|
|
3911
3903
|
onAccept: s,
|
|
3912
3904
|
onComplete: n,
|
|
@@ -4244,7 +4236,7 @@ Qe.propTypes = {
|
|
|
4244
4236
|
testId: l.string
|
|
4245
4237
|
};
|
|
4246
4238
|
Qe.displayName = "DsTooltip";
|
|
4247
|
-
const
|
|
4239
|
+
const rt = xe.forwardRef(
|
|
4248
4240
|
({
|
|
4249
4241
|
name: t,
|
|
4250
4242
|
testId: e = ee.props.testId.default,
|
|
@@ -4287,12 +4279,12 @@ const it = xe.forwardRef(
|
|
|
4287
4279
|
};
|
|
4288
4280
|
C(re);
|
|
4289
4281
|
}
|
|
4290
|
-
}, oe =
|
|
4282
|
+
}, oe = de(() => typeof p == "object" ? { lazy: !0, ...p } : ds[p] ? {
|
|
4291
4283
|
...ds[p],
|
|
4292
4284
|
min: u,
|
|
4293
4285
|
max: d,
|
|
4294
4286
|
lazy: !0
|
|
4295
|
-
} : { mask: p ?? "", min: u, max: d, lazy: !0 }, [p]), { ref: Oe, setUnmaskedValue: De } =
|
|
4287
|
+
} : { mask: p ?? "", min: u, max: d, lazy: !0 }, [p]), { ref: Oe, setUnmaskedValue: De } = Pa(
|
|
4296
4288
|
oe,
|
|
4297
4289
|
{
|
|
4298
4290
|
onAccept: ne
|
|
@@ -4307,17 +4299,17 @@ const it = xe.forwardRef(
|
|
|
4307
4299
|
z(!0), B && B(_);
|
|
4308
4300
|
}, N = () => {
|
|
4309
4301
|
ie((_) => !_);
|
|
4310
|
-
}, D =
|
|
4302
|
+
}, D = de(() => J && s === "password" ? "text" : s, [J, s]), V = () => {
|
|
4311
4303
|
const _ = [`${ee.class}`];
|
|
4312
4304
|
return a && _.push(`${ee.class}--${a}`), n && _.push(`${ee.class}--animated`), A && _.push(`${ee.class}--no-margin`), b && _.push(`${ee.class}--with-icon`), S && _.push(`${ee.class}--${S}`), x && _.push(x), _.join(" ");
|
|
4313
|
-
}, j =
|
|
4305
|
+
}, j = de(() => {
|
|
4314
4306
|
const _ = [`${ee.class}__label`];
|
|
4315
4307
|
return ($ || o) && _.push(`${ee.class}__label--active`), _.join(" ");
|
|
4316
4308
|
}, [o, $]), U = () => !n && i ? i : "", W = () => S && S === "error" ? "info" : "check_circle";
|
|
4317
4309
|
return Z(() => {
|
|
4318
4310
|
p && De(o ?? "");
|
|
4319
4311
|
}, [o, p, De]), /* @__PURE__ */ F("div", { className: V(), ref: ae, children: [
|
|
4320
|
-
g && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ F(
|
|
4312
|
+
g && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ F(_t, { children: [
|
|
4321
4313
|
/* @__PURE__ */ c(te, { image: W() }),
|
|
4322
4314
|
v
|
|
4323
4315
|
] }) }),
|
|
@@ -4369,7 +4361,7 @@ const it = xe.forwardRef(
|
|
|
4369
4361
|
] });
|
|
4370
4362
|
}
|
|
4371
4363
|
);
|
|
4372
|
-
|
|
4364
|
+
rt.propTypes = {
|
|
4373
4365
|
name: l.string,
|
|
4374
4366
|
testId: l.string,
|
|
4375
4367
|
type: l.oneOf(ee.props.type.options),
|
|
@@ -4393,9 +4385,9 @@ it.propTypes = {
|
|
|
4393
4385
|
onChangeHandler: l.func,
|
|
4394
4386
|
onFocusHandler: l.func
|
|
4395
4387
|
};
|
|
4396
|
-
|
|
4388
|
+
rt.displayName = "DsInput";
|
|
4397
4389
|
var tn = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(tn || {}), sn = /* @__PURE__ */ ((t) => (t.None = "", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t))(sn || {});
|
|
4398
|
-
const
|
|
4390
|
+
const _e = {
|
|
4399
4391
|
name: "Loading",
|
|
4400
4392
|
class: "ds-loading",
|
|
4401
4393
|
props: {
|
|
@@ -4428,20 +4420,20 @@ const ye = {
|
|
|
4428
4420
|
}
|
|
4429
4421
|
}, Qt = ({
|
|
4430
4422
|
id: t,
|
|
4431
|
-
testId: e =
|
|
4423
|
+
testId: e = _e.props.testId.default,
|
|
4432
4424
|
className: s,
|
|
4433
|
-
size: n =
|
|
4434
|
-
opacity: a =
|
|
4435
|
-
fullscreen: r =
|
|
4436
|
-
backgroundColor: i =
|
|
4425
|
+
size: n = _e.props.size.default,
|
|
4426
|
+
opacity: a = _e.props.opacity.default,
|
|
4427
|
+
fullscreen: r = _e.props.fullscreen.default,
|
|
4428
|
+
backgroundColor: i = _e.props.backgroundColor.default
|
|
4437
4429
|
}) => {
|
|
4438
|
-
const o = !r && `${
|
|
4430
|
+
const o = !r && `${_e.class}--absolute`, u = n && `${_e.class}__dots--${n}`, d = i && _e.props.backgroundColor.options.find(
|
|
4439
4431
|
(f) => f === i
|
|
4440
|
-
) && `${
|
|
4432
|
+
) && `${_e.class}__background--${i}`, h = a && `${_e.class}__background--opacity`;
|
|
4441
4433
|
return /* @__PURE__ */ F(
|
|
4442
4434
|
"div",
|
|
4443
4435
|
{
|
|
4444
|
-
className: [
|
|
4436
|
+
className: [_e.class, s, o].filter((f) => f).join(" "),
|
|
4445
4437
|
"data-testid": e,
|
|
4446
4438
|
id: t,
|
|
4447
4439
|
children: [
|
|
@@ -4449,7 +4441,7 @@ const ye = {
|
|
|
4449
4441
|
"div",
|
|
4450
4442
|
{
|
|
4451
4443
|
className: [
|
|
4452
|
-
`${
|
|
4444
|
+
`${_e.class}__background`,
|
|
4453
4445
|
d,
|
|
4454
4446
|
h
|
|
4455
4447
|
].filter((f) => f).join(" ")
|
|
@@ -4469,7 +4461,7 @@ const ye = {
|
|
|
4469
4461
|
Qt.propTypes = {
|
|
4470
4462
|
id: l.string,
|
|
4471
4463
|
testId: l.string,
|
|
4472
|
-
size: l.oneOf(
|
|
4464
|
+
size: l.oneOf(_e.props.size.options),
|
|
4473
4465
|
opacity: l.bool,
|
|
4474
4466
|
fullscreen: l.bool,
|
|
4475
4467
|
backgroundColor: l.string
|
|
@@ -4586,7 +4578,7 @@ nn.propTypes = {
|
|
|
4586
4578
|
};
|
|
4587
4579
|
nn.displayName = "DsOption";
|
|
4588
4580
|
var an = /* @__PURE__ */ ((t) => (t.Default = "", t.Large = "large", t.Small = "small", t))(an || {});
|
|
4589
|
-
const
|
|
4581
|
+
const ht = {
|
|
4590
4582
|
name: "Paragraph",
|
|
4591
4583
|
class: "ds-paragraph",
|
|
4592
4584
|
props: {
|
|
@@ -4600,13 +4592,13 @@ const ft = {
|
|
|
4600
4592
|
children: t,
|
|
4601
4593
|
className: e,
|
|
4602
4594
|
testId: s = "ds-paragraph-test",
|
|
4603
|
-
type: n =
|
|
4595
|
+
type: n = ht.props.type.default
|
|
4604
4596
|
}) => {
|
|
4605
|
-
const a = n && `${
|
|
4597
|
+
const a = n && `${ht.class}--${n}`;
|
|
4606
4598
|
return /* @__PURE__ */ c(
|
|
4607
4599
|
"p",
|
|
4608
4600
|
{
|
|
4609
|
-
className: [
|
|
4601
|
+
className: [ht.class, a, e].filter((r) => r).join(" "),
|
|
4610
4602
|
"data-testid": s,
|
|
4611
4603
|
children: t
|
|
4612
4604
|
}
|
|
@@ -4615,7 +4607,7 @@ const ft = {
|
|
|
4615
4607
|
je.propTypes = {
|
|
4616
4608
|
className: l.string,
|
|
4617
4609
|
testId: l.string,
|
|
4618
|
-
type: l.oneOf(
|
|
4610
|
+
type: l.oneOf(ht.props.type.options)
|
|
4619
4611
|
};
|
|
4620
4612
|
je.displayName = "DsParagraph";
|
|
4621
4613
|
var rn = /* @__PURE__ */ ((t) => (t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(rn || {});
|
|
@@ -4737,7 +4729,7 @@ const Rt = {
|
|
|
4737
4729
|
required: !1
|
|
4738
4730
|
}
|
|
4739
4731
|
}
|
|
4740
|
-
},
|
|
4732
|
+
}, pe = ({
|
|
4741
4733
|
children: t,
|
|
4742
4734
|
flex: e = Rt.props.flex.default,
|
|
4743
4735
|
className: s = Rt.props.className.default
|
|
@@ -4747,11 +4739,11 @@ const Rt = {
|
|
|
4747
4739
|
});
|
|
4748
4740
|
return /* @__PURE__ */ c("div", { className: n(), style: a(), children: t });
|
|
4749
4741
|
};
|
|
4750
|
-
|
|
4742
|
+
pe.propTypes = {
|
|
4751
4743
|
className: l.string,
|
|
4752
4744
|
flex: l.string
|
|
4753
4745
|
};
|
|
4754
|
-
|
|
4746
|
+
pe.displayName = "DsFlexElement";
|
|
4755
4747
|
var Ut = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t))(Ut || {});
|
|
4756
4748
|
const st = {
|
|
4757
4749
|
name: "Spacer",
|
|
@@ -4791,18 +4783,18 @@ const pn = ({
|
|
|
4791
4783
|
progress: e = qt.props.progress.default,
|
|
4792
4784
|
color: s = qt.props.color.default
|
|
4793
4785
|
}) => {
|
|
4794
|
-
const n =
|
|
4786
|
+
const n = de(
|
|
4795
4787
|
() => e > 100 ? 100 : e < 0 ? 0 : e,
|
|
4796
4788
|
[e]
|
|
4797
|
-
), a =
|
|
4798
|
-
() =>
|
|
4789
|
+
), a = de(
|
|
4790
|
+
() => bt[s] ?? s,
|
|
4799
4791
|
[s]
|
|
4800
|
-
), r =
|
|
4792
|
+
), r = de(
|
|
4801
4793
|
() => `bg-color__${a}`,
|
|
4802
4794
|
[a]
|
|
4803
|
-
), i =
|
|
4795
|
+
), i = de(() => `color__${a}`, [a]);
|
|
4804
4796
|
return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */ F(qe, { flexDirection: "column", children: [
|
|
4805
|
-
/* @__PURE__ */ c(
|
|
4797
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(
|
|
4806
4798
|
"div",
|
|
4807
4799
|
{
|
|
4808
4800
|
"aria-valuemax": 100,
|
|
@@ -4820,7 +4812,7 @@ const pn = ({
|
|
|
4820
4812
|
)
|
|
4821
4813
|
}
|
|
4822
4814
|
) }),
|
|
4823
|
-
/* @__PURE__ */ c(
|
|
4815
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ F(
|
|
4824
4816
|
qe,
|
|
4825
4817
|
{
|
|
4826
4818
|
alignItems: "flex-end",
|
|
@@ -4828,7 +4820,7 @@ const pn = ({
|
|
|
4828
4820
|
justifyContent: "center",
|
|
4829
4821
|
children: [
|
|
4830
4822
|
/* @__PURE__ */ c(Ce, { vertical: "quark" }),
|
|
4831
|
-
/* @__PURE__ */ c(
|
|
4823
|
+
/* @__PURE__ */ c(_t, { children: t && /* @__PURE__ */ c(je, { className: i, children: t }) })
|
|
4832
4824
|
]
|
|
4833
4825
|
}
|
|
4834
4826
|
) })
|
|
@@ -4854,7 +4846,7 @@ const Ee = {
|
|
|
4854
4846
|
default: !1
|
|
4855
4847
|
}
|
|
4856
4848
|
}
|
|
4857
|
-
},
|
|
4849
|
+
}, qa = xe.forwardRef(
|
|
4858
4850
|
({
|
|
4859
4851
|
variant: t = Ee.props.variant.default,
|
|
4860
4852
|
fullWidth: e = Ee.props.fullWidth.default,
|
|
@@ -4902,9 +4894,9 @@ const Ee = {
|
|
|
4902
4894
|
);
|
|
4903
4895
|
}
|
|
4904
4896
|
);
|
|
4905
|
-
|
|
4897
|
+
qa.displayName = "DsRadio";
|
|
4906
4898
|
var fn = /* @__PURE__ */ ((t) => (t.Small = "sm", t.Medium = "md", t))(fn || {});
|
|
4907
|
-
const
|
|
4899
|
+
const ye = {
|
|
4908
4900
|
name: "DsSegmentControl",
|
|
4909
4901
|
class: "ds-segment-control",
|
|
4910
4902
|
props: {
|
|
@@ -4947,31 +4939,31 @@ const ve = {
|
|
|
4947
4939
|
}
|
|
4948
4940
|
}
|
|
4949
4941
|
}
|
|
4950
|
-
},
|
|
4942
|
+
}, Ua = Xn(
|
|
4951
4943
|
({
|
|
4952
4944
|
items: t,
|
|
4953
4945
|
value: e,
|
|
4954
4946
|
defaultValue: s,
|
|
4955
4947
|
name: n,
|
|
4956
|
-
size: a =
|
|
4957
|
-
fullWidth: r =
|
|
4958
|
-
disabled: i =
|
|
4948
|
+
size: a = ye.props.size.default,
|
|
4949
|
+
fullWidth: r = ye.props.fullWidth.default,
|
|
4950
|
+
disabled: i = ye.props.disabled.default,
|
|
4959
4951
|
className: o,
|
|
4960
|
-
testId: u =
|
|
4952
|
+
testId: u = ye.props.testId.default,
|
|
4961
4953
|
onChange: d,
|
|
4962
4954
|
"aria-label": h,
|
|
4963
4955
|
"aria-labelledby": f
|
|
4964
4956
|
}, y) => {
|
|
4965
|
-
const b = gs(), S = n ?? `${
|
|
4957
|
+
const b = gs(), S = n ?? `${ye.class}-${b.replace(/:/g, "")}`, v = e !== void 0, g = de(
|
|
4966
4958
|
() => t.findIndex(($) => !$.disabled),
|
|
4967
4959
|
[t]
|
|
4968
|
-
), A =
|
|
4960
|
+
), A = de(() => v ? e : s !== void 0 ? s : g >= 0 ? t[g].value : void 0, [s, g, v, t, e]), [R, w] = q(
|
|
4969
4961
|
A
|
|
4970
4962
|
), x = v ? e : R, p = Xe([]);
|
|
4971
4963
|
Z(() => {
|
|
4972
4964
|
p.current = p.current.slice(0, t.length);
|
|
4973
4965
|
}, [t.length]);
|
|
4974
|
-
const C =
|
|
4966
|
+
const C = de(
|
|
4975
4967
|
() => t.findIndex(($) => $.value === x),
|
|
4976
4968
|
[x, t]
|
|
4977
4969
|
), O = Ae(
|
|
@@ -5011,10 +5003,10 @@ const ve = {
|
|
|
5011
5003
|
break;
|
|
5012
5004
|
}
|
|
5013
5005
|
}, ae = [
|
|
5014
|
-
|
|
5015
|
-
`${
|
|
5016
|
-
r && `${
|
|
5017
|
-
i && `${
|
|
5006
|
+
ye.class,
|
|
5007
|
+
`${ye.class}--size-${a}`,
|
|
5008
|
+
r && `${ye.class}--full-width`,
|
|
5009
|
+
i && `${ye.class}--disabled`,
|
|
5018
5010
|
o
|
|
5019
5011
|
].filter(Boolean).join(" ");
|
|
5020
5012
|
return /* @__PURE__ */ c(
|
|
@@ -5029,16 +5021,16 @@ const ve = {
|
|
|
5029
5021
|
role: "radiogroup",
|
|
5030
5022
|
children: t.map(($, z) => {
|
|
5031
5023
|
const J = x === $.value, ie = i || !!$.disabled, Se = [
|
|
5032
|
-
`${
|
|
5033
|
-
J && `${
|
|
5034
|
-
ie && `${
|
|
5024
|
+
`${ye.class}__item`,
|
|
5025
|
+
J && `${ye.class}__item--active`,
|
|
5026
|
+
ie && `${ye.class}__item--disabled`
|
|
5035
5027
|
].filter(Boolean).join(" "), ne = ie ? -1 : C === -1 ? z === g ? 0 : -1 : J ? 0 : -1;
|
|
5036
5028
|
return /* @__PURE__ */ F("label", { className: Se, children: [
|
|
5037
5029
|
/* @__PURE__ */ c(
|
|
5038
5030
|
"input",
|
|
5039
5031
|
{
|
|
5040
5032
|
checked: J,
|
|
5041
|
-
className: `${
|
|
5033
|
+
className: `${ye.class}__item-input`,
|
|
5042
5034
|
"data-testid": $.testId ?? `${u}-item-${$.value}`,
|
|
5043
5035
|
disabled: ie,
|
|
5044
5036
|
name: S,
|
|
@@ -5057,7 +5049,7 @@ const ve = {
|
|
|
5057
5049
|
);
|
|
5058
5050
|
}
|
|
5059
5051
|
);
|
|
5060
|
-
|
|
5052
|
+
Ua.displayName = "DsSegmentControl";
|
|
5061
5053
|
var gn = /* @__PURE__ */ ((t) => (t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(gn || {}), mn = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(mn || {}), vn = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(vn || {}), yn = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(yn || {});
|
|
5062
5054
|
const se = {
|
|
5063
5055
|
name: "Select",
|
|
@@ -5160,7 +5152,7 @@ const se = {
|
|
|
5160
5152
|
}, O = () => {
|
|
5161
5153
|
const B = [se.class, "select-placeholder"];
|
|
5162
5154
|
return B.push(`${se.class}--${y}`), b && B.push(`${se.class}--${b}`), x && B.push(`${se.class}--active`), s && B.push(`${se.class}--disabled`), e && B.push(e), B.join(" ");
|
|
5163
|
-
}, H =
|
|
5155
|
+
}, H = de(() => {
|
|
5164
5156
|
const B = [`${se.class}__label`];
|
|
5165
5157
|
return !n && B.push(`${se.class}__label--not-animated`), u && B.push(`${se.class}__label--has-value`), n && !u && !S && B.push(`${se.class}__label--hidden`), B.join(" ");
|
|
5166
5158
|
}, [u]);
|
|
@@ -5276,7 +5268,7 @@ const $t = {
|
|
|
5276
5268
|
options: Object.values(kn)
|
|
5277
5269
|
}
|
|
5278
5270
|
}
|
|
5279
|
-
},
|
|
5271
|
+
}, za = ({
|
|
5280
5272
|
children: t,
|
|
5281
5273
|
className: e,
|
|
5282
5274
|
testId: s = "ds-subtitle-test",
|
|
@@ -5292,9 +5284,9 @@ const $t = {
|
|
|
5292
5284
|
}
|
|
5293
5285
|
);
|
|
5294
5286
|
};
|
|
5295
|
-
|
|
5287
|
+
za.displayName = "DsSubtitle";
|
|
5296
5288
|
var bn = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(bn || {}), Sn = /* @__PURE__ */ ((t) => (t.Text = "text", t))(Sn || {}), En = /* @__PURE__ */ ((t) => (t.None = "", t.Error = "error", t.Success = "success", t))(En || {}), wn = /* @__PURE__ */ ((t) => (t.None = "none", t.Both = "both", t.Horizontal = "horizontal", t.Vertical = "vertical", t.Block = "block", t.Inline = "inline", t))(wn || {});
|
|
5297
|
-
const
|
|
5289
|
+
const ce = {
|
|
5298
5290
|
name: "TextArea",
|
|
5299
5291
|
class: "ds-textarea",
|
|
5300
5292
|
props: {
|
|
@@ -5383,9 +5375,9 @@ const ue = {
|
|
|
5383
5375
|
}, An = xe.forwardRef(
|
|
5384
5376
|
({
|
|
5385
5377
|
name: t,
|
|
5386
|
-
testId: e =
|
|
5387
|
-
animated: s =
|
|
5388
|
-
size: n =
|
|
5378
|
+
testId: e = ce.props.testId.default,
|
|
5379
|
+
animated: s = ce.props.animated.default,
|
|
5380
|
+
size: n = ce.props.size.default,
|
|
5389
5381
|
label: a,
|
|
5390
5382
|
placeholder: r,
|
|
5391
5383
|
value: i,
|
|
@@ -5393,17 +5385,17 @@ const ue = {
|
|
|
5393
5385
|
maxLength: u,
|
|
5394
5386
|
tooltip: d,
|
|
5395
5387
|
icon: h,
|
|
5396
|
-
status: f =
|
|
5388
|
+
status: f = ce.props.status.default,
|
|
5397
5389
|
feedback: y,
|
|
5398
|
-
disabled: b =
|
|
5390
|
+
disabled: b = ce.props.disabled.default,
|
|
5399
5391
|
required: S,
|
|
5400
5392
|
className: v,
|
|
5401
|
-
resize: g =
|
|
5393
|
+
resize: g = ce.props.resize.default,
|
|
5402
5394
|
onChangeHandler: A,
|
|
5403
5395
|
onBlurHandler: R,
|
|
5404
5396
|
onKeyDownHandler: w,
|
|
5405
5397
|
onFocusHandler: x,
|
|
5406
|
-
rows: p =
|
|
5398
|
+
rows: p = ce.props.rows.default,
|
|
5407
5399
|
cols: C,
|
|
5408
5400
|
description: O,
|
|
5409
5401
|
style: H
|
|
@@ -5421,11 +5413,11 @@ const ue = {
|
|
|
5421
5413
|
}, De = (D) => {
|
|
5422
5414
|
$(!0), x && x(D);
|
|
5423
5415
|
}, m = () => {
|
|
5424
|
-
const D = [`${
|
|
5425
|
-
return n && D.push(`${
|
|
5426
|
-
}, E =
|
|
5427
|
-
const D = [`${
|
|
5428
|
-
return (ae || i) && D.push(`${
|
|
5416
|
+
const D = [`${ce.class}`];
|
|
5417
|
+
return n && D.push(`${ce.class}--${n}`), s && D.push(`${ce.class}--animated`), d && D.push(`${ce.class}--with-icon`), f && D.push(`${ce.class}--${f}`), v && D.push(v), D.join(" ");
|
|
5418
|
+
}, E = de(() => {
|
|
5419
|
+
const D = [`${ce.class}__label`];
|
|
5420
|
+
return (ae || i) && D.push(`${ce.class}__label--active`), D.join(" ");
|
|
5429
5421
|
}, [i, ae]), L = () => !s && r ? r : "", M = () => f && f === "error" ? "info" : "check_circle", N = {
|
|
5430
5422
|
resize: g,
|
|
5431
5423
|
...H ?? {}
|
|
@@ -5481,13 +5473,13 @@ An.propTypes = {
|
|
|
5481
5473
|
name: l.string,
|
|
5482
5474
|
testId: l.string,
|
|
5483
5475
|
animated: l.bool,
|
|
5484
|
-
size: l.oneOf(
|
|
5476
|
+
size: l.oneOf(ce.props.size.options),
|
|
5485
5477
|
label: l.string,
|
|
5486
5478
|
placeholder: l.string,
|
|
5487
5479
|
value: l.oneOfType([l.string]),
|
|
5488
5480
|
tooltip: l.string,
|
|
5489
5481
|
icon: l.string,
|
|
5490
|
-
status: l.oneOf(
|
|
5482
|
+
status: l.oneOf(ce.props.status.options),
|
|
5491
5483
|
feedback: l.string,
|
|
5492
5484
|
minLength: l.number,
|
|
5493
5485
|
maxLength: l.number,
|
|
@@ -5499,12 +5491,12 @@ An.propTypes = {
|
|
|
5499
5491
|
onBlur: l.func,
|
|
5500
5492
|
onKeyDown: l.func,
|
|
5501
5493
|
onFocus: l.func,
|
|
5502
|
-
resize: l.oneOf(
|
|
5494
|
+
resize: l.oneOf(ce.props.resize.options).isRequired,
|
|
5503
5495
|
description: l.string,
|
|
5504
5496
|
style: l.object
|
|
5505
5497
|
};
|
|
5506
5498
|
An.displayName = "DsTextArea";
|
|
5507
|
-
const
|
|
5499
|
+
const ut = {
|
|
5508
5500
|
name: "Container",
|
|
5509
5501
|
class: "ds-container",
|
|
5510
5502
|
props: {
|
|
@@ -5519,12 +5511,12 @@ const ct = {
|
|
|
5519
5511
|
}
|
|
5520
5512
|
}, Gt = ({
|
|
5521
5513
|
children: t,
|
|
5522
|
-
fluid: e =
|
|
5514
|
+
fluid: e = ut.props.fluid.default,
|
|
5523
5515
|
className: s,
|
|
5524
5516
|
style: n,
|
|
5525
|
-
testId: a =
|
|
5517
|
+
testId: a = ut.props.testId.default
|
|
5526
5518
|
}) => {
|
|
5527
|
-
const r = e ? `${
|
|
5519
|
+
const r = e ? `${ut.class}--fluid` : ut.class;
|
|
5528
5520
|
return /* @__PURE__ */ c(
|
|
5529
5521
|
"div",
|
|
5530
5522
|
{
|
|
@@ -5593,7 +5585,7 @@ function ps() {
|
|
|
5593
5585
|
height: e
|
|
5594
5586
|
};
|
|
5595
5587
|
}
|
|
5596
|
-
function
|
|
5588
|
+
function Ha() {
|
|
5597
5589
|
const [t, e] = q(
|
|
5598
5590
|
ps()
|
|
5599
5591
|
);
|
|
@@ -5619,7 +5611,7 @@ const Cn = ({
|
|
|
5619
5611
|
(w) => w === r
|
|
5620
5612
|
) ? `${le.class}--h-${r}` : null, y = i && le.props.verticalAlign.options.find(
|
|
5621
5613
|
(w) => w === i
|
|
5622
|
-
) ? `${le.class}--v-${i}` : null, { width: b } =
|
|
5614
|
+
) ? `${le.class}--v-${i}` : null, { width: b } = Ha(), [S, v] = q("auto");
|
|
5623
5615
|
Z(() => {
|
|
5624
5616
|
b <= 768 ? v("6") : v("12");
|
|
5625
5617
|
}, [b]);
|
|
@@ -5662,7 +5654,7 @@ Cn.propTypes = {
|
|
|
5662
5654
|
verticalAlign: l.oneOf(le.props.verticalAlign.options)
|
|
5663
5655
|
};
|
|
5664
5656
|
Cn.displayName = "DsGridLayout";
|
|
5665
|
-
const hs = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0,
|
|
5657
|
+
const hs = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, Wa = ({ children: t, grid: e }) => {
|
|
5666
5658
|
const { row: s, col: n, mobileRow: a, mobileCol: r } = e, [i, o] = q(hs());
|
|
5667
5659
|
Z(() => {
|
|
5668
5660
|
const d = () => {
|
|
@@ -5671,7 +5663,7 @@ const hs = () => typeof window < "u" && window.innerWidth ? window.innerWidth :
|
|
|
5671
5663
|
if (typeof window < "u")
|
|
5672
5664
|
return window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
5673
5665
|
}, []);
|
|
5674
|
-
const u =
|
|
5666
|
+
const u = de(() => i <= 768 ? {
|
|
5675
5667
|
gridRow: a ?? s,
|
|
5676
5668
|
gridColumn: r ?? n
|
|
5677
5669
|
} : {
|
|
@@ -5680,8 +5672,8 @@ const hs = () => typeof window < "u" && window.innerWidth ? window.innerWidth :
|
|
|
5680
5672
|
}, [i, s, n, a, r]);
|
|
5681
5673
|
return /* @__PURE__ */ c("div", { style: u, children: t });
|
|
5682
5674
|
};
|
|
5683
|
-
|
|
5684
|
-
const
|
|
5675
|
+
Wa.displayName = "DsGridElement";
|
|
5676
|
+
const or = {
|
|
5685
5677
|
name: "Grid-Element",
|
|
5686
5678
|
class: "ds-grid-element",
|
|
5687
5679
|
props: {
|
|
@@ -5870,11 +5862,11 @@ Dn.propTypes = {
|
|
|
5870
5862
|
activeItem: l.number
|
|
5871
5863
|
};
|
|
5872
5864
|
Dn.displayName = "DsAccordion";
|
|
5873
|
-
const
|
|
5865
|
+
const Xa = ({
|
|
5874
5866
|
title: t,
|
|
5875
5867
|
activeTags: e,
|
|
5876
5868
|
handleTagClose: s
|
|
5877
|
-
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ F(
|
|
5869
|
+
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ F(_t, { children: [
|
|
5878
5870
|
/* @__PURE__ */ c(je, { className: "active-tags__title", children: t }),
|
|
5879
5871
|
/* @__PURE__ */ c("div", { className: "active-tags__list", "data-testid": "ds-list", children: e.map((n, a) => /* @__PURE__ */ c(
|
|
5880
5872
|
Qe,
|
|
@@ -5887,7 +5879,7 @@ const Ya = ({
|
|
|
5887
5879
|
"data-testid": `ds-active-tag-${a}`,
|
|
5888
5880
|
children: [
|
|
5889
5881
|
/* @__PURE__ */ F(qe, { alignItems: "center", gap: "nano", children: [
|
|
5890
|
-
/* @__PURE__ */ c(
|
|
5882
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(
|
|
5891
5883
|
te,
|
|
5892
5884
|
{
|
|
5893
5885
|
className: "active-tags__icon",
|
|
@@ -5897,7 +5889,7 @@ const Ya = ({
|
|
|
5897
5889
|
testId: `icon-${a}`
|
|
5898
5890
|
}
|
|
5899
5891
|
) }),
|
|
5900
|
-
/* @__PURE__ */ c(
|
|
5892
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(je, { type: "small", children: n.text }) })
|
|
5901
5893
|
] }),
|
|
5902
5894
|
!n.hiddenClose && /* @__PURE__ */ c(
|
|
5903
5895
|
te,
|
|
@@ -5915,8 +5907,8 @@ const Ya = ({
|
|
|
5915
5907
|
`ds-tooltip-key-${n.id}-${n.text}`
|
|
5916
5908
|
)) })
|
|
5917
5909
|
] }) });
|
|
5918
|
-
|
|
5919
|
-
const
|
|
5910
|
+
Xa.displayName = "DsActiveTags";
|
|
5911
|
+
const ur = {
|
|
5920
5912
|
name: "ActiveTags",
|
|
5921
5913
|
class: "ds-active-tags",
|
|
5922
5914
|
props: {
|
|
@@ -5938,7 +5930,7 @@ const cr = {
|
|
|
5938
5930
|
name: "Carousel",
|
|
5939
5931
|
class: "ds-carousel",
|
|
5940
5932
|
props: {}
|
|
5941
|
-
},
|
|
5933
|
+
}, Ya = ({
|
|
5942
5934
|
slides: t,
|
|
5943
5935
|
interval: e = 3e3,
|
|
5944
5936
|
imageHeight: s = 100,
|
|
@@ -6005,7 +5997,7 @@ const cr = {
|
|
|
6005
5997
|
}
|
|
6006
5998
|
);
|
|
6007
5999
|
};
|
|
6008
|
-
|
|
6000
|
+
Ya.propTypes = {
|
|
6009
6001
|
slides: l.arrayOf(
|
|
6010
6002
|
l.shape({
|
|
6011
6003
|
title: l.string.isRequired,
|
|
@@ -6107,11 +6099,11 @@ const Y = {
|
|
|
6107
6099
|
}
|
|
6108
6100
|
}
|
|
6109
6101
|
}
|
|
6110
|
-
},
|
|
6102
|
+
}, Ka = (t, e) => {
|
|
6111
6103
|
if (!e) return t;
|
|
6112
6104
|
const s = e.toLowerCase();
|
|
6113
6105
|
return t.filter((n) => n.label.toLowerCase().includes(s));
|
|
6114
|
-
}, fs = (t) => t,
|
|
6106
|
+
}, fs = (t) => t, Qa = ({
|
|
6115
6107
|
label: t = Y.props.label.default,
|
|
6116
6108
|
name: e = Y.props.name.default,
|
|
6117
6109
|
testId: s = Y.props.testId.default,
|
|
@@ -6185,7 +6177,7 @@ const Y = {
|
|
|
6185
6177
|
};
|
|
6186
6178
|
return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
6187
6179
|
}, [w]);
|
|
6188
|
-
const U =
|
|
6180
|
+
const U = de(() => w ? De ? fs(a) : Ka(a, n) : fs(a), [a, n, w, De]), W = () => U.length > 0 ? U.map((_, X) => {
|
|
6189
6181
|
const re = _.label === n ? ` ${Y.class}__option--selected` : "";
|
|
6190
6182
|
return /* @__PURE__ */ c(
|
|
6191
6183
|
"button",
|
|
@@ -6214,7 +6206,7 @@ const Y = {
|
|
|
6214
6206
|
ref: E,
|
|
6215
6207
|
children: [
|
|
6216
6208
|
/* @__PURE__ */ c(
|
|
6217
|
-
|
|
6209
|
+
rt,
|
|
6218
6210
|
{
|
|
6219
6211
|
animated: v,
|
|
6220
6212
|
autoFocus: g,
|
|
@@ -6270,7 +6262,7 @@ const Y = {
|
|
|
6270
6262
|
}
|
|
6271
6263
|
);
|
|
6272
6264
|
};
|
|
6273
|
-
|
|
6265
|
+
Qa.displayName = "DsEditableSelect";
|
|
6274
6266
|
const Je = {
|
|
6275
6267
|
name: "DsIndicator",
|
|
6276
6268
|
class: "ds-indicator",
|
|
@@ -6284,7 +6276,7 @@ const Je = {
|
|
|
6284
6276
|
required: !0
|
|
6285
6277
|
}
|
|
6286
6278
|
}
|
|
6287
|
-
},
|
|
6279
|
+
}, cr = ({
|
|
6288
6280
|
length: t,
|
|
6289
6281
|
current: e = Je.props.current.default
|
|
6290
6282
|
}) => {
|
|
@@ -6305,7 +6297,7 @@ const Je = {
|
|
|
6305
6297
|
)
|
|
6306
6298
|
);
|
|
6307
6299
|
return /* @__PURE__ */ c("div", { className: Je.class, children: r });
|
|
6308
|
-
},
|
|
6300
|
+
}, Ga = {
|
|
6309
6301
|
name: "DsInlineEditable",
|
|
6310
6302
|
class: "ds-inline-editable",
|
|
6311
6303
|
props: {
|
|
@@ -6364,7 +6356,7 @@ const Je = {
|
|
|
6364
6356
|
var g;
|
|
6365
6357
|
await d(!0), (g = o.current) == null || g.focus();
|
|
6366
6358
|
};
|
|
6367
|
-
return /* @__PURE__ */ c("div", { className:
|
|
6359
|
+
return /* @__PURE__ */ c("div", { className: Ga.class, children: u ? /* @__PURE__ */ c(
|
|
6368
6360
|
"input",
|
|
6369
6361
|
{
|
|
6370
6362
|
className: "ds-input__input",
|
|
@@ -6385,12 +6377,12 @@ const Je = {
|
|
|
6385
6377
|
"data-testid": "ds-inline-editible-div-click",
|
|
6386
6378
|
onClick: v,
|
|
6387
6379
|
children: /* @__PURE__ */ F(qe, { alignItems: "center", gap: "nano", children: [
|
|
6388
|
-
/* @__PURE__ */ c(
|
|
6380
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(je, { children: /* @__PURE__ */ F("b", { children: [
|
|
6389
6381
|
s,
|
|
6390
6382
|
e,
|
|
6391
6383
|
n
|
|
6392
6384
|
] }) }) }),
|
|
6393
|
-
/* @__PURE__ */ c(
|
|
6385
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(te, { image: "edit_square" }) })
|
|
6394
6386
|
] })
|
|
6395
6387
|
}
|
|
6396
6388
|
) });
|
|
@@ -6399,7 +6391,7 @@ Fn.propTypes = {
|
|
|
6399
6391
|
value: l.string
|
|
6400
6392
|
};
|
|
6401
6393
|
Fn.displayName = "DsInlineEditable";
|
|
6402
|
-
var
|
|
6394
|
+
var Za = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Za || {}), On = /* @__PURE__ */ ((t) => (t.Squared = "squared", t.Rounded = "rounded", t))(On || {});
|
|
6403
6395
|
const we = {
|
|
6404
6396
|
name: "Modal",
|
|
6405
6397
|
class: "ds-modal",
|
|
@@ -6454,7 +6446,7 @@ const we = {
|
|
|
6454
6446
|
);
|
|
6455
6447
|
return Z(() => (o && window && !S && window.addEventListener("keyup", v), () => {
|
|
6456
6448
|
window.removeEventListener("keyup", v);
|
|
6457
|
-
}), [S, v]), o ? /* @__PURE__ */ F(
|
|
6449
|
+
}), [S, v]), o ? /* @__PURE__ */ F(_t, { children: [
|
|
6458
6450
|
/* @__PURE__ */ c(
|
|
6459
6451
|
"div",
|
|
6460
6452
|
{
|
|
@@ -6489,7 +6481,7 @@ const we = {
|
|
|
6489
6481
|
!S && /* @__PURE__ */ c(Ce, { vertical: "xxs" }),
|
|
6490
6482
|
/* @__PURE__ */ F("div", { className: "ds-modal__cta", children: [
|
|
6491
6483
|
d && /* @__PURE__ */ c(
|
|
6492
|
-
|
|
6484
|
+
gt,
|
|
6493
6485
|
{
|
|
6494
6486
|
onClick: () => {
|
|
6495
6487
|
u(), d();
|
|
@@ -6498,7 +6490,7 @@ const we = {
|
|
|
6498
6490
|
}
|
|
6499
6491
|
),
|
|
6500
6492
|
h && /* @__PURE__ */ c(
|
|
6501
|
-
|
|
6493
|
+
gt,
|
|
6502
6494
|
{
|
|
6503
6495
|
onClick: () => {
|
|
6504
6496
|
u(), h();
|
|
@@ -6524,7 +6516,7 @@ In.propTypes = {
|
|
|
6524
6516
|
};
|
|
6525
6517
|
In.displayName = "DsModal";
|
|
6526
6518
|
var Nn = /* @__PURE__ */ ((t) => (t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Info = "info", t))(Nn || {}), Rn = /* @__PURE__ */ ((t) => (t.Rounded = "rounded", t.Squared = "squared", t))(Rn || {});
|
|
6527
|
-
const
|
|
6519
|
+
const ve = {
|
|
6528
6520
|
name: "DsNotification",
|
|
6529
6521
|
class: "ds-notification",
|
|
6530
6522
|
props: {
|
|
@@ -6570,24 +6562,24 @@ const me = {
|
|
|
6570
6562
|
var $n = /* @__PURE__ */ ((t) => (t.success = "check", t.danger = "error", t.warning = "warning", t.info = "info", t))($n || {});
|
|
6571
6563
|
const Bn = ({
|
|
6572
6564
|
className: t,
|
|
6573
|
-
type: e =
|
|
6574
|
-
variant: s =
|
|
6565
|
+
type: e = ve.props.type.default,
|
|
6566
|
+
variant: s = ve.props.variant.default,
|
|
6575
6567
|
id: n,
|
|
6576
6568
|
children: a,
|
|
6577
6569
|
message: r,
|
|
6578
|
-
autoClose: i =
|
|
6579
|
-
autoCloseTimer: o =
|
|
6580
|
-
dismissible: u =
|
|
6570
|
+
autoClose: i = ve.props.autoClose.default,
|
|
6571
|
+
autoCloseTimer: o = ve.props.autoCloseTimer.default,
|
|
6572
|
+
dismissible: u = ve.props.dismissible.default,
|
|
6581
6573
|
elevation: d,
|
|
6582
|
-
progressBar: h =
|
|
6574
|
+
progressBar: h = ve.props.progressBar.default,
|
|
6583
6575
|
handleClose: f,
|
|
6584
|
-
testId: y =
|
|
6576
|
+
testId: y = ve.props.testId.default
|
|
6585
6577
|
}) => {
|
|
6586
6578
|
const [b, S] = q(o), [v, g] = q(!1), [A, R] = q(!0), w = [
|
|
6587
|
-
|
|
6588
|
-
e && `${
|
|
6589
|
-
s && `${
|
|
6590
|
-
d && `${
|
|
6579
|
+
ve.class,
|
|
6580
|
+
e && `${ve.class}--${e}`,
|
|
6581
|
+
s && `${ve.class}--${s}`,
|
|
6582
|
+
d && `${ve.class}--elevation-${d}`,
|
|
6591
6583
|
t
|
|
6592
6584
|
].join(" "), x = () => S((H) => (H === 0 && R(!1), H - 100));
|
|
6593
6585
|
Z(() => {
|
|
@@ -6614,7 +6606,7 @@ const Bn = ({
|
|
|
6614
6606
|
onMouseLeave: C,
|
|
6615
6607
|
children: [
|
|
6616
6608
|
/* @__PURE__ */ c(nt, { bottom: "nano", top: "nano", children: /* @__PURE__ */ F(qe, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
|
|
6617
|
-
/* @__PURE__ */ c(
|
|
6609
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(
|
|
6618
6610
|
te,
|
|
6619
6611
|
{
|
|
6620
6612
|
color: e,
|
|
@@ -6622,11 +6614,11 @@ const Bn = ({
|
|
|
6622
6614
|
image: $n[e]
|
|
6623
6615
|
}
|
|
6624
6616
|
) }),
|
|
6625
|
-
/* @__PURE__ */ c(
|
|
6626
|
-
/* @__PURE__ */ c(
|
|
6617
|
+
/* @__PURE__ */ c(pe, { flex: "1", children: /* @__PURE__ */ c(nt, { left: "none", right: "none", space: "nano", children: a ?? r }) }),
|
|
6618
|
+
/* @__PURE__ */ c(pe, { children: u ? /* @__PURE__ */ c(
|
|
6627
6619
|
"div",
|
|
6628
6620
|
{
|
|
6629
|
-
className: `${
|
|
6621
|
+
className: `${ve.class}__button`,
|
|
6630
6622
|
"data-testid": `${y}-close`,
|
|
6631
6623
|
onClick: (H) => O(H),
|
|
6632
6624
|
children: /* @__PURE__ */ c(nt, { children: /* @__PURE__ */ c(te, { image: "close" }) })
|
|
@@ -6636,7 +6628,7 @@ const Bn = ({
|
|
|
6636
6628
|
h && i && /* @__PURE__ */ c(
|
|
6637
6629
|
"div",
|
|
6638
6630
|
{
|
|
6639
|
-
className: `${
|
|
6631
|
+
className: `${ve.class}__progress-bar ${ve.class}__progress-bar--${e}`,
|
|
6640
6632
|
"data-testid": `${y}-progress-bar`,
|
|
6641
6633
|
style: {
|
|
6642
6634
|
width: `${b / o * 100}%`
|
|
@@ -6687,7 +6679,7 @@ const Mt = {
|
|
|
6687
6679
|
default: "ds-password-confirmation"
|
|
6688
6680
|
}
|
|
6689
6681
|
}
|
|
6690
|
-
},
|
|
6682
|
+
}, ct = {
|
|
6691
6683
|
strong: "Forte",
|
|
6692
6684
|
good: "Boa",
|
|
6693
6685
|
medium: "Médio",
|
|
@@ -6734,14 +6726,14 @@ const Mt = {
|
|
|
6734
6726
|
});
|
|
6735
6727
|
},
|
|
6736
6728
|
[a, t, S]
|
|
6737
|
-
), A =
|
|
6729
|
+
), A = de(() => a !== i && y ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [a, i, y]), R = Ae(
|
|
6738
6730
|
(p) => {
|
|
6739
6731
|
const C = {
|
|
6740
6732
|
score: p,
|
|
6741
6733
|
color: "danger",
|
|
6742
|
-
label:
|
|
6734
|
+
label: ct.weak
|
|
6743
6735
|
};
|
|
6744
|
-
return p > 30 && p < 75 ? (C.color = "warning", C.label =
|
|
6736
|
+
return p > 30 && p < 75 ? (C.color = "warning", C.label = ct.medium) : p >= 75 && p < 100 ? (C.color = "success", C.label = ct.good) : p === 100 && (C.color = "success-dark", C.label = ct.strong), C;
|
|
6745
6737
|
},
|
|
6746
6738
|
[]
|
|
6747
6739
|
), w = Ae(
|
|
@@ -6774,8 +6766,8 @@ const Mt = {
|
|
|
6774
6766
|
] }, C + p.title);
|
|
6775
6767
|
}) });
|
|
6776
6768
|
return /* @__PURE__ */ F(qe, { className: "ds-password-confirmation", flexDirection: "column", children: [
|
|
6777
|
-
/* @__PURE__ */ c(
|
|
6778
|
-
|
|
6769
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(
|
|
6770
|
+
rt,
|
|
6779
6771
|
{
|
|
6780
6772
|
label: "Senha",
|
|
6781
6773
|
name: "password",
|
|
@@ -6785,7 +6777,7 @@ const Mt = {
|
|
|
6785
6777
|
value: a
|
|
6786
6778
|
}
|
|
6787
6779
|
) }),
|
|
6788
|
-
/* @__PURE__ */ c(
|
|
6780
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(
|
|
6789
6781
|
pn,
|
|
6790
6782
|
{
|
|
6791
6783
|
color: h == null ? void 0 : h.color,
|
|
@@ -6793,11 +6785,11 @@ const Mt = {
|
|
|
6793
6785
|
progress: h == null ? void 0 : h.score
|
|
6794
6786
|
}
|
|
6795
6787
|
) }),
|
|
6796
|
-
/* @__PURE__ */ c(
|
|
6797
|
-
/* @__PURE__ */ c(
|
|
6788
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(je, { children: s }) }),
|
|
6789
|
+
/* @__PURE__ */ c(pe, { children: x() }),
|
|
6798
6790
|
/* @__PURE__ */ c(Ce, { vertical: "xxs" }),
|
|
6799
|
-
/* @__PURE__ */ c(
|
|
6800
|
-
|
|
6791
|
+
/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(
|
|
6792
|
+
rt,
|
|
6801
6793
|
{
|
|
6802
6794
|
feedback: A.feedback,
|
|
6803
6795
|
label: "Confirme a senha",
|
|
@@ -6833,7 +6825,7 @@ const Fe = {
|
|
|
6833
6825
|
default: 0
|
|
6834
6826
|
}
|
|
6835
6827
|
}
|
|
6836
|
-
},
|
|
6828
|
+
}, Ja = ({
|
|
6837
6829
|
steps: t,
|
|
6838
6830
|
selectedStep: e = Fe.props.selectedStep.default,
|
|
6839
6831
|
onChange: s
|
|
@@ -6891,7 +6883,7 @@ const Fe = {
|
|
|
6891
6883
|
)) })
|
|
6892
6884
|
] });
|
|
6893
6885
|
};
|
|
6894
|
-
|
|
6886
|
+
Ja.displayName = "DsStepper";
|
|
6895
6887
|
const Ne = {
|
|
6896
6888
|
name: "Table",
|
|
6897
6889
|
class: "ds-table",
|
|
@@ -6924,7 +6916,7 @@ const Ne = {
|
|
|
6924
6916
|
) }, n);
|
|
6925
6917
|
}) });
|
|
6926
6918
|
Vn.displayName = "DsTableRow";
|
|
6927
|
-
const
|
|
6919
|
+
const er = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Ne.class}__wrapper`, children: /* @__PURE__ */ F(
|
|
6928
6920
|
"table",
|
|
6929
6921
|
{
|
|
6930
6922
|
className: [`${Ne.class}`, s].filter((n) => n).join(" "),
|
|
@@ -6943,9 +6935,9 @@ const tr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", {
|
|
|
6943
6935
|
]
|
|
6944
6936
|
}
|
|
6945
6937
|
) });
|
|
6946
|
-
|
|
6947
|
-
var Ln = /* @__PURE__ */ ((t) => (t.None = "", t.Primary = "primary", t.Secondary = "secondary", t.Neutral = "neutral", t.Success = "success", t.Warning = "warning", t.Danger = "danger", t.Info = "info", t))(Ln || {}),
|
|
6948
|
-
const
|
|
6938
|
+
er.displayName = "DsTable";
|
|
6939
|
+
var Ln = /* @__PURE__ */ ((t) => (t.None = "", t.Primary = "primary", t.Secondary = "secondary", t.Neutral = "neutral", t.Success = "success", t.Warning = "warning", t.Danger = "danger", t.Info = "info", t))(Ln || {}), it = /* @__PURE__ */ ((t) => (t.Segmented = "segmented", t.Navigation = "navigation", t))(it || {});
|
|
6940
|
+
const me = {
|
|
6949
6941
|
name: "DsTabs",
|
|
6950
6942
|
class: "ds-tabs",
|
|
6951
6943
|
props: {
|
|
@@ -6965,7 +6957,7 @@ const ge = {
|
|
|
6965
6957
|
variant: {
|
|
6966
6958
|
type: String,
|
|
6967
6959
|
default: "segmented",
|
|
6968
|
-
options: Object.values(
|
|
6960
|
+
options: Object.values(it)
|
|
6969
6961
|
},
|
|
6970
6962
|
className: {
|
|
6971
6963
|
type: String,
|
|
@@ -6977,7 +6969,7 @@ const ge = {
|
|
|
6977
6969
|
}
|
|
6978
6970
|
}
|
|
6979
6971
|
}
|
|
6980
|
-
},
|
|
6972
|
+
}, tr = ({
|
|
6981
6973
|
active: t,
|
|
6982
6974
|
className: e,
|
|
6983
6975
|
color: s,
|
|
@@ -6993,17 +6985,17 @@ const ge = {
|
|
|
6993
6985
|
tabDataTestId: y
|
|
6994
6986
|
}) => {
|
|
6995
6987
|
const b = [
|
|
6996
|
-
`${
|
|
6997
|
-
s && `${
|
|
6998
|
-
t && `${
|
|
6999
|
-
n && `${
|
|
6988
|
+
`${me.class}__tab`,
|
|
6989
|
+
s && `${me.class}__tab-color--${s}`,
|
|
6990
|
+
t && `${me.class}__tab--active`,
|
|
6991
|
+
n && `${me.class}__tab--disabled`,
|
|
7000
6992
|
e
|
|
7001
6993
|
].filter(Boolean).join(" "), S = () => {
|
|
7002
6994
|
n || o == null || o(a);
|
|
7003
6995
|
}, v = (g) => {
|
|
7004
6996
|
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), S());
|
|
7005
6997
|
};
|
|
7006
|
-
return u ===
|
|
6998
|
+
return u === it.Navigation ? /* @__PURE__ */ c(
|
|
7007
6999
|
"button",
|
|
7008
7000
|
{
|
|
7009
7001
|
"aria-controls": f ? h : void 0,
|
|
@@ -7040,12 +7032,12 @@ function Vt(t, e) {
|
|
|
7040
7032
|
const n = t.findIndex((a) => !a.hidden);
|
|
7041
7033
|
return n >= 0 ? n : 0;
|
|
7042
7034
|
}
|
|
7043
|
-
const
|
|
7035
|
+
const dr = ({
|
|
7044
7036
|
tabs: t,
|
|
7045
7037
|
color: e,
|
|
7046
|
-
selectedTab: s =
|
|
7038
|
+
selectedTab: s = me.props.selectedTab.default,
|
|
7047
7039
|
className: n,
|
|
7048
|
-
variant: a =
|
|
7040
|
+
variant: a = me.props.variant.default,
|
|
7049
7041
|
onChange: r,
|
|
7050
7042
|
"aria-label": i,
|
|
7051
7043
|
"aria-labelledby": o,
|
|
@@ -7061,16 +7053,16 @@ const pr = ({
|
|
|
7061
7053
|
const g = t[d];
|
|
7062
7054
|
(!g || g.hidden) && h(Vt(t, d));
|
|
7063
7055
|
}, [t, d]);
|
|
7064
|
-
const f =
|
|
7056
|
+
const f = de(
|
|
7065
7057
|
() => t.map((g, A) => ({ tab: g, index: A })).filter(({ tab: g }) => !g.hidden),
|
|
7066
7058
|
[t]
|
|
7067
7059
|
), y = (g) => {
|
|
7068
7060
|
h(g), r == null || r(g);
|
|
7069
7061
|
}, b = [
|
|
7070
|
-
|
|
7071
|
-
a ===
|
|
7062
|
+
me.class,
|
|
7063
|
+
a === it.Navigation && `${me.class}--navigation`,
|
|
7072
7064
|
n
|
|
7073
|
-
].filter(Boolean).join(" "), S = a ===
|
|
7065
|
+
].filter(Boolean).join(" "), S = a === it.Navigation, v = t[d];
|
|
7074
7066
|
return /* @__PURE__ */ F(
|
|
7075
7067
|
"div",
|
|
7076
7068
|
{
|
|
@@ -7082,12 +7074,12 @@ const pr = ({
|
|
|
7082
7074
|
/* @__PURE__ */ c(
|
|
7083
7075
|
"div",
|
|
7084
7076
|
{
|
|
7085
|
-
className: `${
|
|
7077
|
+
className: `${me.class}__header`,
|
|
7086
7078
|
role: S ? "tablist" : void 0,
|
|
7087
7079
|
children: f.map(({ tab: g, index: A }) => {
|
|
7088
|
-
const R = `${
|
|
7080
|
+
const R = `${me.class}-tab-${g.name ?? A}`, w = `${me.class}-panel-${g.name ?? A}`, x = g.content !== void 0;
|
|
7089
7081
|
return /* @__PURE__ */ c(
|
|
7090
|
-
|
|
7082
|
+
tr,
|
|
7091
7083
|
{
|
|
7092
7084
|
...g,
|
|
7093
7085
|
active: d === A,
|
|
@@ -7106,12 +7098,12 @@ const pr = ({
|
|
|
7106
7098
|
),
|
|
7107
7099
|
S ? f.map(({ tab: g, index: A }) => {
|
|
7108
7100
|
if (g.content === void 0) return null;
|
|
7109
|
-
const R = `${
|
|
7101
|
+
const R = `${me.class}-panel-${g.name ?? A}`, w = `${me.class}-tab-${g.name ?? A}`, x = d === A;
|
|
7110
7102
|
return /* @__PURE__ */ c(
|
|
7111
7103
|
"div",
|
|
7112
7104
|
{
|
|
7113
7105
|
"aria-labelledby": w,
|
|
7114
|
-
className: `${
|
|
7106
|
+
className: `${me.class}__panel`,
|
|
7115
7107
|
"data-testid": g.panelDataTestId ?? `ds-tabs-panel-${g.name ?? A}`,
|
|
7116
7108
|
hidden: !x,
|
|
7117
7109
|
id: R,
|
|
@@ -7121,15 +7113,15 @@ const pr = ({
|
|
|
7121
7113
|
},
|
|
7122
7114
|
R
|
|
7123
7115
|
);
|
|
7124
|
-
}) : /* @__PURE__ */ c("div", { className: `${
|
|
7116
|
+
}) : /* @__PURE__ */ c("div", { className: `${me.class}__content`, children: v ? v.content : null })
|
|
7125
7117
|
]
|
|
7126
7118
|
}
|
|
7127
7119
|
);
|
|
7128
7120
|
};
|
|
7129
|
-
function
|
|
7121
|
+
function sr({ library: t, children: e, theme: s }) {
|
|
7130
7122
|
return /* @__PURE__ */ c("div", { "data-library": t, "data-theme": s, children: /* @__PURE__ */ c("div", { className: "ds-theme", children: e }) });
|
|
7131
7123
|
}
|
|
7132
|
-
|
|
7124
|
+
sr.propTypes = {
|
|
7133
7125
|
library: l.string,
|
|
7134
7126
|
children: l.node.isRequired,
|
|
7135
7127
|
theme: l.string
|
|
@@ -7196,7 +7188,7 @@ Pn.propTypes = {
|
|
|
7196
7188
|
Pn.displayName = "DsNotificationList";
|
|
7197
7189
|
const et = {
|
|
7198
7190
|
class: "ds-split-layout"
|
|
7199
|
-
},
|
|
7191
|
+
}, nr = ({
|
|
7200
7192
|
leftContent: t,
|
|
7201
7193
|
rightContent: e,
|
|
7202
7194
|
leftBackgroundColor: s,
|
|
@@ -7209,8 +7201,8 @@ const et = {
|
|
|
7209
7201
|
/* @__PURE__ */ c("div", { className: h, children: e })
|
|
7210
7202
|
] });
|
|
7211
7203
|
};
|
|
7212
|
-
|
|
7213
|
-
const
|
|
7204
|
+
nr.displayName = "DsSplitLayout";
|
|
7205
|
+
const dt = {
|
|
7214
7206
|
name: "TwoColumns",
|
|
7215
7207
|
class: "ds-two-columns",
|
|
7216
7208
|
props: {}
|
|
@@ -7222,15 +7214,15 @@ const pt = {
|
|
|
7222
7214
|
}) => /* @__PURE__ */ F(Gt, { children: [
|
|
7223
7215
|
/* @__PURE__ */ F("div", { className: "ds-grid", children: [
|
|
7224
7216
|
/* @__PURE__ */ c("div", { className: "ds-grid__row", children: /* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col-12", children: n }) }),
|
|
7225
|
-
/* @__PURE__ */ F("div", { className: `${
|
|
7217
|
+
/* @__PURE__ */ F("div", { className: `${dt.class}__content ds-grid__row`, children: [
|
|
7226
7218
|
/* @__PURE__ */ F("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: [
|
|
7227
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
7228
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
7219
|
+
/* @__PURE__ */ c("div", { className: `${dt.class}__header`, children: t }),
|
|
7220
|
+
/* @__PURE__ */ c("div", { className: `${dt.class}__main`, children: e })
|
|
7229
7221
|
] }),
|
|
7230
7222
|
/* @__PURE__ */ c(
|
|
7231
7223
|
"div",
|
|
7232
7224
|
{
|
|
7233
|
-
className: `${
|
|
7225
|
+
className: `${dt.class}__sidebar ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12`,
|
|
7234
7226
|
children: s
|
|
7235
7227
|
}
|
|
7236
7228
|
)
|
|
@@ -7252,32 +7244,31 @@ export {
|
|
|
7252
7244
|
ws as ButtonSize,
|
|
7253
7245
|
Es as ButtonVariant,
|
|
7254
7246
|
jt as CardColor,
|
|
7255
|
-
Aa as CardElevation,
|
|
7256
7247
|
Os as CardSize,
|
|
7257
7248
|
Rs as ChipColor,
|
|
7258
|
-
|
|
7249
|
+
mt as ChipIconPosition,
|
|
7259
7250
|
$s as ChipVariant,
|
|
7260
7251
|
Dn as DsAccordion,
|
|
7261
7252
|
Zt as DsAccordionItem,
|
|
7262
|
-
|
|
7263
|
-
|
|
7253
|
+
Xa as DsActiveTags,
|
|
7254
|
+
gt as DsButton,
|
|
7264
7255
|
Fs as DsCaption,
|
|
7265
7256
|
Is as DsCard,
|
|
7266
|
-
|
|
7257
|
+
Ya as DsCarousel,
|
|
7267
7258
|
Ns as DsCheckbox,
|
|
7268
|
-
|
|
7259
|
+
ir as DsChip,
|
|
7269
7260
|
Gt as DsContainer,
|
|
7270
|
-
|
|
7271
|
-
|
|
7261
|
+
Qa as DsEditableSelect,
|
|
7262
|
+
pe as DsFlexElement,
|
|
7272
7263
|
qe as DsFlexLayout,
|
|
7273
|
-
|
|
7264
|
+
Wa as DsGridElement,
|
|
7274
7265
|
Cn as DsGridLayout,
|
|
7275
7266
|
Ls as DsHR,
|
|
7276
7267
|
Yt as DsHeading,
|
|
7277
7268
|
te as DsIcon,
|
|
7278
|
-
|
|
7269
|
+
cr as DsIndicator,
|
|
7279
7270
|
Fn as DsInlineEditable,
|
|
7280
|
-
|
|
7271
|
+
rt as DsInput,
|
|
7281
7272
|
Qt as DsLoading,
|
|
7282
7273
|
In as DsModal,
|
|
7283
7274
|
Bn as DsNotification,
|
|
@@ -7286,15 +7277,15 @@ export {
|
|
|
7286
7277
|
je as DsParagraph,
|
|
7287
7278
|
Mn as DsPasswordConfirmation,
|
|
7288
7279
|
pn as DsProgress,
|
|
7289
|
-
|
|
7290
|
-
|
|
7280
|
+
qa as DsRadio,
|
|
7281
|
+
Ua as DsSegmentControl,
|
|
7291
7282
|
_n as DsSelect,
|
|
7292
7283
|
Ce as DsSpacer,
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7284
|
+
nr as DsSplitLayout,
|
|
7285
|
+
Ja as DsStepper,
|
|
7286
|
+
za as DsSubtitle,
|
|
7287
|
+
er as DsTable,
|
|
7288
|
+
dr as DsTabs,
|
|
7298
7289
|
An as DsTextArea,
|
|
7299
7290
|
Qe as DsTooltip,
|
|
7300
7291
|
qn as DsTwoColumns,
|
|
@@ -7321,7 +7312,7 @@ export {
|
|
|
7321
7312
|
Ys as InputType,
|
|
7322
7313
|
sn as LoadingBackgroundColor,
|
|
7323
7314
|
tn as LoadingSize,
|
|
7324
|
-
|
|
7315
|
+
Za as ModalElevation,
|
|
7325
7316
|
On as ModalVariant,
|
|
7326
7317
|
jn as NotificationListPosition,
|
|
7327
7318
|
Nn as NotificationType,
|
|
@@ -7337,54 +7328,54 @@ export {
|
|
|
7337
7328
|
Ut as SpacerSize,
|
|
7338
7329
|
kn as SubtitleType,
|
|
7339
7330
|
Ln as TabsColor,
|
|
7340
|
-
|
|
7331
|
+
it as TabsVariant,
|
|
7341
7332
|
wn as TextAreaResize,
|
|
7342
7333
|
bn as TextAreaSize,
|
|
7343
7334
|
En as TextAreaStatus,
|
|
7344
7335
|
Sn as TextAreaType,
|
|
7345
|
-
|
|
7336
|
+
sr as ThemeProvider,
|
|
7346
7337
|
en as TooltipPlacement,
|
|
7347
7338
|
Js as TooltipPosition,
|
|
7348
7339
|
Ke as WrapperSpace,
|
|
7349
7340
|
Bt as accordionConfig,
|
|
7350
7341
|
Ye as accordionItemConfig,
|
|
7351
|
-
|
|
7342
|
+
ur as activeTagsConfig,
|
|
7352
7343
|
G as buttonConfig,
|
|
7353
7344
|
wa as captionConfig,
|
|
7354
|
-
|
|
7345
|
+
ue as cardConfig,
|
|
7355
7346
|
Ze as carouselConfig,
|
|
7356
|
-
|
|
7347
|
+
ge as checkboxConfig,
|
|
7357
7348
|
Be as chipConfig,
|
|
7358
|
-
|
|
7349
|
+
ut as containerConfig,
|
|
7359
7350
|
Y as editableSelectConfig,
|
|
7360
7351
|
Rt as flexElementConfig,
|
|
7361
7352
|
Ue as flexLayoutConfig,
|
|
7362
|
-
|
|
7353
|
+
or as gridElementConfig,
|
|
7363
7354
|
le as gridLayoutConfig,
|
|
7364
7355
|
tt as headingConfig,
|
|
7365
7356
|
He as horizontalRuleConfig,
|
|
7366
|
-
|
|
7357
|
+
ke as iconConfig,
|
|
7367
7358
|
Je as indicatorConfig,
|
|
7368
|
-
|
|
7359
|
+
Ga as inlineEditableConfig,
|
|
7369
7360
|
ee as inputConfig,
|
|
7370
|
-
|
|
7361
|
+
_e as loadingConfig,
|
|
7371
7362
|
we as modalConfig,
|
|
7372
|
-
|
|
7363
|
+
ve as notificationConfig,
|
|
7373
7364
|
ze as notificationListConfig,
|
|
7374
7365
|
Me as optionConfig,
|
|
7375
|
-
|
|
7366
|
+
ht as paragraphConfig,
|
|
7376
7367
|
Mt as passwordConfirmationConfig,
|
|
7377
7368
|
qt as progressConfig,
|
|
7378
7369
|
Ee as radioConfig,
|
|
7379
|
-
|
|
7370
|
+
ye as segmentControlConfig,
|
|
7380
7371
|
se as selectConfig,
|
|
7381
7372
|
st as spacerConfig,
|
|
7382
7373
|
Fe as stepperConfig,
|
|
7383
7374
|
$t as subtitleConfig,
|
|
7384
7375
|
Ne as tableConfig,
|
|
7385
|
-
|
|
7386
|
-
|
|
7376
|
+
me as tabsConfig,
|
|
7377
|
+
ce as textAreaConfig,
|
|
7387
7378
|
Ie as tooltipConfig,
|
|
7388
|
-
|
|
7379
|
+
dt as twoColumnsConfig,
|
|
7389
7380
|
Te as wrapperConfig
|
|
7390
7381
|
};
|