@metamask-previews/design-system-shared 0.4.0-preview.fa05289 → 0.6.0-preview.8028c20

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 (114) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/index.cjs +11 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +7 -0
  5. package/dist/index.d.cts.map +1 -1
  6. package/dist/index.d.mts +7 -0
  7. package/dist/index.d.mts.map +1 -1
  8. package/dist/index.mjs +5 -0
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/types/AvatarBase/AvatarBase.types.cjs +44 -0
  11. package/dist/types/AvatarBase/AvatarBase.types.cjs.map +1 -0
  12. package/dist/types/AvatarBase/AvatarBase.types.d.cts +78 -0
  13. package/dist/types/AvatarBase/AvatarBase.types.d.cts.map +1 -0
  14. package/dist/types/AvatarBase/AvatarBase.types.d.mts +78 -0
  15. package/dist/types/AvatarBase/AvatarBase.types.d.mts.map +1 -0
  16. package/dist/types/AvatarBase/AvatarBase.types.mjs +41 -0
  17. package/dist/types/AvatarBase/AvatarBase.types.mjs.map +1 -0
  18. package/dist/types/AvatarBase/index.cjs +7 -0
  19. package/dist/types/AvatarBase/index.cjs.map +1 -0
  20. package/dist/types/AvatarBase/index.d.cts +2 -0
  21. package/dist/types/AvatarBase/index.d.cts.map +1 -0
  22. package/dist/types/AvatarBase/index.d.mts +2 -0
  23. package/dist/types/AvatarBase/index.d.mts.map +1 -0
  24. package/dist/types/AvatarBase/index.mjs +2 -0
  25. package/dist/types/AvatarBase/index.mjs.map +1 -0
  26. package/dist/types/AvatarNetwork/AvatarNetwork.types.cjs +3 -0
  27. package/dist/types/AvatarNetwork/AvatarNetwork.types.cjs.map +1 -0
  28. package/dist/types/AvatarNetwork/AvatarNetwork.types.d.cts +20 -0
  29. package/dist/types/AvatarNetwork/AvatarNetwork.types.d.cts.map +1 -0
  30. package/dist/types/AvatarNetwork/AvatarNetwork.types.d.mts +20 -0
  31. package/dist/types/AvatarNetwork/AvatarNetwork.types.d.mts.map +1 -0
  32. package/dist/types/AvatarNetwork/AvatarNetwork.types.mjs +2 -0
  33. package/dist/types/AvatarNetwork/AvatarNetwork.types.mjs.map +1 -0
  34. package/dist/types/AvatarNetwork/index.cjs +3 -0
  35. package/dist/types/AvatarNetwork/index.cjs.map +1 -0
  36. package/dist/types/AvatarNetwork/index.d.cts +2 -0
  37. package/dist/types/AvatarNetwork/index.d.cts.map +1 -0
  38. package/dist/types/AvatarNetwork/index.d.mts +2 -0
  39. package/dist/types/AvatarNetwork/index.d.mts.map +1 -0
  40. package/dist/types/AvatarNetwork/index.mjs +2 -0
  41. package/dist/types/AvatarNetwork/index.mjs.map +1 -0
  42. package/dist/types/BadgeWrapper/BadgeWrapper.types.cjs +40 -0
  43. package/dist/types/BadgeWrapper/BadgeWrapper.types.cjs.map +1 -0
  44. package/dist/types/BadgeWrapper/BadgeWrapper.types.d.cts +99 -0
  45. package/dist/types/BadgeWrapper/BadgeWrapper.types.d.cts.map +1 -0
  46. package/dist/types/BadgeWrapper/BadgeWrapper.types.d.mts +99 -0
  47. package/dist/types/BadgeWrapper/BadgeWrapper.types.d.mts.map +1 -0
  48. package/dist/types/BadgeWrapper/BadgeWrapper.types.mjs +37 -0
  49. package/dist/types/BadgeWrapper/BadgeWrapper.types.mjs.map +1 -0
  50. package/dist/types/BadgeWrapper/index.cjs +7 -0
  51. package/dist/types/BadgeWrapper/index.cjs.map +1 -0
  52. package/dist/types/BadgeWrapper/index.d.cts +2 -0
  53. package/dist/types/BadgeWrapper/index.d.cts.map +1 -0
  54. package/dist/types/BadgeWrapper/index.d.mts +2 -0
  55. package/dist/types/BadgeWrapper/index.d.mts.map +1 -0
  56. package/dist/types/BadgeWrapper/index.mjs +2 -0
  57. package/dist/types/BadgeWrapper/index.mjs.map +1 -0
  58. package/dist/types/BoxHorizontal/BoxHorizontal.types.cjs +3 -0
  59. package/dist/types/BoxHorizontal/BoxHorizontal.types.cjs.map +1 -0
  60. package/dist/types/BoxHorizontal/BoxHorizontal.types.d.cts +17 -0
  61. package/dist/types/BoxHorizontal/BoxHorizontal.types.d.cts.map +1 -0
  62. package/dist/types/BoxHorizontal/BoxHorizontal.types.d.mts +17 -0
  63. package/dist/types/BoxHorizontal/BoxHorizontal.types.d.mts.map +1 -0
  64. package/dist/types/BoxHorizontal/BoxHorizontal.types.mjs +2 -0
  65. package/dist/types/BoxHorizontal/BoxHorizontal.types.mjs.map +1 -0
  66. package/dist/types/BoxHorizontal/index.cjs +3 -0
  67. package/dist/types/BoxHorizontal/index.cjs.map +1 -0
  68. package/dist/types/BoxHorizontal/index.d.cts +2 -0
  69. package/dist/types/BoxHorizontal/index.d.cts.map +1 -0
  70. package/dist/types/BoxHorizontal/index.d.mts +2 -0
  71. package/dist/types/BoxHorizontal/index.d.mts.map +1 -0
  72. package/dist/types/BoxHorizontal/index.mjs +2 -0
  73. package/dist/types/BoxHorizontal/index.mjs.map +1 -0
  74. package/dist/types/BoxVertical/BoxVertical.types.cjs +3 -0
  75. package/dist/types/BoxVertical/BoxVertical.types.cjs.map +1 -0
  76. package/dist/types/BoxVertical/BoxVertical.types.d.cts +17 -0
  77. package/dist/types/BoxVertical/BoxVertical.types.d.cts.map +1 -0
  78. package/dist/types/BoxVertical/BoxVertical.types.d.mts +17 -0
  79. package/dist/types/BoxVertical/BoxVertical.types.d.mts.map +1 -0
  80. package/dist/types/BoxVertical/BoxVertical.types.mjs +2 -0
  81. package/dist/types/BoxVertical/BoxVertical.types.mjs.map +1 -0
  82. package/dist/types/BoxVertical/index.cjs +3 -0
  83. package/dist/types/BoxVertical/index.cjs.map +1 -0
  84. package/dist/types/BoxVertical/index.d.cts +2 -0
  85. package/dist/types/BoxVertical/index.d.cts.map +1 -0
  86. package/dist/types/BoxVertical/index.d.mts +2 -0
  87. package/dist/types/BoxVertical/index.d.mts.map +1 -0
  88. package/dist/types/BoxVertical/index.mjs +2 -0
  89. package/dist/types/BoxVertical/index.mjs.map +1 -0
  90. package/dist/types/TextOrChildren/TextOrChildren.types.cjs +3 -0
  91. package/dist/types/TextOrChildren/TextOrChildren.types.cjs.map +1 -0
  92. package/dist/types/TextOrChildren/TextOrChildren.types.d.cts +12 -0
  93. package/dist/types/TextOrChildren/TextOrChildren.types.d.cts.map +1 -0
  94. package/dist/types/TextOrChildren/TextOrChildren.types.d.mts +12 -0
  95. package/dist/types/TextOrChildren/TextOrChildren.types.d.mts.map +1 -0
  96. package/dist/types/TextOrChildren/TextOrChildren.types.mjs +2 -0
  97. package/dist/types/TextOrChildren/TextOrChildren.types.mjs.map +1 -0
  98. package/dist/types/TextOrChildren/index.cjs +3 -0
  99. package/dist/types/TextOrChildren/index.cjs.map +1 -0
  100. package/dist/types/TextOrChildren/index.d.cts +2 -0
  101. package/dist/types/TextOrChildren/index.d.cts.map +1 -0
  102. package/dist/types/TextOrChildren/index.d.mts +2 -0
  103. package/dist/types/TextOrChildren/index.d.mts.map +1 -0
  104. package/dist/types/TextOrChildren/index.mjs +2 -0
  105. package/dist/types/TextOrChildren/index.mjs.map +1 -0
  106. package/dist/utils/isReactNodeRenderable.cjs +20 -0
  107. package/dist/utils/isReactNodeRenderable.cjs.map +1 -0
  108. package/dist/utils/isReactNodeRenderable.d.cts +15 -0
  109. package/dist/utils/isReactNodeRenderable.d.cts.map +1 -0
  110. package/dist/utils/isReactNodeRenderable.d.mts +15 -0
  111. package/dist/utils/isReactNodeRenderable.d.mts.map +1 -0
  112. package/dist/utils/isReactNodeRenderable.mjs +16 -0
  113. package/dist/utils/isReactNodeRenderable.mjs.map +1 -0
  114. package/package.json +6 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.6.0]
11
+
12
+ ### Changed
13
+
14
+ - Added shared `BadgeWrapper` const objects and props (`BadgeWrapperPosition`, `BadgeWrapperPositionAnchorShape`, `BadgeWrapperCustomPosition`, `BadgeWrapperPropsShared`) so React and React Native now consume a single source of truth for the ADR-0003/ADR-0004 types; both platform packages re-export the shared definitions so existing imports keep working even as the shared package remains the canonical source. See the [design-system-react migration guide](../design-system-react/MIGRATION.md#from-version-0120-to-0130) for additional guidance ([#1014](https://github.com/MetaMask/metamask-design-system/pull/1014)).
15
+
16
+ ## [0.5.0]
17
+
18
+ ### Added
19
+
20
+ - Added shared `BannerAlertSeverity` and `BannerAlertPropsShared` types for cross-package reuse ([#975](https://github.com/MetaMask/metamask-design-system/pull/975))
21
+ - Added shared `AvatarNetworkPropsShared` type (ADR-0004) for cross-package reuse ([#997](https://github.com/MetaMask/metamask-design-system/pull/997))
22
+
10
23
  ## [0.4.0]
11
24
 
12
25
  ### Added
@@ -62,7 +75,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
62
75
  - **Initial release** - MetaMask Design System Shared
63
76
  - Adding CAIP-10 address utilities ([#817](https://github.com/MetaMask/metamask-design-system/pull/817))
64
77
 
65
- [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.4.0...HEAD
78
+ [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.6.0...HEAD
79
+ [0.6.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.5.0...@metamask/design-system-shared@0.6.0
80
+ [0.5.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.4.0...@metamask/design-system-shared@0.5.0
66
81
  [0.4.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.3.0...@metamask/design-system-shared@0.4.0
67
82
  [0.3.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.2.0...@metamask/design-system-shared@0.3.0
68
83
  [0.2.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.1.3...@metamask/design-system-shared@0.2.0
package/dist/index.cjs CHANGED
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BannerAlertSeverity = exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.BadgeCountSize = exports.generateIconSeed = exports.isEthereumAddress = exports.generateSeedNonEthereum = exports.generateSeedEthereum = exports.extractAccountAddress = void 0;
3
+ exports.BadgeWrapperPosition = exports.BadgeWrapperPositionAnchorShape = exports.BannerAlertSeverity = exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.BadgeCountSize = exports.AvatarBaseShape = exports.AvatarBaseSize = exports.isReactNodeRenderable = exports.generateIconSeed = exports.isEthereumAddress = exports.generateSeedNonEthereum = exports.generateSeedEthereum = exports.extractAccountAddress = void 0;
4
4
  var caip_address_1 = require("./utils/caip-address.cjs");
5
5
  Object.defineProperty(exports, "extractAccountAddress", { enumerable: true, get: function () { return caip_address_1.extractAccountAddress; } });
6
6
  Object.defineProperty(exports, "generateSeedEthereum", { enumerable: true, get: function () { return caip_address_1.generateSeedEthereum; } });
7
7
  Object.defineProperty(exports, "generateSeedNonEthereum", { enumerable: true, get: function () { return caip_address_1.generateSeedNonEthereum; } });
8
8
  Object.defineProperty(exports, "isEthereumAddress", { enumerable: true, get: function () { return caip_address_1.isEthereumAddress; } });
9
9
  Object.defineProperty(exports, "generateIconSeed", { enumerable: true, get: function () { return caip_address_1.generateIconSeed; } });
10
+ var isReactNodeRenderable_1 = require("./utils/isReactNodeRenderable.cjs");
11
+ Object.defineProperty(exports, "isReactNodeRenderable", { enumerable: true, get: function () { return isReactNodeRenderable_1.isReactNodeRenderable; } });
12
+ // AvatarBase types (ADR-0003 + ADR-0004)
13
+ var AvatarBase_1 = require("./types/AvatarBase/index.cjs");
14
+ Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return AvatarBase_1.AvatarBaseSize; } });
15
+ Object.defineProperty(exports, "AvatarBaseShape", { enumerable: true, get: function () { return AvatarBase_1.AvatarBaseShape; } });
10
16
  // BadgeCount types (ADR-0003 + ADR-0004)
11
17
  var BadgeCount_1 = require("./types/BadgeCount/index.cjs");
12
18
  Object.defineProperty(exports, "BadgeCountSize", { enumerable: true, get: function () { return BadgeCount_1.BadgeCountSize; } });
@@ -17,4 +23,8 @@ Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: funct
17
23
  // BannerAlert types (ADR-0003 + ADR-0004)
18
24
  var BannerAlert_1 = require("./types/BannerAlert/index.cjs");
19
25
  Object.defineProperty(exports, "BannerAlertSeverity", { enumerable: true, get: function () { return BannerAlert_1.BannerAlertSeverity; } });
26
+ // BadgeWrapper types (ADR-0003 + ADR-0004)
27
+ var BadgeWrapper_1 = require("./types/BadgeWrapper/index.cjs");
28
+ Object.defineProperty(exports, "BadgeWrapperPositionAnchorShape", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPositionAnchorShape; } });
29
+ Object.defineProperty(exports, "BadgeWrapperPosition", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPosition; } });
20
30
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAM8B;AAL5B,qHAAA,qBAAqB,OAAA;AACrB,oHAAA,oBAAoB,OAAA;AACpB,uHAAA,uBAAuB,OAAA;AACvB,iHAAA,iBAAiB,OAAA;AACjB,gHAAA,gBAAgB,OAAA;AAGlB,yCAAyC;AACzC,2DAAgF;AAAvE,4GAAA,cAAc,OAAA;AAEvB,0CAA0C;AAC1C,6DAI6B;AAH3B,gHAAA,iBAAiB,OAAA;AACjB,8GAAA,eAAe,OAAA;AAUjB,0CAA0C;AAC1C,6DAG6B;AAF3B,kHAAA,mBAAmB,OAAA","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\n\n// BadgeCount types (ADR-0003 + ADR-0004)\nexport { BadgeCountSize, type BadgeCountPropsShared } from './types/BadgeCount';\n\n// BadgeStatus types (ADR-0003 + ADR-0004)\nexport {\n BadgeStatusStatus,\n BadgeStatusSize,\n type BadgeStatusPropsShared,\n} from './types/BadgeStatus';\n\n// BannerBase types (ADR-0004)\nexport { type BannerBasePropsShared } from './types/BannerBase';\n\n// ButtonFilter types (ADR-0004)\nexport { type ButtonFilterPropsShared } from './types/ButtonFilter';\n\n// BannerAlert types (ADR-0003 + ADR-0004)\nexport {\n BannerAlertSeverity,\n type BannerAlertPropsShared,\n} from './types/BannerAlert';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAM8B;AAL5B,qHAAA,qBAAqB,OAAA;AACrB,oHAAA,oBAAoB,OAAA;AACpB,uHAAA,uBAAuB,OAAA;AACvB,iHAAA,iBAAiB,OAAA;AACjB,gHAAA,gBAAgB,OAAA;AAGlB,2EAAsE;AAA7D,8HAAA,qBAAqB,OAAA;AAE9B,yCAAyC;AACzC,2DAI4B;AAH1B,4GAAA,cAAc,OAAA;AACd,6GAAA,eAAe,OAAA;AAIjB,yCAAyC;AACzC,2DAAgF;AAAvE,4GAAA,cAAc,OAAA;AAEvB,0CAA0C;AAC1C,6DAI6B;AAH3B,gHAAA,iBAAiB,OAAA;AACjB,8GAAA,eAAe,OAAA;AAsBjB,0CAA0C;AAC1C,6DAG6B;AAF3B,kHAAA,mBAAmB,OAAA;AAIrB,2CAA2C;AAC3C,+DAK8B;AAJ5B,+HAAA,+BAA+B,OAAA;AAC/B,oHAAA,oBAAoB,OAAA","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\n\nexport { isReactNodeRenderable } from './utils/isReactNodeRenderable';\n\n// AvatarBase types (ADR-0003 + ADR-0004)\nexport {\n AvatarBaseSize,\n AvatarBaseShape,\n type AvatarBasePropsShared,\n} from './types/AvatarBase';\n\n// BadgeCount types (ADR-0003 + ADR-0004)\nexport { BadgeCountSize, type BadgeCountPropsShared } from './types/BadgeCount';\n\n// BadgeStatus types (ADR-0003 + ADR-0004)\nexport {\n BadgeStatusStatus,\n BadgeStatusSize,\n type BadgeStatusPropsShared,\n} from './types/BadgeStatus';\n\n// BannerBase types (ADR-0004)\nexport { type BannerBasePropsShared } from './types/BannerBase';\n\n// TextOrChildren types (ADR-0004)\nexport { type TextOrChildrenPropsShared } from './types/TextOrChildren';\n\n// BoxHorizontal types (ADR-0004)\nexport { type BoxHorizontalPropsShared } from './types/BoxHorizontal';\n\n// BoxVertical types (ADR-0004)\nexport { type BoxVerticalPropsShared } from './types/BoxVertical';\n\n// ButtonFilter types (ADR-0004)\nexport { type ButtonFilterPropsShared } from './types/ButtonFilter';\n\n// AvatarNetwork types (ADR-0004)\nexport { type AvatarNetworkPropsShared } from './types/AvatarNetwork';\n\n// BannerAlert types (ADR-0003 + ADR-0004)\nexport {\n BannerAlertSeverity,\n type BannerAlertPropsShared,\n} from './types/BannerAlert';\n\n// BadgeWrapper types (ADR-0003 + ADR-0004)\nexport {\n BadgeWrapperPositionAnchorShape,\n BadgeWrapperPosition,\n type BadgeWrapperCustomPosition,\n type BadgeWrapperPropsShared,\n} from './types/BadgeWrapper';\n"]}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,14 @@
1
1
  export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed, } from "./utils/caip-address.cjs";
2
+ export { isReactNodeRenderable } from "./utils/isReactNodeRenderable.cjs";
3
+ export { AvatarBaseSize, AvatarBaseShape, type AvatarBasePropsShared, } from "./types/AvatarBase/index.cjs";
2
4
  export { BadgeCountSize, type BadgeCountPropsShared } from "./types/BadgeCount/index.cjs";
3
5
  export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./types/BadgeStatus/index.cjs";
4
6
  export { type BannerBasePropsShared } from "./types/BannerBase/index.cjs";
7
+ export { type TextOrChildrenPropsShared } from "./types/TextOrChildren/index.cjs";
8
+ export { type BoxHorizontalPropsShared } from "./types/BoxHorizontal/index.cjs";
9
+ export { type BoxVerticalPropsShared } from "./types/BoxVertical/index.cjs";
5
10
  export { type ButtonFilterPropsShared } from "./types/ButtonFilter/index.cjs";
11
+ export { type AvatarNetworkPropsShared } from "./types/AvatarNetwork/index.cjs";
6
12
  export { BannerAlertSeverity, type BannerAlertPropsShared, } from "./types/BannerAlert/index.cjs";
13
+ export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition, type BadgeWrapperCustomPosition, type BadgeWrapperPropsShared, } from "./types/BadgeWrapper/index.cjs";
7
14
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,iCAA6B;AAG9B,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhF,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhE,OAAO,EAAE,KAAK,uBAAuB,EAAE,uCAA6B;AAGpE,OAAO,EACL,mBAAmB,EACnB,KAAK,sBAAsB,GAC5B,sCAA4B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,iCAA6B;AAE9B,OAAO,EAAE,qBAAqB,EAAE,0CAAsC;AAGtE,OAAO,EACL,cAAc,EACd,eAAe,EACf,KAAK,qBAAqB,GAC3B,qCAA2B;AAG5B,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhF,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhE,OAAO,EAAE,KAAK,yBAAyB,EAAE,yCAA+B;AAGxE,OAAO,EAAE,KAAK,wBAAwB,EAAE,wCAA8B;AAGtE,OAAO,EAAE,KAAK,sBAAsB,EAAE,sCAA4B;AAGlE,OAAO,EAAE,KAAK,uBAAuB,EAAE,uCAA6B;AAGpE,OAAO,EAAE,KAAK,wBAAwB,EAAE,wCAA8B;AAGtE,OAAO,EACL,mBAAmB,EACnB,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,GAC7B,uCAA6B"}
package/dist/index.d.mts CHANGED
@@ -1,7 +1,14 @@
1
1
  export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed, } from "./utils/caip-address.mjs";
2
+ export { isReactNodeRenderable } from "./utils/isReactNodeRenderable.mjs";
3
+ export { AvatarBaseSize, AvatarBaseShape, type AvatarBasePropsShared, } from "./types/AvatarBase/index.mjs";
2
4
  export { BadgeCountSize, type BadgeCountPropsShared } from "./types/BadgeCount/index.mjs";
3
5
  export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./types/BadgeStatus/index.mjs";
4
6
  export { type BannerBasePropsShared } from "./types/BannerBase/index.mjs";
7
+ export { type TextOrChildrenPropsShared } from "./types/TextOrChildren/index.mjs";
8
+ export { type BoxHorizontalPropsShared } from "./types/BoxHorizontal/index.mjs";
9
+ export { type BoxVerticalPropsShared } from "./types/BoxVertical/index.mjs";
5
10
  export { type ButtonFilterPropsShared } from "./types/ButtonFilter/index.mjs";
11
+ export { type AvatarNetworkPropsShared } from "./types/AvatarNetwork/index.mjs";
6
12
  export { BannerAlertSeverity, type BannerAlertPropsShared, } from "./types/BannerAlert/index.mjs";
13
+ export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition, type BadgeWrapperCustomPosition, type BadgeWrapperPropsShared, } from "./types/BadgeWrapper/index.mjs";
7
14
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,iCAA6B;AAG9B,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhF,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhE,OAAO,EAAE,KAAK,uBAAuB,EAAE,uCAA6B;AAGpE,OAAO,EACL,mBAAmB,EACnB,KAAK,sBAAsB,GAC5B,sCAA4B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,iCAA6B;AAE9B,OAAO,EAAE,qBAAqB,EAAE,0CAAsC;AAGtE,OAAO,EACL,cAAc,EACd,eAAe,EACf,KAAK,qBAAqB,GAC3B,qCAA2B;AAG5B,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhF,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhE,OAAO,EAAE,KAAK,yBAAyB,EAAE,yCAA+B;AAGxE,OAAO,EAAE,KAAK,wBAAwB,EAAE,wCAA8B;AAGtE,OAAO,EAAE,KAAK,sBAAsB,EAAE,sCAA4B;AAGlE,OAAO,EAAE,KAAK,uBAAuB,EAAE,uCAA6B;AAGpE,OAAO,EAAE,KAAK,wBAAwB,EAAE,wCAA8B;AAGtE,OAAO,EACL,mBAAmB,EACnB,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,GAC7B,uCAA6B"}
package/dist/index.mjs CHANGED
@@ -1,8 +1,13 @@
1
1
  export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed } from "./utils/caip-address.mjs";
2
+ export { isReactNodeRenderable } from "./utils/isReactNodeRenderable.mjs";
3
+ // AvatarBase types (ADR-0003 + ADR-0004)
4
+ export { AvatarBaseSize, AvatarBaseShape } from "./types/AvatarBase/index.mjs";
2
5
  // BadgeCount types (ADR-0003 + ADR-0004)
3
6
  export { BadgeCountSize } from "./types/BadgeCount/index.mjs";
4
7
  // BadgeStatus types (ADR-0003 + ADR-0004)
5
8
  export { BadgeStatusStatus, BadgeStatusSize } from "./types/BadgeStatus/index.mjs";
6
9
  // BannerAlert types (ADR-0003 + ADR-0004)
7
10
  export { BannerAlertSeverity } from "./types/BannerAlert/index.mjs";
11
+ // BadgeWrapper types (ADR-0003 + ADR-0004)
12
+ export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition } from "./types/BadgeWrapper/index.mjs";
8
13
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EACjB,iCAA6B;AAE9B,yCAAyC;AACzC,OAAO,EAAE,cAAc,EAA8B,qCAA2B;AAEhF,0CAA0C;AAC1C,OAAO,EACL,iBAAiB,EACjB,eAAe,EAEhB,sCAA4B;AAQ7B,0CAA0C;AAC1C,OAAO,EACL,mBAAmB,EAEpB,sCAA4B","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\n\n// BadgeCount types (ADR-0003 + ADR-0004)\nexport { BadgeCountSize, type BadgeCountPropsShared } from './types/BadgeCount';\n\n// BadgeStatus types (ADR-0003 + ADR-0004)\nexport {\n BadgeStatusStatus,\n BadgeStatusSize,\n type BadgeStatusPropsShared,\n} from './types/BadgeStatus';\n\n// BannerBase types (ADR-0004)\nexport { type BannerBasePropsShared } from './types/BannerBase';\n\n// ButtonFilter types (ADR-0004)\nexport { type ButtonFilterPropsShared } from './types/ButtonFilter';\n\n// BannerAlert types (ADR-0003 + ADR-0004)\nexport {\n BannerAlertSeverity,\n type BannerAlertPropsShared,\n} from './types/BannerAlert';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EACjB,iCAA6B;AAE9B,OAAO,EAAE,qBAAqB,EAAE,0CAAsC;AAEtE,yCAAyC;AACzC,OAAO,EACL,cAAc,EACd,eAAe,EAEhB,qCAA2B;AAE5B,yCAAyC;AACzC,OAAO,EAAE,cAAc,EAA8B,qCAA2B;AAEhF,0CAA0C;AAC1C,OAAO,EACL,iBAAiB,EACjB,eAAe,EAEhB,sCAA4B;AAoB7B,0CAA0C;AAC1C,OAAO,EACL,mBAAmB,EAEpB,sCAA4B;AAE7B,2CAA2C;AAC3C,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EAGrB,uCAA6B","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\n\nexport { isReactNodeRenderable } from './utils/isReactNodeRenderable';\n\n// AvatarBase types (ADR-0003 + ADR-0004)\nexport {\n AvatarBaseSize,\n AvatarBaseShape,\n type AvatarBasePropsShared,\n} from './types/AvatarBase';\n\n// BadgeCount types (ADR-0003 + ADR-0004)\nexport { BadgeCountSize, type BadgeCountPropsShared } from './types/BadgeCount';\n\n// BadgeStatus types (ADR-0003 + ADR-0004)\nexport {\n BadgeStatusStatus,\n BadgeStatusSize,\n type BadgeStatusPropsShared,\n} from './types/BadgeStatus';\n\n// BannerBase types (ADR-0004)\nexport { type BannerBasePropsShared } from './types/BannerBase';\n\n// TextOrChildren types (ADR-0004)\nexport { type TextOrChildrenPropsShared } from './types/TextOrChildren';\n\n// BoxHorizontal types (ADR-0004)\nexport { type BoxHorizontalPropsShared } from './types/BoxHorizontal';\n\n// BoxVertical types (ADR-0004)\nexport { type BoxVerticalPropsShared } from './types/BoxVertical';\n\n// ButtonFilter types (ADR-0004)\nexport { type ButtonFilterPropsShared } from './types/ButtonFilter';\n\n// AvatarNetwork types (ADR-0004)\nexport { type AvatarNetworkPropsShared } from './types/AvatarNetwork';\n\n// BannerAlert types (ADR-0003 + ADR-0004)\nexport {\n BannerAlertSeverity,\n type BannerAlertPropsShared,\n} from './types/BannerAlert';\n\n// BadgeWrapper types (ADR-0003 + ADR-0004)\nexport {\n BadgeWrapperPositionAnchorShape,\n BadgeWrapperPosition,\n type BadgeWrapperCustomPosition,\n type BadgeWrapperPropsShared,\n} from './types/BadgeWrapper';\n"]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarBaseShape = exports.AvatarBaseSize = void 0;
4
+ /**
5
+ * AvatarBase - size
6
+ * Convert from enum to const object (ADR-0003)
7
+ */
8
+ exports.AvatarBaseSize = {
9
+ /**
10
+ * Represents an extra small avatar size (16px).
11
+ */
12
+ Xs: 'xs',
13
+ /**
14
+ * Represents a small avatar size (24px).
15
+ */
16
+ Sm: 'sm',
17
+ /**
18
+ * Represents a medium avatar size (32px).
19
+ */
20
+ Md: 'md',
21
+ /**
22
+ * Represents a large avatar size (40px).
23
+ */
24
+ Lg: 'lg',
25
+ /**
26
+ * Represents an extra large avatar size (48px).
27
+ */
28
+ Xl: 'xl',
29
+ };
30
+ /**
31
+ * AvatarBase - shape
32
+ * Convert from enum to const object (ADR-0003)
33
+ */
34
+ exports.AvatarBaseShape = {
35
+ /**
36
+ * Represents a circular Avatar.
37
+ */
38
+ Circle: 'circle',
39
+ /**
40
+ * Represents a squared Avatar.
41
+ */
42
+ Square: 'square',
43
+ };
44
+ //# sourceMappingURL=AvatarBase.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarBase.types.cjs","sourceRoot":"","sources":["../../../src/types/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,cAAc,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;CACA,CAAC;AAIX;;;GAGG;AACU,QAAA,eAAe,GAAG;IAC7B;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * AvatarBase - size\n * Convert from enum to const object (ADR-0003)\n */\nexport const AvatarBaseSize = {\n /**\n * Represents an extra small avatar size (16px).\n */\n Xs: 'xs',\n /**\n * Represents a small avatar size (24px).\n */\n Sm: 'sm',\n /**\n * Represents a medium avatar size (32px).\n */\n Md: 'md',\n /**\n * Represents a large avatar size (40px).\n */\n Lg: 'lg',\n /**\n * Represents an extra large avatar size (48px).\n */\n Xl: 'xl',\n} as const;\nexport type AvatarBaseSize =\n (typeof AvatarBaseSize)[keyof typeof AvatarBaseSize];\n\n/**\n * AvatarBase - shape\n * Convert from enum to const object (ADR-0003)\n */\nexport const AvatarBaseShape = {\n /**\n * Represents a circular Avatar.\n */\n Circle: 'circle',\n /**\n * Represents a squared Avatar.\n */\n Square: 'square',\n} as const;\nexport type AvatarBaseShape =\n (typeof AvatarBaseShape)[keyof typeof AvatarBaseShape];\n\n/**\n * AvatarBase component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type AvatarBasePropsShared = {\n /**\n * Optional content to be rendered within the AvatarBase.\n * If fallbackText is provided, fallbackText takes precedence.\n */\n children?: ReactNode;\n /**\n * Optional text to display when no children are provided.\n */\n fallbackText?: string;\n /**\n * Optional prop to control the size of the AvatarBase.\n *\n * @default AvatarBaseSize.Md\n */\n size?: AvatarBaseSize;\n /**\n * Optional prop to control the shape of the AvatarBase.\n *\n * @default AvatarBaseShape.Circle\n */\n shape?: AvatarBaseShape;\n /**\n * Optional prop to include the border with the Avatar.\n * For internal use only.\n *\n * @default false\n */\n hasBorder?: boolean;\n};\n"]}
@@ -0,0 +1,78 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * AvatarBase - size
4
+ * Convert from enum to const object (ADR-0003)
5
+ */
6
+ export declare const AvatarBaseSize: {
7
+ /**
8
+ * Represents an extra small avatar size (16px).
9
+ */
10
+ readonly Xs: "xs";
11
+ /**
12
+ * Represents a small avatar size (24px).
13
+ */
14
+ readonly Sm: "sm";
15
+ /**
16
+ * Represents a medium avatar size (32px).
17
+ */
18
+ readonly Md: "md";
19
+ /**
20
+ * Represents a large avatar size (40px).
21
+ */
22
+ readonly Lg: "lg";
23
+ /**
24
+ * Represents an extra large avatar size (48px).
25
+ */
26
+ readonly Xl: "xl";
27
+ };
28
+ export type AvatarBaseSize = (typeof AvatarBaseSize)[keyof typeof AvatarBaseSize];
29
+ /**
30
+ * AvatarBase - shape
31
+ * Convert from enum to const object (ADR-0003)
32
+ */
33
+ export declare const AvatarBaseShape: {
34
+ /**
35
+ * Represents a circular Avatar.
36
+ */
37
+ readonly Circle: "circle";
38
+ /**
39
+ * Represents a squared Avatar.
40
+ */
41
+ readonly Square: "square";
42
+ };
43
+ export type AvatarBaseShape = (typeof AvatarBaseShape)[keyof typeof AvatarBaseShape];
44
+ /**
45
+ * AvatarBase component shared props (ADR-0004)
46
+ * Platform-independent properties shared across React and React Native.
47
+ */
48
+ export type AvatarBasePropsShared = {
49
+ /**
50
+ * Optional content to be rendered within the AvatarBase.
51
+ * If fallbackText is provided, fallbackText takes precedence.
52
+ */
53
+ children?: ReactNode;
54
+ /**
55
+ * Optional text to display when no children are provided.
56
+ */
57
+ fallbackText?: string;
58
+ /**
59
+ * Optional prop to control the size of the AvatarBase.
60
+ *
61
+ * @default AvatarBaseSize.Md
62
+ */
63
+ size?: AvatarBaseSize;
64
+ /**
65
+ * Optional prop to control the shape of the AvatarBase.
66
+ *
67
+ * @default AvatarBaseShape.Circle
68
+ */
69
+ shape?: AvatarBaseShape;
70
+ /**
71
+ * Optional prop to include the border with the Avatar.
72
+ * For internal use only.
73
+ *
74
+ * @default false
75
+ */
76
+ hasBorder?: boolean;
77
+ };
78
+ //# sourceMappingURL=AvatarBase.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarBase.types.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;GAGG;AACH,eAAO,MAAM,cAAc;IACzB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -0,0 +1,78 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * AvatarBase - size
4
+ * Convert from enum to const object (ADR-0003)
5
+ */
6
+ export declare const AvatarBaseSize: {
7
+ /**
8
+ * Represents an extra small avatar size (16px).
9
+ */
10
+ readonly Xs: "xs";
11
+ /**
12
+ * Represents a small avatar size (24px).
13
+ */
14
+ readonly Sm: "sm";
15
+ /**
16
+ * Represents a medium avatar size (32px).
17
+ */
18
+ readonly Md: "md";
19
+ /**
20
+ * Represents a large avatar size (40px).
21
+ */
22
+ readonly Lg: "lg";
23
+ /**
24
+ * Represents an extra large avatar size (48px).
25
+ */
26
+ readonly Xl: "xl";
27
+ };
28
+ export type AvatarBaseSize = (typeof AvatarBaseSize)[keyof typeof AvatarBaseSize];
29
+ /**
30
+ * AvatarBase - shape
31
+ * Convert from enum to const object (ADR-0003)
32
+ */
33
+ export declare const AvatarBaseShape: {
34
+ /**
35
+ * Represents a circular Avatar.
36
+ */
37
+ readonly Circle: "circle";
38
+ /**
39
+ * Represents a squared Avatar.
40
+ */
41
+ readonly Square: "square";
42
+ };
43
+ export type AvatarBaseShape = (typeof AvatarBaseShape)[keyof typeof AvatarBaseShape];
44
+ /**
45
+ * AvatarBase component shared props (ADR-0004)
46
+ * Platform-independent properties shared across React and React Native.
47
+ */
48
+ export type AvatarBasePropsShared = {
49
+ /**
50
+ * Optional content to be rendered within the AvatarBase.
51
+ * If fallbackText is provided, fallbackText takes precedence.
52
+ */
53
+ children?: ReactNode;
54
+ /**
55
+ * Optional text to display when no children are provided.
56
+ */
57
+ fallbackText?: string;
58
+ /**
59
+ * Optional prop to control the size of the AvatarBase.
60
+ *
61
+ * @default AvatarBaseSize.Md
62
+ */
63
+ size?: AvatarBaseSize;
64
+ /**
65
+ * Optional prop to control the shape of the AvatarBase.
66
+ *
67
+ * @default AvatarBaseShape.Circle
68
+ */
69
+ shape?: AvatarBaseShape;
70
+ /**
71
+ * Optional prop to include the border with the Avatar.
72
+ * For internal use only.
73
+ *
74
+ * @default false
75
+ */
76
+ hasBorder?: boolean;
77
+ };
78
+ //# sourceMappingURL=AvatarBase.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarBase.types.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;GAGG;AACH,eAAO,MAAM,cAAc;IACzB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * AvatarBase - size
3
+ * Convert from enum to const object (ADR-0003)
4
+ */
5
+ export const AvatarBaseSize = {
6
+ /**
7
+ * Represents an extra small avatar size (16px).
8
+ */
9
+ Xs: 'xs',
10
+ /**
11
+ * Represents a small avatar size (24px).
12
+ */
13
+ Sm: 'sm',
14
+ /**
15
+ * Represents a medium avatar size (32px).
16
+ */
17
+ Md: 'md',
18
+ /**
19
+ * Represents a large avatar size (40px).
20
+ */
21
+ Lg: 'lg',
22
+ /**
23
+ * Represents an extra large avatar size (48px).
24
+ */
25
+ Xl: 'xl',
26
+ };
27
+ /**
28
+ * AvatarBase - shape
29
+ * Convert from enum to const object (ADR-0003)
30
+ */
31
+ export const AvatarBaseShape = {
32
+ /**
33
+ * Represents a circular Avatar.
34
+ */
35
+ Circle: 'circle',
36
+ /**
37
+ * Represents a squared Avatar.
38
+ */
39
+ Square: 'square',
40
+ };
41
+ //# sourceMappingURL=AvatarBase.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarBase.types.mjs","sourceRoot":"","sources":["../../../src/types/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;CACA,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * AvatarBase - size\n * Convert from enum to const object (ADR-0003)\n */\nexport const AvatarBaseSize = {\n /**\n * Represents an extra small avatar size (16px).\n */\n Xs: 'xs',\n /**\n * Represents a small avatar size (24px).\n */\n Sm: 'sm',\n /**\n * Represents a medium avatar size (32px).\n */\n Md: 'md',\n /**\n * Represents a large avatar size (40px).\n */\n Lg: 'lg',\n /**\n * Represents an extra large avatar size (48px).\n */\n Xl: 'xl',\n} as const;\nexport type AvatarBaseSize =\n (typeof AvatarBaseSize)[keyof typeof AvatarBaseSize];\n\n/**\n * AvatarBase - shape\n * Convert from enum to const object (ADR-0003)\n */\nexport const AvatarBaseShape = {\n /**\n * Represents a circular Avatar.\n */\n Circle: 'circle',\n /**\n * Represents a squared Avatar.\n */\n Square: 'square',\n} as const;\nexport type AvatarBaseShape =\n (typeof AvatarBaseShape)[keyof typeof AvatarBaseShape];\n\n/**\n * AvatarBase component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type AvatarBasePropsShared = {\n /**\n * Optional content to be rendered within the AvatarBase.\n * If fallbackText is provided, fallbackText takes precedence.\n */\n children?: ReactNode;\n /**\n * Optional text to display when no children are provided.\n */\n fallbackText?: string;\n /**\n * Optional prop to control the size of the AvatarBase.\n *\n * @default AvatarBaseSize.Md\n */\n size?: AvatarBaseSize;\n /**\n * Optional prop to control the shape of the AvatarBase.\n *\n * @default AvatarBaseShape.Circle\n */\n shape?: AvatarBaseShape;\n /**\n * Optional prop to include the border with the Avatar.\n * For internal use only.\n *\n * @default false\n */\n hasBorder?: boolean;\n};\n"]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarBaseShape = exports.AvatarBaseSize = void 0;
4
+ var AvatarBase_types_1 = require("./AvatarBase.types.cjs");
5
+ Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return AvatarBase_types_1.AvatarBaseSize; } });
6
+ Object.defineProperty(exports, "AvatarBaseShape", { enumerable: true, get: function () { return AvatarBase_types_1.AvatarBaseShape; } });
7
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/AvatarBase/index.ts"],"names":[],"mappings":";;;AAAA,2DAI4B;AAH1B,kHAAA,cAAc,OAAA;AACd,mHAAA,eAAe,OAAA","sourcesContent":["export {\n AvatarBaseSize,\n AvatarBaseShape,\n type AvatarBasePropsShared,\n} from './AvatarBase.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { AvatarBaseSize, AvatarBaseShape, type AvatarBasePropsShared, } from "./AvatarBase.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,KAAK,qBAAqB,GAC3B,+BAA2B"}
@@ -0,0 +1,2 @@
1
+ export { AvatarBaseSize, AvatarBaseShape, type AvatarBasePropsShared, } from "./AvatarBase.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,KAAK,qBAAqB,GAC3B,+BAA2B"}
@@ -0,0 +1,2 @@
1
+ export { AvatarBaseSize, AvatarBaseShape } from "./AvatarBase.types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EAEhB,+BAA2B","sourcesContent":["export {\n AvatarBaseSize,\n AvatarBaseShape,\n type AvatarBasePropsShared,\n} from './AvatarBase.types';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AvatarNetwork.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.types.cjs","sourceRoot":"","sources":["../../../src/types/AvatarNetwork/AvatarNetwork.types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * AvatarNetwork component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n * Note: AvatarNetworkSize is not included here because it inherits from\n * AvatarBaseSize which will be migrated separately (DSYS-473).\n */\nexport type AvatarNetworkPropsShared = {\n /**\n * Optional name of the network.\n * Used as alt text for the image, and the first letter is used as fallback\n * text when no explicit fallbackText is provided.\n */\n name?: string;\n /**\n * Optional text to display when no image is provided or when the image\n * fails to load. If not provided, the first letter of name is used.\n */\n fallbackText?: string;\n};\n"]}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * AvatarNetwork component shared props (ADR-0004)
3
+ * Platform-independent properties shared across React and React Native.
4
+ * Note: AvatarNetworkSize is not included here because it inherits from
5
+ * AvatarBaseSize which will be migrated separately (DSYS-473).
6
+ */
7
+ export type AvatarNetworkPropsShared = {
8
+ /**
9
+ * Optional name of the network.
10
+ * Used as alt text for the image, and the first letter is used as fallback
11
+ * text when no explicit fallbackText is provided.
12
+ */
13
+ name?: string;
14
+ /**
15
+ * Optional text to display when no image is provided or when the image
16
+ * fails to load. If not provided, the first letter of name is used.
17
+ */
18
+ fallbackText?: string;
19
+ };
20
+ //# sourceMappingURL=AvatarNetwork.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.types.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarNetwork/AvatarNetwork.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * AvatarNetwork component shared props (ADR-0004)
3
+ * Platform-independent properties shared across React and React Native.
4
+ * Note: AvatarNetworkSize is not included here because it inherits from
5
+ * AvatarBaseSize which will be migrated separately (DSYS-473).
6
+ */
7
+ export type AvatarNetworkPropsShared = {
8
+ /**
9
+ * Optional name of the network.
10
+ * Used as alt text for the image, and the first letter is used as fallback
11
+ * text when no explicit fallbackText is provided.
12
+ */
13
+ name?: string;
14
+ /**
15
+ * Optional text to display when no image is provided or when the image
16
+ * fails to load. If not provided, the first letter of name is used.
17
+ */
18
+ fallbackText?: string;
19
+ };
20
+ //# sourceMappingURL=AvatarNetwork.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.types.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarNetwork/AvatarNetwork.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AvatarNetwork.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.types.mjs","sourceRoot":"","sources":["../../../src/types/AvatarNetwork/AvatarNetwork.types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * AvatarNetwork component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n * Note: AvatarNetworkSize is not included here because it inherits from\n * AvatarBaseSize which will be migrated separately (DSYS-473).\n */\nexport type AvatarNetworkPropsShared = {\n /**\n * Optional name of the network.\n * Used as alt text for the image, and the first letter is used as fallback\n * text when no explicit fallbackText is provided.\n */\n name?: string;\n /**\n * Optional text to display when no image is provided or when the image\n * fails to load. If not provided, the first letter of name is used.\n */\n fallbackText?: string;\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/AvatarNetwork/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type AvatarNetworkPropsShared } from './AvatarNetwork.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { type AvatarNetworkPropsShared } from "./AvatarNetwork.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarNetwork/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { type AvatarNetworkPropsShared } from "./AvatarNetwork.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarNetwork/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/AvatarNetwork/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type AvatarNetworkPropsShared } from './AvatarNetwork.types';\n"]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BadgeWrapperPosition = exports.BadgeWrapperPositionAnchorShape = void 0;
4
+ /**
5
+ * BadgeWrapper - positionAnchorShape
6
+ * Convert from enum to const object (ADR-0003)
7
+ */
8
+ exports.BadgeWrapperPositionAnchorShape = {
9
+ /**
10
+ * Represents a rectangular anchoring shape
11
+ */
12
+ Rectangular: 'rectangular',
13
+ /**
14
+ * Represents a circular anchoring shape
15
+ */
16
+ Circular: 'circular',
17
+ };
18
+ /**
19
+ * BadgeWrapper - position
20
+ * Convert from enum to const object (ADR-0003)
21
+ */
22
+ exports.BadgeWrapperPosition = {
23
+ /**
24
+ * Positions the badge at the top right
25
+ */
26
+ TopRight: 'top-right',
27
+ /**
28
+ * Positions the badge at the bottom right
29
+ */
30
+ BottomRight: 'bottom-right',
31
+ /**
32
+ * Positions the badge at the bottom left
33
+ */
34
+ BottomLeft: 'bottom-left',
35
+ /**
36
+ * Positions the badge at the top left
37
+ */
38
+ TopLeft: 'top-left',
39
+ };
40
+ //# sourceMappingURL=BadgeWrapper.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadgeWrapper.types.cjs","sourceRoot":"","sources":["../../../src/types/BadgeWrapper/BadgeWrapper.types.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,+BAA+B,GAAG;IAC7C;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,QAAQ,EAAE,UAAU;CACZ,CAAC;AAIX;;;GAGG;AACU,QAAA,oBAAoB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,WAAW;IACrB;;OAEG;IACH,WAAW,EAAE,cAAc;IAC3B;;OAEG;IACH,UAAU,EAAE,aAAa;IACzB;;OAEG;IACH,OAAO,EAAE,UAAU;CACX,CAAC","sourcesContent":["/**\n * BadgeWrapper - positionAnchorShape\n * Convert from enum to const object (ADR-0003)\n */\nexport const BadgeWrapperPositionAnchorShape = {\n /**\n * Represents a rectangular anchoring shape\n */\n Rectangular: 'rectangular',\n /**\n * Represents a circular anchoring shape\n */\n Circular: 'circular',\n} as const;\nexport type BadgeWrapperPositionAnchorShape =\n (typeof BadgeWrapperPositionAnchorShape)[keyof typeof BadgeWrapperPositionAnchorShape];\n\n/**\n * BadgeWrapper - position\n * Convert from enum to const object (ADR-0003)\n */\nexport const BadgeWrapperPosition = {\n /**\n * Positions the badge at the top right\n */\n TopRight: 'top-right',\n /**\n * Positions the badge at the bottom right\n */\n BottomRight: 'bottom-right',\n /**\n * Positions the badge at the bottom left\n */\n BottomLeft: 'bottom-left',\n /**\n * Positions the badge at the top left\n */\n TopLeft: 'top-left',\n} as const;\nexport type BadgeWrapperPosition =\n (typeof BadgeWrapperPosition)[keyof typeof BadgeWrapperPosition];\n\n/**\n * BadgeWrapper - customPosition type (ADR-0004)\n * Platform-independent custom position definition\n */\nexport type BadgeWrapperCustomPosition = {\n top?: number | string | undefined;\n right?: number | string | undefined;\n bottom?: number | string | undefined;\n left?: number | string | undefined;\n};\n\n/**\n * BadgeWrapper component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native\n */\nexport type BadgeWrapperPropsShared = {\n /**\n * Optional prop to determine the shape of the anchoring element.\n * This prop gets used along with position, positionXOffset, and positionYOffset\n * to determine the final position.\n * Possible values:\n * - BadgeWrapperPositionAnchorShape.Circular\n * - BadgeWrapperPositionAnchorShape.Rectangular\n *\n * @default BadgeWrapperPositionAnchorShape.Circular\n */\n positionAnchorShape?: BadgeWrapperPositionAnchorShape;\n /**\n * Optional prop to control the preset position of the badge.\n * This prop gets used along with positionAnchorShape, positionXOffset, and positionYOffset\n * to determine the final position.\n *\n * @default BadgeWrapperPosition.TopRight\n */\n position?: BadgeWrapperPosition;\n /**\n * Optional prop to move the preset position horizontally.\n *\n * @default 0\n */\n positionXOffset?: number;\n /**\n * Optional prop to move the preset position vertically.\n *\n * @default 0\n */\n positionYOffset?: number;\n /**\n * Optional prop to customize the position through the position object.\n * Position object - {top: 0, right: 0, bottom: 0, left: 0}\n */\n customPosition?: BadgeWrapperCustomPosition;\n /**\n * The element that the badge will attach itself to.\n */\n children: React.ReactNode;\n /**\n * Any element that will be placed in the position of the badge.\n */\n badge: React.ReactNode;\n};\n"]}