@ganpatiinfo/gids-react-web 2.1.0 → 3.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/dist/components/GidsBadge/GidsBadge.d.ts +9 -9
- package/dist/components/GidsBadge/GidsBadge.js +9 -9
- package/dist/components/GidsBaseCard/GidsBaseCard.d.ts +33 -0
- package/dist/components/GidsBaseCard/GidsBaseCard.d.ts.map +1 -0
- package/dist/components/GidsBaseCard/GidsBaseCard.js +34 -0
- package/dist/components/GidsBaseCard/GidsBaseCard.js.map +1 -0
- package/dist/components/GidsBreadcrumb/GidsBreadcrumb.d.ts +34 -0
- package/dist/components/GidsBreadcrumb/GidsBreadcrumb.d.ts.map +1 -1
- package/dist/components/GidsBreadcrumb/GidsBreadcrumb.js +34 -0
- package/dist/components/GidsBreadcrumb/GidsBreadcrumb.js.map +1 -1
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.d.ts +1 -1
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.js +1 -1
- package/dist/components/GidsCard/GidsCard.d.ts +61 -0
- package/dist/components/GidsCard/GidsCard.d.ts.map +1 -0
- package/dist/components/GidsCard/GidsCard.js +93 -0
- package/dist/components/GidsCard/GidsCard.js.map +1 -0
- package/dist/components/GidsPagination/GidsPagination.d.ts +35 -0
- package/dist/components/GidsPagination/GidsPagination.d.ts.map +1 -0
- package/dist/components/GidsPagination/GidsPagination.js +144 -0
- package/dist/components/GidsPagination/GidsPagination.js.map +1 -0
- package/dist/components/_GidsPaginationItem/GidsPaginationItem.d.ts +52 -0
- package/dist/components/_GidsPaginationItem/GidsPaginationItem.d.ts.map +1 -0
- package/dist/components/_GidsPaginationItem/GidsPaginationItem.js +62 -0
- package/dist/components/_GidsPaginationItem/GidsPaginationItem.js.map +1 -0
- package/dist/components/stencil-generated/components.d.ts +6 -0
- package/dist/components/stencil-generated/components.d.ts.map +1 -0
- package/dist/components/stencil-generated/components.js +7 -0
- package/dist/components/stencil-generated/components.js.map +1 -0
- package/dist/components/stencil-generated/gids-toggle-button.d.ts +13 -0
- package/dist/components/stencil-generated/gids-toggle-button.d.ts.map +1 -0
- package/dist/components/stencil-generated/gids-toggle-button.js +13 -0
- package/dist/components/stencil-generated/gids-toggle-button.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +56 -41
- package/post-install.js +3 -0
- package/dist/components/stencil-generated/GidsToggleButton.d.ts +0 -12
- package/dist/components/stencil-generated/GidsToggleButton.d.ts.map +0 -1
- package/dist/components/stencil-generated/GidsToggleButton.js +0 -19
- package/dist/components/stencil-generated/GidsToggleButton.js.map +0 -1
|
@@ -22,20 +22,20 @@ export type GidsBadgeProps = GidsBadgeCommonProps<ReactNode> & ComponentPropsWit
|
|
|
22
22
|
*
|
|
23
23
|
* ```tsx
|
|
24
24
|
* <GidsBadge
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
* accessibleText="102 notifications"
|
|
26
|
+
* appearance="warning"
|
|
27
|
+
* count={102}
|
|
28
|
+
* type="notification"/>
|
|
29
29
|
* ```
|
|
30
30
|
*
|
|
31
31
|
* When using the `dot` type, there must be no visible content inside the badge, but accessible text for screen readers **must** be provided:
|
|
32
32
|
*
|
|
33
33
|
* ```tsx
|
|
34
|
-
|
|
35
|
-
accessibleText="102 notifications"
|
|
36
|
-
appearance="warning"
|
|
37
|
-
count={102}
|
|
38
|
-
type="dot"/>
|
|
34
|
+
*<GidsBadge
|
|
35
|
+
* accessibleText="102 notifications"
|
|
36
|
+
* appearance="warning"
|
|
37
|
+
* count={102}
|
|
38
|
+
* type="dot"/>
|
|
39
39
|
* ```
|
|
40
40
|
*
|
|
41
41
|
* **Note:** Any additional props are passed to the outermost `<span>` DOM element that this component renders. For example, `<GidsBadge id="foo" />` will render `<span id="foo" ... >...</span>`.
|
|
@@ -24,20 +24,20 @@ const { getGidsBadgeClassNames } = GidsBadgeWebUtils;
|
|
|
24
24
|
*
|
|
25
25
|
* ```tsx
|
|
26
26
|
* <GidsBadge
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
* accessibleText="102 notifications"
|
|
28
|
+
* appearance="warning"
|
|
29
|
+
* count={102}
|
|
30
|
+
* type="notification"/>
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
33
|
* When using the `dot` type, there must be no visible content inside the badge, but accessible text for screen readers **must** be provided:
|
|
34
34
|
*
|
|
35
35
|
* ```tsx
|
|
36
|
-
|
|
37
|
-
accessibleText="102 notifications"
|
|
38
|
-
appearance="warning"
|
|
39
|
-
count={102}
|
|
40
|
-
type="dot"/>
|
|
36
|
+
*<GidsBadge
|
|
37
|
+
* accessibleText="102 notifications"
|
|
38
|
+
* appearance="warning"
|
|
39
|
+
* count={102}
|
|
40
|
+
* type="dot"/>
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
43
43
|
* **Note:** Any additional props are passed to the outermost `<span>` DOM element that this component renders. For example, `<GidsBadge id="foo" />` will render `<span id="foo" ... >...</span>`.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type GidsBaseCardCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { type JSX, type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
3
|
+
export interface GidsBaseCardProps extends GidsBaseCardCommonProps<ReactNode>, Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick'> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* React DOM implementation of GIDS BaseCard component.
|
|
7
|
+
*
|
|
8
|
+
* **Basic Usage**
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { GidsBaseCard } from '@investec/gids-react-web';
|
|
12
|
+
*
|
|
13
|
+
* export const MyComponent = () => (
|
|
14
|
+
* <GidsBaseCard cardType="empty" />
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* **Advanced Usage**
|
|
19
|
+
*
|
|
20
|
+
* ```tsx
|
|
21
|
+
* import { GidsBaseCard } from '@investec/gids-react-web';
|
|
22
|
+
*
|
|
23
|
+
* export const MyComponent = () => (
|
|
24
|
+
* <GidsBaseCard cardType="content">
|
|
25
|
+
* <p>I am the text children on card. You can write your own text.</p>
|
|
26
|
+
* </GidsBaseCard>
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBaseCard />` component.
|
|
31
|
+
**/
|
|
32
|
+
export declare const GidsBaseCard: ({ children, cardType, appearance, className, ...rest }: GidsBaseCardProps) => JSX.Element;
|
|
33
|
+
//# sourceMappingURL=GidsBaseCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsBaseCard.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBaseCard/GidsBaseCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAc,EACb,KAAK,GAAG,EACR,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,iBAChB,SAAQ,uBAAuB,CAAC,SAAS,CAAC,EACzC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAAG;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BI;AACJ,eAAO,MAAM,YAAY,GAAI,wDAM1B,iBAAiB,KAAG,GAAG,CAAC,OAS1B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GidsBaseCardWebUtils } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const { getGidsBaseCardClassNames } = GidsBaseCardWebUtils;
|
|
4
|
+
/**
|
|
5
|
+
* React DOM implementation of GIDS BaseCard component.
|
|
6
|
+
*
|
|
7
|
+
* **Basic Usage**
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { GidsBaseCard } from '@investec/gids-react-web';
|
|
11
|
+
*
|
|
12
|
+
* export const MyComponent = () => (
|
|
13
|
+
* <GidsBaseCard cardType="empty" />
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* **Advanced Usage**
|
|
18
|
+
*
|
|
19
|
+
* ```tsx
|
|
20
|
+
* import { GidsBaseCard } from '@investec/gids-react-web';
|
|
21
|
+
*
|
|
22
|
+
* export const MyComponent = () => (
|
|
23
|
+
* <GidsBaseCard cardType="content">
|
|
24
|
+
* <p>I am the text children on card. You can write your own text.</p>
|
|
25
|
+
* </GidsBaseCard>
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBaseCard />` component.
|
|
30
|
+
**/
|
|
31
|
+
export const GidsBaseCard = ({ children, cardType = 'empty', appearance = 'default', className, ...rest }) => {
|
|
32
|
+
return (React.createElement("div", { ...rest, className: getGidsBaseCardClassNames({ cardType, appearance }, className) }, children));
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=GidsBaseCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsBaseCard.js","sourceRoot":"","sources":["../../../src/components/GidsBaseCard/GidsBaseCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAIN,MAAM,OAAO,CAAC;AAEf,MAAM,EAAE,yBAAyB,EAAE,GAAG,oBAAoB,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BI;AACJ,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC5B,QAAQ,EACR,QAAQ,GAAG,OAAO,EAClB,UAAU,GAAG,SAAS,EACtB,SAAS,EACT,GAAG,IAAI,EACY,EAAe,EAAE;IACpC,OAAO,CACN,gCACK,IAAI,EACR,SAAS,EAAE,yBAAyB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,SAAS,CAAC,IAExE,QAAQ,CACJ,CACN,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
import { GidsBreadcrumbCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
2
|
import { type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';
|
|
3
3
|
export type GidsBreadcrumbProps = GidsBreadcrumbCommonProps<ReactNode> & Omit<ComponentPropsWithoutRef<'nav'>, 'children' | 'onClick'>;
|
|
4
|
+
/**
|
|
5
|
+
* React DOM implementation of GIDS Breadcrumb component.
|
|
6
|
+
*
|
|
7
|
+
* **Usage**
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { GidsBreadcrumb } from '@investec/gids-react-web';
|
|
11
|
+
*
|
|
12
|
+
* export const MyComponent = () => (
|
|
13
|
+
* <GidsBreadcrumb>
|
|
14
|
+
* <GidsBreadcrumbItem
|
|
15
|
+
* currentIndex={0}
|
|
16
|
+
* isSeparatorVisible
|
|
17
|
+
* leadingIcon="placeholder"
|
|
18
|
+
* renderingSystem="array"
|
|
19
|
+
* totalLength={2}
|
|
20
|
+
* >
|
|
21
|
+
* Breadcrumb Item 1
|
|
22
|
+
* </GidsBreadcrumbItem>
|
|
23
|
+
* <GidsBreadcrumbItem
|
|
24
|
+
* currentIndex={1}
|
|
25
|
+
* isSeparatorVisible
|
|
26
|
+
* leadingIcon="placeholder"
|
|
27
|
+
* renderingSystem="array"
|
|
28
|
+
* totalLength={2}
|
|
29
|
+
* >
|
|
30
|
+
* Breadcrumb Item 2
|
|
31
|
+
* </GidsBreadcrumbItem>
|
|
32
|
+
* </GidsBreadcrumb>
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBreadcrumb />` component.
|
|
37
|
+
**/
|
|
4
38
|
export declare const GidsBreadcrumb: ({ children, className, ...rest }: GidsBreadcrumbProps) => JSX.Element;
|
|
5
39
|
//# sourceMappingURL=GidsBreadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBreadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumb/GidsBreadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAc,EACb,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EACR,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,SAAS,CAAC,GACrE,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/D,eAAO,MAAM,cAAc,GAAI,kCAI5B,mBAAmB,KAAG,GAAG,CAAC,OAM5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"GidsBreadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumb/GidsBreadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAc,EACb,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EACR,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,SAAS,CAAC,GACrE,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCI;AACJ,eAAO,MAAM,cAAc,GAAI,kCAI5B,mBAAmB,KAAG,GAAG,CAAC,OAM5B,CAAC"}
|
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
import { GidsBreadcrumbWebUtils } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
const { getGidsBreadcrumbClassNames } = GidsBreadcrumbWebUtils;
|
|
4
|
+
/**
|
|
5
|
+
* React DOM implementation of GIDS Breadcrumb component.
|
|
6
|
+
*
|
|
7
|
+
* **Usage**
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { GidsBreadcrumb } from '@investec/gids-react-web';
|
|
11
|
+
*
|
|
12
|
+
* export const MyComponent = () => (
|
|
13
|
+
* <GidsBreadcrumb>
|
|
14
|
+
* <GidsBreadcrumbItem
|
|
15
|
+
* currentIndex={0}
|
|
16
|
+
* isSeparatorVisible
|
|
17
|
+
* leadingIcon="placeholder"
|
|
18
|
+
* renderingSystem="array"
|
|
19
|
+
* totalLength={2}
|
|
20
|
+
* >
|
|
21
|
+
* Breadcrumb Item 1
|
|
22
|
+
* </GidsBreadcrumbItem>
|
|
23
|
+
* <GidsBreadcrumbItem
|
|
24
|
+
* currentIndex={1}
|
|
25
|
+
* isSeparatorVisible
|
|
26
|
+
* leadingIcon="placeholder"
|
|
27
|
+
* renderingSystem="array"
|
|
28
|
+
* totalLength={2}
|
|
29
|
+
* >
|
|
30
|
+
* Breadcrumb Item 2
|
|
31
|
+
* </GidsBreadcrumbItem>
|
|
32
|
+
* </GidsBreadcrumb>
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBreadcrumb />` component.
|
|
37
|
+
**/
|
|
4
38
|
export const GidsBreadcrumb = ({ children, className, ...rest }) => {
|
|
5
39
|
return (React.createElement("nav", { ...rest, className: getGidsBreadcrumbClassNames(className) },
|
|
6
40
|
React.createElement("ol", null, children)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBreadcrumb.js","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumb/GidsBreadcrumb.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAIN,MAAM,OAAO,CAAC;AAEf,MAAM,EAAE,2BAA2B,EAAE,GAAG,sBAAsB,CAAC;AAK/D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACc,EAAe,EAAE;IACtC,OAAO,CACN,gCAAS,IAAI,EAAE,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC;QAC/D,gCAAK,QAAQ,CAAM,CACd,CACN,CAAC;AACH,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"GidsBreadcrumb.js","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumb/GidsBreadcrumb.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAIN,MAAM,OAAO,CAAC;AAEf,MAAM,EAAE,2BAA2B,EAAE,GAAG,sBAAsB,CAAC;AAK/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCI;AACJ,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACc,EAAe,EAAE;IACtC,OAAO,CACN,gCAAS,IAAI,EAAE,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC;QAC/D,gCAAK,QAAQ,CAAM,CACd,CACN,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -28,7 +28,7 @@ export type GidsBreadcrumbItemProps = GidsBreadcrumbItemCommonProps<ReactNode, s
|
|
|
28
28
|
* );
|
|
29
29
|
* ```
|
|
30
30
|
*
|
|
31
|
-
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<
|
|
31
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBreadcrumbItem />` component.
|
|
32
32
|
**/
|
|
33
33
|
export declare const GidsBreadcrumbItem: ({ children, selected, className, href, onClick, leadingIcon, renderingSystem, isSeparatorVisible, separator, currentIndex, totalLength, ...rest }: GidsBreadcrumbItemProps) => JSX.Element;
|
|
34
34
|
//# sourceMappingURL=GidsBreadcrumbItem.d.ts.map
|
|
@@ -26,7 +26,7 @@ const { getGidsBreadcrumbItemClassNames } = GidsBreadcrumbItemWebUtils;
|
|
|
26
26
|
* );
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
29
|
-
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<
|
|
29
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBreadcrumbItem />` component.
|
|
30
30
|
**/
|
|
31
31
|
export const GidsBreadcrumbItem = ({ children, selected, className, href, onClick, leadingIcon, renderingSystem, isSeparatorVisible, separator, currentIndex, totalLength, ...rest }) => {
|
|
32
32
|
return (React.createElement("li", { ...rest, className: getGidsBreadcrumbItemClassNames({ selected }, className) },
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type JSX, type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import { type GidsCardCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
export interface GidsCardProps extends GidsCardCommonProps<ReactNode, string, string>, Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick'> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* React DOM implementation of GIDS Card component.
|
|
7
|
+
*
|
|
8
|
+
* **Basic Usage**
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { GidsCard } from '@investec/gids-react-web';
|
|
12
|
+
*
|
|
13
|
+
* export const MyComponent = () => (
|
|
14
|
+
* <GidsCard
|
|
15
|
+
* baseCardAppearance="default"
|
|
16
|
+
* cardHeaderSrc=""
|
|
17
|
+
* description="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!"
|
|
18
|
+
* heading="Advanced Card"
|
|
19
|
+
* subHeading="Card subtitle"
|
|
20
|
+
* />
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* **Advanced Usage**
|
|
25
|
+
*
|
|
26
|
+
* ```tsx
|
|
27
|
+
* import { GidsCard } from '@investec/gids-react-web';
|
|
28
|
+
*
|
|
29
|
+
* export const MyComponent = () => (
|
|
30
|
+
* <GidsCard
|
|
31
|
+
* baseCardAppearance="default"
|
|
32
|
+
* cardHeaderSrc="./images/cardImages/card-img-09.jpg"
|
|
33
|
+
* cardHeaderType="image"
|
|
34
|
+
* description="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!"
|
|
35
|
+
* headerVisible
|
|
36
|
+
* heading="Advanced Card"
|
|
37
|
+
* subHeading="Card subtitle"
|
|
38
|
+
* >
|
|
39
|
+
* <GidsButtonGroup layout="wrap">
|
|
40
|
+
* <GidsToggleButton
|
|
41
|
+
* appearance="default"
|
|
42
|
+
* size="md"
|
|
43
|
+
* >
|
|
44
|
+
* Toggle 1
|
|
45
|
+
* </GidsToggleButton>
|
|
46
|
+
* <GidsButton
|
|
47
|
+
* appearance="primary"
|
|
48
|
+
* as="button"
|
|
49
|
+
* size="md"
|
|
50
|
+
* >
|
|
51
|
+
* Button 2
|
|
52
|
+
* </GidsButton>
|
|
53
|
+
* </GidsButtonGroup>
|
|
54
|
+
* </GidsCard>
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsCard />` component.
|
|
59
|
+
**/
|
|
60
|
+
export declare const GidsCard: ({ children, cardHeaderType, cardHeaderSrc, heading, subHeading, description, baseCardAppearance, headerVisible, className, ...rest }: GidsCardProps) => JSX.Element;
|
|
61
|
+
//# sourceMappingURL=GidsCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsCard.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCard/GidsCard.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,GAAG,EACR,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EACN,KAAK,mBAAmB,EAExB,MAAM,+BAA+B,CAAC;AAQvC,MAAM,WAAW,aAChB,SAAQ,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EACrD,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAAG;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsDI;AACJ,eAAO,MAAM,QAAQ,GAAI,sIAWtB,aAAa,KAAG,GAAG,CAAC,OAmFtB,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GidsCardCommonUtils, } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
import { GidsCardWebUtils } from '@ganpatiinfo/gids-web-shared';
|
|
4
|
+
import { GidsAvatar } from '../GidsAvatar/GidsAvatar.js';
|
|
5
|
+
import { GidsBaseCard } from '../GidsBaseCard/GidsBaseCard.js';
|
|
6
|
+
const { getGidsCardClassNames } = GidsCardWebUtils;
|
|
7
|
+
const { isContentContainerVisible, isSimpleCard } = GidsCardCommonUtils;
|
|
8
|
+
/**
|
|
9
|
+
* React DOM implementation of GIDS Card component.
|
|
10
|
+
*
|
|
11
|
+
* **Basic Usage**
|
|
12
|
+
*
|
|
13
|
+
* ```tsx
|
|
14
|
+
* import { GidsCard } from '@investec/gids-react-web';
|
|
15
|
+
*
|
|
16
|
+
* export const MyComponent = () => (
|
|
17
|
+
* <GidsCard
|
|
18
|
+
* baseCardAppearance="default"
|
|
19
|
+
* cardHeaderSrc=""
|
|
20
|
+
* description="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!"
|
|
21
|
+
* heading="Advanced Card"
|
|
22
|
+
* subHeading="Card subtitle"
|
|
23
|
+
* />
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* **Advanced Usage**
|
|
28
|
+
*
|
|
29
|
+
* ```tsx
|
|
30
|
+
* import { GidsCard } from '@investec/gids-react-web';
|
|
31
|
+
*
|
|
32
|
+
* export const MyComponent = () => (
|
|
33
|
+
* <GidsCard
|
|
34
|
+
* baseCardAppearance="default"
|
|
35
|
+
* cardHeaderSrc="./images/cardImages/card-img-09.jpg"
|
|
36
|
+
* cardHeaderType="image"
|
|
37
|
+
* description="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!"
|
|
38
|
+
* headerVisible
|
|
39
|
+
* heading="Advanced Card"
|
|
40
|
+
* subHeading="Card subtitle"
|
|
41
|
+
* >
|
|
42
|
+
* <GidsButtonGroup layout="wrap">
|
|
43
|
+
* <GidsToggleButton
|
|
44
|
+
* appearance="default"
|
|
45
|
+
* size="md"
|
|
46
|
+
* >
|
|
47
|
+
* Toggle 1
|
|
48
|
+
* </GidsToggleButton>
|
|
49
|
+
* <GidsButton
|
|
50
|
+
* appearance="primary"
|
|
51
|
+
* as="button"
|
|
52
|
+
* size="md"
|
|
53
|
+
* >
|
|
54
|
+
* Button 2
|
|
55
|
+
* </GidsButton>
|
|
56
|
+
* </GidsButtonGroup>
|
|
57
|
+
* </GidsCard>
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsCard />` component.
|
|
62
|
+
**/
|
|
63
|
+
export const GidsCard = ({ children, cardHeaderType, cardHeaderSrc, heading, subHeading, description, baseCardAppearance, headerVisible, className, ...rest }) => {
|
|
64
|
+
const getHeader = () => {
|
|
65
|
+
switch (cardHeaderType) {
|
|
66
|
+
case 'avatar':
|
|
67
|
+
return (React.createElement(GidsAvatar, { appearance: "image", size: "xl", imageSrc: cardHeaderSrc ?? '' }));
|
|
68
|
+
default:
|
|
69
|
+
return (React.createElement("img", { src: cardHeaderSrc, alt: "alt_text", className: "gids-card__image" }));
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
return (React.createElement("div", { ...rest, className: getGidsCardClassNames({ isSimpleCard: isSimpleCard({ cardHeaderSrc, headerVisible }) }, className) },
|
|
73
|
+
React.createElement(GidsBaseCard, { cardType: "content", appearance: baseCardAppearance, className: isSimpleCard({ cardHeaderSrc, headerVisible })
|
|
74
|
+
? 'gids-card__base-card-simple'
|
|
75
|
+
: 'gids-card__base-card-advanced' },
|
|
76
|
+
React.createElement("div", { className: isSimpleCard({ cardHeaderSrc, headerVisible })
|
|
77
|
+
? 'gids-card__simple-card-inner-container'
|
|
78
|
+
: 'gids-card__advanced-card-inner-container' },
|
|
79
|
+
headerVisible ? (React.createElement("div", { className: cardHeaderType === 'avatar'
|
|
80
|
+
? 'gids-card__header-container-avatar'
|
|
81
|
+
: 'gids-card__header-container-image' }, getHeader())) : null,
|
|
82
|
+
isContentContainerVisible({
|
|
83
|
+
heading,
|
|
84
|
+
subHeading,
|
|
85
|
+
description,
|
|
86
|
+
children,
|
|
87
|
+
}) ? (React.createElement("div", { className: "gids-card__content-container" },
|
|
88
|
+
heading && heading !== '' ? (React.createElement("div", { className: "gids-card__heading" }, heading)) : null,
|
|
89
|
+
subHeading && subHeading !== '' ? (React.createElement("div", { className: "gids-card__subheading" }, subHeading)) : null,
|
|
90
|
+
description && description !== '' ? (React.createElement("p", { className: "gids-card__description" }, description)) : null,
|
|
91
|
+
children ? (React.createElement("div", { className: "gids-card__children" }, children)) : null)) : null))));
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=GidsCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsCard.js","sourceRoot":"","sources":["../../../src/components/GidsCard/GidsCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,mBAAmB,GACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,EAAE,qBAAqB,EAAE,GAAG,gBAAgB,CAAC;AACnD,MAAM,EAAE,yBAAyB,EAAE,YAAY,EAAE,GAAG,mBAAmB,CAAC;AAMxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsDI;AACJ,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACxB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,OAAO,EACP,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,GAAG,IAAI,EACQ,EAAe,EAAE;IAChC,MAAM,SAAS,GAAG,GAAG,EAAE;QACtB,QAAQ,cAAc,EAAE,CAAC;YACxB,KAAK,QAAQ;gBACZ,OAAO,CACN,oBAAC,UAAU,IACV,UAAU,EAAC,OAAO,EAClB,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,aAAa,IAAI,EAAE,GAC5B,CACF,CAAC;YAEH;gBACC,OAAO,CACN,6BACC,GAAG,EAAE,aAAa,EAClB,GAAG,EAAC,UAAU,EACd,SAAS,EAAC,kBAAkB,GAC3B,CACF,CAAC;QACJ,CAAC;IACF,CAAC,CAAC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CAAC,CACX,6BAAK,SAAS,EAAC,qBAAqB,IAAE,QAAQ,CAAO,CACrD,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC,CAAC,CAAC,IAAI,CACH,CACQ,CACV,CACN,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type GidsPaginationCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { type GidsPaginationButtonParamsProps } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
import { type JSX, type ComponentPropsWithoutRef, MouseEvent } from 'react';
|
|
4
|
+
export type GidsPaginationProps = Omit<GidsPaginationCommonProps<string>, 'onClickItem'> & Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick'> & {
|
|
5
|
+
onClickItem?: ({ event, index, page, defaultPage, type, }: GidsPaginationButtonParamsProps<MouseEvent>) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* React DOM implementation of GIDS Pagination component.
|
|
9
|
+
*
|
|
10
|
+
* **Usage**
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { GidsPagination } from '@ganpatiinfo/gids-react-web';
|
|
14
|
+
*
|
|
15
|
+
* export const MyComponent = () => (
|
|
16
|
+
* <GidsPagination
|
|
17
|
+
* count={8}
|
|
18
|
+
* defaultPage={2}
|
|
19
|
+
* nextIcon="chevron-right"
|
|
20
|
+
* onClickItem={() => {}}
|
|
21
|
+
* page={2}
|
|
22
|
+
* previousIcon="chevron-left"
|
|
23
|
+
* selectColor="default"
|
|
24
|
+
* shape="circled"
|
|
25
|
+
* showFirstButton
|
|
26
|
+
* showLastButton
|
|
27
|
+
* size="md"
|
|
28
|
+
* variant="outlined"
|
|
29
|
+
* />
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsPagination />` component.
|
|
33
|
+
**/
|
|
34
|
+
export declare const GidsPagination: ({ selectColor, variant, shape, size, disabled, count, defaultPage, page, nextIcon, previousIcon, showFirstButton, showLastButton, hidePrevButton, hideNextButton, onClickItem, className, ...rest }: GidsPaginationProps) => JSX.Element;
|
|
35
|
+
//# sourceMappingURL=GidsPagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsPagination.d.ts","sourceRoot":"","sources":["../../../src/components/GidsPagination/GidsPagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,yBAAyB,EAE9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,KAAK,+BAA+B,EAEpC,MAAM,8BAA8B,CAAC;AACtC,OAAc,EACb,KAAK,GAAG,EACR,KAAK,wBAAwB,EAC7B,UAAU,EACV,MAAM,OAAO,CAAC;AAQf,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,yBAAyB,CAAC,MAAM,CAAC,EACjC,aAAa,CACb,GACA,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC/D,WAAW,CAAC,EAAE,CAAC,EACd,KAAK,EACL,KAAK,EACL,IAAI,EACJ,WAAW,EACX,IAAI,GACJ,EAAE,+BAA+B,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;CACxD,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BI;AACJ,eAAO,MAAM,cAAc,GAAI,qMAkB5B,mBAAmB,KAAG,GAAG,CAAC,OA2L5B,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { GidsPaginationCommonUtils, } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { GidsPaginationWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { GidsPaginationItem } from '../_GidsPaginationItem/GidsPaginationItem.js';
|
|
5
|
+
const { getGidsPaginationClassNames, getGidsPaginationDotsClassNames } = GidsPaginationWebUtils;
|
|
6
|
+
const { getPaginationsArr } = GidsPaginationCommonUtils;
|
|
7
|
+
/**
|
|
8
|
+
* React DOM implementation of GIDS Pagination component.
|
|
9
|
+
*
|
|
10
|
+
* **Usage**
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { GidsPagination } from '@ganpatiinfo/gids-react-web';
|
|
14
|
+
*
|
|
15
|
+
* export const MyComponent = () => (
|
|
16
|
+
* <GidsPagination
|
|
17
|
+
* count={8}
|
|
18
|
+
* defaultPage={2}
|
|
19
|
+
* nextIcon="chevron-right"
|
|
20
|
+
* onClickItem={() => {}}
|
|
21
|
+
* page={2}
|
|
22
|
+
* previousIcon="chevron-left"
|
|
23
|
+
* selectColor="default"
|
|
24
|
+
* shape="circled"
|
|
25
|
+
* showFirstButton
|
|
26
|
+
* showLastButton
|
|
27
|
+
* size="md"
|
|
28
|
+
* variant="outlined"
|
|
29
|
+
* />
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsPagination />` component.
|
|
33
|
+
**/
|
|
34
|
+
export const GidsPagination = ({ selectColor = 'default', variant = 'default', shape = 'circled', size = 'sm', disabled = false, count = 0, defaultPage = 1, page, nextIcon, previousIcon, showFirstButton, showLastButton, hidePrevButton = false, hideNextButton = false, onClickItem, className, ...rest }) => {
|
|
35
|
+
let internalPage = 0;
|
|
36
|
+
if (defaultPage !== undefined && defaultPage > 0) {
|
|
37
|
+
internalPage = defaultPage;
|
|
38
|
+
}
|
|
39
|
+
if (page !== undefined && page > 0) {
|
|
40
|
+
internalPage = page;
|
|
41
|
+
}
|
|
42
|
+
const getPrevPageNumber = () => {
|
|
43
|
+
return internalPage > 1 ? internalPage - 1 : 1;
|
|
44
|
+
};
|
|
45
|
+
const getNextPageNumber = () => {
|
|
46
|
+
return internalPage < count ? internalPage + 1 : count;
|
|
47
|
+
};
|
|
48
|
+
const getItems = () => {
|
|
49
|
+
if (count !== undefined && count > 0) {
|
|
50
|
+
const paginationsArr = getPaginationsArr({
|
|
51
|
+
pageNumber: internalPage,
|
|
52
|
+
count,
|
|
53
|
+
});
|
|
54
|
+
const newLength = paginationsArr.length;
|
|
55
|
+
return Array.from({ length: newLength }, (_, i) => {
|
|
56
|
+
const dataObj = paginationsArr[i];
|
|
57
|
+
let selectedPage = false;
|
|
58
|
+
if (internalPage > 0 &&
|
|
59
|
+
internalPage === Number(dataObj) &&
|
|
60
|
+
dataObj !== '...') {
|
|
61
|
+
selectedPage = true;
|
|
62
|
+
}
|
|
63
|
+
if (dataObj === '...') {
|
|
64
|
+
return (React.createElement("div", { key: `${i.toString()}`, className: getGidsPaginationDotsClassNames({ size }) }, `...`));
|
|
65
|
+
}
|
|
66
|
+
return (React.createElement(GidsPaginationItem, { key: `${i.toString()}`, selectColor: selectColor, variant: variant, shape: shape, size: size, isIcon: false, icon: '(none)', disabled: disabled, selected: selectedPage,
|
|
67
|
+
// eslint-disable-next-line react/jsx-no-bind
|
|
68
|
+
onClickItem: (event) => {
|
|
69
|
+
if (onClickItem) {
|
|
70
|
+
onClickItem({
|
|
71
|
+
event,
|
|
72
|
+
index: Number(dataObj) - 1,
|
|
73
|
+
page: Number(dataObj),
|
|
74
|
+
defaultPage,
|
|
75
|
+
type: 'page',
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
} }, `${dataObj}`));
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
};
|
|
83
|
+
return (React.createElement("div", { ...rest, className: getGidsPaginationClassNames(className) },
|
|
84
|
+
showFirstButton ? (React.createElement(GidsPaginationItem, { selectColor: "none", selected: false, variant: variant, shape: shape, size: size, isIcon: true, icon: "backward", disabled: internalPage <= 1 || disabled,
|
|
85
|
+
// eslint-disable-next-line react/jsx-no-bind
|
|
86
|
+
onClickItem: (event) => {
|
|
87
|
+
if (onClickItem) {
|
|
88
|
+
onClickItem({
|
|
89
|
+
event,
|
|
90
|
+
index: 0,
|
|
91
|
+
page: 1,
|
|
92
|
+
defaultPage,
|
|
93
|
+
type: 'first',
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
} })) : null,
|
|
97
|
+
!hidePrevButton ? (React.createElement(GidsPaginationItem, { selectColor: "none", selected: false, variant: variant, shape: shape, size: size, isIcon: true, icon: previousIcon !== undefined &&
|
|
98
|
+
previousIcon !== '' &&
|
|
99
|
+
previousIcon !== '(none)'
|
|
100
|
+
? previousIcon
|
|
101
|
+
: 'chevron-left', disabled: internalPage <= 1 || disabled,
|
|
102
|
+
// eslint-disable-next-line react/jsx-no-bind
|
|
103
|
+
onClickItem: (event) => {
|
|
104
|
+
if (onClickItem) {
|
|
105
|
+
onClickItem({
|
|
106
|
+
event,
|
|
107
|
+
index: getPrevPageNumber() - 1,
|
|
108
|
+
page: getPrevPageNumber(),
|
|
109
|
+
defaultPage,
|
|
110
|
+
type: 'previous',
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
} })) : null,
|
|
114
|
+
getItems(),
|
|
115
|
+
!hideNextButton ? (React.createElement(GidsPaginationItem, { selectColor: "none", selected: false, variant: variant, shape: shape, size: size, isIcon: true, icon: nextIcon !== undefined && nextIcon !== '' && nextIcon !== '(none)'
|
|
116
|
+
? nextIcon
|
|
117
|
+
: 'chevron-right', disabled: internalPage >= count || disabled,
|
|
118
|
+
// eslint-disable-next-line react/jsx-no-bind
|
|
119
|
+
onClickItem: (event) => {
|
|
120
|
+
if (onClickItem) {
|
|
121
|
+
onClickItem({
|
|
122
|
+
event,
|
|
123
|
+
index: getNextPageNumber() - 1,
|
|
124
|
+
page: getNextPageNumber(),
|
|
125
|
+
defaultPage,
|
|
126
|
+
type: 'next',
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
} })) : null,
|
|
130
|
+
showLastButton ? (React.createElement(GidsPaginationItem, { selectColor: "none", selected: false, variant: variant, shape: shape, size: size, isIcon: true, icon: 'forward', disabled: internalPage >= count || disabled,
|
|
131
|
+
// eslint-disable-next-line react/jsx-no-bind
|
|
132
|
+
onClickItem: (event) => {
|
|
133
|
+
if (onClickItem) {
|
|
134
|
+
onClickItem({
|
|
135
|
+
event,
|
|
136
|
+
index: count - 1,
|
|
137
|
+
page: count,
|
|
138
|
+
defaultPage,
|
|
139
|
+
type: 'last',
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
} })) : null));
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=GidsPagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsPagination.js","sourceRoot":"","sources":["../../../src/components/GidsPagination/GidsPagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,yBAAyB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEN,sBAAsB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAGlF,MAAM,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,GACrE,sBAAsB,CAAC;AACxB,MAAM,EAAE,iBAAiB,EAAE,GAAG,yBAAyB,CAAC;AAgBxD;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BI;AACJ,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC9B,WAAW,GAAG,SAAS,EACvB,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,SAAS,EACjB,IAAI,GAAG,IAAI,EACX,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC,EACf,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,cAAc,EACd,cAAc,GAAG,KAAK,EACtB,cAAc,GAAG,KAAK,EACtB,WAAW,EACX,SAAS,EACT,GAAG,IAAI,EACc,EAAe,EAAE;IACtC,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,GAAG,CAAC,EAAE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;YAC7C,WAAW,EAAE,CAAC,KAAiB,EAAE,EAAE;gBAClC,IAAI,WAAW,EAAE,CAAC;oBACjB,WAAW,CAAC;wBACX,KAAK;wBACL,KAAK,EAAE,iBAAiB,EAAE,GAAG,CAAC;wBAC9B,IAAI,EAAE,iBAAiB,EAAE;wBACzB,WAAW;wBACX,IAAI,EAAE,MAAM;qBACZ,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC,GACA,CACF,CAAC,CAAC,CAAC,IAAI;QACP,cAAc,CAAC,CAAC,CAAC,CACjB,oBAAC,kBAAkB,IAClB,WAAW,EAAC,MAAM,EAClB,QAAQ,EAAE,KAAK,EACf,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,MAAM,QACN,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,YAAY,IAAI,KAAK,IAAI,QAAQ;YAC3C,6CAA6C;YAC7C,WAAW,EAAE,CAAC,KAAiB,EAAE,EAAE;gBAClC,IAAI,WAAW,EAAE,CAAC;oBACjB,WAAW,CAAC;wBACX,KAAK;wBACL,KAAK,EAAE,KAAK,GAAG,CAAC;wBAChB,IAAI,EAAE,KAAK;wBACX,WAAW;wBACX,IAAI,EAAE,MAAM;qBACZ,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC,GACA,CACF,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type GidsPaginationItemCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { type MouseEvent, type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';
|
|
3
|
+
export type GidsPaginationItemProps = GidsPaginationItemCommonProps<ReactNode, string> & Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'onClick'> & {
|
|
4
|
+
onClickItem?: (event: MouseEvent) => void;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* React DOM implementation of GIDS Pagination Item component.
|
|
8
|
+
*
|
|
9
|
+
* **Text Usage**
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { GidsPaginationItem } from '@investec/gids-react-web';
|
|
13
|
+
*
|
|
14
|
+
* export const MyComponent = () => (
|
|
15
|
+
* <GidsPaginationItem
|
|
16
|
+
* onClickItem={() => {}}
|
|
17
|
+
* selectColor="default"
|
|
18
|
+
* selected
|
|
19
|
+
* shape="circled"
|
|
20
|
+
* size="sm"
|
|
21
|
+
* variant="default"
|
|
22
|
+
* >
|
|
23
|
+
* 1
|
|
24
|
+
* </GidsPaginationItem>
|
|
25
|
+
* );
|
|
26
|
+
*
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* **Icon Usage**
|
|
30
|
+
*
|
|
31
|
+
* ```tsx
|
|
32
|
+
* import { GidsPaginationItem } from '@investec/gids-react-web';
|
|
33
|
+
*
|
|
34
|
+
* export const MyComponent = () => (
|
|
35
|
+
* <GidsPaginationItem
|
|
36
|
+
* icon="placeholder"
|
|
37
|
+
* isIcon
|
|
38
|
+
* onClickItem={() => {}}
|
|
39
|
+
* selectColor="default"
|
|
40
|
+
* selected
|
|
41
|
+
* shape="circled"
|
|
42
|
+
* size="sm"
|
|
43
|
+
* variant="default"
|
|
44
|
+
* />
|
|
45
|
+
* );
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsPaginationItem />` component.
|
|
50
|
+
**/
|
|
51
|
+
export declare const GidsPaginationItem: ({ selectColor, variant, shape, size, children, isIcon, icon, disabled, className, onClickItem, selected, ...rest }: GidsPaginationItemProps) => JSX.Element;
|
|
52
|
+
//# sourceMappingURL=GidsPaginationItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsPaginationItem.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsPaginationItem/GidsPaginationItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,6BAA6B,EAElC,MAAM,+BAA+B,CAAC;AAEvC,OAAc,EACb,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EACR,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAOf,MAAM,MAAM,uBAAuB,GAAG,6BAA6B,CAClE,SAAS,EACT,MAAM,CACN,GACA,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAClE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4CI;AACJ,eAAO,MAAM,kBAAkB,GAAI,oHAahC,uBAAuB,KAAG,GAAG,CAAC,OA4BhC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { GidsPaginationItemCommonUtils, } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { GidsPaginationItemWebUtils } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { GidsIcon } from '../GidsIcon/GidsIcon.js';
|
|
5
|
+
const { getGidsPaginationItemClassNames } = GidsPaginationItemWebUtils;
|
|
6
|
+
const { getPaginationItemIconSize } = GidsPaginationItemCommonUtils;
|
|
7
|
+
/**
|
|
8
|
+
* React DOM implementation of GIDS Pagination Item component.
|
|
9
|
+
*
|
|
10
|
+
* **Text Usage**
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { GidsPaginationItem } from '@investec/gids-react-web';
|
|
14
|
+
*
|
|
15
|
+
* export const MyComponent = () => (
|
|
16
|
+
* <GidsPaginationItem
|
|
17
|
+
* onClickItem={() => {}}
|
|
18
|
+
* selectColor="default"
|
|
19
|
+
* selected
|
|
20
|
+
* shape="circled"
|
|
21
|
+
* size="sm"
|
|
22
|
+
* variant="default"
|
|
23
|
+
* >
|
|
24
|
+
* 1
|
|
25
|
+
* </GidsPaginationItem>
|
|
26
|
+
* );
|
|
27
|
+
*
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* **Icon Usage**
|
|
31
|
+
*
|
|
32
|
+
* ```tsx
|
|
33
|
+
* import { GidsPaginationItem } from '@investec/gids-react-web';
|
|
34
|
+
*
|
|
35
|
+
* export const MyComponent = () => (
|
|
36
|
+
* <GidsPaginationItem
|
|
37
|
+
* icon="placeholder"
|
|
38
|
+
* isIcon
|
|
39
|
+
* onClickItem={() => {}}
|
|
40
|
+
* selectColor="default"
|
|
41
|
+
* selected
|
|
42
|
+
* shape="circled"
|
|
43
|
+
* size="sm"
|
|
44
|
+
* variant="default"
|
|
45
|
+
* />
|
|
46
|
+
* );
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsPaginationItem />` component.
|
|
51
|
+
**/
|
|
52
|
+
export const GidsPaginationItem = ({ selectColor = 'default', variant = 'default', shape = 'circled', size = 'sm', children, isIcon = false, icon, disabled = false, className, onClickItem, selected = false, ...rest }) => {
|
|
53
|
+
function onItemClick(event) {
|
|
54
|
+
if (!disabled && onClickItem) {
|
|
55
|
+
onClickItem(event);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return (React.createElement("button", { ...rest, className: getGidsPaginationItemClassNames({ selectColor, shape, size, variant, disabled, selected }, className), onClick: onItemClick, disabled: disabled },
|
|
59
|
+
!isIcon && children ? children : null,
|
|
60
|
+
isIcon && icon !== undefined && icon !== '' && icon !== '(none)' ? (React.createElement(GidsIcon, { size: getPaginationItemIconSize({ size }), name: icon, appearance: "regular", alt: "" })) : null));
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=GidsPaginationItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsPaginationItem.js","sourceRoot":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AAQ,CAAC,CAAC,CAAC,CACnE,oBAAC,QAAQ,IACR,IAAI,EAAE,yBAAyB,CAAC,EAAE,IAAI,EAAE,CAAC,EACzC,IAAI,EAAE,IAAgB,EACtB,UAAU,EAAC,SAAS,EACpB,GAAG,EAAC,EAAE,GACL,CACF,CAAC,CAAC,CAAC,IAAI,CACA,CACT,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
export { GidsToggleButton } from "./gids-toggle-button.js";
|
|
6
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/stencil-generated/components.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
export { GidsToggleButton } from "./gids-toggle-button.js";
|
|
7
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/components/stencil-generated/components.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAoB;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type GidsToggleButtonCustomEvent } from "@ganpatiinfo/gids-core-web";
|
|
7
|
+
import type { JSX } from '@ganpatiinfo/gids-core-web';
|
|
8
|
+
import { GidsToggleButton as GidsToggleButtonElement } from "@ganpatiinfo/gids-core-web/dist/gids-toggle-button.js";
|
|
9
|
+
export type GidsToggleButtonEvents = {
|
|
10
|
+
onSelect: EventName<GidsToggleButtonCustomEvent<boolean>>;
|
|
11
|
+
};
|
|
12
|
+
export declare const GidsToggleButton: StencilReactComponent<GidsToggleButtonElement, GidsToggleButtonEvents, JSX.GidsToggleButton>;
|
|
13
|
+
//# sourceMappingURL=gids-toggle-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gids-toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/stencil-generated/gids-toggle-button.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAI7F,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAiD,MAAM,uDAAuD,CAAC;AAEnK,MAAM,MAAM,sBAAsB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC,CAAA;CAAE,CAAC;AAEnG,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,uBAAuB,EAAE,sBAAsB,EAAE,GAAG,CAAC,gBAAgB,CAOxH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { GidsToggleButton as GidsToggleButtonElement, defineCustomElement as defineGidsToggleButton } from "@ganpatiinfo/gids-core-web/dist/gids-toggle-button.js";
|
|
5
|
+
export const GidsToggleButton = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'gids-toggle-button',
|
|
7
|
+
elementClass: GidsToggleButtonElement,
|
|
8
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
+
react: React,
|
|
10
|
+
events: { onSelect: 'select' },
|
|
11
|
+
defineCustomElement: defineGidsToggleButton
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=gids-toggle-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gids-toggle-button.js","sourceRoot":"","sources":["../../../src/components/stencil-generated/gids-toggle-button.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAUb,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAE,mBAAmB,IAAI,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAInK,MAAM,CAAC,MAAM,gBAAgB,GAAiG,aAAa,CAAC,eAAe,CAAwE;IAC/N,OAAO,EAAE,oBAAoB;IAC7B,YAAY,EAAE,uBAAuB;IACrC,0GAA0G;IAC1G,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAA4B;IACxD,mBAAmB,EAAE,sBAAsB;CAC9C,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -24,8 +24,13 @@ export * from './components/GidsBox/GidsBox.js';
|
|
|
24
24
|
export * from './components/GidsContainer/GidsContainer.js';
|
|
25
25
|
export * from './components/GidsBreadcrumbItem/GidsBreadcrumbItem.js';
|
|
26
26
|
export * from './components/GidsBreadcrumb/GidsBreadcrumb.js';
|
|
27
|
+
export * from './components/GidsBaseCard/GidsBaseCard.js';
|
|
28
|
+
export * from './components/GidsCard/GidsCard.js';
|
|
29
|
+
export * from './components/GidsPagination/GidsPagination.js';
|
|
27
30
|
/**
|
|
28
31
|
* STENCIL GENERATED
|
|
29
32
|
*/
|
|
30
|
-
export
|
|
33
|
+
export * from './components/stencil-generated/gids-toggle-button.js';
|
|
34
|
+
import { setGidsAssetPaths, type GidsThemeAsset } from '@ganpatiinfo/gids-core-web';
|
|
35
|
+
export { GidsThemeAsset, setGidsAssetPaths };
|
|
31
36
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uDAAuD,CAAC;AACtE,cAAc,+CAA+C,CAAC;AAE9D;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uDAAuD,CAAC;AACtE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,+CAA+C,CAAC;AAE9D;;GAEG;AACH,cAAc,sDAAsD,CAAC;AAIrE,OAAO,EAAC,iBAAiB,EAAE,KAAK,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EACH,cAAc,EACd,iBAAiB,EACpB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -24,8 +24,14 @@ export * from './components/GidsBox/GidsBox.js';
|
|
|
24
24
|
export * from './components/GidsContainer/GidsContainer.js';
|
|
25
25
|
export * from './components/GidsBreadcrumbItem/GidsBreadcrumbItem.js';
|
|
26
26
|
export * from './components/GidsBreadcrumb/GidsBreadcrumb.js';
|
|
27
|
+
export * from './components/GidsBaseCard/GidsBaseCard.js';
|
|
28
|
+
export * from './components/GidsCard/GidsCard.js';
|
|
29
|
+
export * from './components/GidsPagination/GidsPagination.js';
|
|
27
30
|
/**
|
|
28
31
|
* STENCIL GENERATED
|
|
29
32
|
*/
|
|
30
|
-
export
|
|
33
|
+
export * from './components/stencil-generated/gids-toggle-button.js';
|
|
34
|
+
// Re-export asset Api's
|
|
35
|
+
import { setGidsAssetPaths } from '@ganpatiinfo/gids-core-web';
|
|
36
|
+
export { setGidsAssetPaths };
|
|
31
37
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uDAAuD,CAAC;AACtE,cAAc,+CAA+C,CAAC;AAE9D;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uDAAuD,CAAC;AACtE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,+CAA+C,CAAC;AAE9D;;GAEG;AACH,cAAc,sDAAsD,CAAC;AAGrE,wBAAwB;AACxB,OAAO,EAAC,iBAAiB,EAAsB,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAEH,iBAAiB,EACpB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,67 +1,74 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ganpatiinfo/gids-react-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This package is react web package with all components",
|
|
6
6
|
"homepage": "https://ganpatiinfosystem.vercel.app/",
|
|
7
|
-
"main": "dist/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
7
|
"type": "module",
|
|
8
|
+
"sideEffects": false,
|
|
10
9
|
"scripts": {
|
|
11
10
|
"clean": "del-cli dist/** storybook-static/**",
|
|
12
11
|
"build": "tsc",
|
|
12
|
+
"postbuild": "node ./post-install.js",
|
|
13
13
|
"test": "NODE_OPTIONS='--experimental-vm-modules' jest --coverage",
|
|
14
14
|
"test:local": "NODE_OPTIONS='--experimental-vm-modules' jest --watch",
|
|
15
15
|
"watch": "tsc --watch",
|
|
16
16
|
"storybook": "storybook dev -p 6006",
|
|
17
17
|
"build-site": "storybook build -o ../../site/public/workshop/react-web/",
|
|
18
18
|
"size": "size-limit",
|
|
19
|
-
"release:manually": "npm run build && npm publish --access public"
|
|
19
|
+
"release:manually": "npm run build && npm publish --access public",
|
|
20
|
+
"postinstall": "node ./post-install.js"
|
|
20
21
|
},
|
|
21
22
|
"files": [
|
|
22
|
-
"dist/"
|
|
23
|
+
"dist/",
|
|
24
|
+
"post-install.js"
|
|
23
25
|
],
|
|
26
|
+
"exports": {
|
|
27
|
+
"./index.css": {
|
|
28
|
+
"style": "./dist/css/index.css",
|
|
29
|
+
"default": "./dist/css/index.css"
|
|
30
|
+
},
|
|
31
|
+
"./elements.css": {
|
|
32
|
+
"style": "./dist/css/elements.css",
|
|
33
|
+
"default": "./dist/css/elements.css"
|
|
34
|
+
},
|
|
35
|
+
".": {
|
|
36
|
+
"style": "./dist/index.d.ts",
|
|
37
|
+
"default": "./dist/index.js"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
24
40
|
"peerDependencies": {
|
|
25
|
-
"@ganpatiinfo/gids-
|
|
26
|
-
"
|
|
27
|
-
"react": "19.0.0"
|
|
28
|
-
"react-dom": "19.0.0"
|
|
41
|
+
"@ganpatiinfo/gids-web-theme-interface": "3.0.0",
|
|
42
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
43
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
29
44
|
},
|
|
30
45
|
"dependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"@ganpatiinfo/gids-core-
|
|
33
|
-
"@ganpatiinfo/gids-web-shared": "
|
|
34
|
-
"@
|
|
35
|
-
"@emotion/react": "^11.14.0",
|
|
36
|
-
"@emotion/styled": "^11.14.1"
|
|
46
|
+
"@ganpatiinfo/gids-core-shared": "^3.0.0",
|
|
47
|
+
"@ganpatiinfo/gids-core-web": "^3.0.0",
|
|
48
|
+
"@ganpatiinfo/gids-web-shared": "^3.0.0",
|
|
49
|
+
"@stencil/react-output-target": "^1.4.2"
|
|
37
50
|
},
|
|
38
51
|
"devDependencies": {
|
|
39
|
-
"@fontsource/inter": "5.2.
|
|
40
|
-
"@fontsource/libre-caslon-text": "5.2.
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@storybook/
|
|
47
|
-
"@storybook/
|
|
48
|
-
"@storybook/
|
|
49
|
-
"@storybook/react-vite": "
|
|
50
|
-
"@
|
|
51
|
-
"@testing-library/
|
|
52
|
-
"
|
|
53
|
-
"jest": "
|
|
54
|
-
"
|
|
55
|
-
"react": "19.
|
|
56
|
-
"
|
|
57
|
-
"storybook": "
|
|
58
|
-
"
|
|
59
|
-
"ts-jest": "29.3.2",
|
|
60
|
-
"sass": "^1.88.0",
|
|
61
|
-
"@ganpatiinfo/gids-storybook-theme": "2.0.7",
|
|
62
|
-
"@ganpatiinfo/gids-storybook-utilities": "2.0.6",
|
|
63
|
-
"@ganpatiinfo/gids-web-dom-reference": "2.1.0",
|
|
64
|
-
"@ganpatiinfo/gids-web-theme-ganpatiinfo": "2.0.7"
|
|
52
|
+
"@fontsource/inter": "^5.2.8",
|
|
53
|
+
"@fontsource/libre-caslon-text": "^5.2.7",
|
|
54
|
+
"@ganpatiinfo/gids-storybook-theme": "^3.0.0",
|
|
55
|
+
"@ganpatiinfo/gids-storybook-utilities": "^3.0.0",
|
|
56
|
+
"@ganpatiinfo/gids-web-dom-reference": "^3.0.0",
|
|
57
|
+
"@ganpatiinfo/gids-web-theme-ganpatiinfo": "^3.0.0",
|
|
58
|
+
"@jest/globals": "^30.2.0",
|
|
59
|
+
"@storybook/addon-a11y": "^10.2.17",
|
|
60
|
+
"@storybook/addon-docs": "^10.2.17",
|
|
61
|
+
"@storybook/addon-links": "^10.2.17",
|
|
62
|
+
"@storybook/react-vite": "^10.1.3",
|
|
63
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
64
|
+
"@testing-library/react": "^16.3.2",
|
|
65
|
+
"jest": "^30.3.0",
|
|
66
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
67
|
+
"react": "19.2.0",
|
|
68
|
+
"react-dom": "19.2.0",
|
|
69
|
+
"storybook": "^10.2.17",
|
|
70
|
+
"storybook-addon-tag-badges": "^3.0.6",
|
|
71
|
+
"ts-jest": "^29.4.6"
|
|
65
72
|
},
|
|
66
73
|
"author": {
|
|
67
74
|
"name": "Ganpatiinfo Design System",
|
|
@@ -77,6 +84,14 @@
|
|
|
77
84
|
"nx": {
|
|
78
85
|
"targets": {
|
|
79
86
|
"build-site": {
|
|
87
|
+
"dependsOn": [
|
|
88
|
+
{
|
|
89
|
+
"target": "build-site",
|
|
90
|
+
"projects": [
|
|
91
|
+
"@ganpatiinfo/gids-website"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
],
|
|
80
95
|
"outputs": [
|
|
81
96
|
"{workspaceRoot}/site/dist/workshop/react-web/"
|
|
82
97
|
]
|
package/post-install.js
ADDED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
-
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
-
*/
|
|
5
|
-
import { GidsToggleButton as GidsToggleButtonElement } from "@ganpatiinfo/gids-core-web/dist/gids-toggle-button.js";
|
|
6
|
-
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
7
|
-
type GidsToggleButtonEvents = {
|
|
8
|
-
onSelect: EventName<CustomEvent<boolean>>;
|
|
9
|
-
};
|
|
10
|
-
declare const GidsToggleButton: StencilReactComponent<GidsToggleButtonElement, GidsToggleButtonEvents>;
|
|
11
|
-
export default GidsToggleButton;
|
|
12
|
-
//# sourceMappingURL=GidsToggleButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GidsToggleButton.d.ts","sourceRoot":"","sources":["../../../src/components/stencil-generated/GidsToggleButton.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAIH,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAiD,MAAM,uDAAuD,CAAC;AACnK,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAI7F,KAAK,sBAAsB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAA;CAAE,CAAC;AAE5E,QAAA,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,uBAAuB,EAAE,sBAAsB,CAO3F,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by the Stencil React Output Target.
|
|
4
|
-
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5
|
-
*/
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { GidsToggleButton as GidsToggleButtonElement, defineCustomElement as defineGidsToggleButton } from "@ganpatiinfo/gids-core-web/dist/gids-toggle-button.js";
|
|
8
|
-
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
9
|
-
import React from 'react';
|
|
10
|
-
const GidsToggleButton = /*@__PURE__*/ createComponent({
|
|
11
|
-
tagName: 'gids-toggle-button',
|
|
12
|
-
elementClass: GidsToggleButtonElement,
|
|
13
|
-
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
14
|
-
react: React,
|
|
15
|
-
events: { onSelect: 'select' },
|
|
16
|
-
defineCustomElement: defineGidsToggleButton
|
|
17
|
-
});
|
|
18
|
-
export default GidsToggleButton;
|
|
19
|
-
//# sourceMappingURL=GidsToggleButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GidsToggleButton.js","sourceRoot":"","sources":["../../../src/components/stencil-generated/GidsToggleButton.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb;;;GAGG;AAEH,oBAAoB;AAEpB,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAE,mBAAmB,IAAI,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAEnK,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,gBAAgB,GAA2E,aAAa,CAAC,eAAe,CAAkD;IAC5K,OAAO,EAAE,oBAAoB;IAC7B,YAAY,EAAE,uBAAuB;IACrC,uIAAuI;IACvI,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAA4B;IACxD,mBAAmB,EAAE,sBAAsB;CAC9C,CAAC,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|