@ganpatiinfo/gids-react-web 20.0.0 → 21.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.
@@ -1 +1 @@
1
- {"version":3,"file":"GidsEcosystemIcon.d.ts","sourceRoot":"","sources":["../../../src/components/GidsEcosystemIcon/GidsEcosystemIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EACN,yBAAyB,EAEzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAK/C,KAAK,6BAA6B,GAAG,yBAAyB,CAC7D,QAAQ,EACR,cAAc,CACd,GACA,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,CAAC;AAEnE,eAAO,MAAM,iBAAiB,GAAI,6GAS/B,sBAAsB,sBA6BxB,CAAC"}
1
+ {"version":3,"file":"GidsEcosystemIcon.d.ts","sourceRoot":"","sources":["../../../src/components/GidsEcosystemIcon/GidsEcosystemIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EACN,yBAAyB,EAEzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAK/C,KAAK,6BAA6B,GAAG,yBAAyB,CAC7D,QAAQ,EACR,cAAc,CACd,GACA,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,CAAC;AAEnE,eAAO,MAAM,iBAAiB,GAAI,6GAS/B,sBAAsB,sBAuCxB,CAAC"}
@@ -3,15 +3,22 @@ import { GidsEcosystemIconWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
3
  import { GidsIcon } from '../GidsIcon/GidsIcon';
4
4
  const { getGidsEcosystemIconClassNames } = GidsEcosystemIconWebUtils;
5
5
  export const GidsEcosystemIcon = ({ iconName, appearance = 'default', size = 'md', iconAppearance = 'filled', ecosystemColor, ecosystemIconColor, className, ...restProps }) => {
6
- return (React.createElement("div", { "data-appearance": appearance, className: getGidsEcosystemIconClassNames({ appearance }, className), style: appearance === 'custom'
7
- ? {
8
- '--gidsEcosystemIconEcosystem-color': ecosystemColor
9
- ? ecosystemColor
10
- : '',
11
- '--gidsEcosystemIcon-color': ecosystemIconColor
12
- ? ecosystemIconColor
13
- : '',
14
- }
15
- : {}, ...restProps }, iconName && iconName.toString() !== '' ? (React.createElement(GidsIcon, { name: iconName, appearance: iconAppearance, size: size, alt: "" })) : undefined));
6
+ const getMainStyles = () => {
7
+ let styles = {};
8
+ if (ecosystemColor && appearance === 'custom') {
9
+ styles = {
10
+ '--gidsEcosystemIconEcosystem-color': ecosystemColor,
11
+ };
12
+ }
13
+ if (ecosystemIconColor &&
14
+ (appearance === 'custom' || appearance === 'subtle')) {
15
+ styles = {
16
+ ...styles,
17
+ '--gidsEcosystemIcon-color': ecosystemIconColor,
18
+ };
19
+ }
20
+ return styles;
21
+ };
22
+ return (React.createElement("div", { "data-appearance": appearance, className: getGidsEcosystemIconClassNames({ appearance }, className), style: getMainStyles(), ...restProps }, iconName && iconName.toString() !== '' ? (React.createElement(GidsIcon, { name: iconName, appearance: iconAppearance, size: size, alt: "" })) : undefined));
16
23
  };
17
24
  //# sourceMappingURL=GidsEcosystemIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GidsEcosystemIcon.js","sourceRoot":"","sources":["../../../src/components/GidsEcosystemIcon/GidsEcosystemIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAC5E,OAAO,EA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E,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;AAUrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EACjC,QAAQ,EACR,UAAU,GAAG,SAAS,EACtB,IAAI,GAAG,IAAI,EACX,cAAc,GAAG,QAAQ,EACzB,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,GAAG,SAAS,EACY,EAAE,EAAE;IAC5B,MAAM,aAAa,GAAG,GAAG,EAAE;QAC1B,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,cAAc,IAAI,UAAU,KAAK,QAAQ,EAAE,CAAC;YAC/C,MAAM,GAAG;gBACR,oCAAoC,EAAE,cAAc;aACpD,CAAC;QACH,CAAC;QAED,IACC,kBAAkB;YAClB,CAAC,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,QAAQ,CAAC,EACnD,CAAC;YACF,MAAM,GAAG;gBACR,GAAG,MAAM;gBACT,2BAA2B,EAAE,kBAAkB;aAC/C,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC,CAAC;IAEF,OAAO,CACN,gDACkB,UAAU,EAC3B,SAAS,EAAE,8BAA8B,CAAC,EAAE,UAAU,EAAE,EAAE,SAAS,CAAC,EACpE,KAAK,EAAE,aAAa,EAAE,KAClB,SAAS,IAEZ,QAAQ,IAAI,QAAQ,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CACzC,oBAAC,QAAQ,IACR,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,cAAc,EAC1B,IAAI,EAAE,IAAI,EACV,GAAG,EAAC,EAAE,GACL,CACF,CAAC,CAAC,CAAC,SAAS,CACR,CACN,CAAC;AACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganpatiinfo/gids-react-web",
3
- "version": "20.0.0",
3
+ "version": "21.0.0",
4
4
  "private": false,
5
5
  "description": "This package is react web package with all components",
6
6
  "homepage": "https://ganpatiinfo-design-system.onrender.com/",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@ganpatiinfo/gids-core-shared": "^16.0.0",
47
- "@ganpatiinfo/gids-core-web": "^19.0.0",
47
+ "@ganpatiinfo/gids-core-web": "^20.0.0",
48
48
  "@ganpatiinfo/gids-web-shared": "^14.0.0",
49
49
  "@stencil/react-output-target": "^1.4.2"
50
50
  },
@@ -53,7 +53,7 @@
53
53
  "@fontsource/libre-caslon-text": "^5.2.7",
54
54
  "@ganpatiinfo/gids-storybook-theme": "^10.0.0",
55
55
  "@ganpatiinfo/gids-storybook-utilities": "^6.0.0",
56
- "@ganpatiinfo/gids-web-dom-reference": "^16.0.0",
56
+ "@ganpatiinfo/gids-web-dom-reference": "^17.0.0",
57
57
  "@ganpatiinfo/gids-web-theme-ganpatiinfo": "^8.0.0",
58
58
  "@jest/globals": "^30.2.0",
59
59
  "@storybook/addon-a11y": "^10.2.17",