@scouterna/ui-webc 0.2.3 → 0.2.7
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/dist/cjs/index-M8pbc2b8.js +1515 -0
- package/dist/cjs/index-M8pbc2b8.js.map +1 -0
- package/dist/cjs/index.cjs.js +8 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/scout-bottom-bar-item.cjs.entry.js +50 -0
- package/dist/cjs/scout-bottom-bar-item.entry.cjs.js.map +1 -0
- package/dist/cjs/scout-bottom-bar.cjs.entry.js +18 -0
- package/dist/cjs/scout-bottom-bar.entry.cjs.js.map +1 -0
- package/dist/cjs/scout-button.cjs.entry.js +29 -0
- package/dist/cjs/scout-button.entry.cjs.js.map +1 -0
- package/dist/cjs/ui-webc.cjs.js +25 -0
- package/dist/cjs/ui-webc.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +14 -0
- package/dist/collection/components/bottom-bar/bottom-bar.css +11 -0
- package/dist/collection/components/bottom-bar/bottom-bar.js +23 -0
- package/dist/collection/components/bottom-bar/bottom-bar.js.map +1 -0
- package/dist/collection/components/bottom-bar-item/bottom-bar-item.css +39 -0
- package/dist/collection/components/bottom-bar-item/bottom-bar-item.js +177 -0
- package/dist/collection/components/bottom-bar-item/bottom-bar-item.js.map +1 -0
- package/dist/collection/components/button/button.css +94 -0
- package/dist/collection/components/button/button.js +119 -0
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +10 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-CMd0pUms.js +1306 -0
- package/dist/components/p-CMd0pUms.js.map +1 -0
- package/dist/components/scout-bottom-bar-item.d.ts +11 -0
- package/dist/components/scout-bottom-bar-item.js +76 -0
- package/dist/components/scout-bottom-bar-item.js.map +1 -0
- package/dist/components/scout-bottom-bar.d.ts +11 -0
- package/dist/components/scout-bottom-bar.js +38 -0
- package/dist/components/scout-bottom-bar.js.map +1 -0
- package/dist/components/scout-button.d.ts +11 -0
- package/dist/components/scout-button.js +53 -0
- package/dist/components/scout-button.js.map +1 -0
- package/dist/custom-elements.d.ts +443 -0
- package/dist/custom-elements.json +356 -0
- package/dist/esm/index-BKWL7m90.js +1507 -0
- package/dist/esm/index-BKWL7m90.js.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/scout-bottom-bar-item.entry.js +48 -0
- package/dist/esm/scout-bottom-bar-item.entry.js.map +1 -0
- package/dist/esm/scout-bottom-bar.entry.js +16 -0
- package/dist/esm/scout-bottom-bar.entry.js.map +1 -0
- package/dist/esm/scout-button.entry.js +27 -0
- package/dist/esm/scout-button.entry.js.map +1 -0
- package/dist/esm/ui-webc.js +21 -0
- package/dist/esm/ui-webc.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/bottom-bar/bottom-bar.d.ts +7 -0
- package/dist/types/components/bottom-bar-item/bottom-bar-item.d.ts +32 -0
- package/dist/types/components/button/button.d.ts +18 -0
- package/dist/types/components.d.ts +211 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/raw.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1747 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/ui-webc/index.esm.js +2 -0
- package/dist/ui-webc/index.esm.js.map +1 -0
- package/dist/ui-webc/loader.esm.js.map +1 -0
- package/dist/ui-webc/p-2b13b5cd.entry.js +2 -0
- package/dist/ui-webc/p-2b13b5cd.entry.js.map +1 -0
- package/dist/ui-webc/p-5a234307.entry.js +2 -0
- package/dist/ui-webc/p-5a234307.entry.js.map +1 -0
- package/dist/ui-webc/p-BKWL7m90.js +3 -0
- package/dist/ui-webc/p-BKWL7m90.js.map +1 -0
- package/dist/ui-webc/p-d1aadf34.entry.js +2 -0
- package/dist/ui-webc/p-d1aadf34.entry.js.map +1 -0
- package/dist/ui-webc/scout-bottom-bar-item.entry.esm.js.map +1 -0
- package/dist/ui-webc/scout-bottom-bar.entry.esm.js.map +1 -0
- package/dist/ui-webc/scout-button.entry.esm.js.map +1 -0
- package/dist/ui-webc/ui-webc.css +1 -0
- package/dist/ui-webc/ui-webc.esm.js +2 -0
- package/dist/ui-webc/ui-webc.esm.js.map +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 +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A simple button component.
|
|
4
|
+
*/
|
|
5
|
+
export class ScoutButton {
|
|
6
|
+
type = "button";
|
|
7
|
+
/**
|
|
8
|
+
* The variant primarily affects the color of the button.
|
|
9
|
+
*/
|
|
10
|
+
variant = "outlined";
|
|
11
|
+
/**
|
|
12
|
+
* An optional icon to display alongside the button text. Must be an SVG string.
|
|
13
|
+
*/
|
|
14
|
+
icon;
|
|
15
|
+
scoutClick;
|
|
16
|
+
render() {
|
|
17
|
+
return (h("button", { key: '1c6f55bf05f4d705f9a06ab55b51269c82753662', type: this.type, class: this.variant, onClick: () => this.scoutClick.emit() }, h("slot", { key: '5cd3412caf13b6d99da517ae7e6f5877234e65d7' }), this.icon && h("span", { key: '192d381457cde85ace465db047664b63d2fdeeed', class: "icon", innerHTML: this.icon })));
|
|
18
|
+
}
|
|
19
|
+
static get is() { return "scout-button"; }
|
|
20
|
+
static get encapsulation() { return "shadow"; }
|
|
21
|
+
static get originalStyleUrls() {
|
|
22
|
+
return {
|
|
23
|
+
"$": ["button.css"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static get styleUrls() {
|
|
27
|
+
return {
|
|
28
|
+
"$": ["button.css"]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static get properties() {
|
|
32
|
+
return {
|
|
33
|
+
"type": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "\"button\" | \"submit\" | \"reset\"",
|
|
38
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": false,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": ""
|
|
46
|
+
},
|
|
47
|
+
"getter": false,
|
|
48
|
+
"setter": false,
|
|
49
|
+
"reflect": false,
|
|
50
|
+
"attribute": "type",
|
|
51
|
+
"defaultValue": "\"button\""
|
|
52
|
+
},
|
|
53
|
+
"variant": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "Variant",
|
|
58
|
+
"resolved": "\"caution\" | \"danger\" | \"outlined\" | \"primary\" | \"text\"",
|
|
59
|
+
"references": {
|
|
60
|
+
"Variant": {
|
|
61
|
+
"location": "local",
|
|
62
|
+
"path": "/home/runner/work/j26-web-components/j26-web-components/packages/ui-webc/src/components/button/button.tsx",
|
|
63
|
+
"id": "src/components/button/button.tsx::Variant"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "The variant primarily affects the color of the button."
|
|
72
|
+
},
|
|
73
|
+
"getter": false,
|
|
74
|
+
"setter": false,
|
|
75
|
+
"reflect": false,
|
|
76
|
+
"attribute": "variant",
|
|
77
|
+
"defaultValue": "\"outlined\""
|
|
78
|
+
},
|
|
79
|
+
"icon": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "string",
|
|
84
|
+
"resolved": "string",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": true,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "An optional icon to display alongside the button text. Must be an SVG string."
|
|
92
|
+
},
|
|
93
|
+
"getter": false,
|
|
94
|
+
"setter": false,
|
|
95
|
+
"reflect": false,
|
|
96
|
+
"attribute": "icon"
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static get events() {
|
|
101
|
+
return [{
|
|
102
|
+
"method": "scoutClick",
|
|
103
|
+
"name": "scoutClick",
|
|
104
|
+
"bubbles": true,
|
|
105
|
+
"cancelable": true,
|
|
106
|
+
"composed": true,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "void",
|
|
113
|
+
"resolved": "void",
|
|
114
|
+
"references": {}
|
|
115
|
+
}
|
|
116
|
+
}];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAqB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI7E;;GAEG;AAMH,MAAM,OAAO,WAAW;IACd,IAAI,GAAkC,QAAQ,CAAC;IAEvD;;OAEG;IACK,OAAO,GAAY,UAAU,CAAC;IAEtC;;OAEG;IACK,IAAI,CAAU;IAGtB,UAAU,CAAqB;IAE/B,MAAM;QACJ,OAAO,CACL,+DACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YAErC,8DAAQ;YACP,IAAI,CAAC,IAAI,IAAI,6DAAM,KAAK,EAAC,MAAM,EAAC,SAAS,EAAE,IAAI,CAAC,IAAI,GAAI,CAClD,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, type EventEmitter, h, Prop } from \"@stencil/core\";\n\nexport type Variant = \"primary\" | \"outlined\" | \"text\" | \"caution\" | \"danger\";\n\n/**\n * A simple button component.\n */\n@Component({\n tag: \"scout-button\",\n styleUrl: \"button.css\",\n shadow: true,\n})\nexport class ScoutButton {\n @Prop() type: \"button\" | \"submit\" | \"reset\" = \"button\";\n\n /**\n * The variant primarily affects the color of the button.\n */\n @Prop() variant: Variant = \"outlined\";\n\n /**\n * An optional icon to display alongside the button text. Must be an SVG string.\n */\n @Prop() icon?: string;\n\n @Event()\n scoutClick: EventEmitter<void>;\n\n render() {\n return (\n <button\n type={this.type}\n class={this.variant}\n onClick={() => this.scoutClick.emit()}\n >\n <slot />\n {this.icon && <span class=\"icon\" innerHTML={this.icon} />}\n </button>\n );\n }\n}\n"]}
|
|
@@ -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
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC","sourcesContent":["/**\n * @fileoverview entry point for your component library\n *\n * This is the entry point for your component library. Use this file to export utilities,\n * constants or data structure that accompany your components.\n *\n * DO NOT use this file to export your components. Instead, use the recommended approaches\n * to consume components of this package as outlined in the `README.md`.\n */\n\nexport { format } from './utils/utils';\nexport type * from './components.d.ts';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa;IACnE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC","sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
3
|
+
* if the path needs to be customized.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getAssetPath: (path: string) => string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Used to manually set the base path where assets can be found.
|
|
9
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
10
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
11
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
12
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
13
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
14
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
15
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
16
|
+
*/
|
|
17
|
+
export declare const setAssetPath: (path: string) => void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
21
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
22
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
23
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
24
|
+
* will result in the same behavior.
|
|
25
|
+
*/
|
|
26
|
+
export declare const setNonce: (nonce: string) => void
|
|
27
|
+
|
|
28
|
+
export interface SetPlatformOptions {
|
|
29
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
30
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
31
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-CMd0pUms.js';
|
|
2
|
+
|
|
3
|
+
function format(first, middle, last) {
|
|
4
|
+
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { format };
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"index.js","mappings":";;SAAgB,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa,EAAA;AACnE,IAAA,OAAO,CAAC,KAAK,IAAI,EAAE,KAAK,MAAM,GAAG,CAAI,CAAA,EAAA,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,GAAG,CAAI,CAAA,EAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AAChF;;;;","names":[],"sources":["src/utils/utils.ts"],"sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n"],"version":3}
|