@sikka/hawa 0.0.281 → 0.0.284
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/.github/workflows/hawa-actions.yml +51 -41
- package/.github/workflows/hawa-publish-push.yml +19 -21
- package/dist/styles.css +9 -3
- package/es/index.es.js +2 -2
- package/es/stories/ManualStories/Overview.stories.d.ts +20 -0
- package/lib/index.js +2 -2
- package/lib/stories/ManualStories/Overview.stories.d.ts +20 -0
- package/package.json +2 -1
- package/src/elements/HawaPhoneInput.tsx +7 -5
- package/src/elements/HawaSelect.tsx +7 -5
- package/src/elements/HawaSnackbar.tsx +2 -1
- package/src/styles.css +9 -3
- package/src/translations/ar.json +22 -0
- package/src/translations/en.json +22 -0
- package/src/translations/i18n.js +15 -0
|
@@ -2,29 +2,29 @@ name: Build, Deploy Storybook and Publish to NPM
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [
|
|
5
|
+
branches: [gogo]
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
|
-
# setup_build:
|
|
9
|
-
# runs-on: ubuntu-latest
|
|
10
|
-
# steps:
|
|
11
|
-
# - name: Checkout repository
|
|
12
|
-
# uses: actions/checkout@v2
|
|
13
|
-
|
|
14
|
-
# - name: Setup Node.js v16
|
|
15
|
-
# uses: actions/setup-node@v2
|
|
16
|
-
# with:
|
|
17
|
-
# node-version: 16
|
|
18
|
-
|
|
19
|
-
# - name: Install dependencies
|
|
20
|
-
# run: |
|
|
21
|
-
# if [ -e 'package-lock.json' ]; then
|
|
22
|
-
# npm ci
|
|
23
|
-
# else
|
|
24
|
-
# npm install
|
|
25
|
-
# fi
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
# setup_build:
|
|
9
|
+
# runs-on: ubuntu-latest
|
|
10
|
+
# steps:
|
|
11
|
+
# - name: Checkout repository
|
|
12
|
+
# uses: actions/checkout@v2
|
|
13
|
+
|
|
14
|
+
# - name: Setup Node.js v16
|
|
15
|
+
# uses: actions/setup-node@v2
|
|
16
|
+
# with:
|
|
17
|
+
# node-version: 16
|
|
18
|
+
|
|
19
|
+
# - name: Install dependencies
|
|
20
|
+
# run: |
|
|
21
|
+
# if [ -e 'package-lock.json' ]; then
|
|
22
|
+
# npm ci
|
|
23
|
+
# else
|
|
24
|
+
# npm install
|
|
25
|
+
# fi
|
|
26
|
+
|
|
27
|
+
build_deploy_storybook:
|
|
28
28
|
# needs: setup_build
|
|
29
29
|
runs-on: ubuntu-latest
|
|
30
30
|
steps:
|
|
@@ -47,19 +47,29 @@ jobs:
|
|
|
47
47
|
- name: Build Storybook
|
|
48
48
|
run: npm run build-storybook
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
runs-on: ubuntu-latest
|
|
53
|
-
steps:
|
|
54
|
-
- name: Checkout repository
|
|
55
|
-
uses: actions/checkout@v2
|
|
56
|
-
|
|
57
|
-
- name: Deploy to GitHub Pages
|
|
58
|
-
uses: JamesIves/github-pages-deploy-action@v4
|
|
50
|
+
- name: Deploy Storybook to GitHub Pages
|
|
51
|
+
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.0
|
|
59
52
|
with:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
# Specifies if this action should checkout the code
|
|
54
|
+
checkout: # optional, default is true
|
|
55
|
+
# Specifies the path of the static assets after building
|
|
56
|
+
# optional, default is dist/storybook
|
|
57
|
+
path: docs
|
|
58
|
+
# Specifies the command to run after npm ci for the build
|
|
59
|
+
|
|
60
|
+
# deploy_storybook:
|
|
61
|
+
# needs: build_storybook
|
|
62
|
+
# runs-on: ubuntu-latest
|
|
63
|
+
# steps:
|
|
64
|
+
# - name: Checkout repository
|
|
65
|
+
# uses: actions/checkout@v2
|
|
66
|
+
|
|
67
|
+
# - name: Deploy to GitHub Pages
|
|
68
|
+
# uses: JamesIves/github-pages-deploy-action@v4
|
|
69
|
+
# with:
|
|
70
|
+
# branch: gh-pages
|
|
71
|
+
# folder: docs
|
|
72
|
+
# token: ${{ secrets.GH_TOKEN }}
|
|
63
73
|
|
|
64
74
|
npm_publish:
|
|
65
75
|
# needs: setup_build
|
|
@@ -77,16 +87,16 @@ jobs:
|
|
|
77
87
|
- name: Setup Node.js v16
|
|
78
88
|
uses: actions/setup-node@v2
|
|
79
89
|
with:
|
|
80
|
-
|
|
81
|
-
|
|
90
|
+
node-version: 16
|
|
91
|
+
|
|
82
92
|
- name: Install dependencies
|
|
83
93
|
run: |
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
if [ -e 'package-lock.json' ]; then
|
|
95
|
+
npm ci
|
|
96
|
+
else
|
|
97
|
+
npm install
|
|
98
|
+
fi
|
|
99
|
+
|
|
90
100
|
- name: Build Library
|
|
91
101
|
run: npm run build-lib
|
|
92
102
|
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
name: Hawa Build, Deploy, and Publish on Push
|
|
5
5
|
|
|
6
6
|
on:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
release:
|
|
10
|
-
types: [created]
|
|
7
|
+
push:
|
|
8
|
+
branches: [main]
|
|
11
9
|
|
|
12
10
|
jobs:
|
|
13
11
|
build:
|
|
@@ -28,23 +26,23 @@ jobs:
|
|
|
28
26
|
env:
|
|
29
27
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
30
28
|
|
|
31
|
-
# Deployment job
|
|
32
|
-
deploy:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
29
|
+
# # Deployment job
|
|
30
|
+
# deploy:
|
|
31
|
+
# runs-on: ubuntu-latest
|
|
32
|
+
# environment:
|
|
33
|
+
# name: github-pages
|
|
34
|
+
# url: ${{ steps.deployment.outputs.page_url }}
|
|
35
|
+
# needs: build
|
|
36
|
+
# steps:
|
|
37
|
+
# - name: Deploy to GitHub Pages
|
|
38
|
+
# id: deployment
|
|
39
|
+
# uses: actions/deploy-pages@v2
|
|
40
|
+
# # with:
|
|
41
|
+
# # branch: gh-pages
|
|
42
|
+
# # folder: docs
|
|
43
|
+
# # - name: Deploy to GitHub Pages
|
|
44
|
+
# # id: deployment
|
|
45
|
+
# # uses: actions/deploy-pages@v2
|
|
48
46
|
|
|
49
47
|
# Publishing to NPM
|
|
50
48
|
publish:
|
package/dist/styles.css
CHANGED
|
@@ -1213,9 +1213,6 @@ video {
|
|
|
1213
1213
|
.w-9 {
|
|
1214
1214
|
width: 2.25rem;
|
|
1215
1215
|
}
|
|
1216
|
-
.w-96 {
|
|
1217
|
-
width: 24rem;
|
|
1218
|
-
}
|
|
1219
1216
|
.w-\[12px\] {
|
|
1220
1217
|
width: 12px;
|
|
1221
1218
|
}
|
|
@@ -2005,6 +2002,9 @@ video {
|
|
|
2005
2002
|
.p-2\.5 {
|
|
2006
2003
|
padding: 0.625rem;
|
|
2007
2004
|
}
|
|
2005
|
+
.p-20 {
|
|
2006
|
+
padding: 5rem;
|
|
2007
|
+
}
|
|
2008
2008
|
.p-3 {
|
|
2009
2009
|
padding: 0.75rem;
|
|
2010
2010
|
}
|
|
@@ -2138,6 +2138,9 @@ video {
|
|
|
2138
2138
|
.pt-1 {
|
|
2139
2139
|
padding-top: 0.25rem;
|
|
2140
2140
|
}
|
|
2141
|
+
.pt-10 {
|
|
2142
|
+
padding-top: 2.5rem;
|
|
2143
|
+
}
|
|
2141
2144
|
.pt-2 {
|
|
2142
2145
|
padding-top: 0.5rem;
|
|
2143
2146
|
}
|
|
@@ -3037,6 +3040,9 @@ body {
|
|
|
3037
3040
|
--tw-border-opacity: 1;
|
|
3038
3041
|
border-color: rgb(17 24 39 / var(--tw-border-opacity));
|
|
3039
3042
|
}
|
|
3043
|
+
:is(.dark .dark\:bg-background) {
|
|
3044
|
+
background-color: hsl(var(--background));
|
|
3045
|
+
}
|
|
3040
3046
|
:is(.dark .dark\:bg-blue-200) {
|
|
3041
3047
|
--tw-bg-opacity: 1;
|
|
3042
3048
|
background-color: rgb(191 219 254 / var(--tw-bg-opacity));
|