@metamask-previews/design-system-shared 0.4.0-preview.9c677c4 → 0.6.0-preview.69c659c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +6 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/AvatarNetwork/AvatarNetwork.types.cjs +3 -0
- package/dist/types/AvatarNetwork/AvatarNetwork.types.cjs.map +1 -0
- package/dist/types/AvatarNetwork/AvatarNetwork.types.d.cts +20 -0
- package/dist/types/AvatarNetwork/AvatarNetwork.types.d.cts.map +1 -0
- package/dist/types/AvatarNetwork/AvatarNetwork.types.d.mts +20 -0
- package/dist/types/AvatarNetwork/AvatarNetwork.types.d.mts.map +1 -0
- package/dist/types/AvatarNetwork/AvatarNetwork.types.mjs +2 -0
- package/dist/types/AvatarNetwork/AvatarNetwork.types.mjs.map +1 -0
- package/dist/types/AvatarNetwork/index.cjs +3 -0
- package/dist/types/AvatarNetwork/index.cjs.map +1 -0
- package/dist/types/AvatarNetwork/index.d.cts +2 -0
- package/dist/types/AvatarNetwork/index.d.cts.map +1 -0
- package/dist/types/AvatarNetwork/index.d.mts +2 -0
- package/dist/types/AvatarNetwork/index.d.mts.map +1 -0
- package/dist/types/AvatarNetwork/index.mjs +2 -0
- package/dist/types/AvatarNetwork/index.mjs.map +1 -0
- package/dist/types/BadgeWrapper/BadgeWrapper.types.cjs +40 -0
- package/dist/types/BadgeWrapper/BadgeWrapper.types.cjs.map +1 -0
- package/dist/types/BadgeWrapper/BadgeWrapper.types.d.cts +99 -0
- package/dist/types/BadgeWrapper/BadgeWrapper.types.d.cts.map +1 -0
- package/dist/types/BadgeWrapper/BadgeWrapper.types.d.mts +99 -0
- package/dist/types/BadgeWrapper/BadgeWrapper.types.d.mts.map +1 -0
- package/dist/types/BadgeWrapper/BadgeWrapper.types.mjs +37 -0
- package/dist/types/BadgeWrapper/BadgeWrapper.types.mjs.map +1 -0
- package/dist/types/BadgeWrapper/index.cjs +7 -0
- package/dist/types/BadgeWrapper/index.cjs.map +1 -0
- package/dist/types/BadgeWrapper/index.d.cts +2 -0
- package/dist/types/BadgeWrapper/index.d.cts.map +1 -0
- package/dist/types/BadgeWrapper/index.d.mts +2 -0
- package/dist/types/BadgeWrapper/index.d.mts.map +1 -0
- package/dist/types/BadgeWrapper/index.mjs +2 -0
- package/dist/types/BadgeWrapper/index.mjs.map +1 -0
- package/dist/types/Box/Box.types.cjs +176 -0
- package/dist/types/Box/Box.types.cjs.map +1 -0
- package/dist/types/Box/Box.types.d.cts +297 -0
- package/dist/types/Box/Box.types.d.cts.map +1 -0
- package/dist/types/Box/Box.types.d.mts +297 -0
- package/dist/types/Box/Box.types.d.mts.map +1 -0
- package/dist/types/Box/Box.types.mjs +173 -0
- package/dist/types/Box/Box.types.mjs.map +1 -0
- package/dist/types/Box/index.cjs +11 -0
- package/dist/types/Box/index.cjs.map +1 -0
- package/dist/types/Box/index.d.cts +2 -0
- package/dist/types/Box/index.d.cts.map +1 -0
- package/dist/types/Box/index.d.mts +2 -0
- package/dist/types/Box/index.d.mts.map +1 -0
- package/dist/types/Box/index.mjs +2 -0
- package/dist/types/Box/index.mjs.map +1 -0
- package/dist/types/BoxHorizontal/BoxHorizontal.types.cjs +3 -0
- package/dist/types/BoxHorizontal/BoxHorizontal.types.cjs.map +1 -0
- package/dist/types/BoxHorizontal/BoxHorizontal.types.d.cts +17 -0
- package/dist/types/BoxHorizontal/BoxHorizontal.types.d.cts.map +1 -0
- package/dist/types/BoxHorizontal/BoxHorizontal.types.d.mts +17 -0
- package/dist/types/BoxHorizontal/BoxHorizontal.types.d.mts.map +1 -0
- package/dist/types/BoxHorizontal/BoxHorizontal.types.mjs +2 -0
- package/dist/types/BoxHorizontal/BoxHorizontal.types.mjs.map +1 -0
- package/dist/types/BoxHorizontal/index.cjs +3 -0
- package/dist/types/BoxHorizontal/index.cjs.map +1 -0
- package/dist/types/BoxHorizontal/index.d.cts +2 -0
- package/dist/types/BoxHorizontal/index.d.cts.map +1 -0
- package/dist/types/BoxHorizontal/index.d.mts +2 -0
- package/dist/types/BoxHorizontal/index.d.mts.map +1 -0
- package/dist/types/BoxHorizontal/index.mjs +2 -0
- package/dist/types/BoxHorizontal/index.mjs.map +1 -0
- package/dist/types/BoxVertical/BoxVertical.types.cjs +3 -0
- package/dist/types/BoxVertical/BoxVertical.types.cjs.map +1 -0
- package/dist/types/BoxVertical/BoxVertical.types.d.cts +17 -0
- package/dist/types/BoxVertical/BoxVertical.types.d.cts.map +1 -0
- package/dist/types/BoxVertical/BoxVertical.types.d.mts +17 -0
- package/dist/types/BoxVertical/BoxVertical.types.d.mts.map +1 -0
- package/dist/types/BoxVertical/BoxVertical.types.mjs +2 -0
- package/dist/types/BoxVertical/BoxVertical.types.mjs.map +1 -0
- package/dist/types/BoxVertical/index.cjs +3 -0
- package/dist/types/BoxVertical/index.cjs.map +1 -0
- package/dist/types/BoxVertical/index.d.cts +2 -0
- package/dist/types/BoxVertical/index.d.cts.map +1 -0
- package/dist/types/BoxVertical/index.d.mts +2 -0
- package/dist/types/BoxVertical/index.d.mts.map +1 -0
- package/dist/types/BoxVertical/index.mjs +2 -0
- package/dist/types/BoxVertical/index.mjs.map +1 -0
- package/dist/types/TextOrChildren/TextOrChildren.types.cjs +3 -0
- package/dist/types/TextOrChildren/TextOrChildren.types.cjs.map +1 -0
- package/dist/types/TextOrChildren/TextOrChildren.types.d.cts +12 -0
- package/dist/types/TextOrChildren/TextOrChildren.types.d.cts.map +1 -0
- package/dist/types/TextOrChildren/TextOrChildren.types.d.mts +12 -0
- package/dist/types/TextOrChildren/TextOrChildren.types.d.mts.map +1 -0
- package/dist/types/TextOrChildren/TextOrChildren.types.mjs +2 -0
- package/dist/types/TextOrChildren/TextOrChildren.types.mjs.map +1 -0
- package/dist/types/TextOrChildren/index.cjs +3 -0
- package/dist/types/TextOrChildren/index.cjs.map +1 -0
- package/dist/types/TextOrChildren/index.d.cts +2 -0
- package/dist/types/TextOrChildren/index.d.cts.map +1 -0
- package/dist/types/TextOrChildren/index.d.mts +2 -0
- package/dist/types/TextOrChildren/index.d.mts.map +1 -0
- package/dist/types/TextOrChildren/index.mjs +2 -0
- package/dist/types/TextOrChildren/index.mjs.map +1 -0
- package/package.json +1 -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.
|
|
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,6 +1,6 @@
|
|
|
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.BoxBorderColor = exports.BoxBackgroundColor = exports.BoxJustifyContent = exports.BoxAlignItems = exports.BoxFlexWrap = exports.BoxFlexDirection = exports.BadgeWrapperPosition = exports.BadgeWrapperPositionAnchorShape = exports.BannerAlertSeverity = exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.BadgeCountSize = 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; } });
|
|
@@ -17,4 +17,16 @@ Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: funct
|
|
|
17
17
|
// BannerAlert types (ADR-0003 + ADR-0004)
|
|
18
18
|
var BannerAlert_1 = require("./types/BannerAlert/index.cjs");
|
|
19
19
|
Object.defineProperty(exports, "BannerAlertSeverity", { enumerable: true, get: function () { return BannerAlert_1.BannerAlertSeverity; } });
|
|
20
|
+
// BadgeWrapper types (ADR-0003 + ADR-0004)
|
|
21
|
+
var BadgeWrapper_1 = require("./types/BadgeWrapper/index.cjs");
|
|
22
|
+
Object.defineProperty(exports, "BadgeWrapperPositionAnchorShape", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPositionAnchorShape; } });
|
|
23
|
+
Object.defineProperty(exports, "BadgeWrapperPosition", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPosition; } });
|
|
24
|
+
// Box types (ADR-0003 + ADR-0004)
|
|
25
|
+
var Box_1 = require("./types/Box/index.cjs");
|
|
26
|
+
Object.defineProperty(exports, "BoxFlexDirection", { enumerable: true, get: function () { return Box_1.BoxFlexDirection; } });
|
|
27
|
+
Object.defineProperty(exports, "BoxFlexWrap", { enumerable: true, get: function () { return Box_1.BoxFlexWrap; } });
|
|
28
|
+
Object.defineProperty(exports, "BoxAlignItems", { enumerable: true, get: function () { return Box_1.BoxAlignItems; } });
|
|
29
|
+
Object.defineProperty(exports, "BoxJustifyContent", { enumerable: true, get: function () { return Box_1.BoxJustifyContent; } });
|
|
30
|
+
Object.defineProperty(exports, "BoxBackgroundColor", { enumerable: true, get: function () { return Box_1.BoxBackgroundColor; } });
|
|
31
|
+
Object.defineProperty(exports, "BoxBorderColor", { enumerable: true, get: function () { return Box_1.BoxBorderColor; } });
|
|
20
32
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -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;
|
|
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;AAsBjB,0CAA0C;AAC1C,6DAG6B;AAF3B,kHAAA,mBAAmB,OAAA;AAIrB,2CAA2C;AAC3C,+DAK8B;AAJ5B,+HAAA,+BAA+B,OAAA;AAC/B,oHAAA,oBAAoB,OAAA;AAKtB,kCAAkC;AAClC,6CAUqB;AATnB,uGAAA,gBAAgB,OAAA;AAChB,kGAAA,WAAW,OAAA;AACX,oGAAA,aAAa,OAAA;AACb,wGAAA,iBAAiB,OAAA;AACjB,yGAAA,kBAAkB,OAAA;AAClB,qGAAA,cAAc,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// 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\n// Box types (ADR-0003 + ADR-0004)\nexport {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n type BoxSpacing,\n type BoxBorderWidth,\n type BoxPropsShared,\n} from './types/Box';\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,12 @@ export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, i
|
|
|
2
2
|
export { BadgeCountSize, type BadgeCountPropsShared } from "./types/BadgeCount/index.cjs";
|
|
3
3
|
export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./types/BadgeStatus/index.cjs";
|
|
4
4
|
export { type BannerBasePropsShared } from "./types/BannerBase/index.cjs";
|
|
5
|
+
export { type TextOrChildrenPropsShared } from "./types/TextOrChildren/index.cjs";
|
|
6
|
+
export { type BoxHorizontalPropsShared } from "./types/BoxHorizontal/index.cjs";
|
|
7
|
+
export { type BoxVerticalPropsShared } from "./types/BoxVertical/index.cjs";
|
|
5
8
|
export { type ButtonFilterPropsShared } from "./types/ButtonFilter/index.cjs";
|
|
9
|
+
export { type AvatarNetworkPropsShared } from "./types/AvatarNetwork/index.cjs";
|
|
6
10
|
export { BannerAlertSeverity, type BannerAlertPropsShared, } from "./types/BannerAlert/index.cjs";
|
|
11
|
+
export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition, type BadgeWrapperCustomPosition, type BadgeWrapperPropsShared, } from "./types/BadgeWrapper/index.cjs";
|
|
12
|
+
export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, type BoxSpacing, type BoxBorderWidth, type BoxPropsShared, } from "./types/Box/index.cjs";
|
|
7
13
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -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;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,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;AAG9B,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,8BAAoB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,12 @@ export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, i
|
|
|
2
2
|
export { BadgeCountSize, type BadgeCountPropsShared } from "./types/BadgeCount/index.mjs";
|
|
3
3
|
export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./types/BadgeStatus/index.mjs";
|
|
4
4
|
export { type BannerBasePropsShared } from "./types/BannerBase/index.mjs";
|
|
5
|
+
export { type TextOrChildrenPropsShared } from "./types/TextOrChildren/index.mjs";
|
|
6
|
+
export { type BoxHorizontalPropsShared } from "./types/BoxHorizontal/index.mjs";
|
|
7
|
+
export { type BoxVerticalPropsShared } from "./types/BoxVertical/index.mjs";
|
|
5
8
|
export { type ButtonFilterPropsShared } from "./types/ButtonFilter/index.mjs";
|
|
9
|
+
export { type AvatarNetworkPropsShared } from "./types/AvatarNetwork/index.mjs";
|
|
6
10
|
export { BannerAlertSeverity, type BannerAlertPropsShared, } from "./types/BannerAlert/index.mjs";
|
|
11
|
+
export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition, type BadgeWrapperCustomPosition, type BadgeWrapperPropsShared, } from "./types/BadgeWrapper/index.mjs";
|
|
12
|
+
export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, type BoxSpacing, type BoxBorderWidth, type BoxPropsShared, } from "./types/Box/index.mjs";
|
|
7
13
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -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;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,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;AAG9B,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,8BAAoB"}
|
package/dist/index.mjs
CHANGED
|
@@ -5,4 +5,8 @@ export { BadgeCountSize } from "./types/BadgeCount/index.mjs";
|
|
|
5
5
|
export { BadgeStatusStatus, BadgeStatusSize } from "./types/BadgeStatus/index.mjs";
|
|
6
6
|
// BannerAlert types (ADR-0003 + ADR-0004)
|
|
7
7
|
export { BannerAlertSeverity } from "./types/BannerAlert/index.mjs";
|
|
8
|
+
// BadgeWrapper types (ADR-0003 + ADR-0004)
|
|
9
|
+
export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition } from "./types/BadgeWrapper/index.mjs";
|
|
10
|
+
// Box types (ADR-0003 + ADR-0004)
|
|
11
|
+
export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "./types/Box/index.mjs";
|
|
8
12
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -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;
|
|
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;AAoB7B,0CAA0C;AAC1C,OAAO,EACL,mBAAmB,EAEpB,sCAA4B;AAE7B,2CAA2C;AAC3C,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EAGrB,uCAA6B;AAE9B,kCAAkC;AAClC,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EAIf,8BAAoB","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// 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\n// Box types (ADR-0003 + ADR-0004)\nexport {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n type BoxSpacing,\n type BoxBorderWidth,\n type BoxPropsShared,\n} from './types/Box';\n"]}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BadgeWrapper - positionAnchorShape
|
|
3
|
+
* Convert from enum to const object (ADR-0003)
|
|
4
|
+
*/
|
|
5
|
+
export declare const BadgeWrapperPositionAnchorShape: {
|
|
6
|
+
/**
|
|
7
|
+
* Represents a rectangular anchoring shape
|
|
8
|
+
*/
|
|
9
|
+
readonly Rectangular: "rectangular";
|
|
10
|
+
/**
|
|
11
|
+
* Represents a circular anchoring shape
|
|
12
|
+
*/
|
|
13
|
+
readonly Circular: "circular";
|
|
14
|
+
};
|
|
15
|
+
export type BadgeWrapperPositionAnchorShape = (typeof BadgeWrapperPositionAnchorShape)[keyof typeof BadgeWrapperPositionAnchorShape];
|
|
16
|
+
/**
|
|
17
|
+
* BadgeWrapper - position
|
|
18
|
+
* Convert from enum to const object (ADR-0003)
|
|
19
|
+
*/
|
|
20
|
+
export declare const BadgeWrapperPosition: {
|
|
21
|
+
/**
|
|
22
|
+
* Positions the badge at the top right
|
|
23
|
+
*/
|
|
24
|
+
readonly TopRight: "top-right";
|
|
25
|
+
/**
|
|
26
|
+
* Positions the badge at the bottom right
|
|
27
|
+
*/
|
|
28
|
+
readonly BottomRight: "bottom-right";
|
|
29
|
+
/**
|
|
30
|
+
* Positions the badge at the bottom left
|
|
31
|
+
*/
|
|
32
|
+
readonly BottomLeft: "bottom-left";
|
|
33
|
+
/**
|
|
34
|
+
* Positions the badge at the top left
|
|
35
|
+
*/
|
|
36
|
+
readonly TopLeft: "top-left";
|
|
37
|
+
};
|
|
38
|
+
export type BadgeWrapperPosition = (typeof BadgeWrapperPosition)[keyof typeof BadgeWrapperPosition];
|
|
39
|
+
/**
|
|
40
|
+
* BadgeWrapper - customPosition type (ADR-0004)
|
|
41
|
+
* Platform-independent custom position definition
|
|
42
|
+
*/
|
|
43
|
+
export type BadgeWrapperCustomPosition = {
|
|
44
|
+
top?: number | string | undefined;
|
|
45
|
+
right?: number | string | undefined;
|
|
46
|
+
bottom?: number | string | undefined;
|
|
47
|
+
left?: number | string | undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* BadgeWrapper component shared props (ADR-0004)
|
|
51
|
+
* Platform-independent properties shared across React and React Native
|
|
52
|
+
*/
|
|
53
|
+
export type BadgeWrapperPropsShared = {
|
|
54
|
+
/**
|
|
55
|
+
* Optional prop to determine the shape of the anchoring element.
|
|
56
|
+
* This prop gets used along with position, positionXOffset, and positionYOffset
|
|
57
|
+
* to determine the final position.
|
|
58
|
+
* Possible values:
|
|
59
|
+
* - BadgeWrapperPositionAnchorShape.Circular
|
|
60
|
+
* - BadgeWrapperPositionAnchorShape.Rectangular
|
|
61
|
+
*
|
|
62
|
+
* @default BadgeWrapperPositionAnchorShape.Circular
|
|
63
|
+
*/
|
|
64
|
+
positionAnchorShape?: BadgeWrapperPositionAnchorShape;
|
|
65
|
+
/**
|
|
66
|
+
* Optional prop to control the preset position of the badge.
|
|
67
|
+
* This prop gets used along with positionAnchorShape, positionXOffset, and positionYOffset
|
|
68
|
+
* to determine the final position.
|
|
69
|
+
*
|
|
70
|
+
* @default BadgeWrapperPosition.TopRight
|
|
71
|
+
*/
|
|
72
|
+
position?: BadgeWrapperPosition;
|
|
73
|
+
/**
|
|
74
|
+
* Optional prop to move the preset position horizontally.
|
|
75
|
+
*
|
|
76
|
+
* @default 0
|
|
77
|
+
*/
|
|
78
|
+
positionXOffset?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Optional prop to move the preset position vertically.
|
|
81
|
+
*
|
|
82
|
+
* @default 0
|
|
83
|
+
*/
|
|
84
|
+
positionYOffset?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Optional prop to customize the position through the position object.
|
|
87
|
+
* Position object - {top: 0, right: 0, bottom: 0, left: 0}
|
|
88
|
+
*/
|
|
89
|
+
customPosition?: BadgeWrapperCustomPosition;
|
|
90
|
+
/**
|
|
91
|
+
* The element that the badge will attach itself to.
|
|
92
|
+
*/
|
|
93
|
+
children: React.ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* Any element that will be placed in the position of the badge.
|
|
96
|
+
*/
|
|
97
|
+
badge: React.ReactNode;
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=BadgeWrapper.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeWrapper.types.d.cts","sourceRoot":"","sources":["../../../src/types/BadgeWrapper/BadgeWrapper.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,+BAA+B;IAC1C;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,+BAA+B,GACzC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,+BAA+B,CAAC;IACtD;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAC5C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BadgeWrapper - positionAnchorShape
|
|
3
|
+
* Convert from enum to const object (ADR-0003)
|
|
4
|
+
*/
|
|
5
|
+
export declare const BadgeWrapperPositionAnchorShape: {
|
|
6
|
+
/**
|
|
7
|
+
* Represents a rectangular anchoring shape
|
|
8
|
+
*/
|
|
9
|
+
readonly Rectangular: "rectangular";
|
|
10
|
+
/**
|
|
11
|
+
* Represents a circular anchoring shape
|
|
12
|
+
*/
|
|
13
|
+
readonly Circular: "circular";
|
|
14
|
+
};
|
|
15
|
+
export type BadgeWrapperPositionAnchorShape = (typeof BadgeWrapperPositionAnchorShape)[keyof typeof BadgeWrapperPositionAnchorShape];
|
|
16
|
+
/**
|
|
17
|
+
* BadgeWrapper - position
|
|
18
|
+
* Convert from enum to const object (ADR-0003)
|
|
19
|
+
*/
|
|
20
|
+
export declare const BadgeWrapperPosition: {
|
|
21
|
+
/**
|
|
22
|
+
* Positions the badge at the top right
|
|
23
|
+
*/
|
|
24
|
+
readonly TopRight: "top-right";
|
|
25
|
+
/**
|
|
26
|
+
* Positions the badge at the bottom right
|
|
27
|
+
*/
|
|
28
|
+
readonly BottomRight: "bottom-right";
|
|
29
|
+
/**
|
|
30
|
+
* Positions the badge at the bottom left
|
|
31
|
+
*/
|
|
32
|
+
readonly BottomLeft: "bottom-left";
|
|
33
|
+
/**
|
|
34
|
+
* Positions the badge at the top left
|
|
35
|
+
*/
|
|
36
|
+
readonly TopLeft: "top-left";
|
|
37
|
+
};
|
|
38
|
+
export type BadgeWrapperPosition = (typeof BadgeWrapperPosition)[keyof typeof BadgeWrapperPosition];
|
|
39
|
+
/**
|
|
40
|
+
* BadgeWrapper - customPosition type (ADR-0004)
|
|
41
|
+
* Platform-independent custom position definition
|
|
42
|
+
*/
|
|
43
|
+
export type BadgeWrapperCustomPosition = {
|
|
44
|
+
top?: number | string | undefined;
|
|
45
|
+
right?: number | string | undefined;
|
|
46
|
+
bottom?: number | string | undefined;
|
|
47
|
+
left?: number | string | undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* BadgeWrapper component shared props (ADR-0004)
|
|
51
|
+
* Platform-independent properties shared across React and React Native
|
|
52
|
+
*/
|
|
53
|
+
export type BadgeWrapperPropsShared = {
|
|
54
|
+
/**
|
|
55
|
+
* Optional prop to determine the shape of the anchoring element.
|
|
56
|
+
* This prop gets used along with position, positionXOffset, and positionYOffset
|
|
57
|
+
* to determine the final position.
|
|
58
|
+
* Possible values:
|
|
59
|
+
* - BadgeWrapperPositionAnchorShape.Circular
|
|
60
|
+
* - BadgeWrapperPositionAnchorShape.Rectangular
|
|
61
|
+
*
|
|
62
|
+
* @default BadgeWrapperPositionAnchorShape.Circular
|
|
63
|
+
*/
|
|
64
|
+
positionAnchorShape?: BadgeWrapperPositionAnchorShape;
|
|
65
|
+
/**
|
|
66
|
+
* Optional prop to control the preset position of the badge.
|
|
67
|
+
* This prop gets used along with positionAnchorShape, positionXOffset, and positionYOffset
|
|
68
|
+
* to determine the final position.
|
|
69
|
+
*
|
|
70
|
+
* @default BadgeWrapperPosition.TopRight
|
|
71
|
+
*/
|
|
72
|
+
position?: BadgeWrapperPosition;
|
|
73
|
+
/**
|
|
74
|
+
* Optional prop to move the preset position horizontally.
|
|
75
|
+
*
|
|
76
|
+
* @default 0
|
|
77
|
+
*/
|
|
78
|
+
positionXOffset?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Optional prop to move the preset position vertically.
|
|
81
|
+
*
|
|
82
|
+
* @default 0
|
|
83
|
+
*/
|
|
84
|
+
positionYOffset?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Optional prop to customize the position through the position object.
|
|
87
|
+
* Position object - {top: 0, right: 0, bottom: 0, left: 0}
|
|
88
|
+
*/
|
|
89
|
+
customPosition?: BadgeWrapperCustomPosition;
|
|
90
|
+
/**
|
|
91
|
+
* The element that the badge will attach itself to.
|
|
92
|
+
*/
|
|
93
|
+
children: React.ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* Any element that will be placed in the position of the badge.
|
|
96
|
+
*/
|
|
97
|
+
badge: React.ReactNode;
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=BadgeWrapper.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeWrapper.types.d.mts","sourceRoot":"","sources":["../../../src/types/BadgeWrapper/BadgeWrapper.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,+BAA+B;IAC1C;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,+BAA+B,GACzC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,+BAA+B,CAAC;IACtD;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAC5C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BadgeWrapper - positionAnchorShape
|
|
3
|
+
* Convert from enum to const object (ADR-0003)
|
|
4
|
+
*/
|
|
5
|
+
export const BadgeWrapperPositionAnchorShape = {
|
|
6
|
+
/**
|
|
7
|
+
* Represents a rectangular anchoring shape
|
|
8
|
+
*/
|
|
9
|
+
Rectangular: 'rectangular',
|
|
10
|
+
/**
|
|
11
|
+
* Represents a circular anchoring shape
|
|
12
|
+
*/
|
|
13
|
+
Circular: 'circular',
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* BadgeWrapper - position
|
|
17
|
+
* Convert from enum to const object (ADR-0003)
|
|
18
|
+
*/
|
|
19
|
+
export const BadgeWrapperPosition = {
|
|
20
|
+
/**
|
|
21
|
+
* Positions the badge at the top right
|
|
22
|
+
*/
|
|
23
|
+
TopRight: 'top-right',
|
|
24
|
+
/**
|
|
25
|
+
* Positions the badge at the bottom right
|
|
26
|
+
*/
|
|
27
|
+
BottomRight: 'bottom-right',
|
|
28
|
+
/**
|
|
29
|
+
* Positions the badge at the bottom left
|
|
30
|
+
*/
|
|
31
|
+
BottomLeft: 'bottom-left',
|
|
32
|
+
/**
|
|
33
|
+
* Positions the badge at the top left
|
|
34
|
+
*/
|
|
35
|
+
TopLeft: 'top-left',
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=BadgeWrapper.types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeWrapper.types.mjs","sourceRoot":"","sources":["../../../src/types/BadgeWrapper/BadgeWrapper.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,QAAQ,EAAE,UAAU;CACZ,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,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"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BadgeWrapperPosition = exports.BadgeWrapperPositionAnchorShape = void 0;
|
|
4
|
+
var BadgeWrapper_types_1 = require("./BadgeWrapper.types.cjs");
|
|
5
|
+
Object.defineProperty(exports, "BadgeWrapperPositionAnchorShape", { enumerable: true, get: function () { return BadgeWrapper_types_1.BadgeWrapperPositionAnchorShape; } });
|
|
6
|
+
Object.defineProperty(exports, "BadgeWrapperPosition", { enumerable: true, get: function () { return BadgeWrapper_types_1.BadgeWrapperPosition; } });
|
|
7
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/BadgeWrapper/index.ts"],"names":[],"mappings":";;;AAAA,+DAK8B;AAJ5B,qIAAA,+BAA+B,OAAA;AAC/B,0HAAA,oBAAoB,OAAA","sourcesContent":["export {\n BadgeWrapperPositionAnchorShape,\n BadgeWrapperPosition,\n type BadgeWrapperCustomPosition,\n type BadgeWrapperPropsShared,\n} from './BadgeWrapper.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/BadgeWrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,GAC7B,iCAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/BadgeWrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,GAC7B,iCAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/BadgeWrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EAGrB,iCAA6B","sourcesContent":["export {\n BadgeWrapperPositionAnchorShape,\n BadgeWrapperPosition,\n type BadgeWrapperCustomPosition,\n type BadgeWrapperPropsShared,\n} from './BadgeWrapper.types';\n"]}
|