@ganpatiinfo/gids-web-dom-reference 4.0.0 → 5.0.0
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 +23 -0
- package/dist/components/GidsScrim/GidsScrim.d.ts +7 -0
- package/dist/components/GidsScrim/GidsScrim.d.ts.map +1 -0
- package/dist/components/GidsScrim/GidsScrim.js +12 -0
- package/dist/components/GidsScrim/GidsScrim.js.map +1 -0
- package/dist/components/GidsSegmentedControl/GidsSegmentedControl.d.ts +2 -2
- package/dist/components/GidsSegmentedControl/GidsSegmentedControl.d.ts.map +1 -1
- package/dist/components/GidsSegmentedControl/GidsSegmentedControl.js.map +1 -1
- package/dist/components/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts +3 -3
- package/dist/components/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts.map +1 -1
- package/dist/components/GidsSegmentedTabItem/GidsSegmentedTabItem.js +14 -1
- package/dist/components/GidsSegmentedTabItem/GidsSegmentedTabItem.js.map +1 -1
- package/dist/components/GidsTopNavigation/GidsTopNavigation.d.ts +1 -1
- package/dist/components/GidsTopNavigation/GidsTopNavigation.d.ts.map +1 -1
- package/dist/components/GidsTopNavigation/GidsTopNavigation.js.map +1 -1
- package/dist/components/_GidsSideMenuItem/GidsSideMenuItem.d.ts +8 -0
- package/dist/components/_GidsSideMenuItem/GidsSideMenuItem.d.ts.map +1 -0
- package/dist/components/_GidsSideMenuItem/GidsSideMenuItem.js +62 -0
- package/dist/components/_GidsSideMenuItem/GidsSideMenuItem.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/GidsScrim/GidsScrim.ts +25 -0
- package/src/components/GidsSegmentedControl/GidsSegmentedControl.ts +3 -2
- package/src/components/GidsSegmentedTabItem/GidsSegmentedTabItem.ts +23 -2
- package/src/components/GidsTopNavigation/GidsTopNavigation.ts +2 -1
- package/src/components/_GidsSideMenuItem/GidsSideMenuItem.ts +108 -0
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @ganpatiinfo/gids-web-dom-reference
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- e6382f1: Developed `GidsSideMenuItem` private component for all web platforms
|
|
8
|
+
- 3ec3507: Developed `GidsScrim` component for all web platforms
|
|
9
|
+
|
|
10
|
+
### Minor Changes
|
|
11
|
+
|
|
12
|
+
- 74ea6bd: - Updated `GidsSegmentedTabItem` component for all web platforms.
|
|
13
|
+
- 74ea6bd: - Updated `GidsTopNavigation` component for all web platforms.
|
|
14
|
+
- 74ea6bd: - Updated `GidsSegmentedControl` component for all web platforms.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [74ea6bd]
|
|
19
|
+
- Updated dependencies [e6382f1]
|
|
20
|
+
- Updated dependencies [3ec3507]
|
|
21
|
+
- Updated dependencies [74ea6bd]
|
|
22
|
+
- Updated dependencies [74ea6bd]
|
|
23
|
+
- @ganpatiinfo/gids-core-shared@5.0.0
|
|
24
|
+
- @ganpatiinfo/gids-web-shared@5.0.0
|
|
25
|
+
|
|
3
26
|
## 4.0.0
|
|
4
27
|
|
|
5
28
|
### Major Changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type GidsScrimWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { type DomChildren } from '../../utils/domUtils.js';
|
|
3
|
+
export interface GidsScrimDomProps extends GidsScrimWebProps<DomChildren> {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsScrimDom: ({ children, extraClasses, }: GidsScrimDomProps) => HTMLElement;
|
|
7
|
+
//# sourceMappingURL=GidsScrim.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsScrim.d.ts","sourceRoot":"","sources":["../../../src/components/GidsScrim/GidsScrim.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI7E,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,CAAC,WAAW,CAAC;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,GAAI,6BAG1B,iBAAiB,KAAG,WAStB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GidsScrimWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { appendAsChildren } from '../../utils/domUtils.js';
|
|
3
|
+
const { getGidsScrimClassNames } = GidsScrimWebUtils;
|
|
4
|
+
export const GidsScrimDom = ({ children, extraClasses, }) => {
|
|
5
|
+
const scrimEl = document.createElement('gids-scrim');
|
|
6
|
+
scrimEl.className = getGidsScrimClassNames(extraClasses);
|
|
7
|
+
if (children) {
|
|
8
|
+
appendAsChildren(scrimEl, children);
|
|
9
|
+
}
|
|
10
|
+
return scrimEl;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=GidsScrim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsScrim.js","sourceRoot":"","sources":["../../../src/components/GidsScrim/GidsScrim.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAoB,MAAM,yBAAyB,CAAC;AAE7E,MAAM,EAAE,sBAAsB,EAAE,GAAG,iBAAiB,CAAC;AAMrD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,QAAQ,EACR,YAAY,GACM,EAAe,EAAE;IACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACrD,OAAO,CAAC,SAAS,GAAG,sBAAsB,CAAC,YAAY,CAAC,CAAC;IAEzD,IAAI,QAAQ,EAAE,CAAC;QACb,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GidsSegmentedTabItemPressedReturnedProps, type GidsSegmentedControlCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
2
|
import { type ClassValue } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
-
import { type DomNodeOrString } from '../../utils/domUtils.js';
|
|
4
|
-
export interface GidsSegmentedControlDomProps extends GidsSegmentedControlCommonProps<DomNodeOrString, string> {
|
|
3
|
+
import { DomChildren, type DomNodeOrString } from '../../utils/domUtils.js';
|
|
4
|
+
export interface GidsSegmentedControlDomProps extends GidsSegmentedControlCommonProps<DomNodeOrString, string, DomChildren> {
|
|
5
5
|
onPress?: (props: GidsSegmentedTabItemPressedReturnedProps) => void;
|
|
6
6
|
className?: ClassValue;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsSegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSegmentedControl/GidsSegmentedControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wCAAwC,EACxC,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsSegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSegmentedControl/GidsSegmentedControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wCAAwC,EACxC,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAK5E,MAAM,WAAW,4BAA6B,SAAQ,+BAA+B,CACnF,eAAe,EACf,MAAM,EACN,WAAW,CACZ;IACC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,wCAAwC,KAAK,IAAI,CAAC;IACpE,SAAS,CAAC,EAAE,UAAU,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,GAAI,0CAKrC,4BAA4B,KAAG,cAgDjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsSegmentedControl.js","sourceRoot":"","sources":["../../../src/components/GidsSegmentedControl/GidsSegmentedControl.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAE1F,MAAM,EAAE,iCAAiC,EAAE,GAAG,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsSegmentedControl.js","sourceRoot":"","sources":["../../../src/components/GidsSegmentedControl/GidsSegmentedControl.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAE1F,MAAM,EAAE,iCAAiC,EAAE,GAAG,4BAA4B,CAAC;AAW3E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,KAAK,GAAG,WAAW,EACnB,QAAQ,EACR,OAAO,EACP,SAAS,GACoB,EAAkB,EAAE;IACjD,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACvD,gBAAgB,CAAC,SAAS,GAAG,iCAAiC,CAC5D,EAAE,KAAK,EAAE,EACT,SAAS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{ type GidsSegmentedTabItemPressedReturnedProps, type GidsSegmentedTabItemCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
2
|
import { type ClassValue } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
-
import { type DomNodeOrString } from '../../utils/domUtils.js';
|
|
4
|
-
export interface GidsSegmentedTabItemDomProps extends GidsSegmentedTabItemCommonProps<DomNodeOrString, string> {
|
|
3
|
+
import { DomChildren, type DomNodeOrString } from '../../utils/domUtils.js';
|
|
4
|
+
export interface GidsSegmentedTabItemDomProps extends GidsSegmentedTabItemCommonProps<DomNodeOrString, string, DomChildren> {
|
|
5
5
|
onPress?: (props: GidsSegmentedTabItemPressedReturnedProps) => void;
|
|
6
6
|
className?: ClassValue;
|
|
7
7
|
}
|
|
8
|
-
export declare const GidsSegmentedTabItemDom: ({ index, label, selected, badge, badgeAccessibleText, badgeAppearance, onPress, className, width, }: GidsSegmentedTabItemDomProps) => HTMLButtonElement;
|
|
8
|
+
export declare const GidsSegmentedTabItemDom: ({ leadingIcon, trailingIcon, index, label, selected, badge, badgeAccessibleText, badgeAppearance, onPress, className, width, }: GidsSegmentedTabItemDomProps) => HTMLButtonElement;
|
|
9
9
|
//# sourceMappingURL=GidsSegmentedTabItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsSegmentedTabItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSegmentedTabItem/GidsSegmentedTabItem.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wCAAwC,EAC7C,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,
|
|
1
|
+
{"version":3,"file":"GidsSegmentedTabItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSegmentedTabItem/GidsSegmentedTabItem.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wCAAwC,EAC7C,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAEL,WAAW,EACX,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAKjC,MAAM,WAAW,4BAA6B,SAAQ,+BAA+B,CACnF,eAAe,EACf,MAAM,EACN,WAAW,CACZ;IACC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,wCAAwC,KAAK,IAAI,CAAC;IACpE,SAAS,CAAC,EAAE,UAAU,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,GAAI,gIAYrC,4BAA4B,KAAG,iBAwDjC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GidsSegmentedTabItemWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
+
import { appendAsChildren, } from '../../utils/domUtils.js';
|
|
3
4
|
import { GidsBadgeDom } from '../GidsBadge/GidsBadge.js';
|
|
4
5
|
const { getGidsSegmentedTabItemClassNames } = GidsSegmentedTabItemWebUtils;
|
|
5
|
-
export const GidsSegmentedTabItemDom = ({ index, label, selected = false, badge = false, badgeAccessibleText, badgeAppearance = 'information', onPress, className, width = 'intrinsic', }) => {
|
|
6
|
+
export const GidsSegmentedTabItemDom = ({ leadingIcon, trailingIcon, index, label, selected = false, badge = false, badgeAccessibleText, badgeAppearance = 'information', onPress, className, width = 'intrinsic', }) => {
|
|
6
7
|
const segmentedTabItem = document.createElement('button');
|
|
7
8
|
segmentedTabItem.className = getGidsSegmentedTabItemClassNames({ selected, width }, className);
|
|
8
9
|
segmentedTabItem.setAttribute('data-gids-segmented-item', 'true');
|
|
@@ -14,6 +15,12 @@ export const GidsSegmentedTabItemDom = ({ index, label, selected = false, badge
|
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
});
|
|
18
|
+
if (leadingIcon) {
|
|
19
|
+
const leadingIconContainer = document.createElement('div');
|
|
20
|
+
leadingIconContainer.className = 'gids-segmented-item__icons';
|
|
21
|
+
appendAsChildren(leadingIconContainer, leadingIcon);
|
|
22
|
+
segmentedTabItem.appendChild(leadingIconContainer);
|
|
23
|
+
}
|
|
17
24
|
if (label && label !== '') {
|
|
18
25
|
if (typeof label === 'string') {
|
|
19
26
|
const labelElement = document.createElement('label');
|
|
@@ -27,6 +34,12 @@ export const GidsSegmentedTabItemDom = ({ index, label, selected = false, badge
|
|
|
27
34
|
segmentedTabItem.appendChild(label);
|
|
28
35
|
}
|
|
29
36
|
}
|
|
37
|
+
if (trailingIcon) {
|
|
38
|
+
const trailingIconContainer = document.createElement('div');
|
|
39
|
+
trailingIconContainer.className = 'gids-segmented-item__selected-icons';
|
|
40
|
+
appendAsChildren(trailingIconContainer, trailingIcon);
|
|
41
|
+
segmentedTabItem.appendChild(trailingIconContainer);
|
|
42
|
+
}
|
|
30
43
|
if (badge) {
|
|
31
44
|
segmentedTabItem.appendChild(GidsBadgeDom({
|
|
32
45
|
accessibleText: badgeAccessibleText,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsSegmentedTabItem.js","sourceRoot":"","sources":["../../../src/components/GidsSegmentedTabItem/GidsSegmentedTabItem.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsSegmentedTabItem.js","sourceRoot":"","sources":["../../../src/components/GidsSegmentedTabItem/GidsSegmentedTabItem.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,gBAAgB,GAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,EAAE,iCAAiC,EAAE,GAAG,4BAA4B,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AC,gCAAgC,EAAE;gBAC9D,yCAAyC,EAAE,QAAQ;aACpD,CAAC,CAAC;YACH,YAAY,CAAC,WAAW,GAAG,KAAK,CAAC;YACjC,gBAAgB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC7C,CAAC;aAAM,CAAC;YACN,gBAAgB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IAED,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC5D,qBAAqB,CAAC,SAAS,GAAG,qCAAqC,CAAC;QACxE,gBAAgB,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;QACtD,gBAAgB,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IACtD,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACV,gBAAgB,CAAC,WAAW,CAC1B,YAAY,CAAC;YACX,cAAc,EAAE,mBAAmB;YACnC,UAAU,EAAE,eAAe;YAC3B,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,KAAK;SACZ,CAAC,CACH,CAAC;IACJ,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type GidsTopNavigationWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
|
2
2
|
import { DomChildren, DomNodeOrString } from '../../utils/domUtils.js';
|
|
3
3
|
import { GidsSearchBarDomProps } from '../GidsSearchBar/GidsSearchBar.js';
|
|
4
4
|
import { GidsSegmentedControlDomProps } from '../GidsSegmentedControl/GidsSegmentedControl.js';
|
|
5
|
-
export interface GidsTopNavigationDomProps extends GidsTopNavigationWebProps<DomChildren, DomChildren, DomChildren, DomNodeOrString, string, string, string>, Pick<GidsSearchBarDomProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Pick<GidsSegmentedControlDomProps, 'onPress'> {
|
|
5
|
+
export interface GidsTopNavigationDomProps extends GidsTopNavigationWebProps<DomChildren, DomChildren, DomChildren, DomNodeOrString, string, string, string, DomChildren>, Pick<GidsSearchBarDomProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Pick<GidsSegmentedControlDomProps, 'onPress'> {
|
|
6
6
|
extraClasses?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const GidsTopNavigationDom: (props: GidsTopNavigationDomProps) => HTMLElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTopNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTopNavigation/GidsTopNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,WAAW,EACX,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,4BAA4B,EAC7B,MAAM,iDAAiD,CAAC;AAKzD,MAAM,WAAW,yBACf,SACE,yBAAyB,CACvB,WAAW,EACX,WAAW,EACX,WAAW,EACX,eAAe,EACf,MAAM,EACN,MAAM,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"GidsTopNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTopNavigation/GidsTopNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,WAAW,EACX,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,4BAA4B,EAC7B,MAAM,iDAAiD,CAAC;AAKzD,MAAM,WAAW,yBACf,SACE,yBAAyB,CACvB,WAAW,EACX,WAAW,EACX,WAAW,EACX,eAAe,EACf,MAAM,EACN,MAAM,EACN,MAAM,EACN,WAAW,CACZ,EACD,IAAI,CAAC,qBAAqB,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC,EAC1E,IAAI,CAAC,4BAA4B,EAAE,SAAS,CAAC;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,oBAAoB,GAC/B,OAAO,yBAAyB,KAC/B,WAmFF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTopNavigation.js","sourceRoot":"","sources":["../../../src/components/GidsTopNavigation/GidsTopNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,GAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,GAEjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,uBAAuB,GAExB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,EAAE,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsTopNavigation.js","sourceRoot":"","sources":["../../../src/components/GidsTopNavigation/GidsTopNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,GAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,GAEjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,uBAAuB,GAExB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,EAAE,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;AAmBrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,KAAgC,EACnB,EAAE;IACf,MAAM,EACJ,0BAA0B,GAAG,IAAI,EACjC,4BAA4B,GAAG,IAAI,EACnC,2BAA2B,GAAG,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ACjC,sBAAsB,CAAC,MAAM,CAC3B,gBAAgB,CAAC;gBACf,IAAI,EAAE,SAAS;gBACf,UAAU,EAAE,SAAS;gBACrB,MAAM,EAAE,SAAS;gBACjB,GAAG,IAAI;aACR,CAAC,CACH,CAAC;QACJ,CAAC;QACD,aAAa,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5D,qBAAqB,CAAC,SAAS,GAAG,oCAAoC,CAAC;IAEvE,IAAI,YAAY,IAAI,2BAA2B,EAAE,CAAC;QAChD,IAAI,YAAY,EAAE,CAAC;YACjB,gBAAgB,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;QACxD,CAAC;QACD,IAAI,2BAA2B,EAAE,CAAC;YAChC,qBAAqB,CAAC,MAAM,CAC1B,uBAAuB,CAAC;gBACtB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW;gBAClC,QAAQ,EAAE,QAAQ;gBAClB,OAAO;aACR,CAAC,CACH,CAAC;QACJ,CAAC;QACD,aAAa,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GidsSideMenuItemOnPressEvent, type GidsSideMenuItemWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { DomChildren, DomNodeOrString } from '../../utils/domUtils.js';
|
|
3
|
+
export interface GidsSideMenuItemDomProps extends GidsSideMenuItemWebProps<DomNodeOrString, DomChildren, DomChildren> {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
onPressSideMenuItem?: GidsSideMenuItemOnPressEvent;
|
|
6
|
+
}
|
|
7
|
+
export declare const GidsSideMenuItemDom: ({ appearance, index, selected, isLeadingDotVisible, leadingDotAppearance, leadingAccessory, trailingAccessory, leadingIcon, trailingIcon, isTrailingArrowVisible, trailingArrowDirection, children, extraClasses, onPressSideMenuItem, }: GidsSideMenuItemDomProps) => HTMLDivElement;
|
|
8
|
+
//# sourceMappingURL=GidsSideMenuItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsSideMenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsSideMenuItem/GidsSideMenuItem.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAE9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,WAAW,EACX,eAAe,EAChB,MAAM,yBAAyB,CAAC;AASjC,MAAM,WAAW,wBAAyB,SAAQ,wBAAwB,CACxE,eAAe,EACf,WAAW,EACX,WAAW,CACZ;IACC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,4BAA4B,CAAC;CACpD;AAED,eAAO,MAAM,mBAAmB,GAAI,0OAejC,wBAAwB,KAAG,cAiE7B,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { GidsSideMenuItemWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { appendAsChildren, } from '../../utils/domUtils.js';
|
|
3
|
+
import { GidsBadgeDom } from '../GidsBadge/GidsBadge.js';
|
|
4
|
+
import { GidsIconDom } from '../GidsIcon/GidsIcon.js';
|
|
5
|
+
import { GidsSideMenuItemCommonUtils } from '@ganpatiinfo/gids-core-shared';
|
|
6
|
+
const { getGidsSideMenuItemClassNames } = GidsSideMenuItemWebUtils;
|
|
7
|
+
const { getSideMenuTrailingIcon } = GidsSideMenuItemCommonUtils;
|
|
8
|
+
export const GidsSideMenuItemDom = ({ appearance = 'default', index = 0, selected, isLeadingDotVisible = false, leadingDotAppearance = 'information', leadingAccessory, trailingAccessory, leadingIcon, trailingIcon, isTrailingArrowVisible = false, trailingArrowDirection = 'right', children, extraClasses, onPressSideMenuItem, }) => {
|
|
9
|
+
const sideMenuItem = document.createElement('div');
|
|
10
|
+
sideMenuItem.className = getGidsSideMenuItemClassNames({ selected, appearance }, extraClasses);
|
|
11
|
+
sideMenuItem.setAttribute('index', `${index}`);
|
|
12
|
+
if (leadingAccessory) {
|
|
13
|
+
appendAsChildren(sideMenuItem, leadingAccessory);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
if (isLeadingDotVisible) {
|
|
17
|
+
sideMenuItem.append(GidsBadgeDom({
|
|
18
|
+
appearance: leadingDotAppearance,
|
|
19
|
+
type: 'dot',
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (leadingIcon) {
|
|
24
|
+
appendAsChildren(sideMenuItem, leadingIcon);
|
|
25
|
+
}
|
|
26
|
+
if (children) {
|
|
27
|
+
const textEl = document.createElement('span');
|
|
28
|
+
textEl.className = 'gids-side-menu-item__label';
|
|
29
|
+
if (typeof children === 'string') {
|
|
30
|
+
textEl.textContent = children;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
textEl.appendChild(children);
|
|
34
|
+
}
|
|
35
|
+
appendAsChildren(sideMenuItem, textEl);
|
|
36
|
+
}
|
|
37
|
+
if (trailingAccessory) {
|
|
38
|
+
appendAsChildren(sideMenuItem, trailingAccessory);
|
|
39
|
+
}
|
|
40
|
+
if (trailingIcon) {
|
|
41
|
+
appendAsChildren(sideMenuItem, trailingIcon);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
if (isTrailingArrowVisible) {
|
|
45
|
+
sideMenuItem.append(GidsIconDom({
|
|
46
|
+
name: getSideMenuTrailingIcon(trailingArrowDirection),
|
|
47
|
+
size: 'md',
|
|
48
|
+
alt: '',
|
|
49
|
+
appearance: 'regular',
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (onPressSideMenuItem) {
|
|
54
|
+
sideMenuItem.addEventListener('click', () => {
|
|
55
|
+
onPressSideMenuItem({
|
|
56
|
+
selectedIndex: index,
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return sideMenuItem;
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=GidsSideMenuItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsSideMenuItem.js","sourceRoot":"","sources":["../../../src/components/_GidsSideMenuItem/GidsSideMenuItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,GAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAG5E,MAAM,EAAE,6BAA6B,EAAE,GAAG,wBAAwB,CAAC;AACnE,MAAM,EAAE,uBAAuB,EAAE,GAAG,2BAA2B,CAAC;AAWhE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,UAAU,GAAG,SAAS,EACtB,KAAK,GAAG,CAAC,EACT,QAAQ,EACR,mBAAmB,GAAG,KAAK,EAC3B,oBAAoB,GAAG,aAAa,EACpC,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,sBAAsB,GAAG,KAAK,EAC9B,sBAAsB,GAAG,OAAO,EAChC,QAAQ,EACR,YAAY,EACZ,mBAAmB,GACM,EAAkB,EAAE;IAC7C,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACnD,YAAY,CAAC,SAAS,GAAG,6BAA6B,CACpD,EAAE,QAAQ,EAAE,UAAU,EAAE,EACxB,YAAY,CACb,CAAC;IAEF,YAAY,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IAE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,YAAY,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YAC1C,mBAAmB,CAAC;gBAClB,aAAa,EAAE,KAAK;aACrB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export * from './components/GidsOverlayProvider/GidsOverlayProvider.js';
|
|
|
59
59
|
export * from './components/GidsSnackbar/GidsSnackbar.js';
|
|
60
60
|
export * from './components/_GidsNotificationContainer/GidsNotificationContainer.js';
|
|
61
61
|
export * from './components/GidsNotification/GidsNotification.js';
|
|
62
|
+
export * from './components/_GidsSideMenuItem/GidsSideMenuItem.js';
|
|
63
|
+
export * from './components/GidsScrim/GidsScrim.js';
|
|
62
64
|
/**
|
|
63
65
|
* Utilities
|
|
64
66
|
*/
|
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,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,uDAAuD,CAAC;AACtE,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wDAAwD,CAAC;AACvE,cAAc,yCAAyC,CAAC;AACxD,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AACzE,cAAc,oDAAoD,CAAC;AACnE,cAAc,sDAAsD,CAAC;AACrE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,uC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AC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,yDAAyD,CAAC;AACxE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sEAAsE,CAAC;AACrF,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,qCAAqC,CAAC;AAEpD;;GAEG;AACH,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -59,6 +59,8 @@ export * from './components/GidsOverlayProvider/GidsOverlayProvider.js';
|
|
|
59
59
|
export * from './components/GidsSnackbar/GidsSnackbar.js';
|
|
60
60
|
export * from './components/_GidsNotificationContainer/GidsNotificationContainer.js';
|
|
61
61
|
export * from './components/GidsNotification/GidsNotification.js';
|
|
62
|
+
export * from './components/_GidsSideMenuItem/GidsSideMenuItem.js';
|
|
63
|
+
export * from './components/GidsScrim/GidsScrim.js';
|
|
62
64
|
/**
|
|
63
65
|
* Utilities
|
|
64
66
|
*/
|
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,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,uDAAuD,CAAC;AACtE,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wDAAwD,CAAC;AACvE,cAAc,yCAAyC,CAAC;AACxD,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AACzE,cAAc,oDAAoD,CAAC;AACnE,cAAc,sDAAsD,CAAC;AACrE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA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AAc,6DAA6D,CAAC;AAC5E,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,yDAAyD,CAAC;AACxE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sEAAsE,CAAC;AACrF,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,qCAAqC,CAAC;AAEpD;;GAEG;AACH,cAAc,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ganpatiinfo/gids-web-dom-reference",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "DOM for components reference implementations",
|
|
6
6
|
"homepage": "https://ganpatiinfosystem.vercel.app/",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"directory": "packages/private/web-dom-reference"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ganpatiinfo/gids-core-shared": "
|
|
28
|
-
"@ganpatiinfo/gids-web-shared": "
|
|
27
|
+
"@ganpatiinfo/gids-core-shared": "5.0.0",
|
|
28
|
+
"@ganpatiinfo/gids-web-shared": "5.0.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@ganpatiinfo/gids-web-theme-interface": "3.1.0",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type GidsScrimWebProps,
|
|
3
|
+
GidsScrimWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
import { appendAsChildren, type DomChildren } from '../../utils/domUtils.js';
|
|
6
|
+
|
|
7
|
+
const { getGidsScrimClassNames } = GidsScrimWebUtils;
|
|
8
|
+
|
|
9
|
+
export interface GidsScrimDomProps extends GidsScrimWebProps<DomChildren> {
|
|
10
|
+
extraClasses?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const GidsScrimDom = ({
|
|
14
|
+
children,
|
|
15
|
+
extraClasses,
|
|
16
|
+
}: GidsScrimDomProps): HTMLElement => {
|
|
17
|
+
const scrimEl = document.createElement('gids-scrim');
|
|
18
|
+
scrimEl.className = getGidsScrimClassNames(extraClasses);
|
|
19
|
+
|
|
20
|
+
if (children) {
|
|
21
|
+
appendAsChildren(scrimEl, children);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return scrimEl;
|
|
25
|
+
};
|
|
@@ -6,14 +6,15 @@ import {
|
|
|
6
6
|
type ClassValue,
|
|
7
7
|
GidsSegmentedControlWebUtils,
|
|
8
8
|
} from '@ganpatiinfo/gids-web-shared';
|
|
9
|
-
import { type DomNodeOrString } from '../../utils/domUtils.js';
|
|
9
|
+
import { DomChildren, type DomNodeOrString } from '../../utils/domUtils.js';
|
|
10
10
|
import { GidsSegmentedTabItemDom } from '../GidsSegmentedTabItem/GidsSegmentedTabItem.js';
|
|
11
11
|
|
|
12
12
|
const { getGidsSegmentedControlClassNames } = GidsSegmentedControlWebUtils;
|
|
13
13
|
|
|
14
14
|
export interface GidsSegmentedControlDomProps extends GidsSegmentedControlCommonProps<
|
|
15
15
|
DomNodeOrString,
|
|
16
|
-
string
|
|
16
|
+
string,
|
|
17
|
+
DomChildren
|
|
17
18
|
> {
|
|
18
19
|
onPress?: (props: GidsSegmentedTabItemPressedReturnedProps) => void;
|
|
19
20
|
className?: ClassValue;
|
|
@@ -7,20 +7,27 @@ import {
|
|
|
7
7
|
GidsSegmentedTabItemWebUtils,
|
|
8
8
|
} from '@ganpatiinfo/gids-web-shared';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
appendAsChildren,
|
|
12
|
+
DomChildren,
|
|
13
|
+
type DomNodeOrString,
|
|
14
|
+
} from '../../utils/domUtils.js';
|
|
11
15
|
import { GidsBadgeDom } from '../GidsBadge/GidsBadge.js';
|
|
12
16
|
|
|
13
17
|
const { getGidsSegmentedTabItemClassNames } = GidsSegmentedTabItemWebUtils;
|
|
14
18
|
|
|
15
19
|
export interface GidsSegmentedTabItemDomProps extends GidsSegmentedTabItemCommonProps<
|
|
16
20
|
DomNodeOrString,
|
|
17
|
-
string
|
|
21
|
+
string,
|
|
22
|
+
DomChildren
|
|
18
23
|
> {
|
|
19
24
|
onPress?: (props: GidsSegmentedTabItemPressedReturnedProps) => void;
|
|
20
25
|
className?: ClassValue;
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
export const GidsSegmentedTabItemDom = ({
|
|
29
|
+
leadingIcon,
|
|
30
|
+
trailingIcon,
|
|
24
31
|
index,
|
|
25
32
|
label,
|
|
26
33
|
selected = false,
|
|
@@ -47,6 +54,13 @@ export const GidsSegmentedTabItemDom = ({
|
|
|
47
54
|
}
|
|
48
55
|
});
|
|
49
56
|
|
|
57
|
+
if (leadingIcon) {
|
|
58
|
+
const leadingIconContainer = document.createElement('div');
|
|
59
|
+
leadingIconContainer.className = 'gids-segmented-item__icons';
|
|
60
|
+
appendAsChildren(leadingIconContainer, leadingIcon);
|
|
61
|
+
segmentedTabItem.appendChild(leadingIconContainer);
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
if (label && label !== '') {
|
|
51
65
|
if (typeof label === 'string') {
|
|
52
66
|
const labelElement = document.createElement('label');
|
|
@@ -60,6 +74,13 @@ export const GidsSegmentedTabItemDom = ({
|
|
|
60
74
|
}
|
|
61
75
|
}
|
|
62
76
|
|
|
77
|
+
if (trailingIcon) {
|
|
78
|
+
const trailingIconContainer = document.createElement('div');
|
|
79
|
+
trailingIconContainer.className = 'gids-segmented-item__selected-icons';
|
|
80
|
+
appendAsChildren(trailingIconContainer, trailingIcon);
|
|
81
|
+
segmentedTabItem.appendChild(trailingIconContainer);
|
|
82
|
+
}
|
|
83
|
+
|
|
63
84
|
if (badge) {
|
|
64
85
|
segmentedTabItem.appendChild(
|
|
65
86
|
GidsBadgeDom({
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type GidsSideMenuItemOnPressEvent,
|
|
3
|
+
type GidsSideMenuItemWebProps,
|
|
4
|
+
GidsSideMenuItemWebUtils,
|
|
5
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
6
|
+
import {
|
|
7
|
+
appendAsChildren,
|
|
8
|
+
DomChildren,
|
|
9
|
+
DomNodeOrString,
|
|
10
|
+
} from '../../utils/domUtils.js';
|
|
11
|
+
import { GidsBadgeDom } from '../GidsBadge/GidsBadge.js';
|
|
12
|
+
import { GidsIconDom } from '../GidsIcon/GidsIcon.js';
|
|
13
|
+
import { GidsSideMenuItemCommonUtils } from '@ganpatiinfo/gids-core-shared';
|
|
14
|
+
import { IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
15
|
+
|
|
16
|
+
const { getGidsSideMenuItemClassNames } = GidsSideMenuItemWebUtils;
|
|
17
|
+
const { getSideMenuTrailingIcon } = GidsSideMenuItemCommonUtils;
|
|
18
|
+
|
|
19
|
+
export interface GidsSideMenuItemDomProps extends GidsSideMenuItemWebProps<
|
|
20
|
+
DomNodeOrString,
|
|
21
|
+
DomChildren,
|
|
22
|
+
DomChildren
|
|
23
|
+
> {
|
|
24
|
+
extraClasses?: string;
|
|
25
|
+
onPressSideMenuItem?: GidsSideMenuItemOnPressEvent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const GidsSideMenuItemDom = ({
|
|
29
|
+
appearance = 'default',
|
|
30
|
+
index = 0,
|
|
31
|
+
selected,
|
|
32
|
+
isLeadingDotVisible = false,
|
|
33
|
+
leadingDotAppearance = 'information',
|
|
34
|
+
leadingAccessory,
|
|
35
|
+
trailingAccessory,
|
|
36
|
+
leadingIcon,
|
|
37
|
+
trailingIcon,
|
|
38
|
+
isTrailingArrowVisible = false,
|
|
39
|
+
trailingArrowDirection = 'right',
|
|
40
|
+
children,
|
|
41
|
+
extraClasses,
|
|
42
|
+
onPressSideMenuItem,
|
|
43
|
+
}: GidsSideMenuItemDomProps): HTMLDivElement => {
|
|
44
|
+
const sideMenuItem = document.createElement('div');
|
|
45
|
+
sideMenuItem.className = getGidsSideMenuItemClassNames(
|
|
46
|
+
{ selected, appearance },
|
|
47
|
+
extraClasses,
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
sideMenuItem.setAttribute('index', `${index}`);
|
|
51
|
+
|
|
52
|
+
if (leadingAccessory) {
|
|
53
|
+
appendAsChildren(sideMenuItem, leadingAccessory);
|
|
54
|
+
} else {
|
|
55
|
+
if (isLeadingDotVisible) {
|
|
56
|
+
sideMenuItem.append(
|
|
57
|
+
GidsBadgeDom({
|
|
58
|
+
appearance: leadingDotAppearance,
|
|
59
|
+
type: 'dot',
|
|
60
|
+
}),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (leadingIcon) {
|
|
66
|
+
appendAsChildren(sideMenuItem, leadingIcon);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (children) {
|
|
70
|
+
const textEl = document.createElement('span');
|
|
71
|
+
textEl.className = 'gids-side-menu-item__label';
|
|
72
|
+
if (typeof children === 'string') {
|
|
73
|
+
textEl.textContent = children;
|
|
74
|
+
} else {
|
|
75
|
+
textEl.appendChild(children);
|
|
76
|
+
}
|
|
77
|
+
appendAsChildren(sideMenuItem, textEl);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (trailingAccessory) {
|
|
81
|
+
appendAsChildren(sideMenuItem, trailingAccessory);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (trailingIcon) {
|
|
85
|
+
appendAsChildren(sideMenuItem, trailingIcon);
|
|
86
|
+
} else {
|
|
87
|
+
if (isTrailingArrowVisible) {
|
|
88
|
+
sideMenuItem.append(
|
|
89
|
+
GidsIconDom({
|
|
90
|
+
name: getSideMenuTrailingIcon<IconName>(trailingArrowDirection),
|
|
91
|
+
size: 'md',
|
|
92
|
+
alt: '',
|
|
93
|
+
appearance: 'regular',
|
|
94
|
+
}),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (onPressSideMenuItem) {
|
|
100
|
+
sideMenuItem.addEventListener('click', () => {
|
|
101
|
+
onPressSideMenuItem({
|
|
102
|
+
selectedIndex: index,
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return sideMenuItem;
|
|
108
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -59,6 +59,8 @@ export * from './components/GidsOverlayProvider/GidsOverlayProvider.js';
|
|
|
59
59
|
export * from './components/GidsSnackbar/GidsSnackbar.js';
|
|
60
60
|
export * from './components/_GidsNotificationContainer/GidsNotificationContainer.js';
|
|
61
61
|
export * from './components/GidsNotification/GidsNotification.js';
|
|
62
|
+
export * from './components/_GidsSideMenuItem/GidsSideMenuItem.js';
|
|
63
|
+
export * from './components/GidsScrim/GidsScrim.js';
|
|
62
64
|
|
|
63
65
|
/**
|
|
64
66
|
* Utilities
|