proto-tinker-wc 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/README.md +25 -0
- package/dist/cjs/index-cea62b03.js +1176 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/proto-tinker-wc.cjs.js +19 -0
- package/dist/cjs/proto-tinker.cjs.entry.js +2524 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/proto-tinker/chevron-double-left.js +14 -0
- package/dist/collection/components/proto-tinker/close.js +14 -0
- package/dist/collection/components/proto-tinker/color-picker.js +16 -0
- package/dist/collection/components/proto-tinker/data-source.js +25 -0
- package/dist/collection/components/proto-tinker/data-values.js +17 -0
- package/dist/collection/components/proto-tinker/eswat2-io.js +10 -0
- package/dist/collection/components/proto-tinker/fingerprint.js +14 -0
- package/dist/collection/components/proto-tinker/proto-tinker.css +152 -0
- package/dist/collection/components/proto-tinker/proto-tinker.js +46 -0
- package/dist/collection/components/proto-tinker/radio.js +15 -0
- package/dist/collection/components/proto-tinker/refresh.js +14 -0
- package/dist/collection/components/proto-tinker/tw-label.js +9 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/color-plugin.js +36 -0
- package/dist/collection/utils/funnel-defs.js +10 -0
- package/dist/collection/utils/index.js +5 -0
- package/dist/collection/utils/named-colors.js +51 -0
- package/dist/collection/utils/store.js +25 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/proto-tinker.d.ts +11 -0
- package/dist/components/proto-tinker.js +2541 -0
- package/dist/esm/index-b22d500f.js +1149 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/proto-tinker-wc.js +17 -0
- package/dist/esm/proto-tinker.entry.js +2520 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/proto-tinker-wc/index.esm.js +0 -0
- package/dist/proto-tinker-wc/p-18633a0f.entry.js +1 -0
- package/dist/proto-tinker-wc/p-b3c235a0.js +1 -0
- package/dist/proto-tinker-wc/proto-tinker-wc.esm.js +1 -0
- package/dist/types/components/proto-tinker/chevron-double-left.d.ts +5 -0
- package/dist/types/components/proto-tinker/close.d.ts +5 -0
- package/dist/types/components/proto-tinker/color-picker.d.ts +4 -0
- package/dist/types/components/proto-tinker/data-source.d.ts +4 -0
- package/dist/types/components/proto-tinker/data-values.d.ts +4 -0
- package/dist/types/components/proto-tinker/eswat2-io.d.ts +4 -0
- package/dist/types/components/proto-tinker/fingerprint.d.ts +5 -0
- package/dist/types/components/proto-tinker/proto-tinker.d.ts +4 -0
- package/dist/types/components/proto-tinker/radio.d.ts +5 -0
- package/dist/types/components/proto-tinker/refresh.d.ts +5 -0
- package/dist/types/components/proto-tinker/tw-label.d.ts +4 -0
- package/dist/types/components.d.ts +39 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1563 -0
- package/dist/types/utils/color-plugin.d.ts +14 -0
- package/dist/types/utils/funnel-defs.d.ts +5 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/named-colors.d.ts +24 -0
- package/dist/types/utils/store.d.ts +5 -0
- package/dist/types/utils/types.d.ts +42 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +46 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const ColorPlugin: {
|
|
2
|
+
name: string;
|
|
3
|
+
test(startValue: any): any;
|
|
4
|
+
initialize(startValue: any, destValue: any): {
|
|
5
|
+
data: {
|
|
6
|
+
format: any;
|
|
7
|
+
};
|
|
8
|
+
startValue: any;
|
|
9
|
+
destValue: any;
|
|
10
|
+
};
|
|
11
|
+
interpolate(startValue: any, destValue: any, progress: any, data: any): any;
|
|
12
|
+
};
|
|
13
|
+
export { ColorPlugin };
|
|
14
|
+
export default ColorPlugin;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const navy: string;
|
|
2
|
+
declare const blue: string;
|
|
3
|
+
declare const aqua: string;
|
|
4
|
+
declare const teal: string;
|
|
5
|
+
declare const olive: string;
|
|
6
|
+
declare const green: string;
|
|
7
|
+
declare const lime: string;
|
|
8
|
+
declare const yellow: string;
|
|
9
|
+
declare const orange: string;
|
|
10
|
+
declare const red: string;
|
|
11
|
+
declare const maroon: string;
|
|
12
|
+
declare const fuchsia: string;
|
|
13
|
+
declare const purple: string;
|
|
14
|
+
declare const black: string;
|
|
15
|
+
declare const gray: string;
|
|
16
|
+
declare const silver: string;
|
|
17
|
+
declare const bada55: string;
|
|
18
|
+
declare const slate: string;
|
|
19
|
+
declare const slate4: string;
|
|
20
|
+
declare const white: string;
|
|
21
|
+
declare const colorFor: (key: string) => string;
|
|
22
|
+
declare const colorKeys: string[];
|
|
23
|
+
export { navy, blue, aqua, teal, olive, green, lime, yellow, orange, red, maroon, fuchsia, purple, black, gray, silver, bada55, slate, slate4, white, colorFor, colorKeys, };
|
|
24
|
+
export default colorFor;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
interface BarObj {
|
|
2
|
+
id: number;
|
|
3
|
+
height: number;
|
|
4
|
+
width: number;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
maskId: string;
|
|
8
|
+
maskUri: string;
|
|
9
|
+
mask: string;
|
|
10
|
+
matrix: string;
|
|
11
|
+
points: string;
|
|
12
|
+
}
|
|
13
|
+
interface FunnelObj {
|
|
14
|
+
id: number;
|
|
15
|
+
height: number;
|
|
16
|
+
width: number;
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
drop: number;
|
|
20
|
+
}
|
|
21
|
+
interface StoreDef {
|
|
22
|
+
count: number;
|
|
23
|
+
pick: string;
|
|
24
|
+
values: number[];
|
|
25
|
+
}
|
|
26
|
+
interface ActionsDef {
|
|
27
|
+
refresh: () => void;
|
|
28
|
+
reset: () => void;
|
|
29
|
+
updatePick: (pick: string) => void;
|
|
30
|
+
}
|
|
31
|
+
interface ColorDict {
|
|
32
|
+
[index: string]: string;
|
|
33
|
+
}
|
|
34
|
+
interface IconProps {
|
|
35
|
+
hex?: string;
|
|
36
|
+
class?: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
selected?: boolean;
|
|
39
|
+
size?: number;
|
|
40
|
+
}
|
|
41
|
+
declare type CreateFn = (props: FunnelObj) => BarObj;
|
|
42
|
+
export type { BarObj, FunnelObj, StoreDef, ActionsDef, ColorDict, CreateFn, IconProps, };
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../dist/esm/polyfills/index.js';
|
|
4
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "proto-tinker-wc",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "prototype - simple demo built from Stencil & Tailwind",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"es2015": "dist/esm/index.mjs",
|
|
8
|
+
"es2017": "dist/esm/index.mjs",
|
|
9
|
+
"types": "dist/types/components.d.ts",
|
|
10
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
11
|
+
"collection:main": "dist/collection/index.js",
|
|
12
|
+
"unpkg": "dist/proto-tinker-wc/proto-tinker-wc.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/",
|
|
15
|
+
"loader/"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"twx": "sh ./.generate",
|
|
19
|
+
"build": "yarn twx; yarn format; stencil build --docs",
|
|
20
|
+
"start": "stencil build --dev --watch --serve",
|
|
21
|
+
"test": "echo --skip",
|
|
22
|
+
"generate": "stencil generate",
|
|
23
|
+
"predeploy": "yarn build",
|
|
24
|
+
"deploy": "yarn publish --patch",
|
|
25
|
+
"spell": "cspell 'src/**/*.{ts,tsx,html,css,md}' ",
|
|
26
|
+
"cc": "prettier --check src",
|
|
27
|
+
"format": "prettier --write src"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@stencil/core": "2.12.0",
|
|
31
|
+
"@stencil/store": "1.5.0",
|
|
32
|
+
"between.js": "0.1.2-fix.2"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"autoprefixer": "10.4.0",
|
|
36
|
+
"cspell": "5.13.3",
|
|
37
|
+
"eslint": "8.4.1",
|
|
38
|
+
"postcss": "8.4.5",
|
|
39
|
+
"prettier": "2.5.1",
|
|
40
|
+
"proto-tailwindcss-clrs": "0.0.76",
|
|
41
|
+
"tailwindcss": "3.0.2",
|
|
42
|
+
"tslint": "6.1.3",
|
|
43
|
+
"typescript": "4.5.4"
|
|
44
|
+
},
|
|
45
|
+
"license": "MIT"
|
|
46
|
+
}
|