crmbonus-component-wake 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/dist/components/app-modal.d.ts +11 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/crmbonus-component-wake/app-globals-0f993ce5.js +5 -0
- package/dist/crmbonus-component-wake/app-globals-0f993ce5.js.map +1 -0
- package/dist/crmbonus-component-wake/app-modal.entry.js +23 -0
- package/dist/crmbonus-component-wake/app-modal.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/assets/logo.svg +18 -0
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +49 -0
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -0
- package/dist/crmbonus-component-wake/index-2aa8671b.js +3039 -0
- package/dist/crmbonus-component-wake/index-2aa8671b.js.map +1 -0
- package/dist/crmbonus-component-wake/index-5f62d39b.js +3039 -0
- package/dist/crmbonus-component-wake/index-5f62d39b.js.map +1 -0
- package/dist/crmbonus-component-wake/index-f123357e.js +3039 -0
- package/dist/crmbonus-component-wake/index-f123357e.js.map +1 -0
- package/dist/crmbonus-component-wake/index-fc5d9bd5.js +3039 -0
- package/dist/crmbonus-component-wake/index-fc5d9bd5.js.map +1 -0
- package/dist/crmbonus-component-wake/index.esm.js +17 -0
- package/dist/crmbonus-component-wake/index.esm.js.map +1 -0
- package/dist/crmbonus-component-wake/my-component.entry.js +21 -0
- package/dist/crmbonus-component-wake/my-component.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js +334 -0
- package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js.map +1 -0
- package/dist/crmbonus-component-wake/utils-11fcde98.js +7 -0
- package/dist/crmbonus-component-wake/utils-11fcde98.js.map +1 -0
- package/dist/types/components/modal/app-modal.d.ts +8 -0
- package/dist/types/components/my-component/my-component.d.ts +4 -0
- package/dist/types/components.d.ts +70 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +50 -0
- package/readme.md +115 -0
@@ -0,0 +1 @@
|
|
1
|
+
export declare function format(first?: string, middle?: string, last?: string): string;
|
package/package.json
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"name": "crmbonus-component-wake",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "Stencil Component Starter",
|
5
|
+
"main": "dist/index.cjs.js",
|
6
|
+
"module": "dist/index.js",
|
7
|
+
"types": "dist/types/index.d.ts",
|
8
|
+
"collection": "dist/collection/collection-manifest.json",
|
9
|
+
"collection:main": "dist/collection/index.js",
|
10
|
+
"unpkg": "dist/crmbonus-component-wake/crmbonus-component-wake.esm.js",
|
11
|
+
"exports": {
|
12
|
+
".": {
|
13
|
+
"import": "./dist/crmbonus-component-wake/crmbonus-component-wake.esm.js",
|
14
|
+
"require": "./dist/crmbonus-component-wake/crmbonus-component-wake.cjs.js"
|
15
|
+
},
|
16
|
+
"./my-component": {
|
17
|
+
"import": "./dist/components/my-component.js",
|
18
|
+
"types": "./dist/components/my-component.d.ts"
|
19
|
+
},
|
20
|
+
"./loader": {
|
21
|
+
"import": "./loader/index.js",
|
22
|
+
"require": "./loader/index.cjs",
|
23
|
+
"types": "./loader/index.d.ts"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"repository": {
|
27
|
+
"type": "git",
|
28
|
+
"url": "https://github.com/ionic-team/stencil-component-starter.git"
|
29
|
+
},
|
30
|
+
"files": [
|
31
|
+
"dist/",
|
32
|
+
"loader/"
|
33
|
+
],
|
34
|
+
"scripts": {
|
35
|
+
"build": "stencil build",
|
36
|
+
"start": "stencil build --dev --watch --serve",
|
37
|
+
"test": "stencil test --spec --e2e",
|
38
|
+
"test.watch": "stencil test --spec --e2e --watchAll",
|
39
|
+
"generate": "stencil generate"
|
40
|
+
},
|
41
|
+
"devDependencies": {
|
42
|
+
"@stencil/core": "^4.7.0",
|
43
|
+
"@types/jest": "^29.5.6",
|
44
|
+
"@types/node": "^16.18.11",
|
45
|
+
"jest": "^29.7.0",
|
46
|
+
"jest-cli": "^29.7.0",
|
47
|
+
"puppeteer": "^21.9.0"
|
48
|
+
},
|
49
|
+
"license": "MIT"
|
50
|
+
}
|
package/readme.md
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
[![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)](https://stenciljs.com)
|
2
|
+
|
3
|
+
# Stencil Component Starter
|
4
|
+
|
5
|
+
This is a starter project for building a standalone Web Component using Stencil.
|
6
|
+
|
7
|
+
Stencil is also great for building entire apps. For that, use the [stencil-app-starter](https://github.com/ionic-team/stencil-app-starter) instead.
|
8
|
+
|
9
|
+
# Stencil
|
10
|
+
|
11
|
+
Stencil is a compiler for building fast web apps using Web Components.
|
12
|
+
|
13
|
+
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than runtime 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.
|
14
|
+
|
15
|
+
Stencil components are just Web Components, so they work in any major framework or with no framework at all.
|
16
|
+
|
17
|
+
## Getting Started
|
18
|
+
|
19
|
+
To start building a new web component using Stencil, clone this repo to a new directory:
|
20
|
+
|
21
|
+
```bash
|
22
|
+
git clone https://github.com/ionic-team/stencil-component-starter.git my-component
|
23
|
+
cd my-component
|
24
|
+
git remote rm origin
|
25
|
+
```
|
26
|
+
|
27
|
+
and run:
|
28
|
+
|
29
|
+
```bash
|
30
|
+
npm install
|
31
|
+
npm start
|
32
|
+
```
|
33
|
+
|
34
|
+
To build the component for production, run:
|
35
|
+
|
36
|
+
```bash
|
37
|
+
npm run build
|
38
|
+
```
|
39
|
+
|
40
|
+
To run the unit tests for the components, run:
|
41
|
+
|
42
|
+
```bash
|
43
|
+
npm test
|
44
|
+
```
|
45
|
+
|
46
|
+
Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component).
|
47
|
+
|
48
|
+
## Naming Components
|
49
|
+
|
50
|
+
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!
|
51
|
+
|
52
|
+
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`.
|
53
|
+
|
54
|
+
## Using this component
|
55
|
+
|
56
|
+
There are two strategies we recommend for using web components built with Stencil.
|
57
|
+
|
58
|
+
The first step for all two of these strategies is to [publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages).
|
59
|
+
|
60
|
+
You can read more about these different approaches in the [Stencil docs](https://stenciljs.com/docs/publishing).
|
61
|
+
|
62
|
+
### Lazy Loading
|
63
|
+
|
64
|
+
If your Stencil project is built with the [`dist`](https://stenciljs.com/docs/distribution) output target, you can import a small bootstrap script that registers all components and allows you to load individual component scripts lazily.
|
65
|
+
|
66
|
+
For example, given your Stencil project namespace is called `my-design-system`, to use `my-component` on any website, inject this into your HTML:
|
67
|
+
|
68
|
+
```html
|
69
|
+
<script type="module" src="https://unpkg.com/my-design-system"></script>
|
70
|
+
<!--
|
71
|
+
To avoid unpkg.com redirects to the actual file, you can also directly import:
|
72
|
+
https://unpkg.com/foobar-design-system@0.0.1/dist/foobar-design-system/foobar-design-system.esm.js
|
73
|
+
-->
|
74
|
+
<my-component first="Stencil" middle="'Don't call me a framework'" last="JS"></my-component>
|
75
|
+
```
|
76
|
+
|
77
|
+
This will only load the necessary scripts needed to render `<my-component />`. Once more components of this package are used, they will automatically be loaded lazily.
|
78
|
+
|
79
|
+
You can also import the script as part of your `node_modules` in your applications entry file:
|
80
|
+
|
81
|
+
```tsx
|
82
|
+
import 'foobar-design-system/dist/foobar-design-system/foobar-design-system.esm.js';
|
83
|
+
```
|
84
|
+
|
85
|
+
Check out this [Live Demo](https://stackblitz.com/edit/vitejs-vite-y6v26a?file=src%2Fmain.tsx).
|
86
|
+
|
87
|
+
### Standalone
|
88
|
+
|
89
|
+
If you are using a Stencil component library with `dist-custom-elements`, we recommend importing Stencil components individually in those files where they are needed.
|
90
|
+
|
91
|
+
To export Stencil components as standalone components make sure you have the [`dist-custom-elements`](https://stenciljs.com/docs/custom-elements) output target defined in your `stencil.config.ts`.
|
92
|
+
|
93
|
+
For example, given you'd like to use `<my-component />` as part of a React component, you can import the component directly via:
|
94
|
+
|
95
|
+
```tsx
|
96
|
+
import 'foobar-design-system/my-component';
|
97
|
+
|
98
|
+
function App() {
|
99
|
+
return (
|
100
|
+
<>
|
101
|
+
<div>
|
102
|
+
<my-component
|
103
|
+
first="Stencil"
|
104
|
+
middle="'Don't call me a framework'"
|
105
|
+
last="JS"
|
106
|
+
></my-component>
|
107
|
+
</div>
|
108
|
+
</>
|
109
|
+
);
|
110
|
+
}
|
111
|
+
|
112
|
+
export default App;
|
113
|
+
```
|
114
|
+
|
115
|
+
Check out this [Live Demo](https://stackblitz.com/edit/vitejs-vite-b6zuds?file=src%2FApp.tsx).
|