@trilogy-ds/react 0.0.11-esm-cjs → 0.0.13-esm-cjs
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/lib/{chunk-JPMJP4FB.mjs → chunk-57VVNO3I.mjs} +1 -1
- package/lib/{chunk-XS7CR5NW.mjs → chunk-5T6J3A25.mjs} +1 -1
- package/lib/{chunk-SZJMEVMK.mjs → chunk-6MSKYREQ.mjs} +1 -1
- package/lib/{chunk-OCWJQN4I.mjs → chunk-GY2RSUAJ.mjs} +2 -2
- package/lib/{chunk-ZQNIFM4G.mjs → chunk-IOHOQM2G.mjs} +2 -2
- package/lib/{chunk-3LYZFW3D.mjs → chunk-JQKBHQAI.mjs} +1 -1
- package/lib/{chunk-RAOQI2YA.mjs → chunk-JYONTZJI.mjs} +1 -1
- package/lib/chunk-UE6Q5FCK.mjs +1 -0
- package/lib/{chunk-GDOGTFV3.mjs → chunk-WCYJXOFQ.mjs} +2 -2
- package/lib/{chunk-LT76X7QI.mjs → chunk-WRTLMWIM.mjs} +4 -4
- package/lib/components/autocomplete/AutoComplete.js +2 -2
- package/lib/components/autocomplete/AutoComplete.mjs +2 -2
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/index.mjs +2 -2
- package/lib/components/breadcrumb/Breadcrumb.js +2 -2
- package/lib/components/breadcrumb/Breadcrumb.mjs +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/index.mjs +1 -1
- package/lib/components/button/ButtonProps.d.mts +1 -1
- package/lib/components/button/ButtonProps.d.ts +1 -1
- package/lib/components/button/ButtonProps.mjs +1 -0
- package/lib/components/button/index.d.mts +1 -0
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/button/index.mjs +2 -1
- package/lib/components/button/index.native.d.mts +1 -0
- package/lib/components/button/index.native.d.ts +1 -0
- package/lib/components/button/index.native.mjs +2 -1
- package/lib/components/index.js +10 -10
- package/lib/components/index.mjs +15 -14
- package/lib/components/index.native.mjs +8 -7
- package/lib/components/input/Input.js +2 -2
- package/lib/components/input/Input.mjs +1 -1
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/index.mjs +1 -1
- package/lib/components/modal/Modal.js +2 -2
- package/lib/components/modal/Modal.mjs +3 -2
- package/lib/components/modal/index.js +2 -2
- package/lib/components/modal/index.mjs +3 -2
- package/lib/components/otp/Otp.js +4 -4
- package/lib/components/otp/Otp.mjs +1 -1
- package/lib/components/otp/index.js +4 -4
- package/lib/components/otp/index.mjs +1 -1
- package/lib/components/select/Select.js +2 -2
- package/lib/components/select/Select.mjs +3 -3
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/index.mjs +3 -3
- package/lib/components/select/web/SelectDynamic.js +2 -2
- package/lib/components/select/web/SelectDynamic.mjs +2 -2
- package/lib/components/select/web/SelectNative.js +2 -2
- package/lib/components/select/web/SelectNative.mjs +3 -3
- package/lib/components/select/web/index.js +2 -2
- package/lib/components/select/web/index.mjs +3 -3
- package/lib/components/tabs/index.mjs +6 -6
- package/lib/components/tabs/index.native.mjs +6 -6
- package/lib/context/provider/index.js +1 -1
- package/lib/context/provider/index.mjs +2 -2
- package/lib/context/test/provider.test.js +1 -1
- package/lib/context/test/provider.test.mjs +2 -2
- package/lib/index.js +11 -11
- package/lib/index.mjs +17 -16
- package/lib/index.native.js +1 -1
- package/lib/index.native.mjs +10 -9
- package/lib/version.d.mts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.mjs +1 -1
- package/package.json +1 -1
- /package/lib/{chunk-2R2VEDDI.mjs → chunk-CZXKYMNG.mjs} +0 -0
- /package/lib/{chunk-PFJ6Y6ZL.mjs → chunk-PZYSTPFC.mjs} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-ZB4OWTDD.mjs";
|
|
14
14
|
|
|
15
15
|
// components/modal/Modal.tsx
|
|
16
|
-
import
|
|
16
|
+
import { modalLocale } from "@trilogy-ds/locales";
|
|
17
17
|
import clsx from "clsx";
|
|
18
18
|
import React, { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
19
19
|
var Modal = React.forwardRef(
|
|
@@ -121,7 +121,7 @@ var Modal = React.forwardRef(
|
|
|
121
121
|
className: hashClass(styled, clsx("modal-close", is("large"))),
|
|
122
122
|
type: "button" /* BUTTON */
|
|
123
123
|
},
|
|
124
|
-
/* @__PURE__ */ React.createElement("span", { className: hashClass(styled, clsx("sr-only")) },
|
|
124
|
+
/* @__PURE__ */ React.createElement("span", { className: hashClass(styled, clsx("sr-only")) }, modalLocale.accessibilityLabelButtonClose)
|
|
125
125
|
), /* @__PURE__ */ React.createElement(Title_default, { id: modalGeneratedId, level: 3 /* THREE */, markup: "h1" /* H1 */ }, title)), children && children)
|
|
126
126
|
));
|
|
127
127
|
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-ZB4OWTDD.mjs";
|
|
8
8
|
|
|
9
9
|
// components/breadcrumb/Breadcrumb.tsx
|
|
10
|
-
import
|
|
10
|
+
import { breadcrumbLocale } from "@trilogy-ds/locales";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import * as React from "react";
|
|
13
13
|
var Breadcrumb = React.forwardRef(
|
|
@@ -20,7 +20,7 @@ var Breadcrumb = React.forwardRef(
|
|
|
20
20
|
id,
|
|
21
21
|
role: "navigation",
|
|
22
22
|
className: hashClass(styled, clsx("breadcrumb", className)),
|
|
23
|
-
"aria-label":
|
|
23
|
+
"aria-label": breadcrumbLocale.accessibilityLabel,
|
|
24
24
|
...others
|
|
25
25
|
},
|
|
26
26
|
/* @__PURE__ */ React.createElement("ul", null, children)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-ZB4OWTDD.mjs";
|
|
21
21
|
|
|
22
22
|
// components/input/Input.tsx
|
|
23
|
-
import
|
|
23
|
+
import { inputLocale } from "@trilogy-ds/locales";
|
|
24
24
|
import clsx from "clsx";
|
|
25
25
|
import React, { useCallback, useEffect, useId, useState } from "react";
|
|
26
26
|
var Input = React.forwardRef(
|
|
@@ -227,7 +227,7 @@ var Input = React.forwardRef(
|
|
|
227
227
|
IconWrapper,
|
|
228
228
|
{
|
|
229
229
|
showPassword: true,
|
|
230
|
-
srOnly: !isShowPwd ?
|
|
230
|
+
srOnly: !isShowPwd ? inputLocale.showPassword : inputLocale.hidePassword,
|
|
231
231
|
className: "icon-right",
|
|
232
232
|
name: isShowPwd ? "tri-eye-slash" /* EYE_SLASH */ : "tri-eye" /* EYE */,
|
|
233
233
|
onPress: () => {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-ZB4OWTDD.mjs";
|
|
14
14
|
|
|
15
15
|
// components/otp/Otp.tsx
|
|
16
|
-
import
|
|
16
|
+
import { otpLocale } from "@trilogy-ds/locales";
|
|
17
17
|
import clsx from "clsx";
|
|
18
18
|
import React, { useEffect, useRef, useState } from "react";
|
|
19
19
|
var stringToCode = (str, codeSize) => {
|
|
@@ -69,8 +69,8 @@ var inputOnKeyUp = (e) => {
|
|
|
69
69
|
focusToNextInput(target);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
var formatTranslation = (
|
|
73
|
-
return
|
|
72
|
+
var formatTranslation = (translation, x, y) => {
|
|
73
|
+
return translation.replace(/:x/g, x).replace(/:y/g, y);
|
|
74
74
|
};
|
|
75
75
|
var Otp = React.forwardRef(
|
|
76
76
|
({
|
|
@@ -158,7 +158,7 @@ var Otp = React.forwardRef(
|
|
|
158
158
|
onFocus: inputOnFocus,
|
|
159
159
|
onChange: (e) => inputOnChange(e, idx),
|
|
160
160
|
disabled,
|
|
161
|
-
title: formatTranslation(
|
|
161
|
+
title: formatTranslation(otpLocale.inputTitle, String(idx + 1), String(length)),
|
|
162
162
|
...others
|
|
163
163
|
}
|
|
164
164
|
))
|
|
@@ -38,7 +38,7 @@ var import_clsx7 = __toESM(require("clsx"));
|
|
|
38
38
|
var import_react7 = __toESM(require("react"));
|
|
39
39
|
|
|
40
40
|
// components/input/Input.tsx
|
|
41
|
-
var
|
|
41
|
+
var import_locales = require("@trilogy-ds/locales");
|
|
42
42
|
var import_clsx4 = __toESM(require("clsx"));
|
|
43
43
|
var import_react6 = __toESM(require("react"));
|
|
44
44
|
|
|
@@ -662,7 +662,7 @@ var Input = import_react6.default.forwardRef(
|
|
|
662
662
|
IconWrapper,
|
|
663
663
|
{
|
|
664
664
|
showPassword: true,
|
|
665
|
-
srOnly: !isShowPwd ?
|
|
665
|
+
srOnly: !isShowPwd ? import_locales.inputLocale.showPassword : import_locales.inputLocale.hidePassword,
|
|
666
666
|
className: "icon-right",
|
|
667
667
|
name: isShowPwd ? "tri-eye-slash" /* EYE_SLASH */ : "tri-eye" /* EYE */,
|
|
668
668
|
onPress: () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AutoComplete_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-JYONTZJI.mjs";
|
|
5
5
|
import "../../chunk-MB3N2M2K.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-WCYJXOFQ.mjs";
|
|
7
7
|
import "../../chunk-GRGNRLCK.mjs";
|
|
8
8
|
import "../../chunk-VOIEK4BP.mjs";
|
|
9
9
|
import "../../chunk-BVZWKYND.mjs";
|
|
@@ -42,7 +42,7 @@ var import_clsx7 = __toESM(require("clsx"));
|
|
|
42
42
|
var import_react7 = __toESM(require("react"));
|
|
43
43
|
|
|
44
44
|
// components/input/Input.tsx
|
|
45
|
-
var
|
|
45
|
+
var import_locales = require("@trilogy-ds/locales");
|
|
46
46
|
var import_clsx4 = __toESM(require("clsx"));
|
|
47
47
|
var import_react6 = __toESM(require("react"));
|
|
48
48
|
|
|
@@ -666,7 +666,7 @@ var Input = import_react6.default.forwardRef(
|
|
|
666
666
|
IconWrapper,
|
|
667
667
|
{
|
|
668
668
|
showPassword: true,
|
|
669
|
-
srOnly: !isShowPwd ?
|
|
669
|
+
srOnly: !isShowPwd ? import_locales.inputLocale.showPassword : import_locales.inputLocale.hidePassword,
|
|
670
670
|
className: "icon-right",
|
|
671
671
|
name: isShowPwd ? "tri-eye-slash" /* EYE_SLASH */ : "tri-eye" /* EYE */,
|
|
672
672
|
onPress: () => {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-JPW6HLPE.mjs";
|
|
3
3
|
import {
|
|
4
4
|
AutoComplete_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-JYONTZJI.mjs";
|
|
6
6
|
import "../../chunk-MB3N2M2K.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-WCYJXOFQ.mjs";
|
|
8
8
|
import "../../chunk-GRGNRLCK.mjs";
|
|
9
9
|
import "../../chunk-VOIEK4BP.mjs";
|
|
10
10
|
import "../../chunk-BVZWKYND.mjs";
|
|
@@ -60,7 +60,7 @@ var hashClass = (addHash = false, classes) => {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
// components/breadcrumb/Breadcrumb.tsx
|
|
63
|
-
var
|
|
63
|
+
var import_locales = require("@trilogy-ds/locales");
|
|
64
64
|
var import_clsx = __toESM(require("clsx"));
|
|
65
65
|
var React2 = __toESM(require("react"));
|
|
66
66
|
var Breadcrumb = React2.forwardRef(
|
|
@@ -73,7 +73,7 @@ var Breadcrumb = React2.forwardRef(
|
|
|
73
73
|
id,
|
|
74
74
|
role: "navigation",
|
|
75
75
|
className: hashClass(styled, (0, import_clsx.default)("breadcrumb", className)),
|
|
76
|
-
"aria-label":
|
|
76
|
+
"aria-label": import_locales.breadcrumbLocale.accessibilityLabel,
|
|
77
77
|
...others
|
|
78
78
|
},
|
|
79
79
|
/* @__PURE__ */ React2.createElement("ul", null, children)
|
|
@@ -61,7 +61,7 @@ var hashClass = (addHash = false, classes) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// components/breadcrumb/Breadcrumb.tsx
|
|
64
|
-
var
|
|
64
|
+
var import_locales = require("@trilogy-ds/locales");
|
|
65
65
|
var import_clsx = __toESM(require("clsx"));
|
|
66
66
|
var React2 = __toESM(require("react"));
|
|
67
67
|
var Breadcrumb = React2.forwardRef(
|
|
@@ -74,7 +74,7 @@ var Breadcrumb = React2.forwardRef(
|
|
|
74
74
|
id,
|
|
75
75
|
role: "navigation",
|
|
76
76
|
className: hashClass(styled, (0, import_clsx.default)("breadcrumb", className)),
|
|
77
|
-
"aria-label":
|
|
77
|
+
"aria-label": import_locales.breadcrumbLocale.accessibilityLabel,
|
|
78
78
|
...others
|
|
79
79
|
},
|
|
80
80
|
/* @__PURE__ */ React2.createElement("ul", null, children)
|
|
@@ -8,7 +8,7 @@ import "../../chunk-CRKTC32Z.mjs";
|
|
|
8
8
|
import "../../chunk-62D2ZNLD.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Breadcrumb_default
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-IOHOQM2G.mjs";
|
|
12
12
|
import "../../chunk-YYWCL3GN.mjs";
|
|
13
13
|
import "../../chunk-SGAZRZIK.mjs";
|
|
14
14
|
import "../../chunk-WC3ULY5W.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TouchableOpacity } from 'react-native';
|
|
2
|
-
import { IconName, IconNameValues } from '../../components/icon';
|
|
2
|
+
import { IconName, IconNameValues } from '../../components/icon/IconNameEnum';
|
|
3
3
|
import { Accessibility } from '../../objects/facets/Accessibility';
|
|
4
4
|
import { Clickable } from '../../objects/facets/Clickable';
|
|
5
5
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TouchableOpacity } from 'react-native';
|
|
2
|
-
import { IconName, IconNameValues } from '../../components/icon';
|
|
2
|
+
import { IconName, IconNameValues } from '../../components/icon/IconNameEnum';
|
|
3
3
|
import { Accessibility } from '../../objects/facets/Accessibility';
|
|
4
4
|
import { Clickable } from '../../objects/facets/Clickable';
|
|
5
5
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "../../chunk-
|
|
2
|
+
import "../../chunk-PZYSTPFC.mjs";
|
|
3
3
|
import "../../chunk-FPP2TUF5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ButtonList_default
|
|
@@ -8,6 +8,7 @@ import "../../chunk-HLXQDY5F.mjs";
|
|
|
8
8
|
import {
|
|
9
9
|
Button_default
|
|
10
10
|
} from "../../chunk-MOXBCNH3.mjs";
|
|
11
|
+
import "../../chunk-CZXKYMNG.mjs";
|
|
11
12
|
import "../../chunk-A35Q44N2.mjs";
|
|
12
13
|
import "../../chunk-YYWCL3GN.mjs";
|
|
13
14
|
import "../../chunk-SGAZRZIK.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "../../chunk-
|
|
2
|
+
import "../../chunk-UE6Q5FCK.mjs";
|
|
3
3
|
import {
|
|
4
4
|
ButtonList_native_default
|
|
5
5
|
} from "../../chunk-X2ZKW3EV.mjs";
|
|
@@ -25,6 +25,7 @@ import "../../chunk-YK5HPRX4.mjs";
|
|
|
25
25
|
import "../../chunk-VI2KFLCZ.mjs";
|
|
26
26
|
import "../../chunk-CWIO3GEP.mjs";
|
|
27
27
|
import "../../chunk-R6PFY5VS.mjs";
|
|
28
|
+
import "../../chunk-CZXKYMNG.mjs";
|
|
28
29
|
import "../../chunk-LUYCGMYG.mjs";
|
|
29
30
|
import "../../chunk-RXBVZD3M.mjs";
|
|
30
31
|
import "../../chunk-3XMSRU64.mjs";
|
package/lib/components/index.js
CHANGED
|
@@ -996,7 +996,7 @@ var import_clsx13 = __toESM(require("clsx"));
|
|
|
996
996
|
var import_react11 = __toESM(require("react"));
|
|
997
997
|
|
|
998
998
|
// components/input/Input.tsx
|
|
999
|
-
var
|
|
999
|
+
var import_locales = require("@trilogy-ds/locales");
|
|
1000
1000
|
var import_clsx10 = __toESM(require("clsx"));
|
|
1001
1001
|
var import_react10 = __toESM(require("react"));
|
|
1002
1002
|
|
|
@@ -1574,7 +1574,7 @@ var Input = import_react10.default.forwardRef(
|
|
|
1574
1574
|
IconWrapper,
|
|
1575
1575
|
{
|
|
1576
1576
|
showPassword: true,
|
|
1577
|
-
srOnly: !isShowPwd ?
|
|
1577
|
+
srOnly: !isShowPwd ? import_locales.inputLocale.showPassword : import_locales.inputLocale.hidePassword,
|
|
1578
1578
|
className: "icon-right",
|
|
1579
1579
|
name: isShowPwd ? "tri-eye-slash" /* EYE_SLASH */ : "tri-eye" /* EYE */,
|
|
1580
1580
|
onPress: () => {
|
|
@@ -2224,7 +2224,7 @@ var BoxItemSize = ((BoxItemSize2) => {
|
|
|
2224
2224
|
var item_default2 = BoxItem_default;
|
|
2225
2225
|
|
|
2226
2226
|
// components/breadcrumb/Breadcrumb.tsx
|
|
2227
|
-
var
|
|
2227
|
+
var import_locales2 = require("@trilogy-ds/locales");
|
|
2228
2228
|
var import_clsx21 = __toESM(require("clsx"));
|
|
2229
2229
|
var React27 = __toESM(require("react"));
|
|
2230
2230
|
var Breadcrumb = React27.forwardRef(
|
|
@@ -2237,7 +2237,7 @@ var Breadcrumb = React27.forwardRef(
|
|
|
2237
2237
|
id,
|
|
2238
2238
|
role: "navigation",
|
|
2239
2239
|
className: hashClass(styled, (0, import_clsx21.default)("breadcrumb", className)),
|
|
2240
|
-
"aria-label":
|
|
2240
|
+
"aria-label": import_locales2.breadcrumbLocale.accessibilityLabel,
|
|
2241
2241
|
...others
|
|
2242
2242
|
},
|
|
2243
2243
|
/* @__PURE__ */ React27.createElement("ul", null, children)
|
|
@@ -3374,7 +3374,7 @@ var ListIconStatus = /* @__PURE__ */ ((ListIconStatus2) => {
|
|
|
3374
3374
|
})(ListIconStatus || {});
|
|
3375
3375
|
|
|
3376
3376
|
// components/modal/Modal.tsx
|
|
3377
|
-
var
|
|
3377
|
+
var import_locales3 = require("@trilogy-ds/locales");
|
|
3378
3378
|
var import_clsx49 = __toESM(require("clsx"));
|
|
3379
3379
|
var import_react29 = __toESM(require("react"));
|
|
3380
3380
|
var Modal = import_react29.default.forwardRef(
|
|
@@ -3482,7 +3482,7 @@ var Modal = import_react29.default.forwardRef(
|
|
|
3482
3482
|
className: hashClass(styled, (0, import_clsx49.default)("modal-close", is("large"))),
|
|
3483
3483
|
type: "button" /* BUTTON */
|
|
3484
3484
|
},
|
|
3485
|
-
/* @__PURE__ */ import_react29.default.createElement("span", { className: hashClass(styled, (0, import_clsx49.default)("sr-only")) },
|
|
3485
|
+
/* @__PURE__ */ import_react29.default.createElement("span", { className: hashClass(styled, (0, import_clsx49.default)("sr-only")) }, import_locales3.modalLocale.accessibilityLabelButtonClose)
|
|
3486
3486
|
), /* @__PURE__ */ import_react29.default.createElement(Title_default, { id: modalGeneratedId, level: 3 /* THREE */, markup: "h1" /* H1 */ }, title)), children && children)
|
|
3487
3487
|
));
|
|
3488
3488
|
}
|
|
@@ -3541,7 +3541,7 @@ var ModalSize = /* @__PURE__ */ ((ModalSize2) => {
|
|
|
3541
3541
|
})(ModalSize || {});
|
|
3542
3542
|
|
|
3543
3543
|
// components/otp/Otp.tsx
|
|
3544
|
-
var
|
|
3544
|
+
var import_locales4 = require("@trilogy-ds/locales");
|
|
3545
3545
|
var import_clsx52 = __toESM(require("clsx"));
|
|
3546
3546
|
var import_react30 = __toESM(require("react"));
|
|
3547
3547
|
var stringToCode = (str, codeSize) => {
|
|
@@ -3597,8 +3597,8 @@ var inputOnKeyUp = (e) => {
|
|
|
3597
3597
|
focusToNextInput(target);
|
|
3598
3598
|
}
|
|
3599
3599
|
};
|
|
3600
|
-
var formatTranslation = (
|
|
3601
|
-
return
|
|
3600
|
+
var formatTranslation = (translation, x, y) => {
|
|
3601
|
+
return translation.replace(/:x/g, x).replace(/:y/g, y);
|
|
3602
3602
|
};
|
|
3603
3603
|
var Otp = import_react30.default.forwardRef(
|
|
3604
3604
|
({
|
|
@@ -3686,7 +3686,7 @@ var Otp = import_react30.default.forwardRef(
|
|
|
3686
3686
|
onFocus: inputOnFocus,
|
|
3687
3687
|
onChange: (e) => inputOnChange(e, idx),
|
|
3688
3688
|
disabled,
|
|
3689
|
-
title: formatTranslation(
|
|
3689
|
+
title: formatTranslation(import_locales4.otpLocale.inputTitle, String(idx + 1), String(length)),
|
|
3690
3690
|
...others
|
|
3691
3691
|
}
|
|
3692
3692
|
))
|
package/lib/components/index.mjs
CHANGED
|
@@ -30,6 +30,12 @@ import {
|
|
|
30
30
|
Textarea_default
|
|
31
31
|
} from "../chunk-574Q5HPU.mjs";
|
|
32
32
|
import "../chunk-SEUFDQBO.mjs";
|
|
33
|
+
import {
|
|
34
|
+
TabList_default
|
|
35
|
+
} from "../chunk-UNUI5GCY.mjs";
|
|
36
|
+
import {
|
|
37
|
+
Tab_default
|
|
38
|
+
} from "../chunk-PTHFF3G5.mjs";
|
|
33
39
|
import {
|
|
34
40
|
TabPanels_default
|
|
35
41
|
} from "../chunk-4XLHP4FT.mjs";
|
|
@@ -37,12 +43,6 @@ import "../chunk-TTMI7WFG.mjs";
|
|
|
37
43
|
import {
|
|
38
44
|
TabPanel_default
|
|
39
45
|
} from "../chunk-TBFT5WCF.mjs";
|
|
40
|
-
import {
|
|
41
|
-
TabList_default
|
|
42
|
-
} from "../chunk-UNUI5GCY.mjs";
|
|
43
|
-
import {
|
|
44
|
-
Tab_default
|
|
45
|
-
} from "../chunk-PTHFF3G5.mjs";
|
|
46
46
|
import "../chunk-K4DWC43X.mjs";
|
|
47
47
|
import {
|
|
48
48
|
Tag_default
|
|
@@ -96,11 +96,11 @@ import {
|
|
|
96
96
|
} from "../chunk-22ZF6KCV.mjs";
|
|
97
97
|
import {
|
|
98
98
|
Select_default
|
|
99
|
-
} from "../chunk-
|
|
99
|
+
} from "../chunk-5T6J3A25.mjs";
|
|
100
100
|
import {
|
|
101
101
|
option_default
|
|
102
102
|
} from "../chunk-I2BTIELF.mjs";
|
|
103
|
-
import "../chunk-
|
|
103
|
+
import "../chunk-6MSKYREQ.mjs";
|
|
104
104
|
import "../chunk-TH32WIIV.mjs";
|
|
105
105
|
import "../chunk-T7LVKIVR.mjs";
|
|
106
106
|
import "../chunk-PWPSDXNE.mjs";
|
|
@@ -178,10 +178,10 @@ import {
|
|
|
178
178
|
} from "../chunk-ABTLCSFA.mjs";
|
|
179
179
|
import {
|
|
180
180
|
Modal_default
|
|
181
|
-
} from "../chunk-
|
|
181
|
+
} from "../chunk-GY2RSUAJ.mjs";
|
|
182
182
|
import {
|
|
183
183
|
Otp_default
|
|
184
|
-
} from "../chunk-
|
|
184
|
+
} from "../chunk-WRTLMWIM.mjs";
|
|
185
185
|
import "../chunk-4SALNTSX.mjs";
|
|
186
186
|
import "../chunk-W4ZBP4MY.mjs";
|
|
187
187
|
import "../chunk-M4LDYIT7.mjs";
|
|
@@ -271,7 +271,7 @@ import {
|
|
|
271
271
|
import {
|
|
272
272
|
Checkbox_default
|
|
273
273
|
} from "../chunk-S76GK7PI.mjs";
|
|
274
|
-
import "../chunk-
|
|
274
|
+
import "../chunk-PZYSTPFC.mjs";
|
|
275
275
|
import "../chunk-FPP2TUF5.mjs";
|
|
276
276
|
import {
|
|
277
277
|
ButtonList_default
|
|
@@ -312,7 +312,7 @@ import {
|
|
|
312
312
|
} from "../chunk-62D2ZNLD.mjs";
|
|
313
313
|
import {
|
|
314
314
|
Breadcrumb_default
|
|
315
|
-
} from "../chunk-
|
|
315
|
+
} from "../chunk-IOHOQM2G.mjs";
|
|
316
316
|
import "../chunk-WRDU327E.mjs";
|
|
317
317
|
import {
|
|
318
318
|
Badge_default
|
|
@@ -346,11 +346,11 @@ import {
|
|
|
346
346
|
} from "../chunk-TB5FNQJR.mjs";
|
|
347
347
|
import {
|
|
348
348
|
AutoComplete_default
|
|
349
|
-
} from "../chunk-
|
|
349
|
+
} from "../chunk-JYONTZJI.mjs";
|
|
350
350
|
import "../chunk-MB3N2M2K.mjs";
|
|
351
351
|
import {
|
|
352
352
|
Input_default
|
|
353
|
-
} from "../chunk-
|
|
353
|
+
} from "../chunk-WCYJXOFQ.mjs";
|
|
354
354
|
import "../chunk-GRGNRLCK.mjs";
|
|
355
355
|
import "../chunk-VOIEK4BP.mjs";
|
|
356
356
|
import "../chunk-BVZWKYND.mjs";
|
|
@@ -444,6 +444,7 @@ import {
|
|
|
444
444
|
CardImageSize
|
|
445
445
|
} from "../chunk-OYMGXPMZ.mjs";
|
|
446
446
|
import "../chunk-CJSVEY7Z.mjs";
|
|
447
|
+
import "../chunk-CZXKYMNG.mjs";
|
|
447
448
|
import {
|
|
448
449
|
BoxItemSize
|
|
449
450
|
} from "../chunk-BW2X3JP2.mjs";
|
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
Textarea_native_default
|
|
20
20
|
} from "../chunk-JBFO7SRF.mjs";
|
|
21
21
|
import "../chunk-5HT5JYKR.mjs";
|
|
22
|
-
import {
|
|
23
|
-
TabList_native_default
|
|
24
|
-
} from "../chunk-YS4SPJEP.mjs";
|
|
25
|
-
import {
|
|
26
|
-
Tab_native_default
|
|
27
|
-
} from "../chunk-AZ5GLGL2.mjs";
|
|
28
22
|
import {
|
|
29
23
|
TabPanels_native_default
|
|
30
24
|
} from "../chunk-A4UUZNZZ.mjs";
|
|
31
25
|
import {
|
|
32
26
|
TabPanel_native_default
|
|
33
27
|
} from "../chunk-R37XLGXJ.mjs";
|
|
28
|
+
import {
|
|
29
|
+
TabList_native_default
|
|
30
|
+
} from "../chunk-YS4SPJEP.mjs";
|
|
31
|
+
import {
|
|
32
|
+
Tab_native_default
|
|
33
|
+
} from "../chunk-AZ5GLGL2.mjs";
|
|
34
34
|
import "../chunk-LBLPESEI.mjs";
|
|
35
35
|
import {
|
|
36
36
|
Tag_native_default
|
|
@@ -234,7 +234,7 @@ import {
|
|
|
234
234
|
import {
|
|
235
235
|
Checkbox_native_default
|
|
236
236
|
} from "../chunk-RHXKAFKN.mjs";
|
|
237
|
-
import "../chunk-
|
|
237
|
+
import "../chunk-UE6Q5FCK.mjs";
|
|
238
238
|
import {
|
|
239
239
|
ButtonList_native_default
|
|
240
240
|
} from "../chunk-X2ZKW3EV.mjs";
|
|
@@ -445,6 +445,7 @@ import {
|
|
|
445
445
|
CardImageSize
|
|
446
446
|
} from "../chunk-OYMGXPMZ.mjs";
|
|
447
447
|
import "../chunk-CJSVEY7Z.mjs";
|
|
448
|
+
import "../chunk-CZXKYMNG.mjs";
|
|
448
449
|
import {
|
|
449
450
|
BoxItemSize
|
|
450
451
|
} from "../chunk-BW2X3JP2.mjs";
|
|
@@ -34,7 +34,7 @@ __export(Input_exports, {
|
|
|
34
34
|
default: () => Input_default
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(Input_exports);
|
|
37
|
-
var
|
|
37
|
+
var import_locales = require("@trilogy-ds/locales");
|
|
38
38
|
var import_clsx4 = __toESM(require("clsx"));
|
|
39
39
|
var import_react6 = __toESM(require("react"));
|
|
40
40
|
|
|
@@ -658,7 +658,7 @@ var Input = import_react6.default.forwardRef(
|
|
|
658
658
|
IconWrapper,
|
|
659
659
|
{
|
|
660
660
|
showPassword: true,
|
|
661
|
-
srOnly: !isShowPwd ?
|
|
661
|
+
srOnly: !isShowPwd ? import_locales.inputLocale.showPassword : import_locales.inputLocale.hidePassword,
|
|
662
662
|
className: "icon-right",
|
|
663
663
|
name: isShowPwd ? "tri-eye-slash" /* EYE_SLASH */ : "tri-eye" /* EYE */,
|
|
664
664
|
onPress: () => {
|
|
@@ -43,7 +43,7 @@ __export(input_exports, {
|
|
|
43
43
|
module.exports = __toCommonJS(input_exports);
|
|
44
44
|
|
|
45
45
|
// components/input/Input.tsx
|
|
46
|
-
var
|
|
46
|
+
var import_locales = require("@trilogy-ds/locales");
|
|
47
47
|
var import_clsx4 = __toESM(require("clsx"));
|
|
48
48
|
var import_react6 = __toESM(require("react"));
|
|
49
49
|
|
|
@@ -803,7 +803,7 @@ var Input = import_react6.default.forwardRef(
|
|
|
803
803
|
IconWrapper,
|
|
804
804
|
{
|
|
805
805
|
showPassword: true,
|
|
806
|
-
srOnly: !isShowPwd ?
|
|
806
|
+
srOnly: !isShowPwd ? import_locales.inputLocale.showPassword : import_locales.inputLocale.hidePassword,
|
|
807
807
|
className: "icon-right",
|
|
808
808
|
name: isShowPwd ? "tri-eye-slash" /* EYE_SLASH */ : "tri-eye" /* EYE */,
|
|
809
809
|
onPress: () => {
|
|
@@ -446,7 +446,7 @@ Title.displayName = "Title" /* Title */;
|
|
|
446
446
|
var Title_default = Title;
|
|
447
447
|
|
|
448
448
|
// components/modal/Modal.tsx
|
|
449
|
-
var
|
|
449
|
+
var import_locales = require("@trilogy-ds/locales");
|
|
450
450
|
var import_clsx5 = __toESM(require("clsx"));
|
|
451
451
|
var import_react5 = __toESM(require("react"));
|
|
452
452
|
var Modal = import_react5.default.forwardRef(
|
|
@@ -554,7 +554,7 @@ var Modal = import_react5.default.forwardRef(
|
|
|
554
554
|
className: hashClass(styled, (0, import_clsx5.default)("modal-close", is("large"))),
|
|
555
555
|
type: "button" /* BUTTON */
|
|
556
556
|
},
|
|
557
|
-
/* @__PURE__ */ import_react5.default.createElement("span", { className: hashClass(styled, (0, import_clsx5.default)("sr-only")) },
|
|
557
|
+
/* @__PURE__ */ import_react5.default.createElement("span", { className: hashClass(styled, (0, import_clsx5.default)("sr-only")) }, import_locales.modalLocale.accessibilityLabelButtonClose)
|
|
558
558
|
), /* @__PURE__ */ import_react5.default.createElement(Title_default, { id: modalGeneratedId, level: 3 /* THREE */, markup: "h1" /* H1 */ }, title)), children && children)
|
|
559
559
|
));
|
|
560
560
|
}
|