@ganpatiinfo/gids-react-web 2.0.9 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/GidsBox/GidsBox.d.ts +22 -0
- package/dist/components/GidsBox/GidsBox.d.ts.map +1 -0
- package/dist/components/GidsBox/GidsBox.js +27 -0
- package/dist/components/GidsBox/GidsBox.js.map +1 -0
- package/dist/components/GidsBreadcrumb/GidsBreadcrumb.d.ts +39 -0
- package/dist/components/GidsBreadcrumb/GidsBreadcrumb.d.ts.map +1 -0
- package/dist/components/GidsBreadcrumb/GidsBreadcrumb.js +42 -0
- package/dist/components/GidsBreadcrumb/GidsBreadcrumb.js.map +1 -0
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.d.ts +34 -0
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.d.ts.map +1 -0
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.js +42 -0
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.js.map +1 -0
- 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/GidsContainer/GidsContainer.d.ts +26 -0
- package/dist/components/GidsContainer/GidsContainer.d.ts.map +1 -0
- package/dist/components/GidsContainer/GidsContainer.js +26 -0
- package/dist/components/GidsContainer/GidsContainer.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +13 -10
|
@@ -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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type GidsBoxWebProps, type PermittedGidsBoxElements } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';
|
|
3
|
+
export type GidsBoxProps<E extends PermittedGidsBoxElements> = GidsBoxWebProps<ReactNode, E> & ComponentPropsWithoutRef<E>;
|
|
4
|
+
/**
|
|
5
|
+
* React DOM implementation of GIDS Box component.
|
|
6
|
+
*
|
|
7
|
+
* **Usage**
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { GidsBox } from '@investec/gids-react-web';
|
|
11
|
+
*
|
|
12
|
+
* export const MyComponent = () => (
|
|
13
|
+
* <GidsBox className="gids-box-demo__container-with-text" component="div">
|
|
14
|
+
* This Box renders as an HTML section element.
|
|
15
|
+
* </GidsBox>
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBox />` component.
|
|
20
|
+
**/
|
|
21
|
+
export declare const GidsBox: <E extends PermittedGidsBoxElements = "div">({ children, component, className, ...rest }: GidsBoxProps<E>) => JSX.Element;
|
|
22
|
+
//# sourceMappingURL=GidsBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsBox.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBox/GidsBox.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,eAAe,EAEpB,KAAK,wBAAwB,EAC7B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIhF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,wBAAwB,IAAI,eAAe,CAC7E,SAAS,EACT,CAAC,CACD,GACA,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAE7B;;;;;;;;;;;;;;;;IAgBI;AACJ,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,wBAAwB,GAAG,KAAK,EAAE,6CAKjE,YAAY,CAAC,CAAC,CAAC,KAAG,GAAG,CAAC,OASxB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GidsBoxWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const { getGidsBoxClassNames } = GidsBoxWebUtils;
|
|
4
|
+
/**
|
|
5
|
+
* React DOM implementation of GIDS Box component.
|
|
6
|
+
*
|
|
7
|
+
* **Usage**
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { GidsBox } from '@investec/gids-react-web';
|
|
11
|
+
*
|
|
12
|
+
* export const MyComponent = () => (
|
|
13
|
+
* <GidsBox className="gids-box-demo__container-with-text" component="div">
|
|
14
|
+
* This Box renders as an HTML section element.
|
|
15
|
+
* </GidsBox>
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBox />` component.
|
|
20
|
+
**/
|
|
21
|
+
export const GidsBox = ({ children, component, className, ...rest }) => {
|
|
22
|
+
const Component = component || 'div';
|
|
23
|
+
return (
|
|
24
|
+
// @ts-expect-error: Expected error
|
|
25
|
+
React.createElement(Component, { className: getGidsBoxClassNames(className), ...rest }, children));
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=GidsBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsBox.js","sourceRoot":"","sources":["../../../src/components/GidsBox/GidsBox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,eAAe,GAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,EAAE,oBAAoB,EAAE,GAAG,eAAe,CAAC;AAQjD;;;;;;;;;;;;;;;;IAgBI;AACJ,MAAM,CAAC,MAAM,OAAO,GAAG,CAA6C,EACnE,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,IAAI,EACU,EAAe,EAAE;IAClC,MAAM,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC;IAErC,OAAO;IACN,mCAAmC;IACnC,oBAAC,SAAS,IAAC,SAAS,EAAE,oBAAoB,CAAC,SAAS,CAAC,KAAM,IAAI,IAC7D,QAAQ,CACE,CACZ,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { GidsBreadcrumbCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';
|
|
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
|
+
**/
|
|
38
|
+
export declare const GidsBreadcrumb: ({ children, className, ...rest }: GidsBreadcrumbProps) => JSX.Element;
|
|
39
|
+
//# sourceMappingURL=GidsBreadcrumb.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCI;AACJ,eAAO,MAAM,cAAc,GAAI,kCAI5B,mBAAmB,KAAG,GAAG,CAAC,OAM5B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { GidsBreadcrumbWebUtils } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import React from 'react';
|
|
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
|
+
**/
|
|
38
|
+
export const GidsBreadcrumb = ({ children, className, ...rest }) => {
|
|
39
|
+
return (React.createElement("nav", { ...rest, className: getGidsBreadcrumbClassNames(className) },
|
|
40
|
+
React.createElement("ol", null, children)));
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=GidsBreadcrumb.js.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type GidsBreadcrumbItemCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
|
+
import { MouseEvent, type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';
|
|
3
|
+
export type GidsBreadcrumbItemProps = GidsBreadcrumbItemCommonProps<ReactNode, string, string> & Omit<ComponentPropsWithoutRef<'li'>, 'onClick'> & {
|
|
4
|
+
href?: string;
|
|
5
|
+
onClick?: (event: MouseEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* React DOM implementation of GIDS Breadcrumb Item component.
|
|
9
|
+
*
|
|
10
|
+
* **Usage**
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { GidsBreadcrumbItem } from '@investec/gids-react-web';
|
|
14
|
+
*
|
|
15
|
+
* export const MyComponent = () => (
|
|
16
|
+
* <GidsBreadcrumbItem
|
|
17
|
+
* currentIndex={1}
|
|
18
|
+
* href="/"
|
|
19
|
+
* isSeparatorVisible
|
|
20
|
+
* leadingIcon="placeholder"
|
|
21
|
+
* onClick={() => {}}
|
|
22
|
+
* renderingSystem="array"
|
|
23
|
+
* separator="chevron-right"
|
|
24
|
+
* totalLength={3}
|
|
25
|
+
* >
|
|
26
|
+
* Label
|
|
27
|
+
* </GidsBreadcrumbItem>
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBreadcrumbItem />` component.
|
|
32
|
+
**/
|
|
33
|
+
export declare const GidsBreadcrumbItem: ({ children, selected, className, href, onClick, leadingIcon, renderingSystem, isSeparatorVisible, separator, currentIndex, totalLength, ...rest }: GidsBreadcrumbItemProps) => JSX.Element;
|
|
34
|
+
//# sourceMappingURL=GidsBreadcrumbItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsBreadcrumbItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumbItem/GidsBreadcrumbItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAEnF,OAAc,EACb,UAAU,EACV,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EACR,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAMf,MAAM,MAAM,uBAAuB,GAAG,6BAA6B,CAClE,SAAS,EACT,MAAM,EACN,MAAM,CACN,GACA,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,GAAG;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;IAyBI;AACJ,eAAO,MAAM,kBAAkB,GAAI,mJAahC,uBAAuB,KAAG,GAAG,CAAC,OAuChC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { GidsBreadcrumbItemWebUtils } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { GidsIcon } from '../GidsIcon/GidsIcon.js';
|
|
4
|
+
const { getGidsBreadcrumbItemClassNames } = GidsBreadcrumbItemWebUtils;
|
|
5
|
+
/**
|
|
6
|
+
* React DOM implementation of GIDS Breadcrumb Item component.
|
|
7
|
+
*
|
|
8
|
+
* **Usage**
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { GidsBreadcrumbItem } from '@investec/gids-react-web';
|
|
12
|
+
*
|
|
13
|
+
* export const MyComponent = () => (
|
|
14
|
+
* <GidsBreadcrumbItem
|
|
15
|
+
* currentIndex={1}
|
|
16
|
+
* href="/"
|
|
17
|
+
* isSeparatorVisible
|
|
18
|
+
* leadingIcon="placeholder"
|
|
19
|
+
* onClick={() => {}}
|
|
20
|
+
* renderingSystem="array"
|
|
21
|
+
* separator="chevron-right"
|
|
22
|
+
* totalLength={3}
|
|
23
|
+
* >
|
|
24
|
+
* Label
|
|
25
|
+
* </GidsBreadcrumbItem>
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsBreadcrumbItem />` component.
|
|
30
|
+
**/
|
|
31
|
+
export const GidsBreadcrumbItem = ({ children, selected, className, href, onClick, leadingIcon, renderingSystem, isSeparatorVisible, separator, currentIndex, totalLength, ...rest }) => {
|
|
32
|
+
return (React.createElement("li", { ...rest, className: getGidsBreadcrumbItemClassNames({ selected }, className) },
|
|
33
|
+
React.createElement("a", { href: href ? href : undefined, onClick: onClick, className: "gids-breadcrumb-item__anchor-label" },
|
|
34
|
+
leadingIcon && leadingIcon !== '' && leadingIcon !== '(none)' ? (React.createElement(GidsIcon, { name: leadingIcon, size: "md", appearance: "regular", alt: "", className: "gids-breadcrumb-item__leading-icon" })) : null,
|
|
35
|
+
children),
|
|
36
|
+
isSeparatorVisible &&
|
|
37
|
+
((renderingSystem === 'array' && currentIndex < totalLength - 1) ||
|
|
38
|
+
renderingSystem === 'non-array') ? (React.createElement(GidsIcon, { name: separator && separator !== '' && separator !== '(none)'
|
|
39
|
+
? separator
|
|
40
|
+
: 'chevron-right', size: "md", appearance: "filled", alt: "", className: "gids-breadcrumb-item__separator-icon" })) : null));
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=GidsBreadcrumbItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsBreadcrumbItem.js","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumbItem/GidsBreadcrumbItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAKN,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGnD,MAAM,EAAE,+BAA+B,EAAE,GAAG,0BAA0B,CAAC;AAYvE;;;;;;;;;;;;;;;;;;;;;;;;;IAyBI;AACJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,OAAO,EACP,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACkB,EAAe,EAAE;IAC1C,OAAO,CACN,+BACK,IAAI,EACR,SAAS,EAAE,+BAA+B,CAAC,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC;QAEnE,2BACC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAC7B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,oCAAoC;YAE7C,WAAW,IAAI,WAAW,KAAK,EAAE,IAAI,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,CAChE,oBAAC,QAAQ,IACR,IAAI,EAAE,WAAuB,EAC7B,IAAI,EAAC,IAAI,EACT,UAAU,EAAC,SAAS,EACpB,GAAG,EAAC,EAAE,EACN,SAAS,EAAC,oCAAoC,GAC7C,CACF,CAAC,CAAC,CAAC,IAAI;YACP,QAAQ,CACN;QACH,kBAAkB;YACnB,CAAC,CAAC,eAAe,KAAK,OAAO,IAAI,YAAY,GAAG,WAAW,GAAG,CAAC,CAAC;gBAC/D,eAAe,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CACnC,oBAAC,QAAQ,IACR,IAAI,EACH,SAAS,IAAI,SAAS,KAAK,EAAE,IAAI,SAAS,KAAK,QAAQ;gBACtD,CAAC,CAAE,SAAsB;gBACzB,CAAC,CAAC,eAAe,EAEnB,IAAI,EAAC,IAAI,EACT,UAAU,EAAC,QAAQ,EACnB,GAAG,EAAC,EAAE,EACN,SAAS,EAAC,sCAAsC,GAC/C,CACF,CAAC,CAAC,CAAC,IAAI,CACJ,CACL,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -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":"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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ClassValue, type GidsContainerWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { ComponentPropsWithRef, JSX, ReactNode } from 'react';
|
|
3
|
+
export type GidsContainerProps = GidsContainerWebProps<ReactNode> & ComponentPropsWithRef<'div'> & {
|
|
4
|
+
className?: ClassValue;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* React DOM implementation of GIDS Container component.
|
|
8
|
+
*
|
|
9
|
+
* **Usage**
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { GidsContainer } from '@investec/gids-react-web';
|
|
13
|
+
*
|
|
14
|
+
* export const MyComponent = () => (
|
|
15
|
+
* <GidsContainer
|
|
16
|
+
* maxWidth="lg"
|
|
17
|
+
* >
|
|
18
|
+
* <GidsBox className="gids-container-demo__container" />
|
|
19
|
+
* </GidsContainer>
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsContainer />` component.
|
|
24
|
+
**/
|
|
25
|
+
export declare const GidsContainer: ({ children, maxWidth, fixed, className, ...rest }: GidsContainerProps) => JSX.Element;
|
|
26
|
+
//# sourceMappingURL=GidsContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/GidsContainer/GidsContainer.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,UAAU,EACf,KAAK,qBAAqB,EAE1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9D,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,SAAS,CAAC,GAChE,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAC9B,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB,CAAC;AAEH;;;;;;;;;;;;;;;;;;IAkBI;AACJ,eAAO,MAAM,aAAa,GAAI,mDAM3B,kBAAkB,KAAG,GAAG,CAAC,OAS3B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GidsContainerWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
3
|
+
const { getGidsContainerClassNames } = GidsContainerWebUtils;
|
|
4
|
+
/**
|
|
5
|
+
* React DOM implementation of GIDS Container component.
|
|
6
|
+
*
|
|
7
|
+
* **Usage**
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { GidsContainer } from '@investec/gids-react-web';
|
|
11
|
+
*
|
|
12
|
+
* export const MyComponent = () => (
|
|
13
|
+
* <GidsContainer
|
|
14
|
+
* maxWidth="lg"
|
|
15
|
+
* >
|
|
16
|
+
* <GidsBox className="gids-container-demo__container" />
|
|
17
|
+
* </GidsContainer>
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsContainer />` component.
|
|
22
|
+
**/
|
|
23
|
+
export const GidsContainer = ({ children, maxWidth, fixed, className, ...rest }) => {
|
|
24
|
+
return (React.createElement("div", { ...rest, className: getGidsContainerClassNames({ fixed, maxWidth }, className) }, children));
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=GidsContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsContainer.js","sourceRoot":"","sources":["../../../src/components/GidsContainer/GidsContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGN,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AAGtC,MAAM,EAAE,0BAA0B,EAAE,GAAG,qBAAqB,CAAC;AAO7D;;;;;;;;;;;;;;;;;;IAkBI;AACJ,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACa,EAAe,EAAE;IACrC,OAAO,CACN,gCACK,IAAI,EACR,SAAS,EAAE,0BAA0B,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,IAEpE,QAAQ,CACJ,CACN,CAAC;AACH,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export * from './components/GidsButtonGroup/GidsButtonGroup.js';
|
|
|
20
20
|
export * from './components/GidsButtonDock/GidsButtonDock.js';
|
|
21
21
|
export * from './components/GidsSectionNotice/GidsSectionNotice.js';
|
|
22
22
|
export * from './components/GidsCompoundButton/GidsCompoundButton.js';
|
|
23
|
+
export * from './components/GidsBox/GidsBox.js';
|
|
24
|
+
export * from './components/GidsContainer/GidsContainer.js';
|
|
25
|
+
export * from './components/GidsBreadcrumbItem/GidsBreadcrumbItem.js';
|
|
26
|
+
export * from './components/GidsBreadcrumb/GidsBreadcrumb.js';
|
|
27
|
+
export * from './components/GidsBaseCard/GidsBaseCard.js';
|
|
28
|
+
export * from './components/GidsCard/GidsCard.js';
|
|
23
29
|
/**
|
|
24
30
|
* STENCIL GENERATED
|
|
25
31
|
*/
|
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;
|
|
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;AAElD;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oDAAoD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,12 @@ export * from './components/GidsButtonGroup/GidsButtonGroup.js';
|
|
|
20
20
|
export * from './components/GidsButtonDock/GidsButtonDock.js';
|
|
21
21
|
export * from './components/GidsSectionNotice/GidsSectionNotice.js';
|
|
22
22
|
export * from './components/GidsCompoundButton/GidsCompoundButton.js';
|
|
23
|
+
export * from './components/GidsBox/GidsBox.js';
|
|
24
|
+
export * from './components/GidsContainer/GidsContainer.js';
|
|
25
|
+
export * from './components/GidsBreadcrumbItem/GidsBreadcrumbItem.js';
|
|
26
|
+
export * from './components/GidsBreadcrumb/GidsBreadcrumb.js';
|
|
27
|
+
export * from './components/GidsBaseCard/GidsBaseCard.js';
|
|
28
|
+
export * from './components/GidsCard/GidsCard.js';
|
|
23
29
|
/**
|
|
24
30
|
* STENCIL GENERATED
|
|
25
31
|
*/
|
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;
|
|
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;AAElD;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oDAAoD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ganpatiinfo/gids-react-web",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This package is react web package with all components",
|
|
6
6
|
"homepage": "https://ganpatiinfosystem.vercel.app/",
|
|
@@ -22,15 +22,18 @@
|
|
|
22
22
|
"dist/"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@ganpatiinfo/gids-core-web": "2.
|
|
25
|
+
"@ganpatiinfo/gids-core-web": "2.1.1",
|
|
26
26
|
"@ganpatiinfo/gids-web-theme-interface": "2.0.7",
|
|
27
|
-
"react": "19.
|
|
28
|
-
"react-dom": "19.
|
|
27
|
+
"react": "19.0.0",
|
|
28
|
+
"react-dom": "19.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@stencil/react-output-target": "0.8.2",
|
|
32
|
-
"@ganpatiinfo/gids-core-shared": "2.
|
|
33
|
-
"@ganpatiinfo/gids-web-shared": "2.
|
|
32
|
+
"@ganpatiinfo/gids-core-shared": "2.1.1",
|
|
33
|
+
"@ganpatiinfo/gids-web-shared": "2.1.1",
|
|
34
|
+
"@mui/material": "^7.2.0",
|
|
35
|
+
"@emotion/react": "^11.14.0",
|
|
36
|
+
"@emotion/styled": "^11.14.1"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
39
|
"@fontsource/inter": "5.2.5",
|
|
@@ -49,15 +52,15 @@
|
|
|
49
52
|
"@testing-library/react": "16.3.0",
|
|
50
53
|
"jest": "29.7.0",
|
|
51
54
|
"jest-environment-jsdom": "29.7.0",
|
|
52
|
-
"react": "19.
|
|
53
|
-
"react-dom": "19.
|
|
55
|
+
"react": "19.0.0",
|
|
56
|
+
"react-dom": "19.0.0",
|
|
54
57
|
"storybook": "8.6.12",
|
|
55
58
|
"storybook-addon-tag-badges": "1.4.0",
|
|
56
59
|
"ts-jest": "29.3.2",
|
|
57
60
|
"sass": "^1.88.0",
|
|
58
|
-
"@ganpatiinfo/gids-storybook-theme": "2.0.
|
|
61
|
+
"@ganpatiinfo/gids-storybook-theme": "2.0.8",
|
|
59
62
|
"@ganpatiinfo/gids-storybook-utilities": "2.0.6",
|
|
60
|
-
"@ganpatiinfo/gids-web-dom-reference": "2.
|
|
63
|
+
"@ganpatiinfo/gids-web-dom-reference": "2.1.1",
|
|
61
64
|
"@ganpatiinfo/gids-web-theme-ganpatiinfo": "2.0.7"
|
|
62
65
|
},
|
|
63
66
|
"author": {
|