@michellegerwald/gigax-designsystem 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/components/index.d.ts +35 -0
- package/dist/components/vf-button.d.ts +11 -0
- package/dist/components/vf-input.d.ts +11 -0
- package/dist/gigax-designsystem/gigax-designsystem.css +36 -0
- package/dist/gigax-designsystem/gigax-designsystem.esm.js +50 -0
- package/dist/gigax-designsystem/gigax-designsystem.esm.js.map +1 -0
- package/dist/gigax-designsystem/index-UaVoj1QU.js +4625 -0
- package/dist/gigax-designsystem/index-UaVoj1QU.js.map +1 -0
- package/dist/gigax-designsystem/index.esm.js +18 -0
- package/dist/gigax-designsystem/index.esm.js.map +1 -0
- package/dist/gigax-designsystem/vf-button.entry.js +29 -0
- package/dist/gigax-designsystem/vf-button.entry.js.map +1 -0
- package/dist/gigax-designsystem/vf-input.entry.js +18 -0
- package/dist/gigax-designsystem/vf-input.entry.js.map +1 -0
- package/dist/types/components/vf-button/vf-button.d.ts +12 -0
- package/dist/types/components/vf-input/vf-input.d.ts +3 -0
- package/dist/types/components.d.ts +115 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/types/utils/utils.unit.test.d.ts +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 +108 -0
- package/readme.md +56 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function format(first, middle, last) {
|
|
2
|
+
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @fileoverview entry point for your component library
|
|
7
|
+
*
|
|
8
|
+
* This is the entry point for your component library. Use this file to export utilities,
|
|
9
|
+
* constants or data structure that accompany your components.
|
|
10
|
+
*
|
|
11
|
+
* DO NOT use this file to export your components. Instead, use the recommended approaches
|
|
12
|
+
* to consume components of this package as outlined in the `README.md`.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
export { format };
|
|
16
|
+
//# sourceMappingURL=index.esm.js.map
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["src/utils/utils.ts","src/index.ts"],"sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n","/**\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"],"names":[],"mappings":"SAAgB,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa,EAAA;AACnE,IAAA,OAAO,CAAC,KAAK,IAAI,EAAE,KAAK,MAAM,GAAG,CAAA,CAAA,EAAI,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,GAAG,CAAA,CAAA,EAAI,IAAI,EAAE,GAAG,EAAE,CAAC;AAChF;;ACFA;;;;;;;;AAQG;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as registerInstance, a as createEvent, h } from './index-UaVoj1QU.js';
|
|
2
|
+
|
|
3
|
+
const vfButtonCss = () => `:host{display:block}.vf-button{padding:0.5rem 1rem;border:none;border-radius:4px;background-color:var(--vf-red);color:white;font-size:1rem;cursor:pointer}`;
|
|
4
|
+
|
|
5
|
+
const VfButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.fun = createEvent(this, "fun", 7);
|
|
9
|
+
}
|
|
10
|
+
type = 'secondary';
|
|
11
|
+
iconPosition = 'left';
|
|
12
|
+
state = 'full';
|
|
13
|
+
fullWidth = false;
|
|
14
|
+
icon = '';
|
|
15
|
+
text = "Button";
|
|
16
|
+
fun;
|
|
17
|
+
handleClick = (event) => {
|
|
18
|
+
this.fun.emit(event);
|
|
19
|
+
};
|
|
20
|
+
render() {
|
|
21
|
+
return h("button", { key: '84b3c2402c89e3194b89113456d7820b5229e930', class: "vf-button", onClick: this.handleClick }, this.text);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
VfButton.style = vfButtonCss();
|
|
25
|
+
|
|
26
|
+
export { VfButton as vf_button };
|
|
27
|
+
//# sourceMappingURL=vf-button.entry.esm.js.map
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=vf-button.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"vf-button.entry.js","mappings":";;AAAA,MAAM,WAAW,GAAG,MAAM,CAAC,0JAA0J,CAAC;;MCOzK,QAAQ,GAAA,MAAA;;;;;IAEX,IAAI,GAA6D,WAAW;IAC5E,YAAY,GAAqB,MAAM;IACtC,KAAK,GAAiD,MAAM;IAC7D,SAAS,GAAY,KAAK;IAE1B,IAAI,GAAW,EAAE;IAEjB,IAAI,GAAW,QAAQ;AACtB,IAAA,GAAG;AAEJ,IAAA,WAAW,GAAG,CAAC,KAAiB,KAAI;AAC1C,QAAA,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;AACtB,KAAC;IAED,MAAM,GAAA;QACJ,OAAO,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,KAAK,EAAC,WAAW,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAA,EAAG,IAAI,CAAC,IAAI,CAAU;;;;;;;","names":[],"sources":["src/components/vf-button/vf-button.css?tag=vf-button&encapsulation=shadow","src/components/vf-button/vf-button.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.vf-button {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n background-color: var(--vf-red);\n color: white;\n font-size: 1rem;\n cursor: pointer;\n}","import { Component, EventEmitter, Event, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'vf-button',\n styleUrl: 'vf-button.css',\n shadow: true,\n})\nexport class VfButton {\n\n @Prop() type: 'primary' | 'secondary' | 'alternative' | 'alternative2' = 'secondary';\n @Prop() iconPosition: 'left' | 'right' = 'left';\n @State() state: 'disabled' | 'selected' | 'loading' | 'full' = 'full';\n @Prop() fullWidth: boolean = false;\n\n @Prop() icon: string = '';\n\n @Prop() text: string = \"Button\";\n @Event() fun!: EventEmitter<MouseEvent>;\n\n private handleClick = (event: MouseEvent) => {\n this.fun.emit(event);\n };\n\n render() {\n return <button class=\"vf-button\" onClick={this.handleClick}>{this.text}</button>;\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-UaVoj1QU.js';
|
|
2
|
+
|
|
3
|
+
const vfInputCss = () => `:host{display:block}.vf-input{padding:0.5rem;border:1px solid #ccc;border-radius:4px;font-size:1rem}`;
|
|
4
|
+
|
|
5
|
+
const VfInput = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { key: '686f2221c0adbea963184a4a8778112cd5276f1a' }, h("input", { key: '91f202da9752758f441bc797a4675f172f395e1c', type: "text" })));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
VfInput.style = vfInputCss();
|
|
14
|
+
|
|
15
|
+
export { VfInput as vf_input };
|
|
16
|
+
//# sourceMappingURL=vf-input.entry.esm.js.map
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=vf-input.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"vf-input.entry.js","mappings":";;AAAA,MAAM,UAAU,GAAG,MAAM,CAAC,oGAAoG,CAAC;;MCOlH,OAAO,GAAA,MAAA;;;;IAClB,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,OAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAO,IAAI,EAAC,MAAM,EAAA,CAAG,CAChB;;;;;;;","names":[],"sources":["src/components/vf-input/vf-input.css?tag=vf-input&encapsulation=shadow","src/components/vf-input/vf-input.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.vf-input {\n padding: 0.5rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n font-size: 1rem;\n}","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'vf-input',\n styleUrl: 'vf-input.css',\n shadow: true,\n})\nexport class VfInput {\n render() {\n return (\n <Host>\n <input type=\"text\" />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class VfButton {
|
|
3
|
+
type: 'primary' | 'secondary' | 'alternative' | 'alternative2';
|
|
4
|
+
iconPosition: 'left' | 'right';
|
|
5
|
+
state: 'disabled' | 'selected' | 'loading' | 'full';
|
|
6
|
+
fullWidth: boolean;
|
|
7
|
+
icon: string;
|
|
8
|
+
text: string;
|
|
9
|
+
fun: EventEmitter<MouseEvent>;
|
|
10
|
+
private handleClick;
|
|
11
|
+
render(): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 VfButton {
|
|
10
|
+
/**
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
"fullWidth": boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @default ''
|
|
16
|
+
*/
|
|
17
|
+
"icon": string;
|
|
18
|
+
/**
|
|
19
|
+
* @default 'left'
|
|
20
|
+
*/
|
|
21
|
+
"iconPosition": 'left' | 'right';
|
|
22
|
+
/**
|
|
23
|
+
* @default "Button"
|
|
24
|
+
*/
|
|
25
|
+
"text": string;
|
|
26
|
+
/**
|
|
27
|
+
* @default 'secondary'
|
|
28
|
+
*/
|
|
29
|
+
"type": 'primary' | 'secondary' | 'alternative' | 'alternative2';
|
|
30
|
+
}
|
|
31
|
+
interface VfInput {
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export interface VfButtonCustomEvent<T> extends CustomEvent<T> {
|
|
35
|
+
detail: T;
|
|
36
|
+
target: HTMLVfButtonElement;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLVfButtonElementEventMap {
|
|
40
|
+
"fun": MouseEvent;
|
|
41
|
+
}
|
|
42
|
+
interface HTMLVfButtonElement extends Components.VfButton, HTMLStencilElement {
|
|
43
|
+
addEventListener<K extends keyof HTMLVfButtonElementEventMap>(type: K, listener: (this: HTMLVfButtonElement, ev: VfButtonCustomEvent<HTMLVfButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
44
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
45
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
46
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
47
|
+
removeEventListener<K extends keyof HTMLVfButtonElementEventMap>(type: K, listener: (this: HTMLVfButtonElement, ev: VfButtonCustomEvent<HTMLVfButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
48
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
49
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
50
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
51
|
+
}
|
|
52
|
+
var HTMLVfButtonElement: {
|
|
53
|
+
prototype: HTMLVfButtonElement;
|
|
54
|
+
new (): HTMLVfButtonElement;
|
|
55
|
+
};
|
|
56
|
+
interface HTMLVfInputElement extends Components.VfInput, HTMLStencilElement {
|
|
57
|
+
}
|
|
58
|
+
var HTMLVfInputElement: {
|
|
59
|
+
prototype: HTMLVfInputElement;
|
|
60
|
+
new (): HTMLVfInputElement;
|
|
61
|
+
};
|
|
62
|
+
interface HTMLElementTagNameMap {
|
|
63
|
+
"vf-button": HTMLVfButtonElement;
|
|
64
|
+
"vf-input": HTMLVfInputElement;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
declare namespace LocalJSX {
|
|
68
|
+
interface VfButton {
|
|
69
|
+
/**
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
"fullWidth"?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* @default ''
|
|
75
|
+
*/
|
|
76
|
+
"icon"?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @default 'left'
|
|
79
|
+
*/
|
|
80
|
+
"iconPosition"?: 'left' | 'right';
|
|
81
|
+
"onFun"?: (event: VfButtonCustomEvent<MouseEvent>) => void;
|
|
82
|
+
/**
|
|
83
|
+
* @default "Button"
|
|
84
|
+
*/
|
|
85
|
+
"text"?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @default 'secondary'
|
|
88
|
+
*/
|
|
89
|
+
"type"?: 'primary' | 'secondary' | 'alternative' | 'alternative2';
|
|
90
|
+
}
|
|
91
|
+
interface VfInput {
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface VfButtonAttributes {
|
|
95
|
+
"type": 'primary' | 'secondary' | 'alternative' | 'alternative2';
|
|
96
|
+
"iconPosition": 'left' | 'right';
|
|
97
|
+
"fullWidth": boolean;
|
|
98
|
+
"icon": string;
|
|
99
|
+
"text": string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface IntrinsicElements {
|
|
103
|
+
"vf-button": Omit<VfButton, keyof VfButtonAttributes> & { [K in keyof VfButton & keyof VfButtonAttributes]?: VfButton[K] } & { [K in keyof VfButton & keyof VfButtonAttributes as `attr:${K}`]?: VfButtonAttributes[K] } & { [K in keyof VfButton & keyof VfButtonAttributes as `prop:${K}`]?: VfButton[K] };
|
|
104
|
+
"vf-input": VfInput;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export { LocalJSX as JSX };
|
|
108
|
+
declare module "@stencil/core" {
|
|
109
|
+
export namespace JSX {
|
|
110
|
+
interface IntrinsicElements {
|
|
111
|
+
"vf-button": LocalJSX.IntrinsicElements["vf-button"] & JSXBase.HTMLAttributes<HTMLVfButtonElement>;
|
|
112
|
+
"vf-input": LocalJSX.IntrinsicElements["vf-input"] & JSXBase.HTMLAttributes<HTMLVfInputElement>;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -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';
|