@driveflux/ui 1.0.9 → 1.0.12

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.
@@ -1,6 +1,11 @@
1
+  WARN  Issue while reading "/Users/flux/Projects/flux-master/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
1
2
 
2
- > @driveflux/ui@1.0.9 build /Users/flux/Projects/flux/shared/ui
3
+ > @driveflux/ui@1.0.12 build /Users/flux/Projects/flux-master/shared/ui
3
4
  > fab
4
5
 
5
- Successfully compiled: 19 files with swc (477.85ms)
6
- Successfully compiled: 19 files with swc (478.13ms)
6
+  WARN  Issue while reading "/Users/flux/Projects/flux-master/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
7
+  WARN  Issue while reading "/Users/flux/Projects/flux-master/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
8
+  WARN  Issue while reading "/Users/flux/Projects/flux-master/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
9
+  WARN  Issue while reading "/Users/flux/Projects/flux-master/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
10
+ Successfully compiled: 19 files with swc (319.86ms)
11
+ Successfully compiled: 19 files with swc (326.31ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @driveflux/ui
2
2
 
3
+ ## 1.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Minor updates on build
8
+ - Updated dependencies
9
+ - @driveflux/singleton@1.0.4
10
+ - @driveflux/icons@1.0.9
11
+
12
+ ## 1.0.11
13
+
14
+ ### Patch Changes
15
+
16
+ - Upgraded all packages
17
+ - Updated dependencies
18
+ - @driveflux/singleton@1.0.3
19
+ - @driveflux/icons@1.0.8
20
+
21
+ ## 1.0.10
22
+
23
+ ### Patch Changes
24
+
25
+ - Updates
26
+
3
27
  ## 1.0.9
4
28
 
5
29
  ### Patch Changes
@@ -142,7 +142,7 @@ var EnhancedModalFooter = function(_param) {
142
142
  }
143
143
  }, cancelProps), {
144
144
  fontSize: '10px',
145
- fontWeight: 'bold',
145
+ fontWeight: '700',
146
146
  letterSpacing: '3px',
147
147
  children: (cancelProps === null || cancelProps === void 0 ? void 0 : cancelProps.children) ? cancelProps.children : _translations.translations.cancel
148
148
  })),
@@ -150,7 +150,7 @@ var EnhancedModalFooter = function(_param) {
150
150
  w: 'full'
151
151
  }, okProps), {
152
152
  fontSize: '10px',
153
- fontWeight: 'bold',
153
+ fontWeight: '700',
154
154
  letterSpacing: '3px',
155
155
  children: (okProps === null || okProps === void 0 ? void 0 : okProps.children) ? okProps.children : _translations.translations.confirm
156
156
  }))
@@ -31,6 +31,10 @@ _export(exports, {
31
31
  return accessStringOrNull;
32
32
  }
33
33
  });
34
+ function _type_of(obj) {
35
+ "@swc/helpers - typeof";
36
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
37
+ }
34
38
  var accessSelf = function(s, data, defaultValue) {
35
39
  if (!s) {
36
40
  return defaultValue;
@@ -57,5 +61,5 @@ var accessFunction = function(f, data, defaultFunction) {
57
61
  if (!f) {
58
62
  return defaultFunction;
59
63
  }
60
- return typeof f === 'object' && 'generateFunction' in f ? f.generateFunction(data) : f;
64
+ return (typeof f === "undefined" ? "undefined" : _type_of(f)) === 'object' && 'generateFunction' in f ? f.generateFunction(data) : f;
61
65
  };
@@ -132,7 +132,7 @@ var EnhancedModalFooter = function(_param) {
132
132
  }
133
133
  }, cancelProps), {
134
134
  fontSize: '10px',
135
- fontWeight: 'bold',
135
+ fontWeight: '700',
136
136
  letterSpacing: '3px',
137
137
  children: (cancelProps === null || cancelProps === void 0 ? void 0 : cancelProps.children) ? cancelProps.children : translations.cancel
138
138
  })),
@@ -140,7 +140,7 @@ var EnhancedModalFooter = function(_param) {
140
140
  w: 'full'
141
141
  }, okProps), {
142
142
  fontSize: '10px',
143
- fontWeight: 'bold',
143
+ fontWeight: '700',
144
144
  letterSpacing: '3px',
145
145
  children: (okProps === null || okProps === void 0 ? void 0 : okProps.children) ? okProps.children : translations.confirm
146
146
  }))
@@ -1,3 +1,7 @@
1
+ function _type_of(obj) {
2
+ "@swc/helpers - typeof";
3
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
4
+ }
1
5
  export var accessSelf = function(s, data, defaultValue) {
2
6
  if (!s) {
3
7
  return defaultValue;
@@ -24,5 +28,5 @@ export var accessFunction = function(f, data, defaultFunction) {
24
28
  if (!f) {
25
29
  return defaultFunction;
26
30
  }
27
- return typeof f === 'object' && 'generateFunction' in f ? f.generateFunction(data) : f;
31
+ return (typeof f === "undefined" ? "undefined" : _type_of(f)) === 'object' && 'generateFunction' in f ? f.generateFunction(data) : f;
28
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/ui",
3
- "version": "1.0.9",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -39,29 +39,29 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@chakra-ui/react": "^2.8.2",
42
- "@driveflux/icons": "1.0.7",
43
- "@driveflux/singleton": "1.0.2",
42
+ "@driveflux/icons": "1.0.9",
43
+ "@driveflux/singleton": "1.0.4",
44
44
  "lodash": "^4.17.21"
45
45
  },
46
46
  "peerDependencies": {
47
- "next": "14.2.3",
47
+ "next": "14.2.4",
48
48
  "react": "18.3.1",
49
49
  "swr": "^2.2.5"
50
50
  },
51
51
  "devDependencies": {
52
- "@driveflux/eslint-config": "1.0.5",
53
- "@driveflux/fab": "1.0.6",
54
- "@driveflux/problem": "4.0.2",
55
- "@driveflux/result": "4.0.5",
52
+ "@driveflux/eslint-config": "1.0.7",
53
+ "@driveflux/fab": "1.0.8",
54
+ "@driveflux/problem": "4.0.3",
55
+ "@driveflux/result": "4.0.7",
56
56
  "@driveflux/tsconfig": "1.0.2",
57
57
  "@lingui/macro": "^4.10.0",
58
58
  "@swc/cli": "^0.3.12",
59
- "@swc/core": "1.4.17",
60
- "@types/lodash": "^4.17.0",
61
- "@types/node": "^20.12.8",
59
+ "@swc/core": "1.6.3",
60
+ "@types/lodash": "^4.17.5",
61
+ "@types/node": "^20.14.5",
62
62
  "@types/react": "^18.3.1",
63
63
  "del-cli": "^5.1.0",
64
- "eslint": "9.1.1",
64
+ "eslint": "9.5.0",
65
65
  "type-fest": "^4.18.1",
66
66
  "typescript": "^5.4.5"
67
67
  },
@@ -35,10 +35,10 @@ const EnhancedModalFooter: FC<Props> = ({ sticky, cancelProps, okProps, children
35
35
  </Stack>
36
36
  ) : (
37
37
  <Stack direction={{ base: 'column-reverse', md: 'row' }} spacing={'24px'}>
38
- <Button w={'full'} variant={'outline'} onClick={() => close()} {...cancelProps} fontSize={'10px'} fontWeight={'bold'} letterSpacing={'3px'}>
38
+ <Button w={'full'} variant={'outline'} onClick={() => close()} {...cancelProps} fontSize={'10px'} fontWeight={'700'} letterSpacing={'3px'}>
39
39
  {cancelProps?.children ? cancelProps.children : translations.cancel}
40
40
  </Button>
41
- <Button w={'full'} {...okProps} fontSize={'10px'} fontWeight={'bold'} letterSpacing={'3px'}>
41
+ <Button w={'full'} {...okProps} fontSize={'10px'} fontWeight={'700'} letterSpacing={'3px'}>
42
42
  {okProps?.children ? okProps.children : translations.confirm}
43
43
  </Button>
44
44
  </Stack>