@metamask-previews/design-system-react-native 0.0.0-preview.15db6d5 → 0.0.0-preview.3ab3ce4

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.
Files changed (90) hide show
  1. package/dist/components/Icon/Icon.assets.d.ts.map +1 -0
  2. package/dist/components/Icon/Icon.assets.js.map +1 -0
  3. package/dist/components/{Icons/Icon → Icon}/Icon.constants.d.ts +0 -1
  4. package/dist/components/Icon/Icon.constants.d.ts.map +1 -0
  5. package/dist/components/Icon/Icon.constants.js +22 -0
  6. package/dist/components/Icon/Icon.constants.js.map +1 -0
  7. package/dist/components/Icon/Icon.d.ts +5 -0
  8. package/dist/components/Icon/Icon.d.ts.map +1 -0
  9. package/dist/components/{Icons/Icon → Icon}/Icon.js +10 -6
  10. package/dist/components/Icon/Icon.js.map +1 -0
  11. package/dist/components/{Icons/Icon → Icon}/Icon.types.d.ts +37 -25
  12. package/dist/components/Icon/Icon.types.d.ts.map +1 -0
  13. package/dist/components/{Icons/Icon → Icon}/Icon.types.js +37 -25
  14. package/dist/components/Icon/Icon.types.js.map +1 -0
  15. package/dist/components/Icon/Icon.utilities.d.ts.map +1 -0
  16. package/dist/components/{Icons/Icon → Icon}/Icon.utilities.js +1 -1
  17. package/dist/components/Icon/Icon.utilities.js.map +1 -0
  18. package/dist/components/Icon/index.d.ts.map +1 -0
  19. package/dist/components/Icon/index.js.map +1 -0
  20. package/dist/components/Text/Text.d.ts +3 -10
  21. package/dist/components/Text/Text.d.ts.map +1 -1
  22. package/dist/components/Text/Text.js +1 -1
  23. package/dist/components/Text/Text.js.map +1 -1
  24. package/dist/components/Text/Text.types.d.ts +39 -29
  25. package/dist/components/Text/Text.types.d.ts.map +1 -1
  26. package/dist/components/Text/Text.types.js +39 -29
  27. package/dist/components/Text/Text.types.js.map +1 -1
  28. package/dist/components/Text/Text.utilities.js +1 -1
  29. package/dist/components/Text/Text.utilities.js.map +1 -1
  30. package/dist/components/Text/index.d.ts +1 -0
  31. package/dist/components/Text/index.d.ts.map +1 -1
  32. package/dist/components/Text/index.js.map +1 -1
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts +5 -0
  36. package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
  37. package/dist/primitives/ButtonAnimated/ButtonAnimated.js +58 -0
  38. package/dist/primitives/ButtonAnimated/ButtonAnimated.js.map +1 -0
  39. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts +6 -0
  40. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
  41. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js +3 -0
  42. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
  43. package/dist/primitives/ButtonAnimated/index.d.ts +2 -0
  44. package/dist/primitives/ButtonAnimated/index.d.ts.map +1 -0
  45. package/dist/primitives/ButtonAnimated/index.js +9 -0
  46. package/dist/primitives/ButtonAnimated/index.js.map +1 -0
  47. package/dist/primitives/TextOrChildren/TextOrChildren.d.ts +5 -0
  48. package/dist/primitives/TextOrChildren/TextOrChildren.d.ts.map +1 -0
  49. package/dist/primitives/TextOrChildren/TextOrChildren.js +15 -0
  50. package/dist/primitives/TextOrChildren/TextOrChildren.js.map +1 -0
  51. package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts +15 -0
  52. package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
  53. package/dist/primitives/TextOrChildren/TextOrChildren.types.js +3 -0
  54. package/dist/primitives/TextOrChildren/TextOrChildren.types.js.map +1 -0
  55. package/dist/temp-components/Spinner/Spinner.constants.d.ts +3 -0
  56. package/dist/temp-components/Spinner/Spinner.constants.d.ts.map +1 -0
  57. package/dist/temp-components/Spinner/Spinner.constants.js +21 -0
  58. package/dist/temp-components/Spinner/Spinner.constants.js.map +1 -0
  59. package/dist/temp-components/Spinner/Spinner.d.ts +5 -0
  60. package/dist/temp-components/Spinner/Spinner.d.ts.map +1 -0
  61. package/dist/temp-components/Spinner/Spinner.js +68 -0
  62. package/dist/temp-components/Spinner/Spinner.js.map +1 -0
  63. package/dist/temp-components/Spinner/Spinner.types.d.ts +30 -0
  64. package/dist/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
  65. package/dist/temp-components/Spinner/Spinner.types.js +3 -0
  66. package/dist/temp-components/Spinner/Spinner.types.js.map +1 -0
  67. package/dist/temp-components/Spinner/index.d.ts +3 -0
  68. package/dist/temp-components/Spinner/index.d.ts.map +1 -0
  69. package/dist/temp-components/Spinner/index.js +9 -0
  70. package/dist/temp-components/Spinner/index.js.map +1 -0
  71. package/package.json +4 -3
  72. package/dist/components/Icons/Icon/Icon.assets.d.ts.map +0 -1
  73. package/dist/components/Icons/Icon/Icon.assets.js.map +0 -1
  74. package/dist/components/Icons/Icon/Icon.constants.d.ts.map +0 -1
  75. package/dist/components/Icons/Icon/Icon.constants.js +0 -39
  76. package/dist/components/Icons/Icon/Icon.constants.js.map +0 -1
  77. package/dist/components/Icons/Icon/Icon.d.ts +0 -9
  78. package/dist/components/Icons/Icon/Icon.d.ts.map +0 -1
  79. package/dist/components/Icons/Icon/Icon.js.map +0 -1
  80. package/dist/components/Icons/Icon/Icon.types.d.ts.map +0 -1
  81. package/dist/components/Icons/Icon/Icon.types.js.map +0 -1
  82. package/dist/components/Icons/Icon/Icon.utilities.d.ts.map +0 -1
  83. package/dist/components/Icons/Icon/Icon.utilities.js.map +0 -1
  84. package/dist/components/Icons/Icon/index.d.ts.map +0 -1
  85. package/dist/components/Icons/Icon/index.js.map +0 -1
  86. /package/dist/components/{Icons/Icon → Icon}/Icon.assets.d.ts +0 -0
  87. /package/dist/components/{Icons/Icon → Icon}/Icon.assets.js +0 -0
  88. /package/dist/components/{Icons/Icon → Icon}/Icon.utilities.d.ts +0 -0
  89. /package/dist/components/{Icons/Icon → Icon}/index.d.ts +0 -0
  90. /package/dist/components/{Icons/Icon → Icon}/index.js +0 -0
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SAMPLE_ICON_PROPS = exports.TWCLASSMAP_ICON_ICONSIZE = exports.TWCLASSMAP_ICON_ICONCOLOR = exports.DEFAULT_ICON_ICONNAME = exports.DEFAULT_ICON_ICONCOLOR = exports.DEFAULT_ICON_ICONSIZE = void 0;
4
- const Icon_types_1 = require("./Icon.types");
5
- // Defaults
6
- exports.DEFAULT_ICON_ICONSIZE = Icon_types_1.IconSize.Md;
7
- exports.DEFAULT_ICON_ICONCOLOR = Icon_types_1.IconColor.IconDefault;
8
- exports.DEFAULT_ICON_ICONNAME = Icon_types_1.IconName.Add;
9
- // Mappings
10
- exports.TWCLASSMAP_ICON_ICONCOLOR = {
11
- [Icon_types_1.IconColor.IconDefault]: 'text-icon-default',
12
- [Icon_types_1.IconColor.IconAlternative]: 'text-icon-alternative',
13
- [Icon_types_1.IconColor.IconMuted]: 'text-icon-muted',
14
- [Icon_types_1.IconColor.OverlayInverse]: 'text-overlay-inverse',
15
- [Icon_types_1.IconColor.PrimaryDefault]: 'text-primary-default',
16
- [Icon_types_1.IconColor.PrimaryInverse]: 'text-primary-inverse',
17
- [Icon_types_1.IconColor.ErrorDefault]: 'text-error-default',
18
- [Icon_types_1.IconColor.ErrorInverse]: 'text-error-inverse',
19
- [Icon_types_1.IconColor.SuccessDefault]: 'text-success-default',
20
- [Icon_types_1.IconColor.SuccessInverse]: 'text-success-inverse',
21
- [Icon_types_1.IconColor.WarningDefault]: 'text-warning-default',
22
- [Icon_types_1.IconColor.WarningInverse]: 'text-warning-inverse',
23
- [Icon_types_1.IconColor.InfoDefault]: 'text-info-default',
24
- [Icon_types_1.IconColor.InfoInverse]: 'text-info-inverse',
25
- };
26
- exports.TWCLASSMAP_ICON_ICONSIZE = {
27
- [Icon_types_1.IconSize.Xs]: 'w-[12px] h-[12px]',
28
- [Icon_types_1.IconSize.Sm]: 'w-[16px] h-[16px]',
29
- [Icon_types_1.IconSize.Md]: 'w-[20px] h-[20px]',
30
- [Icon_types_1.IconSize.Lg]: 'w-[24px] h-[24px]',
31
- [Icon_types_1.IconSize.Xl]: 'w-[32px] h-[32px]',
32
- };
33
- // Sample consts
34
- exports.SAMPLE_ICON_PROPS = {
35
- name: exports.DEFAULT_ICON_ICONNAME,
36
- size: exports.DEFAULT_ICON_ICONSIZE,
37
- color: exports.DEFAULT_ICON_ICONCOLOR,
38
- };
39
- //# sourceMappingURL=Icon.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.constants.js","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/Icon.constants.ts"],"names":[],"mappings":";;;AAGA,6CAA6D;AAE7D,WAAW;AACE,QAAA,qBAAqB,GAAG,qBAAQ,CAAC,EAAE,CAAC;AACpC,QAAA,sBAAsB,GAAG,sBAAS,CAAC,WAAW,CAAC;AAC/C,QAAA,qBAAqB,GAAG,qBAAQ,CAAC,GAAG,CAAC;AAElD,WAAW;AACE,QAAA,yBAAyB,GAA8B;IAClE,CAAC,sBAAS,CAAC,WAAW,CAAC,EAAE,mBAAmB;IAC5C,CAAC,sBAAS,CAAC,eAAe,CAAC,EAAE,uBAAuB;IACpD,CAAC,sBAAS,CAAC,SAAS,CAAC,EAAE,iBAAiB;IACxC,CAAC,sBAAS,CAAC,cAAc,CAAC,EAAE,sBAAsB;IAClD,CAAC,sBAAS,CAAC,cAAc,CAAC,EAAE,sBAAsB;IAClD,CAAC,sBAAS,CAAC,cAAc,CAAC,EAAE,sBAAsB;IAClD,CAAC,sBAAS,CAAC,YAAY,CAAC,EAAE,oBAAoB;IAC9C,CAAC,sBAAS,CAAC,YAAY,CAAC,EAAE,oBAAoB;IAC9C,CAAC,sBAAS,CAAC,cAAc,CAAC,EAAE,sBAAsB;IAClD,CAAC,sBAAS,CAAC,cAAc,CAAC,EAAE,sBAAsB;IAClD,CAAC,sBAAS,CAAC,cAAc,CAAC,EAAE,sBAAsB;IAClD,CAAC,sBAAS,CAAC,cAAc,CAAC,EAAE,sBAAsB;IAClD,CAAC,sBAAS,CAAC,WAAW,CAAC,EAAE,mBAAmB;IAC5C,CAAC,sBAAS,CAAC,WAAW,CAAC,EAAE,mBAAmB;CAC7C,CAAC;AAEW,QAAA,wBAAwB,GAA6B;IAChE,CAAC,qBAAQ,CAAC,EAAE,CAAC,EAAE,mBAAmB;IAClC,CAAC,qBAAQ,CAAC,EAAE,CAAC,EAAE,mBAAmB;IAClC,CAAC,qBAAQ,CAAC,EAAE,CAAC,EAAE,mBAAmB;IAClC,CAAC,qBAAQ,CAAC,EAAE,CAAC,EAAE,mBAAmB;IAClC,CAAC,qBAAQ,CAAC,EAAE,CAAC,EAAE,mBAAmB;CACnC,CAAC;AAEF,gBAAgB;AACH,QAAA,iBAAiB,GAAc;IAC1C,IAAI,EAAE,6BAAqB;IAC3B,IAAI,EAAE,6BAAqB;IAC3B,KAAK,EAAE,8BAAsB;CAC9B,CAAC","sourcesContent":["/* eslint-disable import/prefer-default-export */\n// Internal dependencies.\nimport type { IconProps } from './Icon.types';\nimport { IconName, IconSize, IconColor } from './Icon.types';\n\n// Defaults\nexport const DEFAULT_ICON_ICONSIZE = IconSize.Md;\nexport const DEFAULT_ICON_ICONCOLOR = IconColor.IconDefault;\nexport const DEFAULT_ICON_ICONNAME = IconName.Add;\n\n// Mappings\nexport const TWCLASSMAP_ICON_ICONCOLOR: Record<IconColor, string> = {\n [IconColor.IconDefault]: 'text-icon-default',\n [IconColor.IconAlternative]: 'text-icon-alternative',\n [IconColor.IconMuted]: 'text-icon-muted',\n [IconColor.OverlayInverse]: 'text-overlay-inverse',\n [IconColor.PrimaryDefault]: 'text-primary-default',\n [IconColor.PrimaryInverse]: 'text-primary-inverse',\n [IconColor.ErrorDefault]: 'text-error-default',\n [IconColor.ErrorInverse]: 'text-error-inverse',\n [IconColor.SuccessDefault]: 'text-success-default',\n [IconColor.SuccessInverse]: 'text-success-inverse',\n [IconColor.WarningDefault]: 'text-warning-default',\n [IconColor.WarningInverse]: 'text-warning-inverse',\n [IconColor.InfoDefault]: 'text-info-default',\n [IconColor.InfoInverse]: 'text-info-inverse',\n};\n\nexport const TWCLASSMAP_ICON_ICONSIZE: Record<IconSize, string> = {\n [IconSize.Xs]: 'w-[12px] h-[12px]',\n [IconSize.Sm]: 'w-[16px] h-[16px]',\n [IconSize.Md]: 'w-[20px] h-[20px]',\n [IconSize.Lg]: 'w-[24px] h-[24px]',\n [IconSize.Xl]: 'w-[32px] h-[32px]',\n};\n\n// Sample consts\nexport const SAMPLE_ICON_PROPS: IconProps = {\n name: DEFAULT_ICON_ICONNAME,\n size: DEFAULT_ICON_ICONSIZE,\n color: DEFAULT_ICON_ICONCOLOR,\n};\n"]}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<{
3
- name: import("./Icon.types").IconName;
4
- size?: import("./Icon.types").IconSize | undefined;
5
- color?: import("./Icon.types").IconColor | undefined;
6
- twClassName?: string | undefined;
7
- } & import("react-native").ViewProps & React.RefAttributes<any>>;
8
- export default _default;
9
- //# sourceMappingURL=Icon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/Icon.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;;;;;;;AA2BvC,wBAAuC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAGuD;AACvD,+CAAuC;AAEvC,+CAAgD;AAChD,qDAG0B;AAE1B,qDAA0D;AAE1D,MAAM,IAAI,GAAG,CAAC,EACZ,IAAI,GAAG,sCAAqB,EAC5B,IAAI,EACJ,KAAK,GAAG,uCAAsB,EAC9B,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,GAAG,GAAG,6BAAe,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC1B,MAAM,gBAAgB,GAAG,IAAA,uCAAsB,EAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACjE,OAAO,EAAE,CAAA,GAAG,gBAAgB,EAAE,CAAC;IACjC,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAEtB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AAC7E,CAAC,CAAC;AAEF,kBAAe,IAAA,8CAAiB,EAAC,IAAI,CAAC,CAAC","sourcesContent":["import {\n useTailwind,\n withThemeProvider,\n} from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo } from 'react';\n\nimport { assetByIconName } from './Icon.assets';\nimport {\n DEFAULT_ICON_ICONSIZE,\n DEFAULT_ICON_ICONCOLOR,\n} from './Icon.constants';\nimport type { IconProps } from './Icon.types';\nimport { generateIconClassNames } from './Icon.utilities';\n\nconst Icon = ({\n size = DEFAULT_ICON_ICONSIZE,\n name,\n color = DEFAULT_ICON_ICONCOLOR,\n style,\n ...props\n}: IconProps) => {\n const tw = useTailwind();\n const SVG = assetByIconName[name];\n const styles = useMemo(() => {\n const mergedClassnames = generateIconClassNames({ color, size });\n return tw`${mergedClassnames}`;\n }, [color, size, tw]);\n\n return <SVG name={name} fill=\"currentColor\" style={[styles]} {...props} />;\n};\n\nexport default withThemeProvider(Icon);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/Icon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gBAAgB;IAC3B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.types.js","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/Icon.types.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACH,IAAY,SA6BX;AA7BD,WAAY,SAAS;IACnB,gCAAgC;IAChC,yCAA4B,CAAA;IAC5B,+BAA+B;IAC/B,iDAAoC,CAAA;IACpC,8DAA8D;IAC9D,qCAAwB,CAAA;IACxB,qFAAqF;IACrF,+CAAkC,CAAA;IAClC,iGAAiG;IACjG,+CAAkC,CAAA;IAClC,iFAAiF;IACjF,+CAAkC,CAAA;IAClC,0FAA0F;IAC1F,2CAA8B,CAAA;IAC9B,+EAA+E;IAC/E,2CAA8B,CAAA;IAC9B,oFAAoF;IACpF,+CAAkC,CAAA;IAClC,iFAAiF;IACjF,+CAAkC,CAAA;IAClC,yFAAyF;IACzF,+CAAkC,CAAA;IAClC,iFAAiF;IACjF,+CAAkC,CAAA;IAClC,sFAAsF;IACtF,yCAA4B,CAAA;IAC5B,8EAA8E;IAC9E,yCAA4B,CAAA;AAC9B,CAAC,EA7BW,SAAS,yBAAT,SAAS,QA6BpB;AAED;;GAEG;AACH,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;IACjB,6BAAiB,CAAA;IACjB,yCAA6B,CAAA;IAC7B,2CAA+B,CAAA;IAC/B,uCAA2B,CAAA;IAC3B,6CAAiC,CAAA;IACjC,2CAA+B,CAAA;IAC/B,yCAA6B,CAAA;IAC7B,yCAA6B,CAAA;IAC7B,yCAA6B,CAAA;IAC7B,iCAAqB,CAAA;IACrB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,uCAA2B,CAAA;IAC3B,mCAAuB,CAAA;IACvB,2BAAe,CAAA;IACf,uCAA2B,CAAA;IAC3B,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,6CAAiC,CAAA;IACjC,yCAA6B,CAAA;IAC7B,uBAAW,CAAA;IACX,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,mCAAuB,CAAA;IACvB,2CAA+B,CAAA;IAC/B,iDAAqC,CAAA;IACrC,qCAAyB,CAAA;IACzB,yBAAa,CAAA;IACb,qCAAyB,CAAA;IACzB,uCAA2B,CAAA;IAC3B,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,yBAAa,CAAA;AACf,CAAC,EA1JW,QAAQ,wBAAR,QAAQ,QA0JnB","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\n// Third party dependencies.\nimport type React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { SvgProps } from 'react-native-svg';\n\n/**\n * Icon color\n */\nexport enum IconColor {\n /** For default neutral icons */\n IconDefault = 'icon-default',\n /** For softer neutral icons */\n IconAlternative = 'icon-alternative',\n /** For the weakest contrast neutral icons (not accessible) */\n IconMuted = 'icon-muted',\n /** For elements used on top of overlay/alternative. Used for text, icon or border */\n OverlayInverse = 'overlay-inverse',\n /** For interactive, active, and selected semantics. Used for text, background, icon or border */\n PrimaryDefault = 'primary-default',\n /** For elements used on top of primary/default. Used for text, icon or border */\n PrimaryInverse = 'primary-inverse',\n /** For the critical alert semantic elements. Used for text, background, icon or border */\n ErrorDefault = 'error-default',\n /** For elements used on top of error/default. Used for text, icon or border */\n ErrorInverse = 'error-inverse',\n /** For the positive semantic elements. Used for text, background, icon or border */\n SuccessDefault = 'success-default',\n /** For elements used on top of success/default. Used for text, icon or border */\n SuccessInverse = 'success-inverse',\n /** For the caution alert semantic elements. Used for text, background, icon or border */\n WarningDefault = 'warning-default',\n /** For elements used on top of warning/default. Used for text, icon or border */\n WarningInverse = 'warning-inverse',\n /** For informational read-only elements. Used for text, background, icon or border */\n InfoDefault = 'info-default',\n /** For elements used on top of info/default. Used for text, icon or border */\n InfoInverse = 'info-inverse',\n}\n\n/**\n * Icon sizes\n */\nexport enum IconSize {\n /** Extra small - 12px */\n Xs = 'xs',\n /** Small - 16px */\n Sm = 'sm',\n /** Medium - 20px (Default) */\n Md = 'md',\n /** Large - 24px */\n Lg = 'lg',\n /** Extra large - 32px */\n Xl = 'xl',\n}\n\n/**\n * Icon component props.\n */\nexport type IconProps = {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * Asset stored by icon name\n */\nexport type AssetByIconName = {\n [key in IconName]: React.FC<SvgProps & { name: string }>;\n};\n\n// /////////////////////////////////////////////////////\n// This is generated code - Manually add types above\n// DO NOT EDIT - Use generate-assets.js\n// /////////////////////////////////////////////////////\n\n/**\n * Icon names\n */\nexport enum IconName {\n AddSquare = 'AddSquare',\n Add = 'Add',\n Arrow2Down = 'Arrow2Down',\n Arrow2Left = 'Arrow2Left',\n Arrow2Right = 'Arrow2Right',\n Arrow2UpRight = 'Arrow2UpRight',\n Arrow2Up = 'Arrow2Up',\n ArrowDoubleLeft = 'ArrowDoubleLeft',\n ArrowDoubleRight = 'ArrowDoubleRight',\n ArrowDown = 'ArrowDown',\n ArrowLeft = 'ArrowLeft',\n ArrowRight = 'ArrowRight',\n ArrowUp = 'ArrowUp',\n Ban = 'Ban',\n BankToken = 'BankToken',\n Bank = 'Bank',\n Bold = 'Bold',\n Book = 'Book',\n Bookmark = 'Bookmark',\n Bridge = 'Bridge',\n Calculator = 'Calculator',\n CardPos = 'CardPos',\n CardToken = 'CardToken',\n Card = 'Card',\n Category = 'Category',\n Chart = 'Chart',\n CheckBold = 'CheckBold',\n Check = 'Check',\n CircleX = 'CircleX',\n Clock = 'Clock',\n Close = 'Close',\n CodeCircle = 'CodeCircle',\n Coin = 'Coin',\n Collapse = 'Collapse',\n Confirmation = 'Confirmation',\n Connect = 'Connect',\n CopySuccess = 'CopySuccess',\n Copy = 'Copy',\n Customize = 'Customize',\n Danger = 'Danger',\n Dark = 'Dark',\n Data = 'Data',\n Diagram = 'Diagram',\n DocumentCode = 'DocumentCode',\n Download = 'Download',\n Edit = 'Edit',\n Eraser = 'Eraser',\n Ethereum = 'Ethereum',\n Expand = 'Expand',\n Explore = 'Explore',\n Export = 'Export',\n EyeSlash = 'EyeSlash',\n Eye = 'Eye',\n File = 'File',\n Filter = 'Filter',\n Flag = 'Flag',\n FlashSlash = 'FlashSlash',\n Flash = 'Flash',\n Flask = 'Flask',\n FullCircle = 'FullCircle',\n Gas = 'Gas',\n GlobalSearch = 'GlobalSearch',\n Global = 'Global',\n Graph = 'Graph',\n Hardware = 'Hardware',\n Heart = 'Heart',\n Hierarchy = 'Hierarchy',\n Home = 'Home',\n Import = 'Import',\n Info = 'Info',\n Key = 'Key',\n Light = 'Light',\n Link = 'Link',\n Loading = 'Loading',\n LockCircle = 'LockCircle',\n LockSlash = 'LockSlash',\n Lock = 'Lock',\n Login = 'Login',\n Logout = 'Logout',\n Menu = 'Menu',\n MessageQuestion = 'MessageQuestion',\n Messages = 'Messages',\n MinusBold = 'MinusBold',\n MinusSquare = 'MinusSquare',\n Minus = 'Minus',\n Mobile = 'Mobile',\n Money = 'Money',\n Monitor = 'Monitor',\n MoreHorizontal = 'MoreHorizontal',\n MoreVertical = 'MoreVertical',\n NotificationCircle = 'NotificationCircle',\n Notification = 'Notification',\n PasswordCheck = 'PasswordCheck',\n People = 'People',\n Pin = 'Pin',\n Plug = 'Plug',\n PlusMinus = 'PlusMinus',\n ProgrammingArrows = 'ProgrammingArrows',\n QrCode = 'QrCode',\n Question = 'Question',\n Received = 'Received',\n Refresh = 'Refresh',\n Save = 'Save',\n ScanBarcode = 'ScanBarcode',\n ScanFocus = 'ScanFocus',\n Scan = 'Scan',\n Scroll = 'Scroll',\n Search = 'Search',\n SecurityCard = 'SecurityCard',\n SecurityCross = 'SecurityCross',\n SecurityKey = 'SecurityKey',\n SecuritySearch = 'SecuritySearch',\n SecuritySlash = 'SecuritySlash',\n SecurityTick = 'SecurityTick',\n SecurityTime = 'SecurityTime',\n SecurityUser = 'SecurityUser',\n Security = 'Security',\n Send1 = 'Send1',\n Send2 = 'Send2',\n Setting = 'Setting',\n Share = 'Share',\n Slash = 'Slash',\n SnapsMobile = 'SnapsMobile',\n SnapsPlus = 'SnapsPlus',\n Snaps = 'Snaps',\n Speedometer = 'Speedometer',\n Square = 'Square',\n Stake = 'Stake',\n Star = 'Star',\n Student = 'Student',\n SwapHorizontal = 'SwapHorizontal',\n SwapVertical = 'SwapVertical',\n Tag = 'Tag',\n Tilde = 'Tilde',\n Timer = 'Timer',\n Tint = 'Tint',\n Trash = 'Trash',\n TrendDown = 'TrendDown',\n TrendUp = 'TrendUp',\n Twitter = 'Twitter',\n Unpin = 'Unpin',\n Upload = 'Upload',\n Usb = 'Usb',\n UserCheck = 'UserCheck',\n UserCircleAdd = 'UserCircleAdd',\n UserCircleRemove = 'UserCircleRemove',\n UserCircle = 'UserCircle',\n User = 'User',\n WalletCard = 'WalletCard',\n WalletMoney = 'WalletMoney',\n Wallet = 'Wallet',\n Warning = 'Warning',\n Wifi = 'Wifi',\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.utilities.d.ts","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/Icon.utilities.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,kCAIhC,QAAQ,SAAS,CAAC,KAAG,MAGvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.utilities.js","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/Icon.utilities.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,wCAAwC;AACxC,qDAK0B;AAG1B;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,sBAAsB,GAAG,CAAC,EACrC,KAAK,GAAG,uCAAsB,EAC9B,IAAI,GAAG,sCAAqB,EAC5B,WAAW,GAAG,EAAE,GACG,EAAU,EAAE;IAC/B,MAAM,gBAAgB,GAAG,GAAG,0CAAyB,CAAC,KAAK,CAAC,IAAI,yCAAwB,CAAC,IAAI,CAAC,IAAI,WAAW,EAAE,CAAC;IAChH,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAPW,QAAA,sBAAsB,0BAOjC","sourcesContent":["/* eslint-disable jsdoc/check-param-names */\n/* eslint-disable jsdoc/require-param */\nimport {\n DEFAULT_ICON_ICONCOLOR,\n DEFAULT_ICON_ICONSIZE,\n TWCLASSMAP_ICON_ICONCOLOR,\n TWCLASSMAP_ICON_ICONSIZE,\n} from './Icon.constants';\nimport type { IconProps } from './Icon.types';\n\n/**\n * Generates a Tailwind class name for the icon based on color and optional additional classes.\n *\n * @param color - The color of the icon, mapped to a Tailwind class.\n * @param size - Different sizes map to specific pixel dimensions\n * @param twClassName - Additional Tailwind class names for customization.\n * @returns A combined string of class names.\n *\n * Example:\n * ```\n * const classNames = generateIconClassNames({\n * color: IconColor.IconDefault,\n * size: IconSize.Md\n * });\n *\n * console.log(classNames);\n * // Output: \"text-icon-default w-[20px] h-[20px]\"\n * ```\n */\nexport const generateIconClassNames = ({\n color = DEFAULT_ICON_ICONCOLOR,\n size = DEFAULT_ICON_ICONSIZE,\n twClassName = '',\n}: Partial<IconProps>): string => {\n const mergedClassnames = `${TWCLASSMAP_ICON_ICONCOLOR[color]} ${TWCLASSMAP_ICON_ICONSIZE[size]} ${twClassName}`;\n return mergedClassnames;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Icons/Icon/index.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAiC;AAAxB,gHAAA,OAAO,OAAA;AAChB,2CAA6D;AAApD,sGAAA,QAAQ,OAAA;AAAE,sGAAA,QAAQ,OAAA;AAAE,uGAAA,SAAS,OAAA","sourcesContent":["export { default } from './Icon';\nexport { IconSize, IconName, IconColor } from './Icon.types';\nexport type { IconProps } from './Icon.types';\n"]}
File without changes
File without changes