@haiilo/catalyst 0.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 (38) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +76 -0
  3. package/dist/catalyst/app-globals-54573336.js +716 -0
  4. package/dist/catalyst/cat-button.entry.js +621 -0
  5. package/dist/catalyst/cat-icon-registry-59da2e37.js +43 -0
  6. package/dist/catalyst/cat-icon.entry.js +27 -0
  7. package/dist/catalyst/cat-spinner.entry.js +21 -0
  8. package/dist/catalyst/catalyst.css +1403 -0
  9. package/dist/catalyst/catalyst.esm.js +126 -0
  10. package/dist/catalyst/css-shim-20dbffa5.js +4 -0
  11. package/dist/catalyst/dom-c5ed0ba5.js +73 -0
  12. package/dist/catalyst/index-6672be93.js +3031 -0
  13. package/dist/catalyst/index.cdn.js +21 -0
  14. package/dist/catalyst/index.esm.js +1 -0
  15. package/dist/catalyst/shadow-css-8c625855.js +388 -0
  16. package/dist/components/cat-button.d.ts +11 -0
  17. package/dist/components/cat-icon.d.ts +11 -0
  18. package/dist/components/cat-spinner.d.ts +11 -0
  19. package/dist/components/index.d.ts +26 -0
  20. package/dist/types/components/cat-button/cat-button.d.ts +123 -0
  21. package/dist/types/components/cat-icon/cat-icon-registry.d.ts +15 -0
  22. package/dist/types/components/cat-icon/cat-icon.d.ts +23 -0
  23. package/dist/types/components/cat-spinner/cat-spinner.d.ts +15 -0
  24. package/dist/types/components.d.ts +253 -0
  25. package/dist/types/index.d.ts +1 -0
  26. package/dist/types/init.d.ts +1 -0
  27. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  28. package/dist/types/utils/breakpoints.d.ts +7 -0
  29. package/dist/types/utils/media-matcher.d.ts +13 -0
  30. package/dist/types/utils/platform.d.ts +18 -0
  31. package/dist/types/utils/utils.d.ts +1 -0
  32. package/loader/cdn.js +3 -0
  33. package/loader/index.cjs.js +3 -0
  34. package/loader/index.d.ts +12 -0
  35. package/loader/index.es2017.js +3 -0
  36. package/loader/index.js +4 -0
  37. package/loader/package.json +10 -0
  38. package/package.json +78 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,76 @@
1
+
2
+ # Catalyst: Core
3
+
4
+ [![Core: buid & test](https://github.com/haiilo/catalyst/actions/workflows/core.yml/badge.svg)](https://github.com/haiilo/catalyst/actions/workflows/core.yml)
5
+ [![GitHub Pages](https://github.com/haiilo/catalyst/actions/workflows/pages.yml/badge.svg)](https://github.com/haiilo/catalyst/actions/workflows/pages.yml)
6
+ ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)
7
+
8
+ This project contains the Catalyst design system standalone Web Components using Stencil.
9
+
10
+ # Stencil
11
+
12
+ Stencil is a compiler for building fast web apps using Web Components.
13
+
14
+ Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
15
+
16
+ Stencil components are just Web Components, so they work in any major framework or with no framework at all.
17
+
18
+ ## Getting Started
19
+
20
+ To start building a new web component using Stencil, clone this repo to a new directory:
21
+
22
+ ```bash
23
+ git clone https://github.com/ionic-team/stencil-component-starter.git my-component
24
+ cd my-component
25
+ git remote rm origin
26
+ ```
27
+
28
+ and run:
29
+
30
+ ```bash
31
+ npm install
32
+ npm start
33
+ ```
34
+
35
+ To build the component for production, run:
36
+
37
+ ```bash
38
+ npm run build
39
+ ```
40
+
41
+ To run the unit tests for the components, run:
42
+
43
+ ```bash
44
+ npm test
45
+ ```
46
+
47
+ Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component).
48
+
49
+ ## Naming Components
50
+
51
+ When creating new component tags, we recommend _not_ using `stencil` in the component name (ex: `<stencil-datepicker>`). This is because the generated component has little to nothing to do with Stencil; it's just a web component!
52
+
53
+ Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Ionic generated web components use the prefix `ion`.
54
+
55
+ ## Using this component
56
+
57
+ There are three strategies we recommend for using web components built with Stencil.
58
+
59
+ The first step for all three of these strategies is to [publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages).
60
+
61
+ ### Script tag
62
+
63
+ - Put a script tag similar to this `<script type='module' src='https://unpkg.com/my-component@0.0.1/dist/my-component.esm.js'></script>` in the head of your index.html
64
+ - Then you can use the element anywhere in your template, JSX, html etc
65
+
66
+ ### Node Modules
67
+
68
+ - Run `npm install my-component --save`
69
+ - Put a script tag similar to this `<script type='module' src='node_modules/my-component/dist/my-component.esm.js'></script>` in the head of your index.html
70
+ - Then you can use the element anywhere in your template, JSX, html etc
71
+
72
+ ### In a stencil-starter app
73
+
74
+ - Run `npm install my-component --save`
75
+ - Add an import to the npm packages `import my-component;`
76
+ - Then you can use the element anywhere in your template, JSX, html etc