@parthi033/ui-foundation 0.0.1
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/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/index-DNF3Pvzm.js +1301 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/my-component.cjs.entry.js +33 -0
- package/dist/cjs/pn-button.cjs.entry.js +19 -0
- package/dist/cjs/ui-foundation.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +95 -0
- package/dist/collection/components/pn-button/pn-button.css +23 -0
- package/dist/collection/components/pn-button/pn-button.js +61 -0
- package/dist/collection/index.js +10 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +1 -0
- package/dist/components/p-C_eVDM56.js +1 -0
- package/dist/components/pn-button.d.ts +11 -0
- package/dist/components/pn-button.js +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/index-Cnv7sokw.js +1295 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/my-component.entry.js +31 -0
- package/dist/esm/pn-button.entry.js +17 -0
- package/dist/esm/ui-foundation.js +21 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/pn-button/pn-button.d.ts +5 -0
- package/dist/types/components.d.ts +78 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1839 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/ui-foundation/index.esm.js +1 -0
- package/dist/ui-foundation/p-64f3ec1e.entry.js +1 -0
- package/dist/ui-foundation/p-95000130.entry.js +1 -0
- package/dist/ui-foundation/p-Cnv7sokw.js +2 -0
- package/dist/ui-foundation/p-DQuL1Twl.js +1 -0
- package/dist/ui-foundation/ui-foundation.esm.js +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +53 -0
- package/readme.md +111 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-Cnv7sokw.js';
|
|
2
|
+
export { s as setNonce } from './index-Cnv7sokw.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
|
+
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["my-component",[[513,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["pn-button",[[512,"pn-button",{"label":[1],"type":[1]}]]]], options);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { defineCustomElements };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Cnv7sokw.js';
|
|
2
|
+
import { format } from './index.js';
|
|
3
|
+
|
|
4
|
+
const myComponentCss = () => `:host{display:block}`;
|
|
5
|
+
|
|
6
|
+
const MyComponent = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The first name
|
|
12
|
+
*/
|
|
13
|
+
first;
|
|
14
|
+
/**
|
|
15
|
+
* The middle name
|
|
16
|
+
*/
|
|
17
|
+
middle;
|
|
18
|
+
/**
|
|
19
|
+
* The last name
|
|
20
|
+
*/
|
|
21
|
+
last;
|
|
22
|
+
getText() {
|
|
23
|
+
return format(this.first, this.middle, this.last);
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return h("div", { key: '70654fc83039b5f659efe99cc990e9b86d20dbe0' }, "Hello, World! I'm ", this.getText());
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
MyComponent.style = myComponentCss();
|
|
30
|
+
|
|
31
|
+
export { MyComponent as my_component };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Cnv7sokw.js';
|
|
2
|
+
|
|
3
|
+
const pnButtonCss = () => `.btn{padding:0.5rem 1rem;font-weight:600;background:transparent;border:0 none;color:rgb(112, 9, 209);cursor:pointer}.btn.primary{background-color:#7009d1;color:#FFF}.btn.primary:hover,.btn.primary:focus,.btn.primary:active{background-color:#5d02b3;color:#FFF}.btn.secondary{border-color:#7009d1;background-color:#dec2f7;color:#7009d1}`;
|
|
4
|
+
|
|
5
|
+
const PnButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
label;
|
|
10
|
+
type;
|
|
11
|
+
render() {
|
|
12
|
+
return h("button", { key: '9095631c43730ec8e871bbce45817e1c45470c5a', class: "btn primary" }, this.label);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
PnButton.style = pnButtonCss();
|
|
16
|
+
|
|
17
|
+
export { PnButton as pn_button };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-Cnv7sokw.js';
|
|
2
|
+
export { s as setNonce } from './index-Cnv7sokw.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Stencil Client Patch Browser v4.41.3 | MIT Licensed | https://stenciljs.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
var patchBrowser = () => {
|
|
10
|
+
const importMeta = import.meta.url;
|
|
11
|
+
const opts = {};
|
|
12
|
+
if (importMeta !== "") {
|
|
13
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
14
|
+
}
|
|
15
|
+
return promiseResolve(opts);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
patchBrowser().then(async (options) => {
|
|
19
|
+
await globalScripts();
|
|
20
|
+
return bootstrapLazy([["my-component",[[513,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["pn-button",[[512,"pn-button",{"label":[1],"type":[1]}]]]], options);
|
|
21
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
export namespace Components {
|
|
9
|
+
interface MyComponent {
|
|
10
|
+
/**
|
|
11
|
+
* The first name
|
|
12
|
+
*/
|
|
13
|
+
"first": string;
|
|
14
|
+
/**
|
|
15
|
+
* The last name
|
|
16
|
+
*/
|
|
17
|
+
"last": string;
|
|
18
|
+
/**
|
|
19
|
+
* The middle name
|
|
20
|
+
*/
|
|
21
|
+
"middle": string;
|
|
22
|
+
}
|
|
23
|
+
interface PnButton {
|
|
24
|
+
"label": string;
|
|
25
|
+
"type": string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLMyComponentElement extends Components.MyComponent, HTMLStencilElement {
|
|
30
|
+
}
|
|
31
|
+
var HTMLMyComponentElement: {
|
|
32
|
+
prototype: HTMLMyComponentElement;
|
|
33
|
+
new (): HTMLMyComponentElement;
|
|
34
|
+
};
|
|
35
|
+
interface HTMLPnButtonElement extends Components.PnButton, HTMLStencilElement {
|
|
36
|
+
}
|
|
37
|
+
var HTMLPnButtonElement: {
|
|
38
|
+
prototype: HTMLPnButtonElement;
|
|
39
|
+
new (): HTMLPnButtonElement;
|
|
40
|
+
};
|
|
41
|
+
interface HTMLElementTagNameMap {
|
|
42
|
+
"my-component": HTMLMyComponentElement;
|
|
43
|
+
"pn-button": HTMLPnButtonElement;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
declare namespace LocalJSX {
|
|
47
|
+
interface MyComponent {
|
|
48
|
+
/**
|
|
49
|
+
* The first name
|
|
50
|
+
*/
|
|
51
|
+
"first"?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The last name
|
|
54
|
+
*/
|
|
55
|
+
"last"?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The middle name
|
|
58
|
+
*/
|
|
59
|
+
"middle"?: string;
|
|
60
|
+
}
|
|
61
|
+
interface PnButton {
|
|
62
|
+
"label"?: string;
|
|
63
|
+
"type"?: string;
|
|
64
|
+
}
|
|
65
|
+
interface IntrinsicElements {
|
|
66
|
+
"my-component": MyComponent;
|
|
67
|
+
"pn-button": PnButton;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export { LocalJSX as JSX };
|
|
71
|
+
declare module "@stencil/core" {
|
|
72
|
+
export namespace JSX {
|
|
73
|
+
interface IntrinsicElements {
|
|
74
|
+
"my-component": LocalJSX.MyComponent & JSXBase.HTMLAttributes<HTMLMyComponentElement>;
|
|
75
|
+
"pn-button": LocalJSX.PnButton & JSXBase.HTMLAttributes<HTMLPnButtonElement>;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview entry point for your component library
|
|
3
|
+
*
|
|
4
|
+
* This is the entry point for your component library. Use this file to export utilities,
|
|
5
|
+
* constants or data structure that accompany your components.
|
|
6
|
+
*
|
|
7
|
+
* DO NOT use this file to export your components. Instead, use the recommended approaches
|
|
8
|
+
* to consume components of this package as outlined in the `README.md`.
|
|
9
|
+
*/
|
|
10
|
+
export { format } from './utils/utils';
|
|
11
|
+
export type * from './components.d.ts';
|