@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.
- package/LICENSE +21 -0
- package/README.md +76 -0
- package/dist/catalyst/app-globals-54573336.js +716 -0
- package/dist/catalyst/cat-button.entry.js +621 -0
- package/dist/catalyst/cat-icon-registry-59da2e37.js +43 -0
- package/dist/catalyst/cat-icon.entry.js +27 -0
- package/dist/catalyst/cat-spinner.entry.js +21 -0
- package/dist/catalyst/catalyst.css +1403 -0
- package/dist/catalyst/catalyst.esm.js +126 -0
- package/dist/catalyst/css-shim-20dbffa5.js +4 -0
- package/dist/catalyst/dom-c5ed0ba5.js +73 -0
- package/dist/catalyst/index-6672be93.js +3031 -0
- package/dist/catalyst/index.cdn.js +21 -0
- package/dist/catalyst/index.esm.js +1 -0
- package/dist/catalyst/shadow-css-8c625855.js +388 -0
- package/dist/components/cat-button.d.ts +11 -0
- package/dist/components/cat-icon.d.ts +11 -0
- package/dist/components/cat-spinner.d.ts +11 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/types/components/cat-button/cat-button.d.ts +123 -0
- package/dist/types/components/cat-icon/cat-icon-registry.d.ts +15 -0
- package/dist/types/components/cat-icon/cat-icon.d.ts +23 -0
- package/dist/types/components/cat-spinner/cat-spinner.d.ts +15 -0
- package/dist/types/components.d.ts +253 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/init.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/breakpoints.d.ts +7 -0
- package/dist/types/utils/media-matcher.d.ts +13 -0
- package/dist/types/utils/platform.d.ts +18 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- 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
|
+
[](https://github.com/haiilo/catalyst/actions/workflows/core.yml)
|
|
5
|
+
[](https://github.com/haiilo/catalyst/actions/workflows/pages.yml)
|
|
6
|
+

|
|
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
|