@metamask-previews/design-system-shared 0.6.0-preview.dbe1fac → 0.7.0-preview.4ce710b

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 (58) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/dist/index.cjs +14 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +3 -0
  5. package/dist/index.d.cts.map +1 -1
  6. package/dist/index.d.mts +3 -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/AvatarAccount/AvatarAccount.types.cjs +24 -0
  11. package/dist/types/AvatarAccount/AvatarAccount.types.cjs.map +1 -0
  12. package/dist/types/AvatarAccount/AvatarAccount.types.d.cts +51 -0
  13. package/dist/types/AvatarAccount/AvatarAccount.types.d.cts.map +1 -0
  14. package/dist/types/AvatarAccount/AvatarAccount.types.d.mts +51 -0
  15. package/dist/types/AvatarAccount/AvatarAccount.types.d.mts.map +1 -0
  16. package/dist/types/AvatarAccount/AvatarAccount.types.mjs +21 -0
  17. package/dist/types/AvatarAccount/AvatarAccount.types.mjs.map +1 -0
  18. package/dist/types/AvatarAccount/index.cjs +7 -0
  19. package/dist/types/AvatarAccount/index.cjs.map +1 -0
  20. package/dist/types/AvatarAccount/index.d.cts +2 -0
  21. package/dist/types/AvatarAccount/index.d.cts.map +1 -0
  22. package/dist/types/AvatarAccount/index.d.mts +2 -0
  23. package/dist/types/AvatarAccount/index.d.mts.map +1 -0
  24. package/dist/types/AvatarAccount/index.mjs +2 -0
  25. package/dist/types/AvatarAccount/index.mjs.map +1 -0
  26. package/dist/types/AvatarToken/AvatarToken.types.cjs +6 -0
  27. package/dist/types/AvatarToken/AvatarToken.types.cjs.map +1 -0
  28. package/dist/types/AvatarToken/AvatarToken.types.d.cts +33 -0
  29. package/dist/types/AvatarToken/AvatarToken.types.d.cts.map +1 -0
  30. package/dist/types/AvatarToken/AvatarToken.types.d.mts +33 -0
  31. package/dist/types/AvatarToken/AvatarToken.types.d.mts.map +1 -0
  32. package/dist/types/AvatarToken/AvatarToken.types.mjs +3 -0
  33. package/dist/types/AvatarToken/AvatarToken.types.mjs.map +1 -0
  34. package/dist/types/AvatarToken/index.cjs +6 -0
  35. package/dist/types/AvatarToken/index.cjs.map +1 -0
  36. package/dist/types/AvatarToken/index.d.cts +2 -0
  37. package/dist/types/AvatarToken/index.d.cts.map +1 -0
  38. package/dist/types/AvatarToken/index.d.mts +2 -0
  39. package/dist/types/AvatarToken/index.d.mts.map +1 -0
  40. package/dist/types/AvatarToken/index.mjs +2 -0
  41. package/dist/types/AvatarToken/index.mjs.map +1 -0
  42. package/dist/types/Text/Text.types.cjs +138 -0
  43. package/dist/types/Text/Text.types.cjs.map +1 -0
  44. package/dist/types/Text/Text.types.d.cts +179 -0
  45. package/dist/types/Text/Text.types.d.cts.map +1 -0
  46. package/dist/types/Text/Text.types.d.mts +179 -0
  47. package/dist/types/Text/Text.types.d.mts.map +1 -0
  48. package/dist/types/Text/Text.types.mjs +135 -0
  49. package/dist/types/Text/Text.types.mjs.map +1 -0
  50. package/dist/types/Text/index.cjs +10 -0
  51. package/dist/types/Text/index.cjs.map +1 -0
  52. package/dist/types/Text/index.d.cts +2 -0
  53. package/dist/types/Text/index.d.cts.map +1 -0
  54. package/dist/types/Text/index.d.mts +2 -0
  55. package/dist/types/Text/index.d.mts.map +1 -0
  56. package/dist/types/Text/index.mjs +2 -0
  57. package/dist/types/Text/index.mjs.map +1 -0
  58. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.7.0]
11
+
12
+ ### Added
13
+
14
+ - Added shared types used by new React Native header components, including `HeaderRoot` contracts consumed by `@metamask/design-system-react-native` ([#1029](https://github.com/MetaMask/metamask-design-system/pull/1029)).
15
+ - Added shared `BoxHorizontal` and `BoxVertical` utility component contracts for cross-platform layout primitives ([#1003](https://github.com/MetaMask/metamask-design-system/pull/1003)).
16
+
17
+ ### Changed
18
+
19
+ - Migrated `AvatarBase` type exports from enum-based definitions to shared const-object + string-union types, keeping consumers aligned with the ADR-0003/ADR-0004 type model ([#1005](https://github.com/MetaMask/metamask-design-system/pull/1005)).
20
+ - Updated `@metamask/utils` dependency to `^11.11.0` ([#1033](https://github.com/MetaMask/metamask-design-system/pull/1033)).
21
+
10
22
  ## [0.6.0]
11
23
 
12
24
  ### Changed
@@ -75,7 +87,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
75
87
  - **Initial release** - MetaMask Design System Shared
76
88
  - Adding CAIP-10 address utilities ([#817](https://github.com/MetaMask/metamask-design-system/pull/817))
77
89
 
78
- [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.6.0...HEAD
90
+ [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.7.0...HEAD
91
+ [0.7.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.6.0...@metamask/design-system-shared@0.7.0
79
92
  [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
93
  [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
81
94
  [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
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.TextVariant = exports.TextColor = exports.FontWeight = exports.FontStyle = exports.FontFamily = exports.AvatarAccountVariant = exports.AvatarAccountSize = exports.BadgeWrapperPosition = exports.BadgeWrapperPositionAnchorShape = exports.BannerAlertSeverity = exports.AvatarTokenSize = 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; } });
@@ -20,6 +20,9 @@ Object.defineProperty(exports, "BadgeCountSize", { enumerable: true, get: functi
20
20
  var BadgeStatus_1 = require("./types/BadgeStatus/index.cjs");
21
21
  Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusStatus; } });
22
22
  Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusSize; } });
23
+ // AvatarToken types (ADR-0003 + ADR-0004)
24
+ var AvatarToken_1 = require("./types/AvatarToken/index.cjs");
25
+ Object.defineProperty(exports, "AvatarTokenSize", { enumerable: true, get: function () { return AvatarToken_1.AvatarTokenSize; } });
23
26
  // BannerAlert types (ADR-0003 + ADR-0004)
24
27
  var BannerAlert_1 = require("./types/BannerAlert/index.cjs");
25
28
  Object.defineProperty(exports, "BannerAlertSeverity", { enumerable: true, get: function () { return BannerAlert_1.BannerAlertSeverity; } });
@@ -27,4 +30,14 @@ Object.defineProperty(exports, "BannerAlertSeverity", { enumerable: true, get: f
27
30
  var BadgeWrapper_1 = require("./types/BadgeWrapper/index.cjs");
28
31
  Object.defineProperty(exports, "BadgeWrapperPositionAnchorShape", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPositionAnchorShape; } });
29
32
  Object.defineProperty(exports, "BadgeWrapperPosition", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPosition; } });
33
+ var AvatarAccount_1 = require("./types/AvatarAccount/index.cjs");
34
+ Object.defineProperty(exports, "AvatarAccountSize", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccountSize; } });
35
+ Object.defineProperty(exports, "AvatarAccountVariant", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccountVariant; } });
36
+ // Text types (ADR-0003 + ADR-0004)
37
+ var Text_1 = require("./types/Text/index.cjs");
38
+ Object.defineProperty(exports, "FontFamily", { enumerable: true, get: function () { return Text_1.FontFamily; } });
39
+ Object.defineProperty(exports, "FontStyle", { enumerable: true, get: function () { return Text_1.FontStyle; } });
40
+ Object.defineProperty(exports, "FontWeight", { enumerable: true, get: function () { return Text_1.FontWeight; } });
41
+ Object.defineProperty(exports, "TextColor", { enumerable: true, get: function () { return Text_1.TextColor; } });
42
+ Object.defineProperty(exports, "TextVariant", { enumerable: true, get: function () { return Text_1.TextVariant; } });
30
43
  //# 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,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"]}
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,8GAAA,eAAe,OAAA;AAIjB,0CAA0C;AAC1C,6DAG6B;AAF3B,kHAAA,mBAAmB,OAAA;AAIrB,2CAA2C;AAC3C,+DAK8B;AAJ5B,+HAAA,+BAA+B,OAAA;AAC/B,oHAAA,oBAAoB,OAAA;AAKtB,iEAI+B;AAH7B,kHAAA,iBAAiB,OAAA;AACjB,qHAAA,oBAAoB,OAAA;AAItB,mCAAmC;AACnC,+CAOsB;AANpB,kGAAA,UAAU,OAAA;AACV,iGAAA,SAAS,OAAA;AACT,kGAAA,UAAU,OAAA;AACV,iGAAA,SAAS,OAAA;AACT,mGAAA,WAAW,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// AvatarToken types (ADR-0003 + ADR-0004)\nexport {\n AvatarTokenSize,\n type AvatarTokenPropsShared,\n} from './types/AvatarToken';\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\nexport {\n AvatarAccountSize,\n AvatarAccountVariant,\n type AvatarAccountPropsShared,\n} from './types/AvatarAccount';\n\n// Text types (ADR-0003 + ADR-0004)\nexport {\n FontFamily,\n FontStyle,\n FontWeight,\n TextColor,\n TextVariant,\n type TextPropsShared,\n} from './types/Text';\n"]}
package/dist/index.d.cts CHANGED
@@ -9,6 +9,9 @@ export { type BoxHorizontalPropsShared } from "./types/BoxHorizontal/index.cjs";
9
9
  export { type BoxVerticalPropsShared } from "./types/BoxVertical/index.cjs";
10
10
  export { type ButtonFilterPropsShared } from "./types/ButtonFilter/index.cjs";
11
11
  export { type AvatarNetworkPropsShared } from "./types/AvatarNetwork/index.cjs";
12
+ export { AvatarTokenSize, type AvatarTokenPropsShared, } from "./types/AvatarToken/index.cjs";
12
13
  export { BannerAlertSeverity, type BannerAlertPropsShared, } from "./types/BannerAlert/index.cjs";
13
14
  export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition, type BadgeWrapperCustomPosition, type BadgeWrapperPropsShared, } from "./types/BadgeWrapper/index.cjs";
15
+ export { AvatarAccountSize, AvatarAccountVariant, type AvatarAccountPropsShared, } from "./types/AvatarAccount/index.cjs";
16
+ export { FontFamily, FontStyle, FontWeight, TextColor, TextVariant, type TextPropsShared, } from "./types/Text/index.cjs";
14
17
  //# 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;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"}
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,eAAe,EACf,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,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;AAE9B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,wCAA8B;AAG/B,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,EACX,KAAK,eAAe,GACrB,+BAAqB"}
package/dist/index.d.mts CHANGED
@@ -9,6 +9,9 @@ export { type BoxHorizontalPropsShared } from "./types/BoxHorizontal/index.mjs";
9
9
  export { type BoxVerticalPropsShared } from "./types/BoxVertical/index.mjs";
10
10
  export { type ButtonFilterPropsShared } from "./types/ButtonFilter/index.mjs";
11
11
  export { type AvatarNetworkPropsShared } from "./types/AvatarNetwork/index.mjs";
12
+ export { AvatarTokenSize, type AvatarTokenPropsShared, } from "./types/AvatarToken/index.mjs";
12
13
  export { BannerAlertSeverity, type BannerAlertPropsShared, } from "./types/BannerAlert/index.mjs";
13
14
  export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition, type BadgeWrapperCustomPosition, type BadgeWrapperPropsShared, } from "./types/BadgeWrapper/index.mjs";
15
+ export { AvatarAccountSize, AvatarAccountVariant, type AvatarAccountPropsShared, } from "./types/AvatarAccount/index.mjs";
16
+ export { FontFamily, FontStyle, FontWeight, TextColor, TextVariant, type TextPropsShared, } from "./types/Text/index.mjs";
14
17
  //# 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;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"}
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,eAAe,EACf,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,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;AAE9B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,wCAA8B;AAG/B,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,EACX,KAAK,eAAe,GACrB,+BAAqB"}
package/dist/index.mjs CHANGED
@@ -6,8 +6,13 @@ export { AvatarBaseSize, AvatarBaseShape } from "./types/AvatarBase/index.mjs";
6
6
  export { BadgeCountSize } from "./types/BadgeCount/index.mjs";
7
7
  // BadgeStatus types (ADR-0003 + ADR-0004)
8
8
  export { BadgeStatusStatus, BadgeStatusSize } from "./types/BadgeStatus/index.mjs";
9
+ // AvatarToken types (ADR-0003 + ADR-0004)
10
+ export { AvatarTokenSize } from "./types/AvatarToken/index.mjs";
9
11
  // BannerAlert types (ADR-0003 + ADR-0004)
10
12
  export { BannerAlertSeverity } from "./types/BannerAlert/index.mjs";
11
13
  // BadgeWrapper types (ADR-0003 + ADR-0004)
12
14
  export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition } from "./types/BadgeWrapper/index.mjs";
15
+ export { AvatarAccountSize, AvatarAccountVariant } from "./types/AvatarAccount/index.mjs";
16
+ // Text types (ADR-0003 + ADR-0004)
17
+ export { FontFamily, FontStyle, FontWeight, TextColor, TextVariant } from "./types/Text/index.mjs";
13
18
  //# 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,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"]}
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,eAAe,EAEhB,sCAA4B;AAE7B,0CAA0C;AAC1C,OAAO,EACL,mBAAmB,EAEpB,sCAA4B;AAE7B,2CAA2C;AAC3C,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EAGrB,uCAA6B;AAE9B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EAErB,wCAA8B;AAE/B,mCAAmC;AACnC,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,EAEZ,+BAAqB","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// AvatarToken types (ADR-0003 + ADR-0004)\nexport {\n AvatarTokenSize,\n type AvatarTokenPropsShared,\n} from './types/AvatarToken';\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\nexport {\n AvatarAccountSize,\n AvatarAccountVariant,\n type AvatarAccountPropsShared,\n} from './types/AvatarAccount';\n\n// Text types (ADR-0003 + ADR-0004)\nexport {\n FontFamily,\n FontStyle,\n FontWeight,\n TextColor,\n TextVariant,\n type TextPropsShared,\n} from './types/Text';\n"]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarAccountVariant = exports.AvatarAccountSize = void 0;
4
+ const AvatarBase_types_1 = require("../AvatarBase/AvatarBase.types.cjs");
5
+ exports.AvatarAccountSize = AvatarBase_types_1.AvatarBaseSize;
6
+ /**
7
+ * AvatarAccount - variant
8
+ * ADR-0003: Const object with derived string union type instead of TypeScript enum.
9
+ */
10
+ exports.AvatarAccountVariant = {
11
+ /**
12
+ * Displays a Blockies-generated avatar.
13
+ */
14
+ Blockies: 'blockies',
15
+ /**
16
+ * Displays a Jazzicon-generated avatar.
17
+ */
18
+ Jazzicon: 'jazzicon',
19
+ /**
20
+ * Displays a Maskicon-generated avatar.
21
+ */
22
+ Maskicon: 'maskicon',
23
+ };
24
+ //# sourceMappingURL=AvatarAccount.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarAccount.types.cjs","sourceRoot":"","sources":["../../../src/types/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":";;;AAAA,yEAAgE;AAEnD,QAAA,iBAAiB,GAAG,iCAAc,CAAC;AAGhD;;;GAGG;AACU,QAAA,oBAAoB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,QAAQ,EAAE,UAAU;CACZ,CAAC","sourcesContent":["import { AvatarBaseSize } from '../AvatarBase/AvatarBase.types';\n\nexport const AvatarAccountSize = AvatarBaseSize;\nexport type AvatarAccountSize = AvatarBaseSize;\n\n/**\n * AvatarAccount - variant\n * ADR-0003: Const object with derived string union type instead of TypeScript enum.\n */\nexport const AvatarAccountVariant = {\n /**\n * Displays a Blockies-generated avatar.\n */\n Blockies: 'blockies',\n /**\n * Displays a Jazzicon-generated avatar.\n */\n Jazzicon: 'jazzicon',\n /**\n * Displays a Maskicon-generated avatar.\n */\n Maskicon: 'maskicon',\n} as const;\n\nexport type AvatarAccountVariant =\n (typeof AvatarAccountVariant)[keyof typeof AvatarAccountVariant];\n\n/**\n * AvatarAccount component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type AvatarAccountPropsShared = {\n /**\n * Required address used as a unique identifier to generate the AvatarAccount art.\n */\n address: string;\n /**\n * Optional prop to control the variant of the avatar account.\n *\n * @default AvatarAccountVariant.Jazzicon\n */\n variant?: AvatarAccountVariant;\n /**\n * Optional prop to control the size of the avatar account.\n *\n * @default AvatarAccountSize.Md\n */\n size?: AvatarAccountSize;\n};\n"]}
@@ -0,0 +1,51 @@
1
+ import { AvatarBaseSize } from "../AvatarBase/AvatarBase.types.cjs";
2
+ export declare const AvatarAccountSize: {
3
+ readonly Xs: "xs";
4
+ readonly Sm: "sm";
5
+ readonly Md: "md";
6
+ readonly Lg: "lg";
7
+ readonly Xl: "xl";
8
+ };
9
+ export type AvatarAccountSize = AvatarBaseSize;
10
+ /**
11
+ * AvatarAccount - variant
12
+ * ADR-0003: Const object with derived string union type instead of TypeScript enum.
13
+ */
14
+ export declare const AvatarAccountVariant: {
15
+ /**
16
+ * Displays a Blockies-generated avatar.
17
+ */
18
+ readonly Blockies: "blockies";
19
+ /**
20
+ * Displays a Jazzicon-generated avatar.
21
+ */
22
+ readonly Jazzicon: "jazzicon";
23
+ /**
24
+ * Displays a Maskicon-generated avatar.
25
+ */
26
+ readonly Maskicon: "maskicon";
27
+ };
28
+ export type AvatarAccountVariant = (typeof AvatarAccountVariant)[keyof typeof AvatarAccountVariant];
29
+ /**
30
+ * AvatarAccount component shared props (ADR-0004)
31
+ * Platform-independent properties shared across React and React Native.
32
+ */
33
+ export type AvatarAccountPropsShared = {
34
+ /**
35
+ * Required address used as a unique identifier to generate the AvatarAccount art.
36
+ */
37
+ address: string;
38
+ /**
39
+ * Optional prop to control the variant of the avatar account.
40
+ *
41
+ * @default AvatarAccountVariant.Jazzicon
42
+ */
43
+ variant?: AvatarAccountVariant;
44
+ /**
45
+ * Optional prop to control the size of the avatar account.
46
+ *
47
+ * @default AvatarAccountSize.Md
48
+ */
49
+ size?: AvatarAccountSize;
50
+ };
51
+ //# sourceMappingURL=AvatarAccount.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarAccount.types.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,eAAO,MAAM,iBAAiB;;;;;;CAAiB,CAAC;AAChD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { AvatarBaseSize } from "../AvatarBase/AvatarBase.types.mjs";
2
+ export declare const AvatarAccountSize: {
3
+ readonly Xs: "xs";
4
+ readonly Sm: "sm";
5
+ readonly Md: "md";
6
+ readonly Lg: "lg";
7
+ readonly Xl: "xl";
8
+ };
9
+ export type AvatarAccountSize = AvatarBaseSize;
10
+ /**
11
+ * AvatarAccount - variant
12
+ * ADR-0003: Const object with derived string union type instead of TypeScript enum.
13
+ */
14
+ export declare const AvatarAccountVariant: {
15
+ /**
16
+ * Displays a Blockies-generated avatar.
17
+ */
18
+ readonly Blockies: "blockies";
19
+ /**
20
+ * Displays a Jazzicon-generated avatar.
21
+ */
22
+ readonly Jazzicon: "jazzicon";
23
+ /**
24
+ * Displays a Maskicon-generated avatar.
25
+ */
26
+ readonly Maskicon: "maskicon";
27
+ };
28
+ export type AvatarAccountVariant = (typeof AvatarAccountVariant)[keyof typeof AvatarAccountVariant];
29
+ /**
30
+ * AvatarAccount component shared props (ADR-0004)
31
+ * Platform-independent properties shared across React and React Native.
32
+ */
33
+ export type AvatarAccountPropsShared = {
34
+ /**
35
+ * Required address used as a unique identifier to generate the AvatarAccount art.
36
+ */
37
+ address: string;
38
+ /**
39
+ * Optional prop to control the variant of the avatar account.
40
+ *
41
+ * @default AvatarAccountVariant.Jazzicon
42
+ */
43
+ variant?: AvatarAccountVariant;
44
+ /**
45
+ * Optional prop to control the size of the avatar account.
46
+ *
47
+ * @default AvatarAccountSize.Md
48
+ */
49
+ size?: AvatarAccountSize;
50
+ };
51
+ //# sourceMappingURL=AvatarAccount.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarAccount.types.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,eAAO,MAAM,iBAAiB;;;;;;CAAiB,CAAC;AAChD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { AvatarBaseSize } from "../AvatarBase/AvatarBase.types.mjs";
2
+ export const AvatarAccountSize = AvatarBaseSize;
3
+ /**
4
+ * AvatarAccount - variant
5
+ * ADR-0003: Const object with derived string union type instead of TypeScript enum.
6
+ */
7
+ export const AvatarAccountVariant = {
8
+ /**
9
+ * Displays a Blockies-generated avatar.
10
+ */
11
+ Blockies: 'blockies',
12
+ /**
13
+ * Displays a Jazzicon-generated avatar.
14
+ */
15
+ Jazzicon: 'jazzicon',
16
+ /**
17
+ * Displays a Maskicon-generated avatar.
18
+ */
19
+ Maskicon: 'maskicon',
20
+ };
21
+ //# sourceMappingURL=AvatarAccount.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarAccount.types.mjs","sourceRoot":"","sources":["../../../src/types/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAGhD;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,QAAQ,EAAE,UAAU;CACZ,CAAC","sourcesContent":["import { AvatarBaseSize } from '../AvatarBase/AvatarBase.types';\n\nexport const AvatarAccountSize = AvatarBaseSize;\nexport type AvatarAccountSize = AvatarBaseSize;\n\n/**\n * AvatarAccount - variant\n * ADR-0003: Const object with derived string union type instead of TypeScript enum.\n */\nexport const AvatarAccountVariant = {\n /**\n * Displays a Blockies-generated avatar.\n */\n Blockies: 'blockies',\n /**\n * Displays a Jazzicon-generated avatar.\n */\n Jazzicon: 'jazzicon',\n /**\n * Displays a Maskicon-generated avatar.\n */\n Maskicon: 'maskicon',\n} as const;\n\nexport type AvatarAccountVariant =\n (typeof AvatarAccountVariant)[keyof typeof AvatarAccountVariant];\n\n/**\n * AvatarAccount component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type AvatarAccountPropsShared = {\n /**\n * Required address used as a unique identifier to generate the AvatarAccount art.\n */\n address: string;\n /**\n * Optional prop to control the variant of the avatar account.\n *\n * @default AvatarAccountVariant.Jazzicon\n */\n variant?: AvatarAccountVariant;\n /**\n * Optional prop to control the size of the avatar account.\n *\n * @default AvatarAccountSize.Md\n */\n size?: AvatarAccountSize;\n};\n"]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarAccountVariant = exports.AvatarAccountSize = void 0;
4
+ var AvatarAccount_types_1 = require("./AvatarAccount.types.cjs");
5
+ Object.defineProperty(exports, "AvatarAccountSize", { enumerable: true, get: function () { return AvatarAccount_types_1.AvatarAccountSize; } });
6
+ Object.defineProperty(exports, "AvatarAccountVariant", { enumerable: true, get: function () { return AvatarAccount_types_1.AvatarAccountVariant; } });
7
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/AvatarAccount/index.ts"],"names":[],"mappings":";;;AAAA,iEAI+B;AAH7B,wHAAA,iBAAiB,OAAA;AACjB,2HAAA,oBAAoB,OAAA","sourcesContent":["export {\n AvatarAccountSize,\n AvatarAccountVariant,\n type AvatarAccountPropsShared,\n} from './AvatarAccount.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { AvatarAccountSize, AvatarAccountVariant, type AvatarAccountPropsShared, } from "./AvatarAccount.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { AvatarAccountSize, AvatarAccountVariant, type AvatarAccountPropsShared, } from "./AvatarAccount.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { AvatarAccountSize, AvatarAccountVariant } from "./AvatarAccount.types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/AvatarAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EAErB,kCAA8B","sourcesContent":["export {\n AvatarAccountSize,\n AvatarAccountVariant,\n type AvatarAccountPropsShared,\n} from './AvatarAccount.types';\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarTokenSize = void 0;
4
+ const AvatarBase_types_1 = require("../AvatarBase/AvatarBase.types.cjs");
5
+ exports.AvatarTokenSize = AvatarBase_types_1.AvatarBaseSize;
6
+ //# sourceMappingURL=AvatarToken.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.types.cjs","sourceRoot":"","sources":["../../../src/types/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":";;;AAAA,yEAAgE;AAEnD,QAAA,eAAe,GAAG,iCAAc,CAAC","sourcesContent":["import { AvatarBaseSize } from '../AvatarBase/AvatarBase.types';\n\nexport const AvatarTokenSize = AvatarBaseSize;\nexport type AvatarTokenSize = AvatarBaseSize;\n\n/**\n * AvatarToken component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type AvatarTokenPropsShared = {\n /**\n * Optional name of the token.\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 * Optional prop to control the size of the avatar token.\n *\n * @default AvatarTokenSize.Md\n */\n size?: AvatarTokenSize;\n};\n"]}
@@ -0,0 +1,33 @@
1
+ import { AvatarBaseSize } from "../AvatarBase/AvatarBase.types.cjs";
2
+ export declare const AvatarTokenSize: {
3
+ readonly Xs: "xs";
4
+ readonly Sm: "sm";
5
+ readonly Md: "md";
6
+ readonly Lg: "lg";
7
+ readonly Xl: "xl";
8
+ };
9
+ export type AvatarTokenSize = AvatarBaseSize;
10
+ /**
11
+ * AvatarToken component shared props (ADR-0004)
12
+ * Platform-independent properties shared across React and React Native.
13
+ */
14
+ export type AvatarTokenPropsShared = {
15
+ /**
16
+ * Optional name of the token.
17
+ * Used as alt text for the image, and the first letter is used as fallback
18
+ * text when no explicit fallbackText is provided.
19
+ */
20
+ name?: string;
21
+ /**
22
+ * Optional text to display when no image is provided or when the image
23
+ * fails to load. If not provided, the first letter of name is used.
24
+ */
25
+ fallbackText?: string;
26
+ /**
27
+ * Optional prop to control the size of the avatar token.
28
+ *
29
+ * @default AvatarTokenSize.Md
30
+ */
31
+ size?: AvatarTokenSize;
32
+ };
33
+ //# sourceMappingURL=AvatarToken.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.types.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,eAAO,MAAM,eAAe;;;;;;CAAiB,CAAC;AAC9C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { AvatarBaseSize } from "../AvatarBase/AvatarBase.types.mjs";
2
+ export declare const AvatarTokenSize: {
3
+ readonly Xs: "xs";
4
+ readonly Sm: "sm";
5
+ readonly Md: "md";
6
+ readonly Lg: "lg";
7
+ readonly Xl: "xl";
8
+ };
9
+ export type AvatarTokenSize = AvatarBaseSize;
10
+ /**
11
+ * AvatarToken component shared props (ADR-0004)
12
+ * Platform-independent properties shared across React and React Native.
13
+ */
14
+ export type AvatarTokenPropsShared = {
15
+ /**
16
+ * Optional name of the token.
17
+ * Used as alt text for the image, and the first letter is used as fallback
18
+ * text when no explicit fallbackText is provided.
19
+ */
20
+ name?: string;
21
+ /**
22
+ * Optional text to display when no image is provided or when the image
23
+ * fails to load. If not provided, the first letter of name is used.
24
+ */
25
+ fallbackText?: string;
26
+ /**
27
+ * Optional prop to control the size of the avatar token.
28
+ *
29
+ * @default AvatarTokenSize.Md
30
+ */
31
+ size?: AvatarTokenSize;
32
+ };
33
+ //# sourceMappingURL=AvatarToken.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.types.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,eAAO,MAAM,eAAe;;;;;;CAAiB,CAAC;AAC9C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AvatarBaseSize } from "../AvatarBase/AvatarBase.types.mjs";
2
+ export const AvatarTokenSize = AvatarBaseSize;
3
+ //# sourceMappingURL=AvatarToken.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.types.mjs","sourceRoot":"","sources":["../../../src/types/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC","sourcesContent":["import { AvatarBaseSize } from '../AvatarBase/AvatarBase.types';\n\nexport const AvatarTokenSize = AvatarBaseSize;\nexport type AvatarTokenSize = AvatarBaseSize;\n\n/**\n * AvatarToken component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type AvatarTokenPropsShared = {\n /**\n * Optional name of the token.\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 * Optional prop to control the size of the avatar token.\n *\n * @default AvatarTokenSize.Md\n */\n size?: AvatarTokenSize;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarTokenSize = void 0;
4
+ var AvatarToken_types_1 = require("./AvatarToken.types.cjs");
5
+ Object.defineProperty(exports, "AvatarTokenSize", { enumerable: true, get: function () { return AvatarToken_types_1.AvatarTokenSize; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/AvatarToken/index.ts"],"names":[],"mappings":";;;AAAA,6DAG6B;AAF3B,oHAAA,eAAe,OAAA","sourcesContent":["export {\n AvatarTokenSize,\n type AvatarTokenPropsShared,\n} from './AvatarToken.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { AvatarTokenSize, type AvatarTokenPropsShared, } from "./AvatarToken.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarToken/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,KAAK,sBAAsB,GAC5B,gCAA4B"}
@@ -0,0 +1,2 @@
1
+ export { AvatarTokenSize, type AvatarTokenPropsShared, } from "./AvatarToken.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarToken/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,KAAK,sBAAsB,GAC5B,gCAA4B"}
@@ -0,0 +1,2 @@
1
+ export { AvatarTokenSize } from "./AvatarToken.types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/AvatarToken/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEhB,gCAA4B","sourcesContent":["export {\n AvatarTokenSize,\n type AvatarTokenPropsShared,\n} from './AvatarToken.types';\n"]}