meticulous-ui 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/README.md +47 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -20,14 +20,19 @@ yarn add meticulous-ui
20
20
 
21
21
  ```jsx
22
22
  import { useState } from 'react';
23
+
23
24
  import Pagination from 'meticulous-ui/components/Pagination';
25
+ import ChevronLeft from 'meticulous-ui/components/Icons/ChevronLeft';
26
+ import blue from 'meticulous-ui/colors/blue';
27
+ import capFirstLetter from 'meticulous-ui/utils/capFirstLetter';
24
28
 
25
29
  function App() {
26
30
  const [pageNumber, setPageNumber] = useState(1);
27
31
 
28
32
  return (
29
33
  <div>
30
- <h2>Example with Pagination</h2>
34
+ <h2>{capFirstLetter('example with pagination')}</h2> // returns: Example with pagination
35
+ <ChevronLeft size={10} color={blue.m400} />
31
36
  <Pagination totalPages={10} pageNumber={pageNumber} setPageNumber={setPageNumber} />
32
37
  </div>
33
38
  );
@@ -45,6 +50,47 @@ export default App;
45
50
  | `ChevronLeft` | Left navigation icon |
46
51
  | `ChevronRight` | Right navigation icon |
47
52
 
53
+ ## 📦 Tokens
54
+
55
+ | Types | Description |
56
+ | -------- | ------------------------------- |
57
+ | `Colors` | At least 10 shades of 23 colors |
58
+
59
+ | Colors | Shades |
60
+ | ------------ | --------------------------------------------------------------------------------- |
61
+ | `amber` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
62
+ | `black` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900 |
63
+ | `blue` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
64
+ | `blueGray` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900 |
65
+ | `brown` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900 |
66
+ | `cider` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900 |
67
+ | `cyan` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
68
+ | `deepOrange` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
69
+ | `deepPurple` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
70
+ | `green` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
71
+ | `grey` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900 |
72
+ | `indigo` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
73
+ | `lightBlue` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
74
+ | `lightGreen` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
75
+ | `lime` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
76
+ | `orange` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
77
+ | `pink` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
78
+ | `purple` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
79
+ | `red` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
80
+ | `teal` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
81
+ | `violet` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
82
+ | `white` | #FFFFFF |
83
+ | `yellow` | m50, m100, m200, m300, m400, m500, m600, m700, m800, m900, a100, a200, a400, a700 |
84
+
85
+ ## 📦 Utils
86
+
87
+ | Functions | Description |
88
+ | ----------------- | -------------------------------------------------------------------------------------------------------------- |
89
+ | `capFirstLetter` | Takes a string and returns with first letter cpitalised |
90
+ | `compose` | Performs right-to-left function composition using transforming function |
91
+ | `hasEqualProps` | Takes two args: Component’s previous props & its new props; returns true if all-non functional props are equal |
92
+ | `isNonEmptyArray` | Takes an array & returns true if is not empty |
93
+
48
94
  ## Demo
49
95
 
50
96
  <a href="https://xe3110.github.io/meticulous-ui/" target="_blank">https://xe3110.github.io/meticulous-ui/</a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "repository": {