@enso-ui/ui 7.0.1 → 7.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enso-ui/ui",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Laravel Enso UI",
5
5
  "main": "bulma/index.js",
6
6
  "scripts": {
@@ -1,21 +0,0 @@
1
- import Enum from '@enso-ui/enums';
2
- import { useStore } from '../../core/services/pinia';
3
-
4
- const translate = key => {
5
- const localisation = useStore('localisation');
6
-
7
- return localisation?.ready
8
- ? localisation.translate(key)
9
- : key;
10
- };
11
-
12
- const bootEnums = (enums, i18n = translate) => {
13
- const obj = {};
14
-
15
- Object.keys(enums)
16
- .forEach(enumName => (obj[enumName] = new Enum(enums[enumName], i18n)));
17
-
18
- return obj;
19
- };
20
-
21
- export default bootEnums;