@maz-ui/utils 4.2.1 → 4.3.0-rc.0

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.
@@ -27,6 +27,7 @@ import { TextareaAutogrow } from "./TextareaAutogrow.js";
27
27
  import { throttle } from "./throttle.js";
28
28
  import { throttleId } from "./throttleId.js";
29
29
  import { truthyFilter } from "./truthyFilter.js";
30
+ import { upperFirst } from "./upperFirst.js";
30
31
  import { UserVisibility } from "./userVisibility.js";
31
32
  export {
32
33
  IdleTimeout,
@@ -58,5 +59,6 @@ export {
58
59
  snakeCase,
59
60
  throttle,
60
61
  throttleId,
61
- truthyFilter
62
+ truthyFilter,
63
+ upperFirst
62
64
  };
@@ -0,0 +1,6 @@
1
+ function upperFirst(value) {
2
+ return value.charAt(0).toUpperCase() + value.slice(1);
3
+ }
4
+ export {
5
+ upperFirst
6
+ };
package/dist/index.js CHANGED
@@ -27,6 +27,7 @@ import { TextareaAutogrow } from "./helpers/TextareaAutogrow.js";
27
27
  import { throttle } from "./helpers/throttle.js";
28
28
  import { throttleId } from "./helpers/throttleId.js";
29
29
  import { truthyFilter } from "./helpers/truthyFilter.js";
30
+ import { upperFirst } from "./helpers/upperFirst.js";
30
31
  import { UserVisibility } from "./helpers/userVisibility.js";
31
32
  export {
32
33
  IdleTimeout,
@@ -58,5 +59,6 @@ export {
58
59
  snakeCase,
59
60
  throttle,
60
61
  throttleId,
61
- truthyFilter
62
+ truthyFilter,
63
+ upperFirst
62
64
  };
@@ -27,4 +27,5 @@ export * from './TextareaAutogrow';
27
27
  export * from './throttle';
28
28
  export * from './throttleId';
29
29
  export * from './truthyFilter';
30
+ export * from './upperFirst';
30
31
  export * from './userVisibility';
@@ -0,0 +1 @@
1
+ export declare function upperFirst(value: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/utils",
3
3
  "type": "module",
4
- "version": "4.2.1",
4
+ "version": "4.3.0-rc.0",
5
5
  "description": "Utils of maz-ui for JavaScript/TypeScript users",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",