@3t-transform/threeteeui 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.
Files changed (63) hide show
  1. package/dist/cjs/index-eb8fc323.js +1620 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/toolbar-656be6e6.js +34259 -0
  5. package/dist/cjs/tttx-page.cjs.entry.js +927 -0
  6. package/dist/cjs/tttx-worksheet.cjs.entry.js +47 -0
  7. package/dist/cjs/tttx.cjs.js +19 -0
  8. package/dist/collection/collection-manifest.json +13 -0
  9. package/dist/collection/components/patterns/tttx-page/tttx-page.css +162 -0
  10. package/dist/collection/components/patterns/tttx-page/tttx-page.js +213 -0
  11. package/dist/collection/components/patterns/tttx-page/tttx-page.stories.js +80 -0
  12. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.css +134 -0
  13. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.js +70 -0
  14. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.stories.js +44 -0
  15. package/dist/collection/docs/gettingstarted-developer.stories.js +9 -0
  16. package/dist/collection/docs/template.stories.js +10 -0
  17. package/dist/collection/index.js +1 -0
  18. package/dist/components/index.d.ts +23 -0
  19. package/dist/components/index.js +3 -0
  20. package/dist/components/tttx-page.d.ts +11 -0
  21. package/dist/components/tttx-page.js +953 -0
  22. package/dist/components/tttx-worksheet.d.ts +11 -0
  23. package/dist/components/tttx-worksheet.js +6 -0
  24. package/dist/components/tttx-worksheet2.js +34288 -0
  25. package/dist/esm/index-4c11a593.js +1594 -0
  26. package/dist/esm/index.js +1 -0
  27. package/dist/esm/loader.js +17 -0
  28. package/dist/esm/polyfills/core-js.js +11 -0
  29. package/dist/esm/polyfills/css-shim.js +1 -0
  30. package/dist/esm/polyfills/dom.js +79 -0
  31. package/dist/esm/polyfills/es5-html-element.js +1 -0
  32. package/dist/esm/polyfills/index.js +34 -0
  33. package/dist/esm/polyfills/system.js +6 -0
  34. package/dist/esm/toolbar-cede4385.js +34231 -0
  35. package/dist/esm/tttx-page.entry.js +923 -0
  36. package/dist/esm/tttx-worksheet.entry.js +43 -0
  37. package/dist/esm/tttx.js +17 -0
  38. package/dist/index.cjs.js +1 -0
  39. package/dist/index.js +1 -0
  40. package/dist/tttx/index.esm.js +0 -0
  41. package/dist/tttx/p-2681b874.js +2 -0
  42. package/dist/tttx/p-d038fe18.js +1 -0
  43. package/dist/tttx/p-d5c31f03.entry.js +1 -0
  44. package/dist/tttx/p-e40966f3.entry.js +1 -0
  45. package/dist/tttx/tttx.css +1 -0
  46. package/dist/tttx/tttx.esm.js +1 -0
  47. package/dist/types/components/patterns/tttx-page/tttx-page.d.ts +21 -0
  48. package/dist/types/components/patterns/tttx-page/tttx-page.stories.d.ts +48 -0
  49. package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.d.ts +9 -0
  50. package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.stories.d.ts +23 -0
  51. package/dist/types/components.d.ts +66 -0
  52. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -0
  53. package/dist/types/docs/template.stories.d.ts +5 -0
  54. package/dist/types/index.d.ts +1 -0
  55. package/dist/types/stencil-public-runtime.d.ts +1581 -0
  56. package/loader/cdn.js +3 -0
  57. package/loader/index.cjs.js +3 -0
  58. package/loader/index.d.ts +12 -0
  59. package/loader/index.es2017.js +3 -0
  60. package/loader/index.js +4 -0
  61. package/loader/package.json +11 -0
  62. package/package.json +60 -0
  63. package/readme.md +90 -0
package/loader/cdn.js ADDED
@@ -0,0 +1,3 @@
1
+
2
+ module.exports = require('../dist/cjs/loader.cjs.js');
3
+ module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -0,0 +1,3 @@
1
+
2
+ module.exports = require('../dist/cjs/loader.cjs.js');
3
+ module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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>;
@@ -0,0 +1,3 @@
1
+
2
+ export * from '../dist/esm/polyfills/index.js';
3
+ export * from '../dist/esm/loader.js';
@@ -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';
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "tttx-loader",
3
+ "private": true,
4
+ "typings": "./index.d.ts",
5
+ "module": "./index.js",
6
+ "main": "./index.cjs.js",
7
+ "jsnext:main": "./index.es2017.js",
8
+ "es2015": "./index.es2017.js",
9
+ "es2017": "./index.es2017.js",
10
+ "unpkg": "./cdn.js"
11
+ }
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@3t-transform/threeteeui",
3
+ "version": "0.0.1",
4
+ "description": "3t Design System",
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/index.d.ts",
10
+ "collection": "dist/collection/collection-manifest.json",
11
+ "collection:main": "dist/collection/index.js",
12
+ "unpkg": "dist/3tui/3tui.esm.js",
13
+ "files": [
14
+ "dist/",
15
+ "loader/"
16
+ ],
17
+ "scripts": {
18
+ "build": "stencil build --docs",
19
+ "start": "stencil build --watch --serve",
20
+ "test": "stencil test --spec --e2e",
21
+ "test.watch": "stencil test --spec --e2e --watchAll",
22
+ "generate": "stencil generate",
23
+ "storybook": "start-storybook -p 6006",
24
+ "build-storybook": "build-storybook",
25
+ "chromatic": "npx chromatic --project-token=531b962b0be5 --exit-zero-on-changes --exit-once-uploaded",
26
+ "theme:build": "sass src/theme/scss/bundles/dx.tttx.scss public/dx.tttx.css"
27
+ },
28
+ "dependencies": {
29
+ "@mdx-js/react": "^2.1.5",
30
+ "@rollup/plugin-commonjs": "^23.0.3",
31
+ "@stencil/core": "^2.20.0",
32
+ "devextreme": "22.1.6",
33
+ "less": "^4.1.3",
34
+ "material-symbols": "^0.2.8",
35
+ "materialize-css": "^1.0.0",
36
+ "sass": "^1.56.1"
37
+ },
38
+ "devDependencies": {
39
+ "@babel/core": "^7.18.10",
40
+ "@stencil/sass": "^1.5.2",
41
+ "@storybook/addon-actions": "^6.5.10",
42
+ "@storybook/addon-essentials": "^6.5.10",
43
+ "@storybook/addon-interactions": "^6.5.10",
44
+ "@storybook/addon-links": "^6.5.10",
45
+ "@storybook/builder-webpack4": "^6.5.10",
46
+ "@storybook/html": "^6.5.10",
47
+ "@storybook/manager-webpack4": "^6.5.10",
48
+ "@storybook/testing-library": "^0.0.13",
49
+ "@types/chart.js": "^2.9.37",
50
+ "@types/jest": "^27.0.3",
51
+ "babel-loader": "^8.2.5",
52
+ "chromatic": "^6.7.4",
53
+ "jest": "^27.4.5",
54
+ "jest-cli": "^27.4.5",
55
+ "puppeteer": "^10.0.0"
56
+ },
57
+ "license": "UNLICENSED",
58
+ "readme": "ERROR: No README data found!",
59
+ "_id": "threeteeui@0.0.1"
60
+ }
package/readme.md ADDED
@@ -0,0 +1,90 @@
1
+ ![header](header.png)
2
+
3
+ # 3t Design System
4
+
5
+ > Our new UX is under development and we need a space to realise it
6
+
7
+ - [x] Individual components so we can test them individually
8
+ - [x] Atomic design oriented so it is easy to understand
9
+ - [x] Use Storybook to host the components
10
+ - [x] The components will be Custom Components (Web Components)
11
+ - [x] Use Chromatic for designer feedback on developer work
12
+ - [ ] When a developer makes changes and pushes to master, we deploy the library to NPM
13
+ - [ ] We will use NPM versions to pull the components into our frontend applications
14
+
15
+ ## DevExtreme
16
+
17
+ We use devextreme to as a base for building our components. For details on their components, see their [API documentation](https://js.devexpress.com/Documentation/ApiReference/UI_Components/) and their [component demos](https://js.devexpress.com/Demos/WidgetsGallery/).
18
+
19
+
20
+ ## Stencil Component Starter
21
+
22
+ This is a starter project for building a standalone Web Component using Stencil.
23
+
24
+ Stencil is also great for building entire apps. For that, use the [stencil-app-starter](https://github.com/ionic-team/stencil-app-starter) instead.
25
+
26
+ ## Stencil
27
+
28
+ Stencil is a compiler for building fast web apps using Web Components.
29
+
30
+ Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
31
+
32
+ Stencil components are just Web Components, so they work in any major framework or with no framework at all.
33
+
34
+ ## Getting Started
35
+
36
+ Pull down this repo and run:
37
+
38
+ ```bash
39
+ npm install
40
+ npm start
41
+ ```
42
+
43
+ To build the component for production, run:
44
+
45
+ ```bash
46
+ npm run build
47
+ ```
48
+
49
+ To run the unit tests for the components, run:
50
+
51
+ ```bash
52
+ npm test
53
+ ```
54
+ To see the components in Storybook, run:
55
+
56
+ ```
57
+ npm run build
58
+ npm run storybook
59
+ ```
60
+
61
+ Need help? Check out our [docs](https://stenciljs.com/docs/my-first-component).
62
+
63
+ ## Naming Components
64
+
65
+ When creating new component tags, we recommend _not_ using `stencil` in the component name (ex: `<stencil-datepicker>`). This is because the generated component has little to nothing to do with Stencil; it's just a web component!
66
+
67
+ Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Ionic generated web components use the prefix `ion`.
68
+
69
+ We suggest: `<threetee-button>` for example.
70
+
71
+ ## Using this component
72
+
73
+ There are three strategies we recommend for using web components built with Stencil.
74
+
75
+ The first step for all three of these strategies is to [publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages).
76
+
77
+ ### Script tag
78
+
79
+ - Put a script tag similar to this `<script type='module' src='https://unpkg.com/my-component@0.0.1/dist/my-component.esm.js'></script>` in the head of your index.html
80
+ - Then you can use the element anywhere in your template, JSX, html etc
81
+
82
+ ### Node Modules
83
+ - Run `npm install my-component --save`
84
+ - Put a script tag similar to this `<script type='module' src='node_modules/my-component/dist/my-component.esm.js'></script>` in the head of your index.html
85
+ - Then you can use the element anywhere in your template, JSX, html etc
86
+
87
+ ### In a stencil-starter app
88
+ - Run `npm install my-component --save`
89
+ - Add an import to the npm packages `import my-component;`
90
+ - Then you can use the element anywhere in your template, JSX, html etc