@ganpatiinfo/gids-web-dom-reference 2.0.3 → 2.0.5
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/CHANGELOG.md +12 -0
- package/dist/components/GidsCheckboxGroup/GidsCheckboxGroup.d.ts +7 -0
- package/dist/components/GidsCheckboxGroup/GidsCheckboxGroup.d.ts.map +1 -0
- package/dist/components/GidsCheckboxGroup/GidsCheckboxGroup.js +10 -0
- package/dist/components/GidsCheckboxGroup/GidsCheckboxGroup.js.map +1 -0
- package/dist/components/GidsRadioGroup/GidsRadioGroup.d.ts +5 -0
- package/dist/components/GidsRadioGroup/GidsRadioGroup.d.ts.map +1 -0
- package/dist/components/GidsRadioGroup/GidsRadioGroup.js +8 -0
- package/dist/components/GidsRadioGroup/GidsRadioGroup.js.map +1 -0
- package/dist/components/GidsSwitchGroup/GidsSwitchGroup.d.ts +5 -0
- package/dist/components/GidsSwitchGroup/GidsSwitchGroup.d.ts.map +1 -0
- package/dist/components/GidsSwitchGroup/GidsSwitchGroup.js +8 -0
- package/dist/components/GidsSwitchGroup/GidsSwitchGroup.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/GidsCheckboxGroup/GidsCheckboxGroup.ts +21 -0
- package/src/components/GidsRadioGroup/GidsRadioGroup.ts +14 -0
- package/src/components/GidsSwitchGroup/GidsSwitchGroup.ts +14 -0
- package/src/index.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ganpatiinfo/gids-web-dom-reference
|
|
2
2
|
|
|
3
|
+
## 2.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8340eba: Checkbox group and radio group completed
|
|
8
|
+
- Updated dependencies [8340eba]
|
|
9
|
+
- Updated dependencies [8340eba]
|
|
10
|
+
- Updated dependencies [8340eba]
|
|
11
|
+
- @ganpatiinfo/gids-web-shared@2.0.5
|
|
12
|
+
- @ganpatiinfo/gids-core-shared@2.0.5
|
|
13
|
+
- @ganpatiinfo/gids-web-theme-interface@2.0.5
|
|
14
|
+
|
|
3
15
|
## 2.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type GidsCheckboxGroupCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { type DomChildren } from '../../utils/domUtils';
|
|
3
|
+
export interface GidsCheckboxGroupDomProps extends GidsCheckboxGroupCommonProps<DomChildren> {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsCheckboxGroupDom: ({ children, extraClasses, }: GidsCheckboxGroupDomProps) => HTMLDivElement;
|
|
7
|
+
//# sourceMappingURL=GidsCheckboxGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsCheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCheckboxGroup/GidsCheckboxGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAElF,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAI1E,MAAM,WAAW,yBAChB,SAAQ,4BAA4B,CAAC,WAAW,CAAC;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,oBAAoB,GAAI,6BAGlC,yBAAyB,KAAG,cAM9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GidsCheckboxGroupWebUtils } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { appendAsChildren } from '../../utils/domUtils';
|
|
3
|
+
const { getGidsCheckboxGroupClassNames } = GidsCheckboxGroupWebUtils;
|
|
4
|
+
export const GidsCheckboxGroupDom = ({ children, extraClasses, }) => {
|
|
5
|
+
const checkboxGroup = document.createElement('div');
|
|
6
|
+
checkboxGroup.className = getGidsCheckboxGroupClassNames(extraClasses);
|
|
7
|
+
appendAsChildren(checkboxGroup, children);
|
|
8
|
+
return checkboxGroup;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=GidsCheckboxGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsCheckboxGroup.js","sourceRoot":"","sources":["../../../src/components/GidsCheckboxGroup/GidsCheckboxGroup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAoB,MAAM,sBAAsB,CAAC;AAE1E,MAAM,EAAE,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;AAOrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACpC,QAAQ,EACR,YAAY,GACe,EAAkB,EAAE;IAC/C,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpD,aAAa,CAAC,SAAS,GAAG,8BAA8B,CAAC,YAAY,CAAC,CAAC;IACvE,gBAAgB,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IAE1C,OAAO,aAAa,CAAC;AACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type GidsRadioGroupCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { type DomChildren } from '../../utils/domUtils';
|
|
3
|
+
export type GidsRadioGroupDomProps = GidsRadioGroupCommonProps<DomChildren>;
|
|
4
|
+
export declare const GidsRadioGroupDom: ({ children, }: GidsRadioGroupDomProps) => HTMLDivElement;
|
|
5
|
+
//# sourceMappingURL=GidsRadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsRadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/GidsRadioGroup/GidsRadioGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,WAAW,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB,GAAI,eAE/B,sBAAsB,KAAG,cAM3B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { appendAsChildren } from '../../utils/domUtils';
|
|
2
|
+
export const GidsRadioGroupDom = ({ children, }) => {
|
|
3
|
+
const radioGroup = document.createElement('div');
|
|
4
|
+
radioGroup.className = 'gids-radio-group';
|
|
5
|
+
appendAsChildren(radioGroup, children);
|
|
6
|
+
return radioGroup;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=GidsRadioGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsRadioGroup.js","sourceRoot":"","sources":["../../../src/components/GidsRadioGroup/GidsRadioGroup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,sBAAsB,CAAC;AAI1E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EACjC,QAAQ,GACgB,EAAkB,EAAE;IAC5C,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACjD,UAAU,CAAC,SAAS,GAAG,kBAAkB,CAAC;IAC1C,gBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAEvC,OAAO,UAAU,CAAC;AACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type GidsSwitchGroupCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { type DomChildren } from '../../utils/domUtils';
|
|
3
|
+
export type GidsSwitchGroupDomProps = GidsSwitchGroupCommonProps<DomChildren>;
|
|
4
|
+
export declare const GidsSwitchGroupDom: ({ children, }: GidsSwitchGroupDomProps) => HTMLDivElement;
|
|
5
|
+
//# sourceMappingURL=GidsSwitchGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsSwitchGroup.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSwitchGroup/GidsSwitchGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,0BAA0B,CAAC,WAAW,CAAC,CAAC;AAE9E,eAAO,MAAM,kBAAkB,GAAI,eAEhC,uBAAuB,KAAG,cAM5B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { appendAsChildren } from '../../utils/domUtils';
|
|
2
|
+
export const GidsSwitchGroupDom = ({ children, }) => {
|
|
3
|
+
const switchGroup = document.createElement('div');
|
|
4
|
+
switchGroup.className = 'gids-switch-group';
|
|
5
|
+
appendAsChildren(switchGroup, children);
|
|
6
|
+
return switchGroup;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=GidsSwitchGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsSwitchGroup.js","sourceRoot":"","sources":["../../../src/components/GidsSwitchGroup/GidsSwitchGroup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,sBAAsB,CAAC;AAI1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,QAAQ,GACiB,EAAkB,EAAE;IAC7C,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClD,WAAW,CAAC,SAAS,GAAG,mBAAmB,CAAC;IAC5C,gBAAgB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAExC,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ export * from './components/_GidsSwitchControl/GidsSwitchControl';
|
|
|
17
17
|
export * from './components/GidsCheckbox/GidsCheckbox';
|
|
18
18
|
export * from './components/GidsRadio/GidsRadio';
|
|
19
19
|
export * from './components/GidsSwitch/GidsSwitch';
|
|
20
|
+
export * from './components/GidsCheckboxGroup/GidsCheckboxGroup';
|
|
21
|
+
export * from './components/GidsRadioGroup/GidsRadioGroup';
|
|
22
|
+
export * from './components/GidsSwitchGroup/GidsSwitchGroup';
|
|
20
23
|
/**
|
|
21
24
|
* Utilities
|
|
22
25
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oDAAoD,CAAC;AACnE,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qDAAqD,CAAC;AACpE,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oDAAoD,CAAC;AACnE,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qDAAqD,CAAC;AACpE,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAE7D;;GAEG;AACH,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,9 @@ export * from './components/_GidsSwitchControl/GidsSwitchControl';
|
|
|
17
17
|
export * from './components/GidsCheckbox/GidsCheckbox';
|
|
18
18
|
export * from './components/GidsRadio/GidsRadio';
|
|
19
19
|
export * from './components/GidsSwitch/GidsSwitch';
|
|
20
|
+
export * from './components/GidsCheckboxGroup/GidsCheckboxGroup';
|
|
21
|
+
export * from './components/GidsRadioGroup/GidsRadioGroup';
|
|
22
|
+
export * from './components/GidsSwitchGroup/GidsSwitchGroup';
|
|
20
23
|
/**
|
|
21
24
|
* Utilities
|
|
22
25
|
*/
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oDAAoD,CAAC;AACnE,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qDAAqD,CAAC;AACpE,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oDAAoD,CAAC;AACnE,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qDAAqD,CAAC;AACpE,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAE7D;;GAEG;AACH,cAAc,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ganpatiinfo/gids-web-dom-reference",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "DOM for components reference implementations",
|
|
6
6
|
"homepage": "https://ganpatiinfosystem.vercel.app/",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"directory": "packages/private/web-dom-reference"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ganpatiinfo/gids-core-shared": "2.0.
|
|
28
|
-
"@ganpatiinfo/gids-web-shared": "2.0.
|
|
27
|
+
"@ganpatiinfo/gids-core-shared": "2.0.5",
|
|
28
|
+
"@ganpatiinfo/gids-web-shared": "2.0.5"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@ganpatiinfo/gids-web-theme-interface": "2.0.
|
|
31
|
+
"@ganpatiinfo/gids-web-theme-interface": "2.0.5",
|
|
32
32
|
"@jest/globals": "29.7.0",
|
|
33
33
|
"@types/jasmine": "5.1.7",
|
|
34
34
|
"expect": "29.7.0"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type GidsCheckboxGroupCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { GidsCheckboxGroupWebUtils } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
import { appendAsChildren, type DomChildren } from '../../utils/domUtils';
|
|
4
|
+
|
|
5
|
+
const { getGidsCheckboxGroupClassNames } = GidsCheckboxGroupWebUtils;
|
|
6
|
+
|
|
7
|
+
export interface GidsCheckboxGroupDomProps
|
|
8
|
+
extends GidsCheckboxGroupCommonProps<DomChildren> {
|
|
9
|
+
extraClasses?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const GidsCheckboxGroupDom = ({
|
|
13
|
+
children,
|
|
14
|
+
extraClasses,
|
|
15
|
+
}: GidsCheckboxGroupDomProps): HTMLDivElement => {
|
|
16
|
+
const checkboxGroup = document.createElement('div');
|
|
17
|
+
checkboxGroup.className = getGidsCheckboxGroupClassNames(extraClasses);
|
|
18
|
+
appendAsChildren(checkboxGroup, children);
|
|
19
|
+
|
|
20
|
+
return checkboxGroup;
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type GidsRadioGroupCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { appendAsChildren, type DomChildren } from '../../utils/domUtils';
|
|
3
|
+
|
|
4
|
+
export type GidsRadioGroupDomProps = GidsRadioGroupCommonProps<DomChildren>;
|
|
5
|
+
|
|
6
|
+
export const GidsRadioGroupDom = ({
|
|
7
|
+
children,
|
|
8
|
+
}: GidsRadioGroupDomProps): HTMLDivElement => {
|
|
9
|
+
const radioGroup = document.createElement('div');
|
|
10
|
+
radioGroup.className = 'gids-radio-group';
|
|
11
|
+
appendAsChildren(radioGroup, children);
|
|
12
|
+
|
|
13
|
+
return radioGroup;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type GidsSwitchGroupCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { appendAsChildren, type DomChildren } from '../../utils/domUtils';
|
|
3
|
+
|
|
4
|
+
export type GidsSwitchGroupDomProps = GidsSwitchGroupCommonProps<DomChildren>;
|
|
5
|
+
|
|
6
|
+
export const GidsSwitchGroupDom = ({
|
|
7
|
+
children,
|
|
8
|
+
}: GidsSwitchGroupDomProps): HTMLDivElement => {
|
|
9
|
+
const switchGroup = document.createElement('div');
|
|
10
|
+
switchGroup.className = 'gids-switch-group';
|
|
11
|
+
appendAsChildren(switchGroup, children);
|
|
12
|
+
|
|
13
|
+
return switchGroup;
|
|
14
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -17,6 +17,9 @@ export * from './components/_GidsSwitchControl/GidsSwitchControl';
|
|
|
17
17
|
export * from './components/GidsCheckbox/GidsCheckbox';
|
|
18
18
|
export * from './components/GidsRadio/GidsRadio';
|
|
19
19
|
export * from './components/GidsSwitch/GidsSwitch';
|
|
20
|
+
export * from './components/GidsCheckboxGroup/GidsCheckboxGroup';
|
|
21
|
+
export * from './components/GidsRadioGroup/GidsRadioGroup';
|
|
22
|
+
export * from './components/GidsSwitchGroup/GidsSwitchGroup';
|
|
20
23
|
|
|
21
24
|
/**
|
|
22
25
|
* Utilities
|