@sikka/hawa 0.0.1 → 0.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.
Files changed (104) hide show
  1. package/README.md +48 -19
  2. package/dist/index.es.js +37 -0
  3. package/dist/index.js +37 -0
  4. package/package.json +1 -1
  5. package/rollup.config.js +3 -13
  6. package/src/components/Hawa/AdaptiveButton/{AdaptiveButton.jsx → AdaptiveButton.js} +57 -64
  7. package/src/components/Hawa/AdaptiveButton/index.js +1 -1
  8. package/src/components/Hawa/AuthForms/NewPasswordForm.js +23 -0
  9. package/src/components/Hawa/AuthForms/ResetPasswordForm.js +21 -0
  10. package/src/components/Hawa/AuthForms/SignInForm.js +25 -0
  11. package/src/components/Hawa/AuthForms/SignUpForm.js +26 -0
  12. package/src/components/Hawa/AuthForms/index.js +4 -0
  13. package/src/components/Hawa/AuthForms/viaFacebook.js +0 -0
  14. package/src/components/Hawa/AuthForms/viaGithub.js +0 -0
  15. package/src/components/Hawa/AuthForms/viaGoogle.js +0 -0
  16. package/src/components/Hawa/AuthForms/viaTwitter.js +0 -0
  17. package/src/components/Hawa/AutoCompleteField/AutoCompleteField.jsx +7 -7
  18. package/src/components/Hawa/AutoCompleteField/index.js +1 -1
  19. package/src/components/Hawa/Box/Box.js +18 -0
  20. package/src/components/Hawa/Box/index.js +1 -0
  21. package/src/components/Hawa/Checkbox/Checkbox.jsx +7 -7
  22. package/src/components/Hawa/DragDropImages/DragDropImages.jsx +13 -13
  23. package/src/components/Hawa/DragDropImages/index.js +1 -1
  24. package/src/components/Hawa/HawaProvider/HawaProvider.js +4 -4
  25. package/src/components/Hawa/InputLabel/StyledInputLabel.js +15 -0
  26. package/src/components/Hawa/InputLabel/index.js +1 -1
  27. package/src/components/Hawa/RadioBox/RadioBox.jsx +1 -1
  28. package/src/components/Hawa/RadioBox/index.js +1 -1
  29. package/src/components/Hawa/RadioSelector/RadioSelector.jsx +5 -5
  30. package/src/components/Hawa/RadioSelector/index.js +1 -1
  31. package/src/components/Hawa/Row/Row.jsx +20 -22
  32. package/src/components/Hawa/SelectedField/SelectedField.jsx +1 -1
  33. package/src/components/Hawa/SelectedField/index.js +1 -1
  34. package/src/components/Hawa/StyledAlert/StyledAlert.js +15 -0
  35. package/src/components/Hawa/StyledAlert/index.js +1 -0
  36. package/src/components/Hawa/StyledTooltip/StyledTooltip.js +46 -0
  37. package/src/components/Hawa/StyledTooltip/index.js +1 -0
  38. package/src/components/Hawa/TabPanel/TabPanel.jsx +1 -2
  39. package/src/components/Hawa/TextArea/TextArea.jsx +11 -12
  40. package/src/components/Hawa/TextField/{TextField.jsx → TextField.js} +23 -10
  41. package/src/components/Hawa/TextField/index.js +1 -1
  42. package/src/components/Hawa/index.js +0 -1
  43. package/src/stories/AdaptiveButton.stories.js +3 -7
  44. package/src/stories/Alert.stories.js +48 -0
  45. package/src/stories/AuthForm.stories.js +76 -0
  46. package/src/stories/Box.stories.js +45 -0
  47. package/src/stories/CheckBox.stories.js +2 -1
  48. package/src/stories/RadioSelector.stories.js +2 -2
  49. package/src/stories/TextField.stories.js +17 -26
  50. package/src/styles.css +0 -3
  51. package/src/util.js +20 -0
  52. package/storybook-static/0.12392f0b.iframe.bundle.js +1 -0
  53. package/storybook-static/0.55b012452099ace2dca6.manager.bundle.js +1 -0
  54. package/storybook-static/1.0f38715c61c7c3cd11db.manager.bundle.js +1 -0
  55. package/storybook-static/1.7c0dc86d.iframe.bundle.js +3 -0
  56. package/storybook-static/{4.f6eb74f4.iframe.bundle.js.LICENSE.txt → 1.7c0dc86d.iframe.bundle.js.LICENSE.txt} +8 -8
  57. package/storybook-static/1.7c0dc86d.iframe.bundle.js.map +1 -0
  58. package/storybook-static/10.9f2923a7561bc20fffdb.manager.bundle.js +1 -0
  59. package/storybook-static/{11.49c687eaa6261f8b7be2.manager.bundle.js → 11.f4e922583ae35da460f3.manager.bundle.js} +2 -2
  60. package/storybook-static/{11.49c687eaa6261f8b7be2.manager.bundle.js.LICENSE.txt → 11.f4e922583ae35da460f3.manager.bundle.js.LICENSE.txt} +12 -12
  61. package/storybook-static/{12.c9538ed3766c96f289e7.manager.bundle.js → 12.1415460941f0bdcb8fa8.manager.bundle.js} +1 -1
  62. package/storybook-static/2.ee357266.iframe.bundle.js +1 -0
  63. package/storybook-static/3.592ce28f.iframe.bundle.js +1 -0
  64. package/storybook-static/{5.fa71488e730c5c7f885f.manager.bundle.js → 5.f459d151315e6780c20f.manager.bundle.js} +2 -2
  65. package/storybook-static/{5.fa71488e730c5c7f885f.manager.bundle.js.LICENSE.txt → 5.f459d151315e6780c20f.manager.bundle.js.LICENSE.txt} +8 -8
  66. package/storybook-static/6.3bd64d820f3745f262ff.manager.bundle.js +1 -0
  67. package/storybook-static/{7.b34baecbd082bc7b188d.manager.bundle.js → 7.3d04765dbf3f1dcd706c.manager.bundle.js} +1 -1
  68. package/storybook-static/7.af56919f.iframe.bundle.js +1 -0
  69. package/storybook-static/8.8e2132ec.iframe.bundle.js +3 -0
  70. package/storybook-static/{6.fbc7b90b.iframe.bundle.js.LICENSE.txt → 8.8e2132ec.iframe.bundle.js.LICENSE.txt} +12 -12
  71. package/storybook-static/8.8e2132ec.iframe.bundle.js.map +1 -0
  72. package/storybook-static/{8.15577edffecf900a8de2.manager.bundle.js → 8.b541eadfcb9164835dfc.manager.bundle.js} +1 -1
  73. package/storybook-static/9.109ea555.iframe.bundle.js +1 -0
  74. package/storybook-static/9.411ac8e451bbb10926c7.manager.bundle.js +1 -0
  75. package/storybook-static/iframe.html +348 -138
  76. package/storybook-static/index.html +51 -47
  77. package/storybook-static/main.78b7d418.iframe.bundle.js +1 -0
  78. package/storybook-static/main.9bb085ebb152f5b19a2a.manager.bundle.js +1 -0
  79. package/storybook-static/{runtime~main.909d038f912f063e8837.manager.bundle.js → runtime~main.9468098d21070636985f.manager.bundle.js} +1 -1
  80. package/storybook-static/runtime~main.ffc8677e.iframe.bundle.js +1 -0
  81. package/storybook-static/vendors~main.4aa936b1.iframe.bundle.js +3 -0
  82. package/storybook-static/{vendors~main.73411ca9.iframe.bundle.js.LICENSE.txt → vendors~main.4aa936b1.iframe.bundle.js.LICENSE.txt} +148 -148
  83. package/storybook-static/vendors~main.4aa936b1.iframe.bundle.js.map +1 -0
  84. package/storybook-static/vendors~main.a935f15a2179a6eff5fd.manager.bundle.js +2 -0
  85. package/storybook-static/{vendors~main.d3455eed64b243c89325.manager.bundle.js.LICENSE.txt → vendors~main.a935f15a2179a6eff5fd.manager.bundle.js.LICENSE.txt} +110 -88
  86. package/src/components/Hawa/InputLabel/StyledInputLabel.jsx +0 -36
  87. package/storybook-static/0.86a7edfd.iframe.bundle.js +0 -1
  88. package/storybook-static/0.b73eaee9a88f178d62ed.manager.bundle.js +0 -1
  89. package/storybook-static/1.f296d183a17268696d73.manager.bundle.js +0 -1
  90. package/storybook-static/10.9998ba67d65d81d20896.manager.bundle.js +0 -1
  91. package/storybook-static/4.f6eb74f4.iframe.bundle.js +0 -3
  92. package/storybook-static/4.f6eb74f4.iframe.bundle.js.map +0 -1
  93. package/storybook-static/5.ec6f37af.iframe.bundle.js +0 -1
  94. package/storybook-static/6.8096ae4aadde0743697b.manager.bundle.js +0 -1
  95. package/storybook-static/6.fbc7b90b.iframe.bundle.js +0 -3
  96. package/storybook-static/6.fbc7b90b.iframe.bundle.js.map +0 -1
  97. package/storybook-static/7.a806a38f.iframe.bundle.js +0 -1
  98. package/storybook-static/9.d7d85aa0a49a98f17218.manager.bundle.js +0 -1
  99. package/storybook-static/main.355ffc59.iframe.bundle.js +0 -1
  100. package/storybook-static/main.ce406c7e93b98325390e.manager.bundle.js +0 -1
  101. package/storybook-static/runtime~main.3d81579b.iframe.bundle.js +0 -1
  102. package/storybook-static/vendors~main.73411ca9.iframe.bundle.js +0 -3
  103. package/storybook-static/vendors~main.73411ca9.iframe.bundle.js.map +0 -1
  104. package/storybook-static/vendors~main.d3455eed64b243c89325.manager.bundle.js +0 -2
package/README.md CHANGED
@@ -1,48 +1,71 @@
1
- <!-- ![Hawa | هواء](https://xakher-images.s3.ap-southeast-1.amazonaws.com/hawa-logo.png) -->
2
-
3
1
  <p align="center">
4
2
  <img src="https://xakher-images.s3.ap-southeast-1.amazonaws.com/hawa-logo.png" alt="Hawa | هواء" />
5
3
  </p>
6
4
 
7
-
8
-
9
5
  # Hawa | هواء
10
6
 
11
7
  [![NPM](https://img.shields.io/npm/v/@sikka/hawa.svg)](https://www.npmjs.com/package/@sikka/hawa)
12
8
  [![NPM](https://img.shields.io/npm/dt/@sikka/hawa.svg)](https://www.npmjs.com/package/@sikka/hawa)
13
9
  [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
14
10
 
15
- > Opinionated UI Kit for web apps and websites.
11
+ > Opinionated UI Kit for web apps and websites.
16
12
 
17
13
  # Concept
18
14
 
19
- # Features
20
- - [ ] Change borders and margin, padding in one place
21
- - [ ] Drag and drop tool to create a layout of boxes
15
+ ### Components
16
+
17
+ The smallest elements of this UI kit are the typical low-level components. Examples of components:
18
+
19
+ - InputField
20
+ - Checkboxes
21
+ - Modal
22
+ - Drag-Drop Image(s)
23
+ - Button
24
+ - etc ...
22
25
 
26
+ ### Blocks
23
27
 
24
- ## Boxes
25
- Most components will live inside **boxes**. Windows can show anything. It can show a video, image, form, iFrame, etc. Boxes make out the layout of your website or application. Boxes can be arranged in different layouts
28
+ Blocks are commonly used collection of components. Examples of blocks:
29
+
30
+ - Sign-In
31
+ - Sign-Up
32
+ - Reset Password
33
+ - SaaS Pricing Plans
34
+ - Payment Methods Block (to list saved methods)
35
+ - Account Block (to edit account info)
36
+ - etc ...
37
+
38
+ ### Boxes
39
+
40
+ Most components and blocks will live inside **boxes**. Windows can show anything. It can show a video, image, form, iFrame, etc. Boxes make out the layout of your website or application. Boxes can be arranged in different layouts
26
41
 
27
42
  <p align="center">
28
43
  <img src="https://user-images.githubusercontent.com/46135573/143972102-0c104239-b8f6-4a7b-9aad-54f6d91a8906.png" alt="layout-types" />
29
44
  </p>
30
45
 
31
46
  Points
47
+
32
48
  - The content inside each box can be scrollable (vertical/horizontal/Both) with one prop
33
49
  - you can control the spacing of the content inside each box with one prop
34
50
  - you can also control the spacing of all the box in the layout
35
51
  - some boxes can float (animation of open and close modal)
36
52
  - some boxes can go full screen (animation to transition)
37
53
 
54
+ ### Utilities
38
55
 
39
- ## Install
56
+ [x] **getTextColor(bgColor)**
57
+ determine if text should be black or white based on the contrast of `bgColor`
40
58
 
41
- ```bash
59
+ [ ] **darkenColor(color,percent)**
60
+ darken a given `color` by a given `percent`
42
61
 
43
- npm install --save @sikka/hawa
62
+ [ ] **lightenColor(color,percent)**
63
+ lighten a given `color` by a given `percent`
44
64
 
45
- ```
65
+ # Features
66
+
67
+ - [ ] Change borders and margin, padding in one place
68
+ - [ ] Drag and drop tool to create a layout of boxes
46
69
 
47
70
  ## Components
48
71
 
@@ -54,13 +77,21 @@ npm install --save @sikka/hawa
54
77
  - [ ] PasswordField
55
78
  - [ ] Autocomplete
56
79
  - [ ] Tabs
80
+ - [ ] Alerts
81
+ - [ ] Badges
82
+
83
+ ## Install
84
+
85
+ ```bash
86
+
87
+ npm install --save @sikka/hawa
88
+
89
+ ```
57
90
 
58
91
  ## Usage
59
92
 
60
93
  ```jsx
61
-
62
94
  //example coming soon inshallah
63
-
64
95
  ```
65
96
 
66
97
  ## Contributing
@@ -86,16 +117,14 @@ npm install
86
117
  npm run storybook
87
118
  ```
88
119
 
89
- - Edit **Hawa/src/stories/Hawa.stories.js_** file
120
+ - Edit **Hawa/src/stories/Hawa.stories.js\_** file
90
121
 
91
122
  - Add your custom testing component in **Hawa.stories.js** file
92
123
 
93
124
  - Or you can preview without running development server. [See Preview](https://sikka-software.github.io/Hawa/storybook-static/)
94
125
 
95
126
  ```jsx
96
-
97
127
  //example coming soon inshallah
98
-
99
128
  ```
100
129
 
101
130
  ## Deployment