tycho-components 0.0.10-SNAPSHOT-5 → 0.0.10-SNAPSHOT-7

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.
@@ -93,5 +93,5 @@ export default function AppEditable({ translation, fields, item, save, group, cl
93
93
  };
94
94
  return (_jsx(_Fragment, { children: fields.map((field, idx) => (_jsxs("div", { className: `editable-container ${className || ''}`, children: [_jsxs("div", { className: "title", children: [_jsxs("h6", { children: [field.title
95
95
  ? field.title
96
- : t(`${translation}:${group || ''}.field.${field.name}`), field.required && _jsx("span", { children: "*" })] }), field.tooltip && (_jsx(FontAwesomeIcon, { icon: faQuestionCircle, className: "info", title: field.tooltip }))] }), renderField(field)] }, idx))) }));
96
+ : t(`${translation}:${group || ''}.field.${field.name}`), field.required && _jsx("span", { children: "*" })] }), field.tooltip && (_jsx(FontAwesomeIcon, { icon: faQuestionCircle, className: "info", title: t(`${translation}:${group || ''}.tooltip.${field.name}`) }))] }), renderField(field)] }, idx))) }));
97
97
  }
@@ -7,7 +7,7 @@ export type FormField = {
7
7
  required?: boolean;
8
8
  disabled?: boolean;
9
9
  options?: FormFieldOption[];
10
- tooltip?: string;
10
+ tooltip?: boolean;
11
11
  default?: string | boolean | number;
12
12
  role?: string;
13
13
  fn?: (value: any) => string;
@@ -12,7 +12,7 @@ export const PARTICIPANT_FIELDS = [
12
12
  name: 'color',
13
13
  type: 'color',
14
14
  required: false,
15
- tooltip: 'field.color.tooltip',
15
+ tooltip: true,
16
16
  },
17
17
  ];
18
18
  export const CHAT_FIELDS = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.0.10-SNAPSHOT-5",
4
+ "version": "0.0.10-SNAPSHOT-7",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -45,7 +45,7 @@
45
45
  "react-dom": ">=17 <19",
46
46
  "react-hook-form": "^7.45.2",
47
47
  "react-i18next": "^13.0.2",
48
- "tycho-storybook": "0.1.2",
48
+ "tycho-storybook": "0.1.3",
49
49
  "yup": "^1.2.0"
50
50
  },
51
51
  "devDependencies": {