@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.
@@ -0,0 +1 @@
1
+ export declare function format(first?: string, middle?: string, last?: string): string;
@@ -0,0 +1 @@
1
+ export {};
package/loader/cdn.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/cjs/loader.cjs.js');
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/cjs/loader.cjs.js');
@@ -0,0 +1,24 @@
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): void;
12
+ /**
13
+ * @deprecated
14
+ */
15
+ export declare function applyPolyfills(): Promise<void>;
16
+
17
+ /**
18
+ * Used to specify a nonce value that corresponds with an application's CSP.
19
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
20
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
21
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
22
+ * will result in the same behavior.
23
+ */
24
+ export declare function setNonce(nonce: string): void;
@@ -0,0 +1 @@
1
+ export * from '../dist/esm/loader.js';
@@ -0,0 +1,2 @@
1
+ (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)}})();
2
+ export * from '../dist/esm/loader.js';
package/package.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "@michellegerwald/gigax-designsystem",
3
+ "version": "0.0.1",
4
+ "description": "Stencil Component Starter",
5
+ "keywords": [
6
+ "gigax",
7
+ "designsystem",
8
+ "stencil"
9
+ ],
10
+ "homepage": "https://github.com/stenciljs/component-starter#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/stenciljs/component-starter/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/stenciljs/component-starter.git"
17
+ },
18
+ "license": "MIT",
19
+ "author": "Michelle Gerwald <michelle.gerwald@vodafone.com>",
20
+ "type": "commonjs",
21
+ "exports": {
22
+ ".": {
23
+ "import": "./dist/gigax-designsystem/gigax-designsystem.esm.js",
24
+ "require": "./dist/gigax-designsystem/gigax-designsystem.cjs.js"
25
+ },
26
+ "./my-component": {
27
+ "import": "./dist/components/my-component.js",
28
+ "types": "./dist/components/my-component.d.ts"
29
+ },
30
+ "./loader": {
31
+ "import": "./loader/index.js",
32
+ "require": "./loader/index.cjs",
33
+ "types": "./loader/index.d.ts"
34
+ }
35
+ },
36
+ "main": "dist/index.cjs.js",
37
+ "types": "dist/types/index.d.ts",
38
+ "files": [
39
+ "dist/",
40
+ "loader/"
41
+ ],
42
+ "scripts": {
43
+ "build": "stencil build",
44
+ "start": "stencil build --dev --watch --serve",
45
+ "test": "stencil-test --prod",
46
+ "test:watch": "stencil-test --prod --watch",
47
+ "generate": "stencil generate"
48
+ },
49
+ "dependencies": {
50
+ "acorn": "^8.16.0",
51
+ "assertion-error": "^2.0.1",
52
+ "chai": "^6.2.2",
53
+ "confbox": "^0.2.4",
54
+ "convert-source-map": "^2.0.0",
55
+ "detect-libc": "^2.1.2",
56
+ "es-module-lexer": "^2.1.0",
57
+ "estree-walker": "^3.0.3",
58
+ "expect-type": "^1.3.0",
59
+ "exsolve": "^1.0.8",
60
+ "fdir": "^6.5.0",
61
+ "jiti": "^2.7.0",
62
+ "lightningcss": "^1.32.0",
63
+ "lightningcss-darwin-arm64": "^1.32.0",
64
+ "local-pkg": "^1.1.2",
65
+ "magic-string": "^0.30.21",
66
+ "mlly": "^1.8.2",
67
+ "mrmime": "^2.0.1",
68
+ "nanoid": "^3.3.12",
69
+ "obug": "^2.1.1",
70
+ "pathe": "^2.0.3",
71
+ "picocolors": "^1.1.1",
72
+ "picomatch": "^4.0.4",
73
+ "pkg-types": "^2.3.1",
74
+ "playwright-core": "^1.59.1",
75
+ "pngjs": "^7.0.0",
76
+ "postcss": "^8.5.14",
77
+ "quansync": "^0.2.11",
78
+ "rolldown": "^1.0.0-rc.18",
79
+ "siginfo": "^2.0.0",
80
+ "sirv": "^3.0.2",
81
+ "source-map-js": "^1.2.1",
82
+ "stackback": "^0.0.2",
83
+ "std-env": "^4.1.0",
84
+ "tinybench": "^2.9.0",
85
+ "tinyexec": "^1.1.2",
86
+ "tinyglobby": "^0.2.16",
87
+ "tinyrainbow": "^3.1.0",
88
+ "totalist": "^3.0.1",
89
+ "ufo": "^1.6.4",
90
+ "undici-types": "^6.21.0",
91
+ "vite": "^8.0.11",
92
+ "vitest-environment-stencil": "^1.11.6",
93
+ "why-is-node-running": "^2.3.0",
94
+ "ws": "^8.20.0"
95
+ },
96
+ "devDependencies": {
97
+ "@stencil/core": "^4.27.1 || ^5.0.0-0",
98
+ "@stencil/vitest": "^1.8.3",
99
+ "@types/node": "^22.13.5",
100
+ "@vitest/browser-playwright": "^4.0.0",
101
+ "playwright": "^1.52.0",
102
+ "vitest": "^4.0.0"
103
+ },
104
+ "module": "dist/index.js",
105
+ "collection": "dist/collection/collection-manifest.json",
106
+ "collection:main": "dist/collection/index.js",
107
+ "unpkg": "dist/gigax-designsystem/gigax-designsystem.esm.js"
108
+ }
package/readme.md ADDED
@@ -0,0 +1,56 @@
1
+ # GigaX-Styleguide
2
+
3
+ ## What is StencilJS?
4
+
5
+ StencilJS is a compiler for building reusable Web Components. From a shared codebase it produces small, browser-friendly Custom Elements that can be used in different frameworks or without any framework at all.
6
+
7
+ That is useful for a design system because you define UI building blocks such as buttons, inputs, or cards once and then reuse them consistently everywhere.
8
+
9
+ ## Import CSS & JS [OUTDATED]
10
+
11
+ Always include the CSS before using the components. The stylesheet contains the design tokens, spacing, and shared base styles that the components expect.
12
+
13
+ ```html
14
+ <link rel="stylesheet" href="https://unpkg.com/@michellegerwald/gigax-styleguide@latest/dist/gigax-styleguide/gigax-styleguide.css"></link>
15
+ ```
16
+
17
+ The JavaScript loads the custom elements.
18
+
19
+ ```html
20
+ <script type="module" src="https://unpkg.com/@michellegerwald/gigax-styleguide@latest"></script>
21
+ ```
22
+
23
+ ## Components
24
+
25
+ We do not have a Storybook yet, but it is currently being worked on.
26
+
27
+ Once it is available, it will serve as the visual reference for the gigax components and their variants.
28
+
29
+ ## Links
30
+ [npm-Package](https://www.npmjs.com/package/@michellegerwald/gigax-styleguide)
31
+
32
+ [Github-Repo](https://github.com/iloveproggen/gigax-styleguide)
33
+
34
+ ## Versioning & Auto Publish
35
+
36
+ Every push to `main` triggers the GitHub Actions workflow in `.github/workflows/publish.yml`. The repository is configured to publish only when a Git tag matching `v*` is pushed (for example `v1.2.0`).
37
+
38
+ Using `npm version` (recommended — updates `package.json`, creates a tag and a commit):
39
+
40
+ ```bash
41
+ git add -A
42
+ git commit -m "publish new version"
43
+
44
+ # bump patch (0.0.x):
45
+ npm version patch -m "chore(release): v%s"
46
+
47
+ # bump minor (0.x.0):
48
+ npm version minor -m "chore(release): v%s"
49
+
50
+ # bump major (x.0.0):
51
+ npm version major -m "chore(release): v%s"
52
+
53
+ git push origin --follow-tags
54
+ ```
55
+
56
+ When the tag is pushed the workflow runs and publishes the package. The workflow will publish the version that is encoded in the tag/`package.json` at that commit.