@jumpgroup/jump-design-system 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 (92) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/app-button.cjs.entry.js +29 -0
  3. package/dist/cjs/app-button.cjs.entry.js.map +1 -0
  4. package/dist/cjs/app-icon.cjs.entry.js +2432 -0
  5. package/dist/cjs/app-icon.cjs.entry.js.map +1 -0
  6. package/dist/cjs/index-95f2f619.js +1750 -0
  7. package/dist/cjs/index-95f2f619.js.map +1 -0
  8. package/dist/cjs/index.cjs.js +4 -0
  9. package/dist/cjs/index.cjs.js.map +1 -0
  10. package/dist/cjs/jump-design-system.cjs.js +28 -0
  11. package/dist/cjs/jump-design-system.cjs.js.map +1 -0
  12. package/dist/cjs/loader.cjs.js +24 -0
  13. package/dist/cjs/loader.cjs.js.map +1 -0
  14. package/dist/collection/collection-manifest.json +13 -0
  15. package/dist/collection/components/app-button/app-button.css +107 -0
  16. package/dist/collection/components/app-button/app-button.js +158 -0
  17. package/dist/collection/components/app-button/app-button.js.map +1 -0
  18. package/dist/collection/components/app-button/app-button.stories.js +227 -0
  19. package/dist/collection/components/app-button/app-button.stories.js.map +1 -0
  20. package/dist/collection/components/app-icon/app-icon.css +7 -0
  21. package/dist/collection/components/app-icon/app-icon.js +64 -0
  22. package/dist/collection/components/app-icon/app-icon.js.map +1 -0
  23. package/dist/collection/components/app-icon/app-icon.stories.js +25 -0
  24. package/dist/collection/components/app-icon/app-icon.stories.js.map +1 -0
  25. package/dist/collection/index.js +2 -0
  26. package/dist/collection/index.js.map +1 -0
  27. package/dist/collection/stories/Colors.js +14 -0
  28. package/dist/collection/stories/assets/code-brackets.svg +1 -0
  29. package/dist/collection/stories/assets/colors.svg +1 -0
  30. package/dist/collection/stories/assets/comments.svg +1 -0
  31. package/dist/collection/stories/assets/direction.svg +1 -0
  32. package/dist/collection/stories/assets/flow.svg +1 -0
  33. package/dist/collection/stories/assets/plugin.svg +1 -0
  34. package/dist/collection/stories/assets/repo.svg +1 -0
  35. package/dist/collection/stories/assets/stackalt.svg +1 -0
  36. package/dist/collection/utils/utils.js +4 -0
  37. package/dist/collection/utils/utils.js.map +1 -0
  38. package/dist/components/app-button.d.ts +11 -0
  39. package/dist/components/app-button.js +50 -0
  40. package/dist/components/app-button.js.map +1 -0
  41. package/dist/components/app-icon.d.ts +11 -0
  42. package/dist/components/app-icon.js +2448 -0
  43. package/dist/components/app-icon.js.map +1 -0
  44. package/dist/components/index.d.ts +27 -0
  45. package/dist/components/index.js +3 -0
  46. package/dist/components/index.js.map +1 -0
  47. package/dist/esm/app-button.entry.js +25 -0
  48. package/dist/esm/app-button.entry.js.map +1 -0
  49. package/dist/esm/app-icon.entry.js +2428 -0
  50. package/dist/esm/app-icon.entry.js.map +1 -0
  51. package/dist/esm/index-4c9cac2b.js +1723 -0
  52. package/dist/esm/index-4c9cac2b.js.map +1 -0
  53. package/dist/esm/index.js +3 -0
  54. package/dist/esm/index.js.map +1 -0
  55. package/dist/esm/jump-design-system.js +23 -0
  56. package/dist/esm/jump-design-system.js.map +1 -0
  57. package/dist/esm/loader.js +20 -0
  58. package/dist/esm/loader.js.map +1 -0
  59. package/dist/esm/polyfills/core-js.js +11 -0
  60. package/dist/esm/polyfills/css-shim.js +1 -0
  61. package/dist/esm/polyfills/dom.js +79 -0
  62. package/dist/esm/polyfills/es5-html-element.js +1 -0
  63. package/dist/esm/polyfills/index.js +34 -0
  64. package/dist/esm/polyfills/system.js +6 -0
  65. package/dist/index.cjs.js +1 -0
  66. package/dist/index.js +1 -0
  67. package/dist/jump-design-system/index.esm.js +2 -0
  68. package/dist/jump-design-system/index.esm.js.map +1 -0
  69. package/dist/jump-design-system/jump-design-system.esm.js +2 -0
  70. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -0
  71. package/dist/jump-design-system/p-08fde855.entry.js +2 -0
  72. package/dist/jump-design-system/p-08fde855.entry.js.map +1 -0
  73. package/dist/jump-design-system/p-771ebb2a.entry.js +331 -0
  74. package/dist/jump-design-system/p-771ebb2a.entry.js.map +1 -0
  75. package/dist/jump-design-system/p-fce83307.js +3 -0
  76. package/dist/jump-design-system/p-fce83307.js.map +1 -0
  77. package/dist/types/components/app-button/app-button.d.ts +31 -0
  78. package/dist/types/components/app-button/app-button.stories.d.ts +95 -0
  79. package/dist/types/components/app-icon/app-icon.d.ts +12 -0
  80. package/dist/types/components/app-icon/app-icon.stories.d.ts +19 -0
  81. package/dist/types/components.d.ts +122 -0
  82. package/dist/types/index.d.ts +1 -0
  83. package/dist/types/stencil-public-runtime.d.ts +1638 -0
  84. package/dist/types/utils/utils.d.ts +1 -0
  85. package/loader/cdn.js +3 -0
  86. package/loader/index.cjs.js +3 -0
  87. package/loader/index.d.ts +21 -0
  88. package/loader/index.es2017.js +3 -0
  89. package/loader/index.js +4 -0
  90. package/loader/package.json +11 -0
  91. package/package.json +61 -0
  92. package/readme.md +91 -0
@@ -0,0 +1 @@
1
+ export declare function format(first: string, middle: string, last: string): string;
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,21 @@
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>;
13
+
14
+ /**
15
+ * Used to specify a nonce value that corresponds with an application's CSP.
16
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
17
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
18
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
19
+ * will result in the same behavior.
20
+ */
21
+ export declare function setNonce(nonce: string): 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": "jump-design-system-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,61 @@
1
+ {
2
+ "name": "@jumpgroup/jump-design-system",
3
+ "version": "0.0.1",
4
+ "description": "Stencil Component Starter",
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/jump-design-system/jump-design-system.esm.js",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/jump-group/jump-design-system.git"
16
+ },
17
+ "files": [
18
+ "dist/",
19
+ "loader/"
20
+ ],
21
+ "scripts": {
22
+ "start:storybook": "storybook dev -p 6006",
23
+ "stencil:watch": "stencil build --watch",
24
+ "start:stencil": "stencil build --dev --watch --serve",
25
+ "stencil:build": "stencil build --docs",
26
+ "test": "stencil test --spec --e2e",
27
+ "test.watch": "stencil test --spec --e2e --watchAll",
28
+ "generate-component": "stencil generate",
29
+ "generate-styles": "node ./style-generator.mjs",
30
+ "build-storybook": "storybook build"
31
+ },
32
+ "dependencies": {
33
+ "@stencil/core": "^3.0.0"
34
+ },
35
+ "devDependencies": {
36
+ "@babel/preset-env": "^7.21.5",
37
+ "@stencil/sass": "^3.0.3",
38
+ "@storybook/addon-essentials": "^7.0",
39
+ "@storybook/addon-interactions": "^7.0",
40
+ "@storybook/addon-links": "^7.0",
41
+ "@storybook/blocks": "^7.0",
42
+ "@storybook/html": "7.0",
43
+ "@storybook/html-webpack5": "^7.0",
44
+ "@storybook/testing-library": "^0.0.14-next.2",
45
+ "@types/jest": "^27.5.2",
46
+ "@types/node": "^16.18.11",
47
+ "feather-icons": "^4.29.0",
48
+ "jest": "^27.5.1",
49
+ "jest-cli": "^27.5.1",
50
+ "puppeteer": "^19.5.2",
51
+ "react": "^18.2.0",
52
+ "react-dom": "^18.2.0",
53
+ "storybook": "^7.0"
54
+ },
55
+ "license": "MIT",
56
+ "bugs": {
57
+ "url": "https://github.com/jump-group/jump-design-system/issues"
58
+ },
59
+ "homepage": "https://github.com/jump-group/jump-design-system#readme",
60
+ "author": "Jumpgroup Srl"
61
+ }
package/readme.md ADDED
@@ -0,0 +1,91 @@
1
+ [![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)](https://stenciljs.com)
2
+
3
+ # To start the project
4
+
5
+ ```bash
6
+
7
+ yarn stencil:watch
8
+
9
+ ```
10
+
11
+ and, in another terminal
12
+
13
+ ```bash
14
+
15
+ yarn start:storybook
16
+
17
+ ```
18
+
19
+ # Stencil Component Starter
20
+
21
+ This is a starter project for building a standalone Web Component using Stencil.
22
+
23
+ Stencil is also great for building entire apps. For that, use the [stencil-app-starter](https://github.com/ionic-team/stencil-app-starter) instead.
24
+
25
+ # Stencil
26
+
27
+ Stencil is a compiler for building fast web apps using Web Components.
28
+
29
+ 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.
30
+
31
+ Stencil components are just Web Components, so they work in any major framework or with no framework at all.
32
+
33
+ ## Getting Started
34
+
35
+ To start building a new web component using Stencil, clone this repo to a new directory:
36
+
37
+ ```bash
38
+ git clone https://github.com/ionic-team/stencil-component-starter.git my-component
39
+ cd my-component
40
+ git remote rm origin
41
+ ```
42
+
43
+ and run:
44
+
45
+ ```bash
46
+ npm install
47
+ npm start
48
+ ```
49
+
50
+ To build the component for production, run:
51
+
52
+ ```bash
53
+ npm run build
54
+ ```
55
+
56
+ To run the unit tests for the components, run:
57
+
58
+ ```bash
59
+ npm test
60
+ ```
61
+
62
+ Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component).
63
+
64
+ ## Naming Components
65
+
66
+ 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!
67
+
68
+ 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`.
69
+
70
+ ## Using this component
71
+
72
+ There are three strategies we recommend for using web components built with Stencil.
73
+
74
+ The first step for all three of these strategies is to [publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages).
75
+
76
+ ### Script tag
77
+
78
+ - 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
79
+ - Then you can use the element anywhere in your template, JSX, html etc
80
+
81
+ ### Node Modules
82
+
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
+
89
+ - Run `npm install my-component --save`
90
+ - Add an import to the npm packages `import my-component;`
91
+ - Then you can use the element anywhere in your template, JSX, html etc