@ganpatiinfo/gids-core-web 0.0.7 → 2.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/dist/custom-elements.json +16 -0
- package/dist/elements.css +3 -2
- package/dist/elements.css.map +1 -1
- package/dist/gids-toggle-button.d.ts +11 -0
- package/dist/gids-toggle-button.js +130 -0
- package/dist/gids-toggle-button.js.map +1 -0
- package/dist/index.css +731 -5
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -332
- package/dist/index.js.map +1 -1
- package/dist/p-C7NwBdoN.js +1227 -0
- package/dist/p-C7NwBdoN.js.map +1 -0
- package/dist/p-DXWsIVvG.js +1227 -0
- package/dist/p-DXWsIVvG.js.map +1 -0
- package/dist/p-Dl9wTOvC.js +748 -0
- package/dist/p-Dl9wTOvC.js.map +1 -0
- package/dist/types/components/gids-toggle-button/gids-toggle-button.d.ts +3 -0
- package/dist/types/components/html/GidsButton/GidsButton.d.ts +24 -0
- package/dist/types/components/html/GidsIcon/GidsIcon.d.ts +5 -0
- package/dist/types/components/html/GidsSpinner/GidsSpinner.d.ts +4 -0
- package/dist/types/components/html/_GidsSpinnerControl/GidsSpinnerControl.d.ts +6 -0
- package/dist/types/components/webComponents/GidsToggleButton/GidsToggleButton.d.ts +58 -0
- package/dist/types/components.d.ts +91 -0
- package/dist/types/index.d.ts +10 -0
- package/package.json +22 -12
|
@@ -5,20 +5,111 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { GidsButtonSize, GidsButtonWidth, GidsToggleButtonAppearance } from "@ganpatiinfo/gids-core-shared";
|
|
9
|
+
export { GidsButtonSize, GidsButtonWidth, GidsToggleButtonAppearance } from "@ganpatiinfo/gids-core-shared";
|
|
8
10
|
export namespace Components {
|
|
11
|
+
interface GidsToggleButton {
|
|
12
|
+
/**
|
|
13
|
+
* Reflected by `appearance` property
|
|
14
|
+
* @inheritdoc
|
|
15
|
+
*/
|
|
16
|
+
"appearance"?: GidsToggleButtonAppearance;
|
|
17
|
+
/**
|
|
18
|
+
* Reflected by `defaultSelected` property
|
|
19
|
+
* @inheritdoc
|
|
20
|
+
*/
|
|
21
|
+
"defaultSelected"?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Reflected by `disabled` property
|
|
24
|
+
* @inheritdoc
|
|
25
|
+
*/
|
|
26
|
+
"disabled"?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Only available as a property. There is no `selected` attribute
|
|
29
|
+
* @inheritdoc
|
|
30
|
+
*/
|
|
31
|
+
"selected": boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Reflected by `size` property
|
|
34
|
+
* @inheritdoc
|
|
35
|
+
*/
|
|
36
|
+
"size"?: GidsButtonSize;
|
|
37
|
+
/**
|
|
38
|
+
* Reflected by `width` property
|
|
39
|
+
* @inheritdoc
|
|
40
|
+
*/
|
|
41
|
+
"width"?: GidsButtonWidth;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export interface GidsToggleButtonCustomEvent<T> extends CustomEvent<T> {
|
|
45
|
+
detail: T;
|
|
46
|
+
target: HTMLGidsToggleButtonElement;
|
|
9
47
|
}
|
|
10
48
|
declare global {
|
|
49
|
+
interface HTMLGidsToggleButtonElementEventMap {
|
|
50
|
+
"select": boolean;
|
|
51
|
+
}
|
|
52
|
+
interface HTMLGidsToggleButtonElement extends Components.GidsToggleButton, HTMLStencilElement {
|
|
53
|
+
addEventListener<K extends keyof HTMLGidsToggleButtonElementEventMap>(type: K, listener: (this: HTMLGidsToggleButtonElement, ev: GidsToggleButtonCustomEvent<HTMLGidsToggleButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
54
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
55
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
56
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
57
|
+
removeEventListener<K extends keyof HTMLGidsToggleButtonElementEventMap>(type: K, listener: (this: HTMLGidsToggleButtonElement, ev: GidsToggleButtonCustomEvent<HTMLGidsToggleButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
58
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
59
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
60
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
61
|
+
}
|
|
62
|
+
var HTMLGidsToggleButtonElement: {
|
|
63
|
+
prototype: HTMLGidsToggleButtonElement;
|
|
64
|
+
new (): HTMLGidsToggleButtonElement;
|
|
65
|
+
};
|
|
11
66
|
interface HTMLElementTagNameMap {
|
|
67
|
+
"gids-toggle-button": HTMLGidsToggleButtonElement;
|
|
12
68
|
}
|
|
13
69
|
}
|
|
14
70
|
declare namespace LocalJSX {
|
|
71
|
+
interface GidsToggleButton {
|
|
72
|
+
/**
|
|
73
|
+
* Reflected by `appearance` property
|
|
74
|
+
* @inheritdoc
|
|
75
|
+
*/
|
|
76
|
+
"appearance"?: GidsToggleButtonAppearance;
|
|
77
|
+
/**
|
|
78
|
+
* Reflected by `defaultSelected` property
|
|
79
|
+
* @inheritdoc
|
|
80
|
+
*/
|
|
81
|
+
"defaultSelected"?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Reflected by `disabled` property
|
|
84
|
+
* @inheritdoc
|
|
85
|
+
*/
|
|
86
|
+
"disabled"?: boolean;
|
|
87
|
+
"onSelect"?: (event: GidsToggleButtonCustomEvent<boolean>) => void;
|
|
88
|
+
/**
|
|
89
|
+
* Only available as a property. There is no `selected` attribute
|
|
90
|
+
* @inheritdoc
|
|
91
|
+
*/
|
|
92
|
+
"selected"?: boolean | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Reflected by `size` property
|
|
95
|
+
* @inheritdoc
|
|
96
|
+
*/
|
|
97
|
+
"size"?: GidsButtonSize;
|
|
98
|
+
/**
|
|
99
|
+
* Reflected by `width` property
|
|
100
|
+
* @inheritdoc
|
|
101
|
+
*/
|
|
102
|
+
"width"?: GidsButtonWidth;
|
|
103
|
+
}
|
|
15
104
|
interface IntrinsicElements {
|
|
105
|
+
"gids-toggle-button": GidsToggleButton;
|
|
16
106
|
}
|
|
17
107
|
}
|
|
18
108
|
export { LocalJSX as JSX };
|
|
19
109
|
declare module "@stencil/core" {
|
|
20
110
|
export namespace JSX {
|
|
21
111
|
interface IntrinsicElements {
|
|
112
|
+
"gids-toggle-button": LocalJSX.GidsToggleButton & JSXBase.HTMLAttributes<HTMLGidsToggleButtonElement>;
|
|
22
113
|
}
|
|
23
114
|
}
|
|
24
115
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
export * from './utils/constructedGidsStylesheet';
|
|
2
2
|
export type * from './components.d.ts';
|
|
3
|
+
import { setGidsAssetFilePaths, setGidsDefaultAssetDirPath } from '@ganpatiinfo/gids-web-shared';
|
|
4
|
+
export {
|
|
5
|
+
/**
|
|
6
|
+
* @inheritdoc
|
|
7
|
+
*/
|
|
8
|
+
setGidsAssetFilePaths,
|
|
9
|
+
/**
|
|
10
|
+
* @inheritdoc
|
|
11
|
+
*/
|
|
12
|
+
setGidsDefaultAssetDirPath, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ganpatiinfo/gids-core-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This is a core web package contains html components",
|
|
6
6
|
"homepage": "https://ganpatiinfosystem.vercel.app/",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"dist/"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"clean:
|
|
11
|
+
"clean:legacy": "del-cli src/components/functional/Icon/IconUtils.ts src/components/Icon/IconUtils.ts src/styles/Typography.stories.ts src/types/asset-types.ts",
|
|
12
|
+
"clean:current": "del-cli dist/** dist-dev/** src/components.d.ts src/stories/Typography.stories.ts src/styles/6-utilities/typography.scss src/types/assetTypes.ts",
|
|
12
13
|
"clean:stencil-generated": "del-cli --force ../react-web/src/components/stencil-generated",
|
|
13
14
|
"clean": "npm-run-all --parallel clean:**",
|
|
14
15
|
"prebuild": "node ./scripts/generateCode.js",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"test:local": "stencil test --config stencil.test-config.ts --spec --e2e --watchAll",
|
|
26
27
|
"generate": "stencil generate",
|
|
27
28
|
"storybook": "storybook dev --config-dir .storybook-dev -p 6006",
|
|
28
|
-
"build-site": "storybook build -o ../../site/public/workshop/
|
|
29
|
+
"build-site": "storybook build -o ../../site/public/workshop/web-core/",
|
|
29
30
|
"size": "size-limit",
|
|
30
31
|
"release:manually": "npm run build && npm publish --access public"
|
|
31
32
|
},
|
|
@@ -65,17 +66,26 @@
|
|
|
65
66
|
"types": "./dist/index.d.ts",
|
|
66
67
|
"default": "./dist/index.js"
|
|
67
68
|
},
|
|
69
|
+
"./gids-toggle-button.js": {
|
|
70
|
+
"types": "./dist/gids-toggle-button.d.ts",
|
|
71
|
+
"default": "./dist/gids-toggle-button.js"
|
|
72
|
+
},
|
|
73
|
+
"./dist/gids-toggle-button.js": {
|
|
74
|
+
"types": "./dist/gids-toggle-button.d.ts",
|
|
75
|
+
"default": "./dist/gids-toggle-button.js"
|
|
76
|
+
},
|
|
68
77
|
"./customElements": {
|
|
69
78
|
"default": "./dist/custom-elements.json"
|
|
70
79
|
}
|
|
71
80
|
},
|
|
72
81
|
"peerDependencies": {
|
|
82
|
+
"@ganpatiinfo/gids-web-theme-interface": "2.0.1",
|
|
73
83
|
"clsx": "2.1.1"
|
|
74
84
|
},
|
|
75
85
|
"dependencies": {
|
|
76
86
|
"clsx": "2.1.1",
|
|
77
|
-
"@ganpatiinfo/gids-core-shared": "
|
|
78
|
-
"@ganpatiinfo/gids-web-shared": "
|
|
87
|
+
"@ganpatiinfo/gids-core-shared": "2.0.1",
|
|
88
|
+
"@ganpatiinfo/gids-web-shared": "2.0.1"
|
|
79
89
|
},
|
|
80
90
|
"devDependencies": {
|
|
81
91
|
"@babel/preset-env": "7.27.2",
|
|
@@ -83,14 +93,14 @@
|
|
|
83
93
|
"@custom-elements-manifest/analyzer": "0.10.4",
|
|
84
94
|
"@fontsource/inter": "5.2.5",
|
|
85
95
|
"@fontsource/libre-caslon-text": "5.2.5",
|
|
86
|
-
"@ganpatiinfo/gids-liquid-renderer": "
|
|
87
|
-
"@ganpatiinfo/gids-storybook-theme": "
|
|
88
|
-
"@ganpatiinfo/gids-storybook-utilities": "
|
|
89
|
-
"@ganpatiinfo/gids-web-dom-reference": "
|
|
90
|
-
"@ganpatiinfo/gids-web-theme-ganpatiinfo": "
|
|
96
|
+
"@ganpatiinfo/gids-liquid-renderer": "2.0.1",
|
|
97
|
+
"@ganpatiinfo/gids-storybook-theme": "2.0.1",
|
|
98
|
+
"@ganpatiinfo/gids-storybook-utilities": "2.0.1",
|
|
99
|
+
"@ganpatiinfo/gids-web-dom-reference": "2.0.1",
|
|
100
|
+
"@ganpatiinfo/gids-web-theme-ganpatiinfo": "2.0.1",
|
|
91
101
|
"@jest/globals": "29.7.0",
|
|
92
|
-
"@stencil/core": "4.
|
|
93
|
-
"@stencil/react-output-target": "
|
|
102
|
+
"@stencil/core": "4.30.0",
|
|
103
|
+
"@stencil/react-output-target": "0.8.2",
|
|
94
104
|
"@storybook/addon-a11y": "8.6.12",
|
|
95
105
|
"@storybook/addon-essentials": "8.6.12",
|
|
96
106
|
"@storybook/addon-links": "8.6.12",
|