@scouterna/ui-webc 0.2.3 → 0.2.8
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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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"],"names":[],"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;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-BKWL7m90.js';
|
|
2
|
+
export { s as setNonce } from './index-BKWL7m90.js';
|
|
3
|
+
|
|
4
|
+
const defineCustomElements = async (win, options) => {
|
|
5
|
+
if (typeof window === 'undefined') return undefined;
|
|
6
|
+
await globalScripts();
|
|
7
|
+
return bootstrapLazy([["scout-bottom-bar",[[257,"scout-bottom-bar"]]],["scout-bottom-bar-item",[[257,"scout-bottom-bar-item",{"type":[1],"href":[1],"icon":[1],"label":[1],"active":[4]}]]],["scout-button",[[257,"scout-button",{"type":[1],"variant":[1],"icon":[1]}]]]], options);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { defineCustomElements };
|
|
11
|
+
//# sourceMappingURL=loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":[],"mappings":";;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BKWL7m90.js';
|
|
2
|
+
|
|
3
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
4
|
+
|
|
5
|
+
const bottomBarItemCss = ":host{display:flex;flex:1}.button{display:flex;flex-direction:column;flex:1;justify-content:center;align-items:center;background-color:transparent;border:none;color:var(--color-text-base);cursor:pointer}.button:hover{background-color:var(--color-neutral-50)}.button.active{background-color:var(--color-blue-50);color:var(--color-blue-500)}.button .icon{width:var(--spacing-6);height:var(--spacing-6)}.button .label{font:var(--type-label-sm)}a{-webkit-text-decoration:none;text-decoration:none}";
|
|
6
|
+
|
|
7
|
+
const ScoutBottomBarItem = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.scoutClick = createEvent(this, "scoutClick");
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The type of the bottom bar item, either a button or a link.
|
|
14
|
+
*/
|
|
15
|
+
type = "button";
|
|
16
|
+
/**
|
|
17
|
+
* An optional link to navigate to when the item is clicked. Only used when
|
|
18
|
+
* `type` is set to "link".
|
|
19
|
+
*/
|
|
20
|
+
href;
|
|
21
|
+
/**
|
|
22
|
+
* An icon to display above the label. Must be an SVG string.
|
|
23
|
+
*/
|
|
24
|
+
icon;
|
|
25
|
+
/**
|
|
26
|
+
* The label to display below the icon.
|
|
27
|
+
*/
|
|
28
|
+
label;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the item is currently active. Should be set to true when the item
|
|
31
|
+
* represents the current page.
|
|
32
|
+
*/
|
|
33
|
+
active;
|
|
34
|
+
scoutClick;
|
|
35
|
+
render() {
|
|
36
|
+
const Tag = this.type === "link" ? "a" : "button";
|
|
37
|
+
const props = this.type === "link"
|
|
38
|
+
? {
|
|
39
|
+
href: this.href,
|
|
40
|
+
}
|
|
41
|
+
: {};
|
|
42
|
+
return (h(Tag, { key: 'c36c7b65c03f5dd3188466b7bbaf1e08d3ae1071', class: clsx("button", this.active && "active"), onClick: () => this.scoutClick.emit(), ...props }, h("span", { key: '79196c1d8b2c7bfc18eb5f4235d0c0d2cd335a00', class: "icon", innerHTML: this.icon }), h("span", { key: '8d6cd8fe36de135ce41880e8db3870bd33d3c0d8', class: "label" }, this.label)));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
ScoutBottomBarItem.style = bottomBarItemCss;
|
|
46
|
+
|
|
47
|
+
export { ScoutBottomBarItem as scout_bottom_bar_item };
|
|
48
|
+
//# sourceMappingURL=scout-bottom-bar-item.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scout-bottom-bar-item.entry.js","sources":["../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","src/components/bottom-bar-item/bottom-bar-item.css?tag=scout-bottom-bar-item&encapsulation=shadow","src/components/bottom-bar-item/bottom-bar-item.tsx"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;",":host {\n display: flex;\n flex: 1;\n}\n\n.button {\n display: flex;\n flex-direction: column;\n flex: 1;\n justify-content: center;\n align-items: center;\n background-color: transparent;\n border: none;\n color: var(--color-text-base);\n cursor: pointer;\n}\n\n.button:hover {\n background-color: var(--color-neutral-50);\n}\n\n.button.active {\n background-color: var(--color-blue-50);\n color: var(--color-blue-500);\n}\n\n.button .icon {\n width: var(--spacing-6);\n height: var(--spacing-6);\n}\n\n.button .label {\n font: var(--type-label-sm);\n}\n\na {\n text-decoration: none;\n}","import { Component, Event, type EventEmitter, h, Prop } from \"@stencil/core\";\nimport clsx from \"clsx\";\n\nexport type ItemType = \"button\" | \"link\";\n\n/**\n * A bottom bar item used within the bottom bar for navigation. Should not be\n * used outside of a bottom bar.\n */\n@Component({\n tag: \"scout-bottom-bar-item\",\n styleUrl: \"bottom-bar-item.css\",\n shadow: true,\n})\nexport class ScoutBottomBarItem {\n /**\n * The type of the bottom bar item, either a button or a link.\n */\n @Prop() type: ItemType = \"button\";\n\n /**\n * An optional link to navigate to when the item is clicked. Only used when\n * `type` is set to \"link\".\n */\n @Prop() href?: string;\n\n /**\n * An icon to display above the label. Must be an SVG string.\n */\n @Prop() icon!: string;\n\n /**\n * The label to display below the icon.\n */\n @Prop() label!: string;\n\n /**\n * Whether the item is currently active. Should be set to true when the item\n * represents the current page.\n */\n @Prop() active?: boolean;\n\n @Event()\n scoutClick: EventEmitter<void>;\n\n render() {\n const Tag = this.type === \"link\" ? \"a\" : \"button\";\n\n const props =\n this.type === \"link\"\n ? {\n href: this.href,\n }\n : {};\n\n return (\n <Tag\n class={clsx(\"button\", this.active && \"active\")}\n onClick={() => this.scoutClick.emit()}\n {...props}\n >\n <span class=\"icon\" innerHTML={this.icon} />\n <span class=\"label\">{this.label}</span>\n </Tag>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAC,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAQ,SAAS,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;ACA/W,MAAM,gBAAgB,GAAG,+eAA+e;;MCc3f,kBAAkB,GAAA,MAAA;;;;;AAC7B;;AAEG;IACK,IAAI,GAAa,QAAQ;AAEjC;;;AAGG;AACK,IAAA,IAAI;AAEZ;;AAEG;AACK,IAAA,IAAI;AAEZ;;AAEG;AACK,IAAA,KAAK;AAEb;;;AAGG;AACK,IAAA,MAAM;AAGd,IAAA,UAAU;IAEV,MAAM,GAAA;AACJ,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,KAAK,MAAM,GAAG,GAAG,GAAG,QAAQ;AAEjD,QAAA,MAAM,KAAK,GACT,IAAI,CAAC,IAAI,KAAK;AACZ,cAAE;gBACE,IAAI,EAAE,IAAI,CAAC,IAAI;AAChB;cACD,EAAE;AAER,QAAA,QACE,CAAA,CAAC,GAAG,EAAA,EAAA,GAAA,EAAA,0CAAA,EACF,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,IAAI,QAAQ,CAAC,EAC9C,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KACjC,KAAK,EAAA,EAET,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,MAAM,EAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAI,CAAA,EAC3C,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,OAAO,EAAE,EAAA,IAAI,CAAC,KAAK,CAAQ,CACnC;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-BKWL7m90.js';
|
|
2
|
+
|
|
3
|
+
const bottomBarCss = ":host{display:flex;width:100%}.container{display:flex;flex:1;height:var(--spacing-14);border-top:1px solid var(--color-neutral-100)}";
|
|
4
|
+
|
|
5
|
+
const ScoutBottomBar = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h("nav", { key: '68384cb3993fa3ca4a70fdf55f691f728c5cfb2b', class: "container" }, h("slot", { key: '5dd9a017d0d7c3d3f0adb516ba66118f73c27841' })));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
ScoutBottomBar.style = bottomBarCss;
|
|
14
|
+
|
|
15
|
+
export { ScoutBottomBar as scout_bottom_bar };
|
|
16
|
+
//# sourceMappingURL=scout-bottom-bar.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scout-bottom-bar.entry.js","sources":["src/components/bottom-bar/bottom-bar.css?tag=scout-bottom-bar&encapsulation=shadow","src/components/bottom-bar/bottom-bar.tsx"],"sourcesContent":[":host {\n display: flex;\n width: 100%;\n}\n\n.container {\n display: flex;\n flex: 1;\n height: var(--spacing-14);\n border-top: 1px solid var(--color-neutral-100);\n}","import { Component, h } from \"@stencil/core\";\n\n/**\n * The bottom bar component is used in the Jamboree26 app to provide\n * navigation at the bottom of the screen.\n */\n@Component({\n tag: \"scout-bottom-bar\",\n styleUrl: \"bottom-bar.css\",\n shadow: true,\n})\nexport class ScoutBottomBar {\n render() {\n return (\n <nav class=\"container\">\n <slot />\n </nav>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,YAAY,GAAG,sIAAsI;;MCW9I,cAAc,GAAA,MAAA;;;;IACzB,MAAM,GAAA;QACJ,QACE,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,WAAW,EAAA,EACpB,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACJ;;;;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BKWL7m90.js';
|
|
2
|
+
|
|
3
|
+
const buttonCss = ":host{display:inline-flex}button{display:inline-flex;align-items:center;justify-content:center;gap:var(--spacing-3);height:var(--spacing-10);padding:0 var(--spacing-4);font:var(--type-body-base);border-radius:var(--spacing-2);border:1px solid transparent;cursor:pointer}.icon{width:var(--spacing-5);height:var(--spacing-5);margin:0 calc(var(--spacing-1) * -1)}.icon svg{width:100%;height:100%}button.primary{background-color:var(--color-background-brand-base);color:var(--color-text-brand-inverse)}button.primary:hover{background-color:var(--color-background-brand-hovered)}button.primary:active{background-color:var(--color-background-brand-pressed)}button.outlined{background-color:transparent;border-color:var(--color-background-brand-subtle-base);color:var(--color-text-brand-base)}button.outlined:hover{background-color:var(--color-background-brand-subtle-hovered)}button.outlined:active{background-color:var(--color-background-brand-subtle-pressed)}button.text{background-color:transparent;border-color:transparent;color:var(--color-text-brand-base)}button.text:hover{background-color:var(--color-background-brand-subtle-hovered)}button.text:active{background-color:var(--color-background-brand-subtle-pressed)}button.caution{background-color:var(--color-background-caution-bold-base);color:var(--color-text-caution-bold-base)}button.caution:hover{background-color:var(--color-background-caution-bold-hovered)}button.caution:active{background-color:var(--color-background-caution-bold-pressed)}button.danger{background-color:var(--color-background-danger-bold-base);color:var(--color-text-danger-bold-base)}button.danger:hover{background-color:var(--color-background-danger-bold-hovered)}button.danger:active{background-color:var(--color-background-danger-bold-pressed)}";
|
|
4
|
+
|
|
5
|
+
const ScoutButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.scoutClick = createEvent(this, "scoutClick");
|
|
9
|
+
}
|
|
10
|
+
type = "button";
|
|
11
|
+
/**
|
|
12
|
+
* The variant primarily affects the color of the button.
|
|
13
|
+
*/
|
|
14
|
+
variant = "outlined";
|
|
15
|
+
/**
|
|
16
|
+
* An optional icon to display alongside the button text. Must be an SVG string.
|
|
17
|
+
*/
|
|
18
|
+
icon;
|
|
19
|
+
scoutClick;
|
|
20
|
+
render() {
|
|
21
|
+
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 })));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
ScoutButton.style = buttonCss;
|
|
25
|
+
|
|
26
|
+
export { ScoutButton as scout_button };
|
|
27
|
+
//# sourceMappingURL=scout-button.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scout-button.entry.js","sources":["src/components/button/button.css?tag=scout-button&encapsulation=shadow","src/components/button/button.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n}\n\nbutton {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-3);\n height: var(--spacing-10);\n padding: 0 var(--spacing-4);\n font: var(--type-body-base);\n border-radius: var(--spacing-2);\n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.icon {\n width: var(--spacing-5);\n height: var(--spacing-5);\n margin: 0 calc(var(--spacing-1) * -1);\n}\n\n.icon svg {\n width: 100%;\n height: 100%;\n}\n\nbutton.primary {\n background-color: var(--color-background-brand-base);\n color: var(--color-text-brand-inverse);\n\n &:hover {\n background-color: var(--color-background-brand-hovered);\n }\n &:active {\n background-color: var(--color-background-brand-pressed);\n }\n}\n\nbutton.outlined {\n background-color: transparent;\n border-color: var(--color-background-brand-subtle-base);\n color: var(--color-text-brand-base);\n\n &:hover {\n background-color: var(--color-background-brand-subtle-hovered);\n }\n &:active {\n background-color: var(--color-background-brand-subtle-pressed);\n }\n}\n\nbutton.text {\n background-color: transparent;\n border-color: transparent;\n color: var(--color-text-brand-base);\n\n &:hover {\n background-color: var(--color-background-brand-subtle-hovered);\n }\n &:active {\n background-color: var(--color-background-brand-subtle-pressed);\n }\n}\n\nbutton.caution {\n background-color: var(--color-background-caution-bold-base);\n color: var(--color-text-caution-bold-base);\n\n &:hover {\n background-color: var(--color-background-caution-bold-hovered);\n }\n &:active {\n background-color: var(--color-background-caution-bold-pressed);\n }\n}\n\nbutton.danger {\n background-color: var(--color-background-danger-bold-base);\n color: var(--color-text-danger-bold-base);\n\n &:hover {\n background-color: var(--color-background-danger-bold-hovered);\n }\n &:active {\n background-color: var(--color-background-danger-bold-pressed);\n }\n}\n","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"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG,kvDAAkvD;;MCYvvD,WAAW,GAAA,MAAA;;;;;IACd,IAAI,GAAkC,QAAQ;AAEtD;;AAEG;IACK,OAAO,GAAY,UAAU;AAErC;;AAEG;AACK,IAAA,IAAI;AAGZ,IAAA,UAAU;IAEV,MAAM,GAAA;AACJ,QAAA,QACE,CACE,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,EAAA,EAErC,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACP,IAAI,CAAC,IAAI,IAAI,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,MAAM,EAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAI,CAAA,CAClD;;;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-BKWL7m90.js';
|
|
2
|
+
export { s as setNonce } from './index-BKWL7m90.js';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
Stencil Client Patch Browser v4.38.1 | MIT Licensed | https://stenciljs.com
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
19
|
+
return bootstrapLazy([["scout-bottom-bar",[[257,"scout-bottom-bar"]]],["scout-bottom-bar-item",[[257,"scout-bottom-bar-item",{"type":[1],"href":[1],"icon":[1],"label":[1],"active":[4]}]]],["scout-button",[[257,"scout-button",{"type":[1],"variant":[1],"icon":[1]}]]]], options);
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=ui-webc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-webc.js","sources":["../../node_modules/.pnpm/@stencil+core@4.38.1/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.38.1 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -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,32 @@
|
|
|
1
|
+
import { type EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
export type ItemType = "button" | "link";
|
|
3
|
+
/**
|
|
4
|
+
* A bottom bar item used within the bottom bar for navigation. Should not be
|
|
5
|
+
* used outside of a bottom bar.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ScoutBottomBarItem {
|
|
8
|
+
/**
|
|
9
|
+
* The type of the bottom bar item, either a button or a link.
|
|
10
|
+
*/
|
|
11
|
+
type: ItemType;
|
|
12
|
+
/**
|
|
13
|
+
* An optional link to navigate to when the item is clicked. Only used when
|
|
14
|
+
* `type` is set to "link".
|
|
15
|
+
*/
|
|
16
|
+
href?: string;
|
|
17
|
+
/**
|
|
18
|
+
* An icon to display above the label. Must be an SVG string.
|
|
19
|
+
*/
|
|
20
|
+
icon: string;
|
|
21
|
+
/**
|
|
22
|
+
* The label to display below the icon.
|
|
23
|
+
*/
|
|
24
|
+
label: string;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the item is currently active. Should be set to true when the item
|
|
27
|
+
* represents the current page.
|
|
28
|
+
*/
|
|
29
|
+
active?: boolean;
|
|
30
|
+
scoutClick: EventEmitter<void>;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
export type Variant = "primary" | "outlined" | "text" | "caution" | "danger";
|
|
3
|
+
/**
|
|
4
|
+
* A simple button component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ScoutButton {
|
|
7
|
+
type: "button" | "submit" | "reset";
|
|
8
|
+
/**
|
|
9
|
+
* The variant primarily affects the color of the button.
|
|
10
|
+
*/
|
|
11
|
+
variant: Variant;
|
|
12
|
+
/**
|
|
13
|
+
* An optional icon to display alongside the button text. Must be an SVG string.
|
|
14
|
+
*/
|
|
15
|
+
icon?: string;
|
|
16
|
+
scoutClick: EventEmitter<void>;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
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
|
+
import { ItemType } from "./components/bottom-bar-item/bottom-bar-item";
|
|
9
|
+
import { Variant } from "./components/button/button";
|
|
10
|
+
export { ItemType } from "./components/bottom-bar-item/bottom-bar-item";
|
|
11
|
+
export { Variant } from "./components/button/button";
|
|
12
|
+
export namespace Components {
|
|
13
|
+
/**
|
|
14
|
+
* The bottom bar component is used in the Jamboree26 app to provide
|
|
15
|
+
* navigation at the bottom of the screen.
|
|
16
|
+
*/
|
|
17
|
+
interface ScoutBottomBar {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A bottom bar item used within the bottom bar for navigation. Should not be
|
|
21
|
+
* used outside of a bottom bar.
|
|
22
|
+
*/
|
|
23
|
+
interface ScoutBottomBarItem {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the item is currently active. Should be set to true when the item represents the current page.
|
|
26
|
+
*/
|
|
27
|
+
"active"?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* An optional link to navigate to when the item is clicked. Only used when `type` is set to "link".
|
|
30
|
+
*/
|
|
31
|
+
"href"?: string;
|
|
32
|
+
/**
|
|
33
|
+
* An icon to display above the label. Must be an SVG string.
|
|
34
|
+
*/
|
|
35
|
+
"icon": string;
|
|
36
|
+
/**
|
|
37
|
+
* The label to display below the icon.
|
|
38
|
+
*/
|
|
39
|
+
"label": string;
|
|
40
|
+
/**
|
|
41
|
+
* The type of the bottom bar item, either a button or a link.
|
|
42
|
+
* @default "button"
|
|
43
|
+
*/
|
|
44
|
+
"type": ItemType;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A simple button component.
|
|
48
|
+
*/
|
|
49
|
+
interface ScoutButton {
|
|
50
|
+
/**
|
|
51
|
+
* An optional icon to display alongside the button text. Must be an SVG string.
|
|
52
|
+
*/
|
|
53
|
+
"icon"?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @default "button"
|
|
56
|
+
*/
|
|
57
|
+
"type": "button" | "submit" | "reset";
|
|
58
|
+
/**
|
|
59
|
+
* The variant primarily affects the color of the button.
|
|
60
|
+
* @default "outlined"
|
|
61
|
+
*/
|
|
62
|
+
"variant": Variant;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export interface ScoutBottomBarItemCustomEvent<T> extends CustomEvent<T> {
|
|
66
|
+
detail: T;
|
|
67
|
+
target: HTMLScoutBottomBarItemElement;
|
|
68
|
+
}
|
|
69
|
+
export interface ScoutButtonCustomEvent<T> extends CustomEvent<T> {
|
|
70
|
+
detail: T;
|
|
71
|
+
target: HTMLScoutButtonElement;
|
|
72
|
+
}
|
|
73
|
+
declare global {
|
|
74
|
+
/**
|
|
75
|
+
* The bottom bar component is used in the Jamboree26 app to provide
|
|
76
|
+
* navigation at the bottom of the screen.
|
|
77
|
+
*/
|
|
78
|
+
interface HTMLScoutBottomBarElement extends Components.ScoutBottomBar, HTMLStencilElement {
|
|
79
|
+
}
|
|
80
|
+
var HTMLScoutBottomBarElement: {
|
|
81
|
+
prototype: HTMLScoutBottomBarElement;
|
|
82
|
+
new (): HTMLScoutBottomBarElement;
|
|
83
|
+
};
|
|
84
|
+
interface HTMLScoutBottomBarItemElementEventMap {
|
|
85
|
+
"scoutClick": void;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* A bottom bar item used within the bottom bar for navigation. Should not be
|
|
89
|
+
* used outside of a bottom bar.
|
|
90
|
+
*/
|
|
91
|
+
interface HTMLScoutBottomBarItemElement extends Components.ScoutBottomBarItem, HTMLStencilElement {
|
|
92
|
+
addEventListener<K extends keyof HTMLScoutBottomBarItemElementEventMap>(type: K, listener: (this: HTMLScoutBottomBarItemElement, ev: ScoutBottomBarItemCustomEvent<HTMLScoutBottomBarItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
93
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
94
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
95
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
96
|
+
removeEventListener<K extends keyof HTMLScoutBottomBarItemElementEventMap>(type: K, listener: (this: HTMLScoutBottomBarItemElement, ev: ScoutBottomBarItemCustomEvent<HTMLScoutBottomBarItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
97
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
98
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
99
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
100
|
+
}
|
|
101
|
+
var HTMLScoutBottomBarItemElement: {
|
|
102
|
+
prototype: HTMLScoutBottomBarItemElement;
|
|
103
|
+
new (): HTMLScoutBottomBarItemElement;
|
|
104
|
+
};
|
|
105
|
+
interface HTMLScoutButtonElementEventMap {
|
|
106
|
+
"scoutClick": void;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* A simple button component.
|
|
110
|
+
*/
|
|
111
|
+
interface HTMLScoutButtonElement extends Components.ScoutButton, HTMLStencilElement {
|
|
112
|
+
addEventListener<K extends keyof HTMLScoutButtonElementEventMap>(type: K, listener: (this: HTMLScoutButtonElement, ev: ScoutButtonCustomEvent<HTMLScoutButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
113
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
114
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
115
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
116
|
+
removeEventListener<K extends keyof HTMLScoutButtonElementEventMap>(type: K, listener: (this: HTMLScoutButtonElement, ev: ScoutButtonCustomEvent<HTMLScoutButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
117
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
118
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
119
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
120
|
+
}
|
|
121
|
+
var HTMLScoutButtonElement: {
|
|
122
|
+
prototype: HTMLScoutButtonElement;
|
|
123
|
+
new (): HTMLScoutButtonElement;
|
|
124
|
+
};
|
|
125
|
+
interface HTMLElementTagNameMap {
|
|
126
|
+
"scout-bottom-bar": HTMLScoutBottomBarElement;
|
|
127
|
+
"scout-bottom-bar-item": HTMLScoutBottomBarItemElement;
|
|
128
|
+
"scout-button": HTMLScoutButtonElement;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
declare namespace LocalJSX {
|
|
132
|
+
/**
|
|
133
|
+
* The bottom bar component is used in the Jamboree26 app to provide
|
|
134
|
+
* navigation at the bottom of the screen.
|
|
135
|
+
*/
|
|
136
|
+
interface ScoutBottomBar {
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* A bottom bar item used within the bottom bar for navigation. Should not be
|
|
140
|
+
* used outside of a bottom bar.
|
|
141
|
+
*/
|
|
142
|
+
interface ScoutBottomBarItem {
|
|
143
|
+
/**
|
|
144
|
+
* Whether the item is currently active. Should be set to true when the item represents the current page.
|
|
145
|
+
*/
|
|
146
|
+
"active"?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* An optional link to navigate to when the item is clicked. Only used when `type` is set to "link".
|
|
149
|
+
*/
|
|
150
|
+
"href"?: string;
|
|
151
|
+
/**
|
|
152
|
+
* An icon to display above the label. Must be an SVG string.
|
|
153
|
+
*/
|
|
154
|
+
"icon": string;
|
|
155
|
+
/**
|
|
156
|
+
* The label to display below the icon.
|
|
157
|
+
*/
|
|
158
|
+
"label": string;
|
|
159
|
+
"onScoutClick"?: (event: ScoutBottomBarItemCustomEvent<void>) => void;
|
|
160
|
+
/**
|
|
161
|
+
* The type of the bottom bar item, either a button or a link.
|
|
162
|
+
* @default "button"
|
|
163
|
+
*/
|
|
164
|
+
"type"?: ItemType;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* A simple button component.
|
|
168
|
+
*/
|
|
169
|
+
interface ScoutButton {
|
|
170
|
+
/**
|
|
171
|
+
* An optional icon to display alongside the button text. Must be an SVG string.
|
|
172
|
+
*/
|
|
173
|
+
"icon"?: string;
|
|
174
|
+
"onScoutClick"?: (event: ScoutButtonCustomEvent<void>) => void;
|
|
175
|
+
/**
|
|
176
|
+
* @default "button"
|
|
177
|
+
*/
|
|
178
|
+
"type"?: "button" | "submit" | "reset";
|
|
179
|
+
/**
|
|
180
|
+
* The variant primarily affects the color of the button.
|
|
181
|
+
* @default "outlined"
|
|
182
|
+
*/
|
|
183
|
+
"variant"?: Variant;
|
|
184
|
+
}
|
|
185
|
+
interface IntrinsicElements {
|
|
186
|
+
"scout-bottom-bar": ScoutBottomBar;
|
|
187
|
+
"scout-bottom-bar-item": ScoutBottomBarItem;
|
|
188
|
+
"scout-button": ScoutButton;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
export { LocalJSX as JSX };
|
|
192
|
+
declare module "@stencil/core" {
|
|
193
|
+
export namespace JSX {
|
|
194
|
+
interface IntrinsicElements {
|
|
195
|
+
/**
|
|
196
|
+
* The bottom bar component is used in the Jamboree26 app to provide
|
|
197
|
+
* navigation at the bottom of the screen.
|
|
198
|
+
*/
|
|
199
|
+
"scout-bottom-bar": LocalJSX.ScoutBottomBar & JSXBase.HTMLAttributes<HTMLScoutBottomBarElement>;
|
|
200
|
+
/**
|
|
201
|
+
* A bottom bar item used within the bottom bar for navigation. Should not be
|
|
202
|
+
* used outside of a bottom bar.
|
|
203
|
+
*/
|
|
204
|
+
"scout-bottom-bar-item": LocalJSX.ScoutBottomBarItem & JSXBase.HTMLAttributes<HTMLScoutBottomBarItemElement>;
|
|
205
|
+
/**
|
|
206
|
+
* A simple button component.
|
|
207
|
+
*/
|
|
208
|
+
"scout-button": LocalJSX.ScoutButton & JSXBase.HTMLAttributes<HTMLScoutButtonElement>;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -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';
|