revotech-ui-kit 0.0.6-beta → 0.0.7-beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/dist/index.ts +1 -1
  2. package/dist/rollup-plugin-html-noop.js +1 -0
  3. package/dist/sw.js +1 -1
  4. package/dist/sw.js.map +1 -1
  5. package/package.json +3 -3
  6. package/.editorconfig +0 -29
  7. package/.eslintrc +0 -10
  8. package/.github/workflows/deploy-storybook.yml +0 -107
  9. package/.storybook/main.ts +0 -17
  10. package/.storybook/preview-head.html +0 -1
  11. package/.storybook/preview.ts +0 -17
  12. package/assets/fonts/Geist/Geist-Black.otf +0 -0
  13. package/assets/fonts/Geist/Geist-Black.woff2 +0 -0
  14. package/assets/fonts/Geist/Geist-Bold.otf +0 -0
  15. package/assets/fonts/Geist/Geist-Bold.woff2 +0 -0
  16. package/assets/fonts/Geist/Geist-Light.otf +0 -0
  17. package/assets/fonts/Geist/Geist-Light.woff2 +0 -0
  18. package/assets/fonts/Geist/Geist-Medium.otf +0 -0
  19. package/assets/fonts/Geist/Geist-Medium.woff2 +0 -0
  20. package/assets/fonts/Geist/Geist-Regular.otf +0 -0
  21. package/assets/fonts/Geist/Geist-Regular.woff2 +0 -0
  22. package/assets/fonts/Geist/Geist-SemiBold.otf +0 -0
  23. package/assets/fonts/Geist/Geist-SemiBold.woff2 +0 -0
  24. package/assets/fonts/Geist/Geist-Thin.otf +0 -0
  25. package/assets/fonts/Geist/Geist-Thin.woff2 +0 -0
  26. package/assets/fonts/Geist/Geist-UltraBlack.otf +0 -0
  27. package/assets/fonts/Geist/Geist-UltraBlack.woff2 +0 -0
  28. package/assets/fonts/Geist/Geist-UltraLight.otf +0 -0
  29. package/assets/fonts/Geist/Geist-UltraLight.woff2 +0 -0
  30. package/assets/fonts/Geist/GeistVariableVF.ttf +0 -0
  31. package/assets/fonts/Geist/GeistVariableVF.woff2 +0 -0
  32. package/assets/fonts/Geist/LICENSE.TXT +0 -92
  33. package/assets/open-wc-logo.svg +0 -29
  34. package/assume_role.sh +0 -18
  35. package/index.html +0 -314
  36. package/rollup.config.js +0 -83
  37. package/src/assets/icons/arrows.icon.ts +0 -20
  38. package/src/assets/icons/index.ts +0 -3
  39. package/src/assets/icons/search.icon.ts +0 -19
  40. package/src/assets/icons/tick.icon.ts +0 -20
  41. package/src/chai-custom.d.ts +0 -0
  42. package/src/components/atoms/alert/alert-description.ts +0 -15
  43. package/src/components/atoms/alert/alert-title.ts +0 -17
  44. package/src/components/atoms/alert/alert.atom.ts +0 -55
  45. package/src/components/atoms/alert/alert.stories.ts +0 -71
  46. package/src/components/atoms/alert/alert.styles.ts +0 -21
  47. package/src/components/atoms/alert/alert.types.ts +0 -1
  48. package/src/components/atoms/badge/badge.atom.ts +0 -40
  49. package/src/components/atoms/badge/badge.stories.ts +0 -118
  50. package/src/components/atoms/badge/badge.style.ts +0 -24
  51. package/src/components/atoms/badge/badge.type.ts +0 -7
  52. package/src/components/atoms/button/button.atom.ts +0 -59
  53. package/src/components/atoms/button/button.stories.ts +0 -224
  54. package/src/components/atoms/button/button.style.ts +0 -31
  55. package/src/components/atoms/button/button.type.ts +0 -10
  56. package/src/components/atoms/card/card-content.ts +0 -15
  57. package/src/components/atoms/card/card-description.ts +0 -15
  58. package/src/components/atoms/card/card-footer.ts +0 -15
  59. package/src/components/atoms/card/card-header.ts +0 -15
  60. package/src/components/atoms/card/card-title.ts +0 -15
  61. package/src/components/atoms/card/card.atom.ts +0 -31
  62. package/src/components/atoms/card/card.stories.ts +0 -149
  63. package/src/components/atoms/checkbox/checkbox.atom.ts +0 -76
  64. package/src/components/atoms/checkbox/checkbox.stories.ts +0 -309
  65. package/src/components/atoms/checkbox/checkbox.style.ts +0 -5
  66. package/src/components/atoms/checkbox/checkbox.type.ts +0 -24
  67. package/src/components/atoms/combo-box/combo-box-input.ts +0 -33
  68. package/src/components/atoms/combo-box/combo-box-item.ts +0 -59
  69. package/src/components/atoms/combo-box/combo-box-list.ts +0 -57
  70. package/src/components/atoms/combo-box/combo-box.atom.ts +0 -187
  71. package/src/components/atoms/combo-box/combo-box.stories.ts +0 -95
  72. package/src/components/atoms/command-empty/command-empty.atom.ts +0 -44
  73. package/src/components/atoms/command-group/command-group.atom.ts +0 -60
  74. package/src/components/atoms/command-item/command-item.atom.ts +0 -74
  75. package/src/components/atoms/command-list/command-list.atom.ts +0 -37
  76. package/src/components/atoms/command-separator/command-separator.atom.ts +0 -42
  77. package/src/components/atoms/dialog/dialog-close.ts +0 -50
  78. package/src/components/atoms/dialog/dialog-content.ts +0 -71
  79. package/src/components/atoms/dialog/dialog-footer.ts +0 -22
  80. package/src/components/atoms/dialog/dialog-header.ts +0 -36
  81. package/src/components/atoms/dialog/dialog-overly.ts +0 -20
  82. package/src/components/atoms/dialog/dialog-trigger.ts +0 -54
  83. package/src/components/atoms/dialog/dialog.atom.ts +0 -78
  84. package/src/components/atoms/dialog/dialog.stories.ts +0 -93
  85. package/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.ts +0 -106
  86. package/src/components/atoms/dropdownMenu/dropdown-menu-content.ts +0 -79
  87. package/src/components/atoms/dropdownMenu/dropdown-menu-group.ts +0 -60
  88. package/src/components/atoms/dropdownMenu/dropdown-menu-item.ts +0 -74
  89. package/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.ts +0 -107
  90. package/src/components/atoms/dropdownMenu/dropdown-menu-seperator.ts +0 -44
  91. package/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.ts +0 -17
  92. package/src/components/atoms/dropdownMenu/dropdown-menu.atom.ts +0 -84
  93. package/src/components/atoms/dropdownMenu/dropdownMenu.stories.ts +0 -220
  94. package/src/components/atoms/dropdownMenu/dropdownMenu.style.ts +0 -7
  95. package/src/components/atoms/index.ts +0 -13
  96. package/src/components/atoms/input/input.atom.ts +0 -88
  97. package/src/components/atoms/input/input.stories.ts +0 -451
  98. package/src/components/atoms/input/input.styles.ts +0 -2
  99. package/src/components/atoms/input/input.type.ts +0 -58
  100. package/src/components/atoms/label/label.atom.ts +0 -64
  101. package/src/components/atoms/label/label.stories.ts +0 -102
  102. package/src/components/atoms/label/label.style.ts +0 -5
  103. package/src/components/atoms/popover/popover-content.ts +0 -58
  104. package/src/components/atoms/popover/popover-trigger.ts +0 -50
  105. package/src/components/atoms/popover/popover.atom.ts +0 -34
  106. package/src/components/atoms/popover/popover.stories.ts +0 -79
  107. package/src/components/atoms/popover/popover.style.ts +0 -25
  108. package/src/components/atoms/popover/popover.types.ts +0 -3
  109. package/src/components/atoms/toggle/defs.ts +0 -29
  110. package/src/components/atoms/toggle/toggle.atom.ts +0 -58
  111. package/src/components/atoms/toggle/toggle.stories.ts +0 -204
  112. package/src/components/atoms/toggle/toggle.style.ts +0 -22
  113. package/src/components/command/command.stories.ts +0 -154
  114. package/src/components/command/command.ts +0 -391
  115. package/src/components/index.ts +0 -2
  116. package/src/components/molecules/command/command.molecules.ts +0 -31
  117. package/src/components/molecules/command-input/command-input.atom.ts +0 -130
  118. package/src/components/molecules/dropdownMenu/dropdownMenu.molecules.ts +0 -0
  119. package/src/components/molecules/index.ts +0 -1
  120. package/src/globals.css +0 -2215
  121. package/src/helpers/base-element.ts +0 -79
  122. package/src/helpers/index.ts +0 -3
  123. package/src/helpers/mouse-conroller.helper.ts +0 -42
  124. package/src/helpers/style.helpers.ts +0 -6
  125. package/src/index.d.ts +0 -1
  126. package/src/index.ts +0 -1
  127. package/src/interfaces/actionable.interface.ts +0 -6
  128. package/src/interfaces/atomic.interface.ts +0 -6
  129. package/src/interfaces/changeable.interface.ts +0 -14
  130. package/src/interfaces/child-support-atomic.interface.ts +0 -5
  131. package/src/interfaces/index.ts +0 -6
  132. package/src/interfaces/intractable.interface.ts +0 -6
  133. package/src/interfaces/variant.interface.ts +0 -3
  134. package/src/lib/index.ts +0 -0
  135. package/src/lib/next/next.lib.ts +0 -0
  136. package/src/lib/react/react.lib.ts +0 -18
  137. package/src/lib/tw-styles.ts +0 -1957
  138. package/src/styles/index.ts +0 -1
  139. package/src/styles/tw.styles.ts +0 -2219
  140. package/src/tailwind-lib.css +0 -115
  141. package/src/wc-ui-app.ts +0 -81
  142. package/tailwind.config.js +0 -217
  143. package/test/wc-ui-app.test.ts +0 -22
  144. package/tsconfig.json +0 -30
  145. package/web-dev-server.config.mjs +0 -26
  146. package/web-test-runner.config.mjs +0 -41
package/dist/index.ts CHANGED
@@ -1 +1 @@
1
- <html><head></head><body>export { Button } from './components/atoms/button/button.atom';<script inject-service-worker="">"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.register("sw.js").then((function(){console.log('ServiceWorker registered from "sw.js".')})).catch((function(e){console.log("ServiceWorker registration failed: ",e)}))}))</script></body></html>
1
+ <html><head></head><body>export { Button } from './components/atoms/button/button.atom'; export { Badge } from './components/atoms/badge/badge.atom';<script inject-service-worker="">"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.register("sw.js").then((function(){console.log('ServiceWorker registered from "sw.js".')})).catch((function(e){console.log("ServiceWorker registration failed: ",e)}))}))</script></body></html>
@@ -0,0 +1 @@
1
+ "use strict";module.exports="noop";
package/dist/sw.js CHANGED
@@ -1,2 +1,2 @@
1
- if(!self.define){let e,t={};const n=(n,o)=>(n=new URL(n+".js",o).href,t[n]||new Promise((t=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=t,document.head.appendChild(e)}else e=n,importScripts(n),t()})).then((()=>{let e=t[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(o,i)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(t[s])return;let r={};const f=e=>n(e,s),l={module:{uri:s},exports:r,require:f};t[s]=Promise.all(o.map((e=>l[e]||f(e)))).then((e=>(i(...e),r)))}}define(["./workbox-a523fd56"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"f28fd4b1.js",revision:"f8598b3fb68746b57f1d7241b6807878"}],{}),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"))),e.registerRoute("polyfills/*.js",new e.CacheFirst,"GET")}));
1
+ if(!self.define){let e,o={};const n=(n,t)=>(n=new URL(n+".js",t).href,o[n]||new Promise((o=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=o,document.head.appendChild(e)}else e=n,importScripts(n),o()})).then((()=>{let e=o[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(t,i)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(o[r])return;let s={};const l=e=>n(e,r),f={module:{uri:r},exports:s,require:l};o[r]=Promise.all(t.map((e=>f[e]||l(e)))).then((e=>(i(...e),s)))}}define(["./workbox-a523fd56"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"f28fd4b1.js",revision:"f8598b3fb68746b57f1d7241b6807878"},{url:"rollup-plugin-html-noop.js",revision:"86adbd559e3e88f17723deb06afb1deb"}],{}),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"))),e.registerRoute("polyfills/*.js",new e.CacheFirst,"GET")}));
2
2
  //# sourceMappingURL=sw.js.map
package/dist/sw.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sw.js","sources":["../../../../../private/var/folders/cr/fsfr428d4r761_8s1_mgl49w0000gn/T/c57e045ee325bc750a0f1c0e6d88aa8f/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-routing/registerRoute.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {NavigationRoute as workbox_routing_NavigationRoute} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-routing/NavigationRoute.mjs';\nimport {createHandlerBoundToURL as workbox_precaching_createHandlerBoundToURL} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-precaching/createHandlerBoundToURL.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"f28fd4b1.js\",\n \"revision\": \"f8598b3fb68746b57f1d7241b6807878\"\n }\n], {});\n\nworkbox_routing_registerRoute(new workbox_routing_NavigationRoute(workbox_precaching_createHandlerBoundToURL(\"/index.html\")));\n\n\nworkbox_routing_registerRoute(\"polyfills/*.js\", new workbox_strategies_CacheFirst(), 'GET');\n\n\n\n\n"],"names":["self","skipWaiting","workbox_core_clientsClaim","workbox_precaching_precacheAndRoute","url","revision","workbox","registerRoute","workbox_routing_NavigationRoute","workbox_precaching_createHandlerBoundToURL","workbox_strategies_CacheFirst"],"mappings":"0nBAwBAA,KAAKC,cAELC,EAAAA,eAQAC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,cACPC,SAAY,qCAEb,CAAE,GAEwBC,EAAAC,cAAC,IAAIC,EAAAA,gBAAgCC,EAAAA,wBAA2C,iBAGhFH,EAAAC,cAAC,iBAAkB,IAAIG,aAAiC"}
1
+ {"version":3,"file":"sw.js","sources":["../../../../../private/var/folders/cr/fsfr428d4r761_8s1_mgl49w0000gn/T/ef86c1ffd071743273c0bee67e550f6c/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-routing/registerRoute.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {NavigationRoute as workbox_routing_NavigationRoute} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-routing/NavigationRoute.mjs';\nimport {createHandlerBoundToURL as workbox_precaching_createHandlerBoundToURL} from '/Users/navid/packages/revo-tech/ui-kit/node_modules/workbox-precaching/createHandlerBoundToURL.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"f28fd4b1.js\",\n \"revision\": \"f8598b3fb68746b57f1d7241b6807878\"\n },\n {\n \"url\": \"rollup-plugin-html-noop.js\",\n \"revision\": \"86adbd559e3e88f17723deb06afb1deb\"\n }\n], {});\n\nworkbox_routing_registerRoute(new workbox_routing_NavigationRoute(workbox_precaching_createHandlerBoundToURL(\"/index.html\")));\n\n\nworkbox_routing_registerRoute(\"polyfills/*.js\", new workbox_strategies_CacheFirst(), 'GET');\n\n\n\n\n"],"names":["self","skipWaiting","workbox_core_clientsClaim","workbox_precaching_precacheAndRoute","url","revision","workbox","registerRoute","workbox_routing_NavigationRoute","workbox_precaching_createHandlerBoundToURL","workbox_strategies_CacheFirst"],"mappings":"0nBAwBAA,KAAKC,cAELC,EAAAA,eAQAC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,qCAEb,CAAE,GAEwBC,EAAAC,cAAC,IAAIC,EAAAA,gBAAgCC,EAAAA,wBAA2C,iBAGhFH,EAAAC,cAAC,iBAAkB,IAAIG,aAAiC"}
package/package.json CHANGED
@@ -3,11 +3,11 @@
3
3
  "description": "Webcomponent wc-ui following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "wc-ui",
6
- "version": "0.0.6-beta",
7
- "type": "module",
6
+ "version": "0.0.7-beta",
8
7
  "main": "dist/index.js",
9
8
  "module": "dist/index.mjs",
10
- "types": "dist/index.d.ts",
9
+ "files": ["dist"],
10
+ "types": "dist/index.d.ts",
11
11
  "scripts": {
12
12
  "release": "npm version $(semver $npm_package_version -i major) && npm publish --tag latest",
13
13
  "release:minor": "npm version $(semver $npm_package_version -i minor) && npm publish --tag latest",
package/.editorconfig DELETED
@@ -1,29 +0,0 @@
1
- # EditorConfig helps developers define and maintain consistent
2
- # coding styles between different editors and IDEs
3
- # editorconfig.org
4
-
5
- root = true
6
-
7
-
8
- [*]
9
-
10
- # Change these settings to your own preference
11
- indent_style = space
12
- indent_size = 2
13
-
14
- # We recommend you to keep these unchanged
15
- end_of_line = lf
16
- charset = utf-8
17
- trim_trailing_whitespace = true
18
- insert_final_newline = true
19
-
20
- [*.md]
21
- trim_trailing_whitespace = false
22
-
23
- [*.json]
24
- indent_size = 2
25
-
26
- [*.{html,js,md}]
27
- block_comment_start = /**
28
- block_comment = *
29
- block_comment_end = */
package/.eslintrc DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "overrides": [
3
- {
4
- "files": ["src/styles/**/*"],
5
- "rules": {
6
- "import/extensions": ["error", "never"]
7
- }
8
- }
9
- ]
10
- }
@@ -1,107 +0,0 @@
1
-
2
- name: Deploy Storybook
3
- on:
4
- workflow_dispatch:
5
- push:
6
- branches:
7
- - master
8
- - feature/*
9
- - bug/*
10
-
11
- jobs:
12
- build:
13
- runs-on: ubuntu-latest
14
- strategy:
15
- matrix:
16
- node-version: ["20"]
17
-
18
- env:
19
- DEPLOY_ENV: 'test'
20
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
21
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
22
- AWS_DEFAULT_REGION: ap-southeast-2
23
- ACCOUNT_ID: 275214891288
24
-
25
- steps:
26
- - uses: actions/checkout@v4
27
-
28
- - name: Setup Node.js ${{ matrix.node-version }}
29
- uses: actions/setup-node@v4
30
- with:
31
- node-version: ${{ matrix.node-version }}
32
-
33
- - name: Authenticate with npm
34
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
35
-
36
- - name: Install Node.js Dependencies
37
- run: npm ci
38
-
39
- - name: Default push to master (Deploy to Test)
40
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
41
- run: echo "DEPLOY_ENV=test" >> $GITHUB_ENV
42
-
43
- - name: Set env variables based on deploy environment
44
- run: |
45
- if [ "${{ env.DEPLOY_ENV }}" == "dev" ]; then
46
- echo "SDK_CF_ID=E3VB38NI6WZNAU" >> $GITHUB_ENV
47
- echo "DEPLOY_STAGE=dev" >> $GITHUB_ENV
48
- echo "BUCKET_NAME=revotech-uikit" >> $GITHUB_ENV
49
- elif [ "${{ env.DEPLOY_ENV }}" == "test" ]; then
50
- echo "SDK_CF_ID=E3JH8KTVJX4T4O" >> $GITHUB_ENV
51
- echo "DEPLOY_STAGE=test" >> $GITHUB_ENV
52
- echo "BUCKET_NAME=revotech-uikit" >> $GITHUB_ENV
53
- elif [ "${{ env.DEPLOY_ENV }}" == "sb" ]; then
54
- echo "SDK_CF_ID=E7DB160FQZKN5" >> $GITHUB_ENV
55
- echo "DEPLOY_STAGE=sb" >> $GITHUB_ENV
56
- echo "BUCKET_NAME=revotech-uikit" >> $GITHUB_ENV
57
- echo "ACCOUNT_ID=271541505793" >> $GITHUB_ENV
58
- elif [ "${{ env.DEPLOY_ENV }}" == "prod" ]; then
59
- echo "SDK_CF_ID=E3OWSYBMVYVVXJ" >> $GITHUB_ENV
60
- echo "DEPLOY_STAGE=prod" >> $GITHUB_ENV
61
- echo "BUCKET_NAME=revotech-uikit" >> $GITHUB_ENV
62
- echo "ACCOUNT_ID=650361931399" >> $GITHUB_ENV
63
- fi
64
-
65
- - name: Configure AWS Credentials
66
- uses: aws-actions/configure-aws-credentials@v4
67
- with:
68
- aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
69
- aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
70
- aws-region: ${{env.AWS_DEFAULT_REGION}}
71
-
72
- - name: Run roles as admin
73
- run: chmod +x ./assume_role.sh
74
-
75
- - name: Build Project
76
- run: |
77
- echo "Building..."
78
- npx vite build
79
-
80
- - name: Build sdk
81
- run: |
82
- npm run build
83
-
84
- - name: Build Storybook
85
- run: |
86
- npm run storybook:build
87
-
88
- - name: Start Storybook
89
- run: |
90
- npm run storybook &
91
- STORYBOOK_PID=$!
92
-
93
- - name: Install playwright for run storybook test
94
- run: |
95
- npx playwright install
96
-
97
- - name: Run Storybook Tests
98
- run: |
99
- npm run test-storybook
100
-
101
- - name: Deploy to S3 and Invalidate CloudFront Cache
102
- run: |
103
- echo "Deploying..."
104
- bash assume_role.sh arn:aws:iam::${ACCOUNT_ID}:role/TravisCrossAccount ${DEPLOY_STAGE}
105
- aws s3 cp --profile ${DEPLOY_STAGE} ./storybook-static/ s3://${BUCKET_NAME}/ --recursive
106
- : # aws cloudfront create-invalidation --profile ${DEPLOY_STAGE} --distribution-id ${SDK_CF_ID} --paths "/*"
107
- echo "Deployed."
@@ -1,17 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/web-components-vite';
2
-
3
- const config: StorybookConfig = {
4
- stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5
- addons: [
6
- '@storybook/addon-links',
7
- '@storybook/addon-essentials',
8
- '@chromatic-com/storybook',
9
- '@storybook/addon-actions',
10
- '@storybook/addon-interactions', // Add this line
11
- ],
12
- framework: {
13
- name: '@storybook/web-components-vite',
14
- options: {},
15
- },
16
- };
17
- export default config;
@@ -1 +0,0 @@
1
- <script src="https://code.iconify.design/iconify-icon/2.0.0/iconify-icon.min.js"></script>
@@ -1,17 +0,0 @@
1
- import type { Preview } from '@storybook/web-components';
2
- import '../src/tailwind-lib.css';
3
- import '../src/globals.css';
4
-
5
- const preview: Preview = {
6
- parameters: {
7
- actions: { argTypesRegex: '^on[A-Z].*' },
8
- controls: {
9
- matchers: {
10
- color: /(background|color)$/i,
11
- date: /Date$/i,
12
- },
13
- },
14
- },
15
- };
16
-
17
- export default preview;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,92 +0,0 @@
1
- Geist Sans and Geist Mono Font
2
- (C) 2023 Vercel, made in collaboration with basement.studio
3
-
4
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
- This license is available with a FAQ at: http://scripts.sil.org/OFL and copied below
6
-
7
- -----------------------------------------------------------
8
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
- -----------------------------------------------------------
10
-
11
- PREAMBLE
12
- The goals of the Open Font License (OFL) are to stimulate worldwide
13
- development of collaborative font projects, to support the font creation
14
- efforts of academic and linguistic communities, and to provide a free and
15
- open framework in which fonts may be shared and improved in partnership
16
- with others.
17
-
18
- The OFL allows the licensed fonts to be used, studied, modified and
19
- redistributed freely as long as they are not sold by themselves. The
20
- fonts, including any derivative works, can be bundled, embedded,
21
- redistributed and/or sold with any software provided that any reserved
22
- names are not used by derivative works. The fonts and derivatives,
23
- however, cannot be released under any other type of license. The
24
- requirement for fonts to remain under this license does not apply
25
- to any document created using the fonts or their derivatives.
26
-
27
- DEFINITIONS
28
- "Font Software" refers to the set of files released by the Copyright
29
- Holder(s) under this license and clearly marked as such. This may
30
- include source files, build scripts and documentation.
31
-
32
- "Reserved Font Name" refers to any names specified as such after the
33
- copyright statement(s).
34
-
35
- "Original Version" refers to the collection of Font Software components as
36
- distributed by the Copyright Holder(s).
37
-
38
- "Modified Version" refers to any derivative made by adding to, deleting,
39
- or substituting -- in part or in whole -- any of the components of the
40
- Original Version, by changing formats or by porting the Font Software to a
41
- new environment.
42
-
43
- "Author" refers to any designer, engineer, programmer, technical
44
- writer or other person who contributed to the Font Software.
45
-
46
- PERMISSION AND CONDITIONS
47
- Permission is hereby granted, free of charge, to any person obtaining
48
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
- redistribute, and sell modified and unmodified copies of the Font
50
- Software, subject to the following conditions:
51
-
52
- 1) Neither the Font Software nor any of its individual components,
53
- in Original or Modified Versions, may be sold by itself.
54
-
55
- 2) Original or Modified Versions of the Font Software may be bundled,
56
- redistributed and/or sold with any software, provided that each copy
57
- contains the above copyright notice and this license. These can be
58
- included either as stand-alone text files, human-readable headers or
59
- in the appropriate machine-readable metadata fields within text or
60
- binary files as long as those fields can be easily viewed by the user.
61
-
62
- 3) No Modified Version of the Font Software may use the Reserved Font
63
- Name(s) unless explicit written permission is granted by the corresponding
64
- Copyright Holder. This restriction only applies to the primary font name as
65
- presented to the users.
66
-
67
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
- Software shall not be used to promote, endorse or advertise any
69
- Modified Version, except to acknowledge the contribution(s) of the
70
- Copyright Holder(s) and the Author(s) or with their explicit written
71
- permission.
72
-
73
- 5) The Font Software, modified or unmodified, in part or in whole,
74
- must be distributed entirely under this license, and must not be
75
- distributed under any other license. The requirement for fonts to
76
- remain under this license does not apply to any document created
77
- using the Font Software.
78
-
79
- TERMINATION
80
- This license becomes null and void if any of the above conditions are
81
- not met.
82
-
83
- DISCLAIMER
84
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
- OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,29 +0,0 @@
1
- <svg
2
- width="244px"
3
- height="244px"
4
- viewBox="0 0 244 244"
5
- version="1.1"
6
- xmlns="http://www.w3.org/2000/svg"
7
- xmlns:xlink="http://www.w3.org/1999/xlink"
8
- >
9
- <defs>
10
- <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
11
- <stop stop-color="#9B00FF" offset="0%"></stop>
12
- <stop stop-color="#0077FF" offset="100%"></stop>
13
- </linearGradient>
14
- </defs>
15
- <g
16
- id="Page-1"
17
- stroke="none"
18
- stroke-width="1"
19
- fill="none"
20
- fill-rule="evenodd"
21
- >
22
- <path
23
- d="M205.639259,176.936244 C207.430887,174.217233 209.093339,171.405629 210.617884,168.510161 M215.112174,158.724316 C216.385153,155.50304 217.495621,152.199852 218.433474,148.824851 M220.655293,138.874185 C221.231935,135.482212 221.637704,132.03207 221.863435,128.532919 M222,118.131039 C221.860539,114.466419 221.523806,110.85231 221.000113,107.299021 M218.885321,96.8583653 C218.001583,93.4468963 216.942225,90.1061026 215.717466,86.8461994 M211.549484,77.3039459 C209.957339,74.1238901 208.200597,71.0404957 206.290425,68.0649233 M200.180513,59.5598295 C181.848457,36.6639805 153.655709,22 122.036748,22 C66.7879774,22 22,66.771525 22,122 C22,177.228475 66.7879774,222 122.036748,222 C152.914668,222 180.52509,208.015313 198.875424,186.036326"
24
- id="Shape"
25
- stroke="url(#linearGradient-1)"
26
- stroke-width="42.0804674"
27
- ></path>
28
- </g>
29
- </svg>
package/assume_role.sh DELETED
@@ -1,18 +0,0 @@
1
- ROLE_ARN=$1
2
- OUTPUT_PROFILE=$2
3
-
4
- echo "Assuming role $ROLE_ARN"
5
- sts=$(aws sts assume-role \
6
- --role-arn "$ROLE_ARN" \
7
- --role-session-name "$OUTPUT_PROFILE" \
8
- --query 'Credentials.[AccessKeyId,SecretAccessKey,SessionToken]' \
9
- --output text)
10
- echo "Converting sts to array"
11
- sts=($sts)
12
- echo "AWS_ACCESS_KEY_ID is ${sts[0]}"
13
-
14
- # Uncomment below lines only when you want to configure your AWS CLI
15
- aws configure set aws_access_key_id ${sts[0]} --profile $OUTPUT_PROFILE
16
- aws configure set aws_secret_access_key ${sts[1]} --profile $OUTPUT_PROFILE
17
- aws configure set aws_session_token ${sts[2]} --profile $OUTPUT_PROFILE
18
- echo "credentials stored in the profile named $OUTPUT_PROFILE"