krl-alfred 1.76.34 → 1.76.35

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.
@@ -18,8 +18,10 @@ var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var AddressCard_styled_1 = require("./AddressCard.styled");
19
19
  var RadioButton_1 = __importDefault(require("../RadioButton"));
20
20
  var TextLink_1 = __importDefault(require("../TextLink"));
21
+ var react_i18next_1 = require("react-i18next");
21
22
  var AddressCard = function (props) {
22
- return ((0, jsx_runtime_1.jsxs)(AddressCard_styled_1.AddressCardStyled, __assign({ htmlFor: props.id, checked: props.checked, "$minHeight": props.minHeight }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "head" }, { children: [(0, jsx_runtime_1.jsx)(RadioButton_1.default, { id: props.id, onChange: props.onChange, checked: props.checked, isWrapText: false, layout: "basic", size: "small", label: props.title, name: props.name, value: props.value, disabled: props.disabled }), (props === null || props === void 0 ? void 0 : props.isShowEditBtn) && ((0, jsx_runtime_1.jsx)("div", __assign({ className: "editBtn" }, { children: (0, jsx_runtime_1.jsx)(TextLink_1.default, __assign({ onClick: props.handleUpdate }, { children: "D\u00FCzenle" })) })))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: "description" }, { children: props.description }))] })));
23
+ var t = (0, react_i18next_1.useTranslation)().t;
24
+ return ((0, jsx_runtime_1.jsxs)(AddressCard_styled_1.AddressCardStyled, __assign({ htmlFor: props.id, checked: props.checked, "$minHeight": props.minHeight }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "head" }, { children: [(0, jsx_runtime_1.jsx)(RadioButton_1.default, { id: props.id, onChange: props.onChange, checked: props.checked, isWrapText: false, layout: "basic", size: "small", label: props.title, name: props.name, value: props.value, disabled: props.disabled }), (props === null || props === void 0 ? void 0 : props.isShowEditBtn) && ((0, jsx_runtime_1.jsx)("div", __assign({ className: "editBtn" }, { children: (0, jsx_runtime_1.jsx)(TextLink_1.default, __assign({ onClick: props.handleUpdate }, { children: t("edit") })) })))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: "description" }, { children: props.description }))] })));
23
25
  };
24
26
  AddressCard.defaultProps = {
25
27
  isShowEditBtn: true,
@@ -5,5 +5,6 @@
5
5
  "or": "or",
6
6
  "next step": "Next step",
7
7
  "discount": "Discount",
8
- "copied": "Copied"
8
+ "copied": "Copied",
9
+ "edit": "Edit"
9
10
  }
@@ -5,5 +5,6 @@
5
5
  "or": "veya",
6
6
  "next step": "Sonraki adım",
7
7
  "discount": "İndirimli",
8
- "copied": "Kopyalandı"
8
+ "copied": "Kopyalandı",
9
+ "edit": "Düzenle"
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "krl-alfred",
3
- "version": "1.76.34",
3
+ "version": "1.76.35",
4
4
  "files": [
5
5
  "dist"
6
6
  ],