@ganpatiinfo/gids-web-dom-reference 2.0.3 → 2.0.6
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 +20 -0
- package/dist/components/GidsBadge/GidsBadge.d.ts +6 -0
- package/dist/components/GidsBadge/GidsBadge.d.ts.map +1 -0
- package/dist/components/GidsBadge/GidsBadge.js +30 -0
- package/dist/components/GidsBadge/GidsBadge.js.map +1 -0
- package/dist/components/GidsButton/GidsButton.d.ts.map +1 -1
- package/dist/components/GidsCheckbox/GidsCheckbox.d.ts.map +1 -1
- 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/GidsDisplayTag/GidsDisplayTag.d.ts.map +1 -1
- package/dist/components/GidsDivider/GidsDivider.d.ts.map +1 -1
- package/dist/components/GidsIcon/GidsIcon.d.ts.map +1 -1
- package/dist/components/GidsLabel/GidsLabel.d.ts.map +1 -1
- package/dist/components/GidsLabel/GidsLabelInfo/GidsLabelInfo.d.ts.map +1 -1
- package/dist/components/GidsLink/GidsLink.d.ts.map +1 -1
- package/dist/components/GidsRadio/GidsRadio.d.ts.map +1 -1
- 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/GidsSpinner/GidsSpinner.d.ts.map +1 -1
- package/dist/components/GidsSwitch/GidsSwitch.d.ts.map +1 -1
- 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/components/GidsToggleButton/GidsToggleButton.d.ts.map +1 -1
- package/dist/components/_GidsCheckboxControl/GidsCheckboxControl.d.ts.map +1 -1
- package/dist/components/_GidsRadioControl/GidsRadioControl.d.ts.map +1 -1
- package/dist/components/_GidsSpinnerControl/GidsSpinnerControl.d.ts.map +1 -1
- package/dist/components/_GidsSwitchControl/GidsSwitchControl.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/domUtils.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/GidsBadge/GidsBadge.ts +53 -0
- 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 +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ganpatiinfo/gids-web-dom-reference
|
|
2
2
|
|
|
3
|
+
## 2.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @ganpatiinfo/gids-core-shared@2.0.6
|
|
9
|
+
- @ganpatiinfo/gids-web-shared@2.0.6
|
|
10
|
+
|
|
11
|
+
## 2.0.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 8340eba: Checkbox group and radio group completed
|
|
16
|
+
- Updated dependencies [8340eba]
|
|
17
|
+
- Updated dependencies [8340eba]
|
|
18
|
+
- Updated dependencies [8340eba]
|
|
19
|
+
- @ganpatiinfo/gids-web-shared@2.0.5
|
|
20
|
+
- @ganpatiinfo/gids-core-shared@2.0.5
|
|
21
|
+
- @ganpatiinfo/gids-web-theme-interface@2.0.5
|
|
22
|
+
|
|
3
23
|
## 2.0.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type GidsBadgeCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { DomChildren } from '../../utils/domUtils';
|
|
3
|
+
export interface GidsBadgeDomProps extends GidsBadgeCommonProps<DomChildren> {
|
|
4
|
+
}
|
|
5
|
+
export declare const GidsBadgeDom: ({ appearance, count, accessibleText, type, outline, }: GidsBadgeDomProps) => HTMLSpanElement;
|
|
6
|
+
//# sourceMappingURL=GidsBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsBadge.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBadge/GidsBadge.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,oBAAoB,EAEzB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKrE,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB,CAAC,WAAW,CAAC;CAAG;AAE/E,eAAO,MAAM,YAAY,0DAMtB,iBAAiB,KAAG,eAkCtB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GidsBadgeCommonUtils, } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { GidsBadgeWebUtils, nonEmpty } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
import { appendAsChildren } from '../../utils/domUtils';
|
|
4
|
+
const { getDisplayContent, shouldIncludeA11yText } = GidsBadgeCommonUtils;
|
|
5
|
+
const { getGidsBadgeClassNames } = GidsBadgeWebUtils;
|
|
6
|
+
export const GidsBadgeDom = ({ appearance, count, accessibleText, type, outline, }) => {
|
|
7
|
+
const badge = document.createElement('span');
|
|
8
|
+
badge.className = getGidsBadgeClassNames({ appearance, type, outline });
|
|
9
|
+
const includeA11yText = shouldIncludeA11yText(type, count, nonEmpty(accessibleText));
|
|
10
|
+
if (includeA11yText) {
|
|
11
|
+
const a11yText = document.createElement('span');
|
|
12
|
+
a11yText.className = 'gids-visually-hidden';
|
|
13
|
+
appendAsChildren(a11yText, accessibleText ?? (count !== undefined ? count.toString() : count));
|
|
14
|
+
badge.appendChild(a11yText);
|
|
15
|
+
}
|
|
16
|
+
if (type === 'notification') {
|
|
17
|
+
const displayedContent = getDisplayContent(count, accessibleText);
|
|
18
|
+
if (includeA11yText) {
|
|
19
|
+
const displayedContentSpan = document.createElement('span');
|
|
20
|
+
displayedContentSpan.setAttribute('aria-hidden', 'true');
|
|
21
|
+
appendAsChildren(displayedContentSpan, displayedContent);
|
|
22
|
+
badge.appendChild(displayedContentSpan);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
appendAsChildren(badge, displayedContent);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return badge;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=GidsBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsBadge.js","sourceRoot":"","sources":["../../../src/components/GidsBadge/GidsBadge.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AAErE,MAAM,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,GAAG,oBAAoB,CAAC;AAC1E,MAAM,EAAE,sBAAsB,EAAE,GAAG,iBAAiB,CAAC;AAIrD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC5B,UAAU,EACV,KAAK,EACL,cAAc,EACd,IAAI,EACJ,OAAO,GACY,EAAmB,EAAE;IACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,KAAK,CAAC,SAAS,GAAG,sBAAsB,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAExE,MAAM,eAAe,GAAG,qBAAqB,CAC5C,IAAI,EACJ,KAAK,EACL,QAAQ,CAAC,cAAc,CAAC,CACxB,CAAC;IAEF,IAAI,eAAe,EAAE,CAAC;QACrB,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAChD,QAAQ,CAAC,SAAS,GAAG,sBAAsB,CAAC;QAC5C,gBAAgB,CACf,QAAQ,EACR,cAAc,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAClE,CAAC;QACF,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAED,IAAI,IAAI,KAAK,cAAc,EAAE,CAAC;QAC7B,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;QAClE,IAAI,eAAe,EAAE,CAAC;YACrB,MAAM,oBAAoB,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAC5D,oBAAoB,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;YAEzD,gBAAgB,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;YACzD,KAAK,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACzC,CAAC;aAAM,CAAC;YACP,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;QAC3C,CAAC;IACF,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsButton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsButton/GidsButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,KAAK,kBAAkB,EACvB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAI1E,MAAM,WAAW,kBAAkB,CAClC,aAAa,SAAS,2BAA2B,CAChD,SAAQ,kBAAkB,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC;IACpE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC1D;AAED,eAAO,MAAM,aAAa,GACzB,aAAa,SAAS,2BAA2B,
|
|
1
|
+
{"version":3,"file":"GidsButton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsButton/GidsButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,KAAK,kBAAkB,EACvB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAI1E,MAAM,WAAW,kBAAkB,CAClC,aAAa,SAAS,2BAA2B,CAChD,SAAQ,kBAAkB,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC;IACpE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC1D;AAED,eAAO,MAAM,aAAa,GACzB,aAAa,SAAS,2BAA2B,yIAe/C,kBAAkB,CAAC,aAAa,CAAC,KAAG,aAAa,SAAS,QAAQ,GAClE,iBAAiB,GACjB,iBAmDF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsCheckbox.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCheckbox/GidsCheckbox.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EAEf,KAAK,oBAAoB,EAEzB,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,oBAChB,SAAQ,oBAAoB,CAC3B,OAAO,GAAG,OAAO,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,EACvC,OAAO,CACP;IACD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"GidsCheckbox.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCheckbox/GidsCheckbox.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EAEf,KAAK,oBAAoB,EAEzB,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,oBAChB,SAAQ,oBAAoB,CAC3B,OAAO,GAAG,OAAO,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,EACvC,OAAO,CACP;IACD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,eAAe,sNAsBzB,oBAAoB,KAAG,cAiCzB,CAAC"}
|
|
@@ -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,gCAG9B,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsDisplayTag.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDisplayTag/GidsDisplayTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAI5D,MAAM,WAAW,sBAChB,SAAQ,yBAAyB,CAAC,eAAe,CAAC;CAAG;AAEtD,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"GidsDisplayTag.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDisplayTag/GidsDisplayTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAI5D,MAAM,WAAW,sBAChB,SAAQ,yBAAyB,CAAC,eAAe,CAAC;CAAG;AAEtD,eAAO,MAAM,iBAAiB,8CAM3B,sBAAsB,KAAG,eAe3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsDivider.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDivider/GidsDivider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAK5E,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;CAAG;AAEtE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"GidsDivider.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDivider/GidsDivider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAK5E,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;CAAG;AAEtE,eAAO,MAAM,cAAc,qBAExB,mBAAmB,KAAG,aAKxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsIcon.d.ts","sourceRoot":"","sources":["../../../src/components/GidsIcon/GidsIcon.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,QAAQ,EACb,KAAK,cAAc,EAEnB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAIN,KAAK,gBAAgB,EACrB,MAAM,8BAA8B,CAAC;AAItC,MAAM,WAAW,gBAChB,SAAQ,gBAAgB,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"GidsIcon.d.ts","sourceRoot":"","sources":["../../../src/components/GidsIcon/GidsIcon.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,QAAQ,EACb,KAAK,cAAc,EAEnB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAIN,KAAK,gBAAgB,EACrB,MAAM,8BAA8B,CAAC;AAItC,MAAM,WAAW,gBAChB,SAAQ,gBAAgB,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,yDAOrB,gBAAgB,KAAG,aA2BrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsLabel.d.ts","sourceRoot":"","sources":["../../../src/components/GidsLabel/GidsLabel.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,WAAW,iBAChB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,eAAe,CAAC;CAAG;AAE3D,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"GidsLabel.d.ts","sourceRoot":"","sources":["../../../src/components/GidsLabel/GidsLabel.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,WAAW,iBAChB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,eAAe,CAAC;CAAG;AAE3D,eAAO,MAAM,YAAY,kIAStB,iBAAiB,KAAG,cA+BtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsLabelInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/GidsLabel/GidsLabelInfo/GidsLabelInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAS/D,MAAM,WAAW,qBAAsB,SAAQ,wBAAwB;IACtE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"GidsLabelInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/GidsLabel/GidsLabelInfo/GidsLabelInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAS/D,MAAM,WAAW,qBAAsB,SAAQ,wBAAwB;IACtE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,2CAK1B,qBAAqB,KAAG,iBAuB1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsLink.d.ts","sourceRoot":"","sources":["../../../src/components/GidsLink/GidsLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,8BAA8B,CAAC;AAItC,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,CAAC,WAAW,CAAC;IACzE,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"GidsLink.d.ts","sourceRoot":"","sources":["../../../src/components/GidsLink/GidsLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,8BAA8B,CAAC;AAItC,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,CAAC,WAAW,CAAC;IACzE,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,WAAW,qDAMrB,gBAAgB,KAAG,iBAerB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsRadio.d.ts","sourceRoot":"","sources":["../../../src/components/GidsRadio/GidsRadio.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EAEf,KAAK,iBAAiB,EAEtB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAI9E,MAAM,WAAW,iBAChB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,eAAe,CAAC;IACvD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"GidsRadio.d.ts","sourceRoot":"","sources":["../../../src/components/GidsRadio/GidsRadio.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EAEf,KAAK,iBAAiB,EAEtB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAI9E,MAAM,WAAW,iBAChB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,eAAe,CAAC;IACvD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,6LAoBtB,iBAAiB,KAAG,cA+BtB,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,kBAE3B,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSpinner/GidsSpinner.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,sBAAsB,EAE3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IAClE,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"GidsSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSpinner/GidsSpinner.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,sBAAsB,EAE3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IAClE,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,2EAQxB,mBAAmB,KAAG,eAkCxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSwitch/GidsSwitch.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,kBAAkB,EAE1B,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAI9E,MAAM,WAAW,kBACb,SAAQ,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"GidsSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSwitch/GidsSwitch.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,kBAAkB,EAE1B,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAI9E,MAAM,WAAW,kBACb,SAAQ,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,6LAoBvB,kBAAkB,KAAG,cA+BvB,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,kBAE5B,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsToggleButton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsToggleButton/GidsToggleButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,wBAChB,SAAQ,wBAAwB,CAAC,WAAW,CAAC;IAC7C,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACjE;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,mBAAmB;QAC5B,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KAC7B;CACD;AAED,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"GidsToggleButton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsToggleButton/GidsToggleButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,wBAChB,SAAQ,wBAAwB,CAAC,WAAW,CAAC;IAC7C,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACjE;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,mBAAmB;QAC5B,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KAC7B;CACD;AAED,eAAO,MAAM,mBAAmB,mGAU7B,wBAAwB,gBA4B1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsCheckboxControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsCheckboxControl/GidsCheckboxControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EACf,KAAK,2BAA2B,EAEhC,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,2BAChB,SAAQ,2BAA2B;IACnC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"GidsCheckboxControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsCheckboxControl/GidsCheckboxControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EACf,KAAK,2BAA2B,EAEhC,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,2BAChB,SAAQ,2BAA2B;IACnC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,sBAAsB,+GAWhC,2BAA2B,KAAG,eAoDhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsRadioControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsRadioControl/GidsRadioControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EACf,KAAK,wBAAwB,EAE7B,MAAM,8BAA8B,CAAC;AAKtC,MAAM,WAAW,wBAAyB,SAAQ,wBAAwB;IACzE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"GidsRadioControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsRadioControl/GidsRadioControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EACf,KAAK,wBAAwB,EAE7B,MAAM,8BAA8B,CAAC;AAKtC,MAAM,WAAW,wBAAyB,SAAQ,wBAAwB;IACzE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,mBAAmB,sFAS7B,wBAAwB,KAAG,eAkC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsSpinnerControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsSpinnerControl/GidsSpinnerControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,6BAA6B,EAElC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,0BAChB,SAAQ,6BAA6B;IACrC,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"GidsSpinnerControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsSpinnerControl/GidsSpinnerControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,6BAA6B,EAElC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,0BAChB,SAAQ,6BAA6B;IACrC,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,oDAM/B,0BAA0B,KAAG,aAmC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsSwitchControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsSwitchControl/GidsSwitchControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EACf,KAAK,yBAAyB,EAE9B,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC3E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"GidsSwitchControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsSwitchControl/GidsSwitchControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EACf,KAAK,yBAAyB,EAE9B,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC3E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,eAAO,MAAM,oBAAoB,sFAS9B,yBAAyB,KAAG,eAqD9B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ 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';
|
|
23
|
+
export * from './components/GidsBadge/GidsBadge';
|
|
20
24
|
/**
|
|
21
25
|
* Utilities
|
|
22
26
|
*/
|
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;AAC7D,cAAc,kCAAkC,CAAC;AAEjD;;GAEG;AACH,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,10 @@ 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';
|
|
23
|
+
export * from './components/GidsBadge/GidsBadge';
|
|
20
24
|
/**
|
|
21
25
|
* Utilities
|
|
22
26
|
*/
|
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;AAC7D,cAAc,kCAAkC,CAAC;AAEjD;;GAEG;AACH,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domUtils.d.ts","sourceRoot":"","sources":["../../src/utils/domUtils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,eAAe,EAAE,CAAC;AAE9D,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,eAAe,
|
|
1
|
+
{"version":3,"file":"domUtils.d.ts","sourceRoot":"","sources":["../../src/utils/domUtils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,eAAe,EAAE,CAAC;AAE9D,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,eAAe,iCAC1C,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,KAC9B,CAAC,EAKH,CAAC;AAEF,eAAO,MAAM,gBAAgB,WACpB,OAAO,YACL,WAAW,GAAG,SAAS,KAC/B,IAIF,CAAC;AAEF,eAAO,MAAM,eAAe,YAClB,OAAO,iBACD,MAAM,UACb,OAAO,KACb,OAYF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBACrB,gBAAgB,qDAM3B;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB,KACC,IAaF,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.6",
|
|
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.6",
|
|
28
|
+
"@ganpatiinfo/gids-web-shared": "2.0.6"
|
|
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,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type GidsBadgeCommonProps,
|
|
3
|
+
GidsBadgeCommonUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-core-shared';
|
|
5
|
+
import { GidsBadgeWebUtils, nonEmpty } from '@ganpatiinfo/gids-web-shared';
|
|
6
|
+
import { appendAsChildren, DomChildren } from '../../utils/domUtils';
|
|
7
|
+
|
|
8
|
+
const { getDisplayContent, shouldIncludeA11yText } = GidsBadgeCommonUtils;
|
|
9
|
+
const { getGidsBadgeClassNames } = GidsBadgeWebUtils;
|
|
10
|
+
|
|
11
|
+
export interface GidsBadgeDomProps extends GidsBadgeCommonProps<DomChildren> {}
|
|
12
|
+
|
|
13
|
+
export const GidsBadgeDom = ({
|
|
14
|
+
appearance,
|
|
15
|
+
count,
|
|
16
|
+
accessibleText,
|
|
17
|
+
type,
|
|
18
|
+
outline,
|
|
19
|
+
}: GidsBadgeDomProps): HTMLSpanElement => {
|
|
20
|
+
const badge = document.createElement('span');
|
|
21
|
+
badge.className = getGidsBadgeClassNames({ appearance, type, outline });
|
|
22
|
+
|
|
23
|
+
const includeA11yText = shouldIncludeA11yText(
|
|
24
|
+
type,
|
|
25
|
+
count,
|
|
26
|
+
nonEmpty(accessibleText),
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
if (includeA11yText) {
|
|
30
|
+
const a11yText = document.createElement('span');
|
|
31
|
+
a11yText.className = 'gids-visually-hidden';
|
|
32
|
+
appendAsChildren(
|
|
33
|
+
a11yText,
|
|
34
|
+
accessibleText ?? (count !== undefined ? count.toString() : count),
|
|
35
|
+
);
|
|
36
|
+
badge.appendChild(a11yText);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (type === 'notification') {
|
|
40
|
+
const displayedContent = getDisplayContent(count, accessibleText);
|
|
41
|
+
if (includeA11yText) {
|
|
42
|
+
const displayedContentSpan = document.createElement('span');
|
|
43
|
+
displayedContentSpan.setAttribute('aria-hidden', 'true');
|
|
44
|
+
|
|
45
|
+
appendAsChildren(displayedContentSpan, displayedContent);
|
|
46
|
+
badge.appendChild(displayedContentSpan);
|
|
47
|
+
} else {
|
|
48
|
+
appendAsChildren(badge, displayedContent);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return badge;
|
|
53
|
+
};
|
|
@@ -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,10 @@ 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';
|
|
23
|
+
export * from './components/GidsBadge/GidsBadge';
|
|
20
24
|
|
|
21
25
|
/**
|
|
22
26
|
* Utilities
|