@metamask-previews/design-system-shared 0.9.0-preview.d854123 → 0.11.0-preview.ba86146
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 +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/types/AvatarFavicon/AvatarFavicon.types.cjs +6 -0
- package/dist/types/AvatarFavicon/AvatarFavicon.types.cjs.map +1 -0
- package/dist/types/AvatarFavicon/AvatarFavicon.types.d.cts +33 -0
- package/dist/types/AvatarFavicon/AvatarFavicon.types.d.cts.map +1 -0
- package/dist/types/AvatarFavicon/AvatarFavicon.types.d.mts +33 -0
- package/dist/types/AvatarFavicon/AvatarFavicon.types.d.mts.map +1 -0
- package/dist/types/AvatarFavicon/AvatarFavicon.types.mjs +3 -0
- package/dist/types/AvatarFavicon/AvatarFavicon.types.mjs.map +1 -0
- package/dist/types/AvatarFavicon/index.cjs +6 -0
- package/dist/types/AvatarFavicon/index.cjs.map +1 -0
- package/dist/types/AvatarFavicon/index.d.cts +2 -0
- package/dist/types/AvatarFavicon/index.d.cts.map +1 -0
- package/dist/types/AvatarFavicon/index.d.mts +2 -0
- package/dist/types/AvatarFavicon/index.d.mts.map +1 -0
- package/dist/types/AvatarFavicon/index.mjs +2 -0
- package/dist/types/AvatarFavicon/index.mjs.map +1 -0
- package/dist/types/Checkbox/Checkbox.types.cjs +3 -0
- package/dist/types/Checkbox/Checkbox.types.cjs.map +1 -0
- package/dist/types/Checkbox/Checkbox.types.d.cts +35 -0
- package/dist/types/Checkbox/Checkbox.types.d.cts.map +1 -0
- package/dist/types/Checkbox/Checkbox.types.d.mts +35 -0
- package/dist/types/Checkbox/Checkbox.types.d.mts.map +1 -0
- package/dist/types/Checkbox/Checkbox.types.mjs +2 -0
- package/dist/types/Checkbox/Checkbox.types.mjs.map +1 -0
- package/dist/types/Checkbox/index.cjs +3 -0
- package/dist/types/Checkbox/index.cjs.map +1 -0
- package/dist/types/Checkbox/index.d.cts +2 -0
- package/dist/types/Checkbox/index.d.cts.map +1 -0
- package/dist/types/Checkbox/index.d.mts +2 -0
- package/dist/types/Checkbox/index.d.mts.map +1 -0
- package/dist/types/Checkbox/index.mjs +2 -0
- package/dist/types/Checkbox/index.mjs.map +1 -0
- package/dist/types/IconAlert/IconAlert.types.cjs +25 -0
- package/dist/types/IconAlert/IconAlert.types.cjs.map +1 -0
- package/dist/types/IconAlert/IconAlert.types.d.cts +32 -0
- package/dist/types/IconAlert/IconAlert.types.d.cts.map +1 -0
- package/dist/types/IconAlert/IconAlert.types.d.mts +32 -0
- package/dist/types/IconAlert/IconAlert.types.d.mts.map +1 -0
- package/dist/types/IconAlert/IconAlert.types.mjs +22 -0
- package/dist/types/IconAlert/IconAlert.types.mjs.map +1 -0
- package/dist/types/IconAlert/index.cjs +6 -0
- package/dist/types/IconAlert/index.cjs.map +1 -0
- package/dist/types/IconAlert/index.d.cts +2 -0
- package/dist/types/IconAlert/index.d.cts.map +1 -0
- package/dist/types/IconAlert/index.d.mts +2 -0
- package/dist/types/IconAlert/index.d.mts.map +1 -0
- package/dist/types/IconAlert/index.mjs +2 -0
- package/dist/types/IconAlert/index.mjs.map +1 -0
- package/dist/types/Text/Text.types.cjs +138 -0
- package/dist/types/Text/Text.types.cjs.map +1 -0
- package/dist/types/Text/Text.types.d.cts +179 -0
- package/dist/types/Text/Text.types.d.cts.map +1 -0
- package/dist/types/Text/Text.types.d.mts +179 -0
- package/dist/types/Text/Text.types.d.mts.map +1 -0
- package/dist/types/Text/Text.types.mjs +135 -0
- package/dist/types/Text/Text.types.mjs.map +1 -0
- package/dist/types/Text/index.cjs +10 -0
- package/dist/types/Text/index.cjs.map +1 -0
- package/dist/types/Text/index.d.cts +2 -0
- package/dist/types/Text/index.d.cts.map +1 -0
- package/dist/types/Text/index.d.mts +2 -0
- package/dist/types/Text/index.d.mts.map +1 -0
- package/dist/types/Text/index.mjs +2 -0
- package/dist/types/Text/index.mjs.map +1 -0
- package/package.json +3 -8
- package/dist/types/Icon/Icon.types.cjs +0 -351
- package/dist/types/Icon/Icon.types.cjs.map +0 -1
- package/dist/types/Icon/Icon.types.d.cts +0 -367
- package/dist/types/Icon/Icon.types.d.cts.map +0 -1
- package/dist/types/Icon/Icon.types.d.mts +0 -367
- package/dist/types/Icon/Icon.types.d.mts.map +0 -1
- package/dist/types/Icon/Icon.types.mjs +0 -348
- package/dist/types/Icon/Icon.types.mjs.map +0 -1
- package/dist/types/Icon/index.cjs +0 -8
- package/dist/types/Icon/index.cjs.map +0 -1
- package/dist/types/Icon/index.d.cts +0 -2
- package/dist/types/Icon/index.d.cts.map +0 -1
- package/dist/types/Icon/index.d.mts +0 -2
- package/dist/types/Icon/index.d.mts.map +0 -1
- package/dist/types/Icon/index.mjs +0 -2
- package/dist/types/Icon/index.mjs.map +0 -1
- package/dist/utils/isReactNodeRenderable.cjs +0 -20
- package/dist/utils/isReactNodeRenderable.cjs.map +0 -1
- package/dist/utils/isReactNodeRenderable.d.cts +0 -15
- package/dist/utils/isReactNodeRenderable.d.cts.map +0 -1
- package/dist/utils/isReactNodeRenderable.d.mts +0 -15
- package/dist/utils/isReactNodeRenderable.d.mts.map +0 -1
- package/dist/utils/isReactNodeRenderable.mjs +0 -16
- package/dist/utils/isReactNodeRenderable.mjs.map +0 -1
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.11.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Added `IconAlertSeverity` and `IconAlertPropsShared` shared types for cross-platform use ([#1060](https://github.com/MetaMask/metamask-design-system/pull/1060))
|
|
15
|
+
- Added `AvatarFaviconSize` and `AvatarFaviconPropsShared` shared types for cross-platform use ([#1062](https://github.com/MetaMask/metamask-design-system/pull/1062))
|
|
16
|
+
|
|
17
|
+
## [0.10.0]
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Added `TextVariant`, `TextColor`, `FontWeight`, `FontStyle`, `FontFamily`, and `TextPropsShared` shared types for cross-platform use ([#1047](https://github.com/MetaMask/metamask-design-system/pull/1047))
|
|
22
|
+
|
|
10
23
|
## [0.9.0]
|
|
11
24
|
|
|
12
25
|
### Added
|
|
@@ -108,7 +121,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
108
121
|
- **Initial release** - MetaMask Design System Shared
|
|
109
122
|
- Adding CAIP-10 address utilities ([#817](https://github.com/MetaMask/metamask-design-system/pull/817))
|
|
110
123
|
|
|
111
|
-
[Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.
|
|
124
|
+
[Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.11.0...HEAD
|
|
125
|
+
[0.11.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.10.0...@metamask/design-system-shared@0.11.0
|
|
126
|
+
[0.10.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.9.0...@metamask/design-system-shared@0.10.0
|
|
112
127
|
[0.9.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.8.0...@metamask/design-system-shared@0.9.0
|
|
113
128
|
[0.8.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.7.0...@metamask/design-system-shared@0.8.0
|
|
114
129
|
[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
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AvatarFaviconSize = exports.TextVariant = exports.TextColor = exports.FontWeight = exports.FontStyle = exports.FontFamily = exports.AvatarAccountVariant = exports.AvatarAccountSize = exports.BadgeWrapperPosition = exports.BadgeWrapperPositionAnchorShape = exports.BannerAlertSeverity = exports.AvatarTokenSize = exports.KeyValueRowVariant = exports.HeaderSearchVariant = exports.IconAlertSeverity = exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.BadgeCountSize = exports.AvatarBaseShape = exports.AvatarBaseSize = exports.generateIconSeed = exports.isEthereumAddress = exports.generateSeedNonEthereum = exports.generateSeedEthereum = exports.extractAccountAddress = void 0;
|
|
4
4
|
var caip_address_1 = require("./utils/caip-address.cjs");
|
|
5
5
|
Object.defineProperty(exports, "extractAccountAddress", { enumerable: true, get: function () { return caip_address_1.extractAccountAddress; } });
|
|
6
6
|
Object.defineProperty(exports, "generateSeedEthereum", { enumerable: true, get: function () { return caip_address_1.generateSeedEthereum; } });
|
|
7
7
|
Object.defineProperty(exports, "generateSeedNonEthereum", { enumerable: true, get: function () { return caip_address_1.generateSeedNonEthereum; } });
|
|
8
8
|
Object.defineProperty(exports, "isEthereumAddress", { enumerable: true, get: function () { return caip_address_1.isEthereumAddress; } });
|
|
9
9
|
Object.defineProperty(exports, "generateIconSeed", { enumerable: true, get: function () { return caip_address_1.generateIconSeed; } });
|
|
10
|
-
var isReactNodeRenderable_1 = require("./utils/isReactNodeRenderable.cjs");
|
|
11
|
-
Object.defineProperty(exports, "isReactNodeRenderable", { enumerable: true, get: function () { return isReactNodeRenderable_1.isReactNodeRenderable; } });
|
|
12
10
|
// AvatarBase types (ADR-0003 + ADR-0004)
|
|
13
11
|
var AvatarBase_1 = require("./types/AvatarBase/index.cjs");
|
|
14
12
|
Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return AvatarBase_1.AvatarBaseSize; } });
|
|
@@ -20,6 +18,9 @@ Object.defineProperty(exports, "BadgeCountSize", { enumerable: true, get: functi
|
|
|
20
18
|
var BadgeStatus_1 = require("./types/BadgeStatus/index.cjs");
|
|
21
19
|
Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusStatus; } });
|
|
22
20
|
Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusSize; } });
|
|
21
|
+
// IconAlert types (ADR-0003 + ADR-0004)
|
|
22
|
+
var IconAlert_1 = require("./types/IconAlert/index.cjs");
|
|
23
|
+
Object.defineProperty(exports, "IconAlertSeverity", { enumerable: true, get: function () { return IconAlert_1.IconAlertSeverity; } });
|
|
23
24
|
// HeaderSearch types (ADR-0003 + ADR-0004)
|
|
24
25
|
var HeaderSearch_1 = require("./types/HeaderSearch/index.cjs");
|
|
25
26
|
Object.defineProperty(exports, "HeaderSearchVariant", { enumerable: true, get: function () { return HeaderSearch_1.HeaderSearchVariant; } });
|
|
@@ -39,9 +40,14 @@ Object.defineProperty(exports, "BadgeWrapperPosition", { enumerable: true, get:
|
|
|
39
40
|
var AvatarAccount_1 = require("./types/AvatarAccount/index.cjs");
|
|
40
41
|
Object.defineProperty(exports, "AvatarAccountSize", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccountSize; } });
|
|
41
42
|
Object.defineProperty(exports, "AvatarAccountVariant", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccountVariant; } });
|
|
42
|
-
//
|
|
43
|
-
var
|
|
44
|
-
Object.defineProperty(exports, "
|
|
45
|
-
Object.defineProperty(exports, "
|
|
46
|
-
Object.defineProperty(exports, "
|
|
43
|
+
// Text types (ADR-0003 + ADR-0004)
|
|
44
|
+
var Text_1 = require("./types/Text/index.cjs");
|
|
45
|
+
Object.defineProperty(exports, "FontFamily", { enumerable: true, get: function () { return Text_1.FontFamily; } });
|
|
46
|
+
Object.defineProperty(exports, "FontStyle", { enumerable: true, get: function () { return Text_1.FontStyle; } });
|
|
47
|
+
Object.defineProperty(exports, "FontWeight", { enumerable: true, get: function () { return Text_1.FontWeight; } });
|
|
48
|
+
Object.defineProperty(exports, "TextColor", { enumerable: true, get: function () { return Text_1.TextColor; } });
|
|
49
|
+
Object.defineProperty(exports, "TextVariant", { enumerable: true, get: function () { return Text_1.TextVariant; } });
|
|
50
|
+
// AvatarFavicon types (ADR-0004)
|
|
51
|
+
var AvatarFavicon_1 = require("./types/AvatarFavicon/index.cjs");
|
|
52
|
+
Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return AvatarFavicon_1.AvatarFaviconSize; } });
|
|
47
53
|
//# 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,
|
|
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,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;AAIjB,wCAAwC;AACxC,yDAG2B;AAFzB,8GAAA,iBAAiB,OAAA;AAgBnB,2CAA2C;AAC3C,+DAK8B;AAJ5B,mHAAA,mBAAmB,OAAA;AASrB,0CAA0C;AAC1C,6DAG6B;AAF3B,iHAAA,kBAAkB,OAAA;AAUpB,0CAA0C;AAC1C,6DAG6B;AAF3B,8GAAA,eAAe,OAAA;AAIjB,0CAA0C;AAC1C,6DAG6B;AAF3B,kHAAA,mBAAmB,OAAA;AAOrB,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;AAIb,iCAAiC;AACjC,iEAG+B;AAF7B,kHAAA,iBAAiB,OAAA","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\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// IconAlert types (ADR-0003 + ADR-0004)\nexport {\n IconAlertSeverity,\n type IconAlertPropsShared,\n} from './types/IconAlert';\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// BoxRow types (ADR-0004)\nexport { type BoxRowPropsShared } from './types/BoxRow';\n\n// BoxColumn types (ADR-0004)\nexport { type BoxColumnPropsShared } from './types/BoxColumn';\n\n// HeaderSearch types (ADR-0003 + ADR-0004)\nexport {\n HeaderSearchVariant,\n type HeaderSearchInlinePropsShared,\n type HeaderSearchPropsShared,\n type HeaderSearchScreenPropsShared,\n} from './types/HeaderSearch';\n\n// KeyValueColumn types (ADR-0004)\nexport { type KeyValueColumnPropsShared } from './types/KeyValueColumn';\n\n// KeyValueRow types (ADR-0003 + ADR-0004)\nexport {\n KeyValueRowVariant,\n type KeyValueRowPropsShared,\n} from './types/KeyValueRow';\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// BadgeNetwork types (ADR-0004)\nexport { type BadgeNetworkPropsShared } from './types/BadgeNetwork';\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\n// AvatarFavicon types (ADR-0004)\nexport {\n AvatarFaviconSize,\n type AvatarFaviconPropsShared,\n} from './types/AvatarFavicon';\n\n// Checkbox types (ADR-0004)\nexport { type CheckboxPropsShared } from './types/Checkbox';\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed, } from "./utils/caip-address.cjs";
|
|
2
|
-
export { isReactNodeRenderable } from "./utils/isReactNodeRenderable.cjs";
|
|
3
2
|
export { AvatarBaseSize, AvatarBaseShape, type AvatarBasePropsShared, } from "./types/AvatarBase/index.cjs";
|
|
4
3
|
export { BadgeCountSize, type BadgeCountPropsShared } from "./types/BadgeCount/index.cjs";
|
|
5
4
|
export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./types/BadgeStatus/index.cjs";
|
|
5
|
+
export { IconAlertSeverity, type IconAlertPropsShared, } from "./types/IconAlert/index.cjs";
|
|
6
6
|
export { type BannerBasePropsShared } from "./types/BannerBase/index.cjs";
|
|
7
7
|
export { type TextOrChildrenPropsShared } from "./types/TextOrChildren/index.cjs";
|
|
8
8
|
export { type BoxRowPropsShared } from "./types/BoxRow/index.cjs";
|
|
@@ -17,5 +17,7 @@ export { BannerAlertSeverity, type BannerAlertPropsShared, } from "./types/Banne
|
|
|
17
17
|
export { type BadgeNetworkPropsShared } from "./types/BadgeNetwork/index.cjs";
|
|
18
18
|
export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition, type BadgeWrapperCustomPosition, type BadgeWrapperPropsShared, } from "./types/BadgeWrapper/index.cjs";
|
|
19
19
|
export { AvatarAccountSize, AvatarAccountVariant, type AvatarAccountPropsShared, } from "./types/AvatarAccount/index.cjs";
|
|
20
|
-
export {
|
|
20
|
+
export { FontFamily, FontStyle, FontWeight, TextColor, TextVariant, type TextPropsShared, } from "./types/Text/index.cjs";
|
|
21
|
+
export { AvatarFaviconSize, type AvatarFaviconPropsShared, } from "./types/AvatarFavicon/index.cjs";
|
|
22
|
+
export { type CheckboxPropsShared } from "./types/Checkbox/index.cjs";
|
|
21
23
|
//# 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;
|
|
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,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,EACL,iBAAiB,EACjB,KAAK,oBAAoB,GAC1B,oCAA0B;AAG3B,OAAO,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhE,OAAO,EAAE,KAAK,yBAAyB,EAAE,yCAA+B;AAGxE,OAAO,EAAE,KAAK,iBAAiB,EAAE,iCAAuB;AAGxD,OAAO,EAAE,KAAK,oBAAoB,EAAE,oCAA0B;AAG9D,OAAO,EACL,mBAAmB,EACnB,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,GACnC,uCAA6B;AAG9B,OAAO,EAAE,KAAK,yBAAyB,EAAE,yCAA+B;AAGxE,OAAO,EACL,kBAAkB,EAClB,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,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,EAAE,KAAK,uBAAuB,EAAE,uCAA6B;AAGpE,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;AAGtB,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,wCAA8B;AAG/B,OAAO,EAAE,KAAK,mBAAmB,EAAE,mCAAyB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed, } from "./utils/caip-address.mjs";
|
|
2
|
-
export { isReactNodeRenderable } from "./utils/isReactNodeRenderable.mjs";
|
|
3
2
|
export { AvatarBaseSize, AvatarBaseShape, type AvatarBasePropsShared, } from "./types/AvatarBase/index.mjs";
|
|
4
3
|
export { BadgeCountSize, type BadgeCountPropsShared } from "./types/BadgeCount/index.mjs";
|
|
5
4
|
export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./types/BadgeStatus/index.mjs";
|
|
5
|
+
export { IconAlertSeverity, type IconAlertPropsShared, } from "./types/IconAlert/index.mjs";
|
|
6
6
|
export { type BannerBasePropsShared } from "./types/BannerBase/index.mjs";
|
|
7
7
|
export { type TextOrChildrenPropsShared } from "./types/TextOrChildren/index.mjs";
|
|
8
8
|
export { type BoxRowPropsShared } from "./types/BoxRow/index.mjs";
|
|
@@ -17,5 +17,7 @@ export { BannerAlertSeverity, type BannerAlertPropsShared, } from "./types/Banne
|
|
|
17
17
|
export { type BadgeNetworkPropsShared } from "./types/BadgeNetwork/index.mjs";
|
|
18
18
|
export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition, type BadgeWrapperCustomPosition, type BadgeWrapperPropsShared, } from "./types/BadgeWrapper/index.mjs";
|
|
19
19
|
export { AvatarAccountSize, AvatarAccountVariant, type AvatarAccountPropsShared, } from "./types/AvatarAccount/index.mjs";
|
|
20
|
-
export {
|
|
20
|
+
export { FontFamily, FontStyle, FontWeight, TextColor, TextVariant, type TextPropsShared, } from "./types/Text/index.mjs";
|
|
21
|
+
export { AvatarFaviconSize, type AvatarFaviconPropsShared, } from "./types/AvatarFavicon/index.mjs";
|
|
22
|
+
export { type CheckboxPropsShared } from "./types/Checkbox/index.mjs";
|
|
21
23
|
//# 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;
|
|
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,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,EACL,iBAAiB,EACjB,KAAK,oBAAoB,GAC1B,oCAA0B;AAG3B,OAAO,EAAE,KAAK,qBAAqB,EAAE,qCAA2B;AAGhE,OAAO,EAAE,KAAK,yBAAyB,EAAE,yCAA+B;AAGxE,OAAO,EAAE,KAAK,iBAAiB,EAAE,iCAAuB;AAGxD,OAAO,EAAE,KAAK,oBAAoB,EAAE,oCAA0B;AAG9D,OAAO,EACL,mBAAmB,EACnB,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,GACnC,uCAA6B;AAG9B,OAAO,EAAE,KAAK,yBAAyB,EAAE,yCAA+B;AAGxE,OAAO,EACL,kBAAkB,EAClB,KAAK,sBAAsB,GAC5B,sCAA4B;AAG7B,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,EAAE,KAAK,uBAAuB,EAAE,uCAA6B;AAGpE,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;AAGtB,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,wCAA8B;AAG/B,OAAO,EAAE,KAAK,mBAAmB,EAAE,mCAAyB"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed } from "./utils/caip-address.mjs";
|
|
2
|
-
export { isReactNodeRenderable } from "./utils/isReactNodeRenderable.mjs";
|
|
3
2
|
// AvatarBase types (ADR-0003 + ADR-0004)
|
|
4
3
|
export { AvatarBaseSize, AvatarBaseShape } from "./types/AvatarBase/index.mjs";
|
|
5
4
|
// BadgeCount types (ADR-0003 + ADR-0004)
|
|
6
5
|
export { BadgeCountSize } from "./types/BadgeCount/index.mjs";
|
|
7
6
|
// BadgeStatus types (ADR-0003 + ADR-0004)
|
|
8
7
|
export { BadgeStatusStatus, BadgeStatusSize } from "./types/BadgeStatus/index.mjs";
|
|
8
|
+
// IconAlert types (ADR-0003 + ADR-0004)
|
|
9
|
+
export { IconAlertSeverity } from "./types/IconAlert/index.mjs";
|
|
9
10
|
// HeaderSearch types (ADR-0003 + ADR-0004)
|
|
10
11
|
export { HeaderSearchVariant } from "./types/HeaderSearch/index.mjs";
|
|
11
12
|
// KeyValueRow types (ADR-0003 + ADR-0004)
|
|
@@ -17,6 +18,8 @@ export { BannerAlertSeverity } from "./types/BannerAlert/index.mjs";
|
|
|
17
18
|
// BadgeWrapper types (ADR-0003 + ADR-0004)
|
|
18
19
|
export { BadgeWrapperPositionAnchorShape, BadgeWrapperPosition } from "./types/BadgeWrapper/index.mjs";
|
|
19
20
|
export { AvatarAccountSize, AvatarAccountVariant } from "./types/AvatarAccount/index.mjs";
|
|
20
|
-
//
|
|
21
|
-
export {
|
|
21
|
+
// Text types (ADR-0003 + ADR-0004)
|
|
22
|
+
export { FontFamily, FontStyle, FontWeight, TextColor, TextVariant } from "./types/Text/index.mjs";
|
|
23
|
+
// AvatarFavicon types (ADR-0004)
|
|
24
|
+
export { AvatarFaviconSize } from "./types/AvatarFavicon/index.mjs";
|
|
22
25
|
//# 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,
|
|
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,EACL,cAAc,EACd,eAAe,EAEhB,qCAA2B;AAE5B,yCAAyC;AACzC,OAAO,EAAE,cAAc,EAA8B,qCAA2B;AAEhF,0CAA0C;AAC1C,OAAO,EACL,iBAAiB,EACjB,eAAe,EAEhB,sCAA4B;AAE7B,wCAAwC;AACxC,OAAO,EACL,iBAAiB,EAElB,oCAA0B;AAc3B,2CAA2C;AAC3C,OAAO,EACL,mBAAmB,EAIpB,uCAA6B;AAK9B,0CAA0C;AAC1C,OAAO,EACL,kBAAkB,EAEnB,sCAA4B;AAQ7B,0CAA0C;AAC1C,OAAO,EACL,eAAe,EAEhB,sCAA4B;AAE7B,0CAA0C;AAC1C,OAAO,EACL,mBAAmB,EAEpB,sCAA4B;AAK7B,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;AAEtB,iCAAiC;AACjC,OAAO,EACL,iBAAiB,EAElB,wCAA8B","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\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// IconAlert types (ADR-0003 + ADR-0004)\nexport {\n IconAlertSeverity,\n type IconAlertPropsShared,\n} from './types/IconAlert';\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// BoxRow types (ADR-0004)\nexport { type BoxRowPropsShared } from './types/BoxRow';\n\n// BoxColumn types (ADR-0004)\nexport { type BoxColumnPropsShared } from './types/BoxColumn';\n\n// HeaderSearch types (ADR-0003 + ADR-0004)\nexport {\n HeaderSearchVariant,\n type HeaderSearchInlinePropsShared,\n type HeaderSearchPropsShared,\n type HeaderSearchScreenPropsShared,\n} from './types/HeaderSearch';\n\n// KeyValueColumn types (ADR-0004)\nexport { type KeyValueColumnPropsShared } from './types/KeyValueColumn';\n\n// KeyValueRow types (ADR-0003 + ADR-0004)\nexport {\n KeyValueRowVariant,\n type KeyValueRowPropsShared,\n} from './types/KeyValueRow';\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// BadgeNetwork types (ADR-0004)\nexport { type BadgeNetworkPropsShared } from './types/BadgeNetwork';\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\n// AvatarFavicon types (ADR-0004)\nexport {\n AvatarFaviconSize,\n type AvatarFaviconPropsShared,\n} from './types/AvatarFavicon';\n\n// Checkbox types (ADR-0004)\nexport { type CheckboxPropsShared } from './types/Checkbox';\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvatarFaviconSize = void 0;
|
|
4
|
+
const AvatarBase_types_1 = require("../AvatarBase/AvatarBase.types.cjs");
|
|
5
|
+
exports.AvatarFaviconSize = AvatarBase_types_1.AvatarBaseSize;
|
|
6
|
+
//# sourceMappingURL=AvatarFavicon.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.cjs","sourceRoot":"","sources":["../../../src/types/AvatarFavicon/AvatarFavicon.types.ts"],"names":[],"mappings":";;;AAAA,yEAAgE;AAEnD,QAAA,iBAAiB,GAAG,iCAAc,CAAC","sourcesContent":["import { AvatarBaseSize } from '../AvatarBase/AvatarBase.types';\n\nexport const AvatarFaviconSize = AvatarBaseSize;\nexport type AvatarFaviconSize = AvatarBaseSize;\n\n/**\n * AvatarFavicon component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type AvatarFaviconPropsShared = {\n /**\n * Optional name of the dapp.\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 favicon.\n *\n * @default AvatarFaviconSize.Md\n */\n size?: AvatarFaviconSize;\n};\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AvatarBaseSize } from "../AvatarBase/AvatarBase.types.cjs";
|
|
2
|
+
export declare const AvatarFaviconSize: {
|
|
3
|
+
readonly Xs: "xs";
|
|
4
|
+
readonly Sm: "sm";
|
|
5
|
+
readonly Md: "md";
|
|
6
|
+
readonly Lg: "lg";
|
|
7
|
+
readonly Xl: "xl";
|
|
8
|
+
};
|
|
9
|
+
export type AvatarFaviconSize = AvatarBaseSize;
|
|
10
|
+
/**
|
|
11
|
+
* AvatarFavicon component shared props (ADR-0004)
|
|
12
|
+
* Platform-independent properties shared across React and React Native.
|
|
13
|
+
*/
|
|
14
|
+
export type AvatarFaviconPropsShared = {
|
|
15
|
+
/**
|
|
16
|
+
* Optional name of the dapp.
|
|
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 favicon.
|
|
28
|
+
*
|
|
29
|
+
* @default AvatarFaviconSize.Md
|
|
30
|
+
*/
|
|
31
|
+
size?: AvatarFaviconSize;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=AvatarFavicon.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarFavicon/AvatarFavicon.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,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AvatarBaseSize } from "../AvatarBase/AvatarBase.types.mjs";
|
|
2
|
+
export declare const AvatarFaviconSize: {
|
|
3
|
+
readonly Xs: "xs";
|
|
4
|
+
readonly Sm: "sm";
|
|
5
|
+
readonly Md: "md";
|
|
6
|
+
readonly Lg: "lg";
|
|
7
|
+
readonly Xl: "xl";
|
|
8
|
+
};
|
|
9
|
+
export type AvatarFaviconSize = AvatarBaseSize;
|
|
10
|
+
/**
|
|
11
|
+
* AvatarFavicon component shared props (ADR-0004)
|
|
12
|
+
* Platform-independent properties shared across React and React Native.
|
|
13
|
+
*/
|
|
14
|
+
export type AvatarFaviconPropsShared = {
|
|
15
|
+
/**
|
|
16
|
+
* Optional name of the dapp.
|
|
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 favicon.
|
|
28
|
+
*
|
|
29
|
+
* @default AvatarFaviconSize.Md
|
|
30
|
+
*/
|
|
31
|
+
size?: AvatarFaviconSize;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=AvatarFavicon.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarFavicon/AvatarFavicon.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,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.mjs","sourceRoot":"","sources":["../../../src/types/AvatarFavicon/AvatarFavicon.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC","sourcesContent":["import { AvatarBaseSize } from '../AvatarBase/AvatarBase.types';\n\nexport const AvatarFaviconSize = AvatarBaseSize;\nexport type AvatarFaviconSize = AvatarBaseSize;\n\n/**\n * AvatarFavicon component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type AvatarFaviconPropsShared = {\n /**\n * Optional name of the dapp.\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 favicon.\n *\n * @default AvatarFaviconSize.Md\n */\n size?: AvatarFaviconSize;\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvatarFaviconSize = void 0;
|
|
4
|
+
var AvatarFavicon_types_1 = require("./AvatarFavicon.types.cjs");
|
|
5
|
+
Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return AvatarFavicon_types_1.AvatarFaviconSize; } });
|
|
6
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/AvatarFavicon/index.ts"],"names":[],"mappings":";;;AAAA,iEAG+B;AAF7B,wHAAA,iBAAiB,OAAA","sourcesContent":["export {\n AvatarFaviconSize,\n type AvatarFaviconPropsShared,\n} from './AvatarFavicon.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarFavicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,kCAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarFavicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,kCAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/AvatarFavicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAElB,kCAA8B","sourcesContent":["export {\n AvatarFaviconSize,\n type AvatarFaviconPropsShared,\n} from './AvatarFavicon.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.types.cjs","sourceRoot":"","sources":["../../../src/types/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * Checkbox component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type CheckboxPropsShared = {\n /**\n * Required prop to determine whether the checkbox is currently selected.\n * This component is fully controlled, so you must manage this state\n * in your parent component.\n */\n isSelected: boolean;\n /**\n * Optional prop that when true, disables the checkbox.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop that when true, displays the invalid/error state of the checkbox.\n *\n * @default false\n */\n isInvalid?: boolean;\n /**\n * Optional label prop that renders text or a React node as a label beside the checkbox.\n */\n label?: ReactNode | string;\n /**\n * Required callback for when the checked state changes.\n * Use this to update your state.\n */\n onChange: (isSelected: boolean) => void;\n};\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Checkbox component shared props (ADR-0004)
|
|
4
|
+
* Platform-independent properties shared across React and React Native.
|
|
5
|
+
*/
|
|
6
|
+
export type CheckboxPropsShared = {
|
|
7
|
+
/**
|
|
8
|
+
* Required prop to determine whether the checkbox is currently selected.
|
|
9
|
+
* This component is fully controlled, so you must manage this state
|
|
10
|
+
* in your parent component.
|
|
11
|
+
*/
|
|
12
|
+
isSelected: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Optional prop that when true, disables the checkbox.
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Optional prop that when true, displays the invalid/error state of the checkbox.
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
isInvalid?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Optional label prop that renders text or a React node as a label beside the checkbox.
|
|
27
|
+
*/
|
|
28
|
+
label?: ReactNode | string;
|
|
29
|
+
/**
|
|
30
|
+
* Required callback for when the checked state changes.
|
|
31
|
+
* Use this to update your state.
|
|
32
|
+
*/
|
|
33
|
+
onChange: (isSelected: boolean) => void;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=Checkbox.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.types.d.cts","sourceRoot":"","sources":["../../../src/types/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Checkbox component shared props (ADR-0004)
|
|
4
|
+
* Platform-independent properties shared across React and React Native.
|
|
5
|
+
*/
|
|
6
|
+
export type CheckboxPropsShared = {
|
|
7
|
+
/**
|
|
8
|
+
* Required prop to determine whether the checkbox is currently selected.
|
|
9
|
+
* This component is fully controlled, so you must manage this state
|
|
10
|
+
* in your parent component.
|
|
11
|
+
*/
|
|
12
|
+
isSelected: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Optional prop that when true, disables the checkbox.
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Optional prop that when true, displays the invalid/error state of the checkbox.
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
isInvalid?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Optional label prop that renders text or a React node as a label beside the checkbox.
|
|
27
|
+
*/
|
|
28
|
+
label?: ReactNode | string;
|
|
29
|
+
/**
|
|
30
|
+
* Required callback for when the checked state changes.
|
|
31
|
+
* Use this to update your state.
|
|
32
|
+
*/
|
|
33
|
+
onChange: (isSelected: boolean) => void;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=Checkbox.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.types.d.mts","sourceRoot":"","sources":["../../../src/types/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.types.mjs","sourceRoot":"","sources":["../../../src/types/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * Checkbox component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type CheckboxPropsShared = {\n /**\n * Required prop to determine whether the checkbox is currently selected.\n * This component is fully controlled, so you must manage this state\n * in your parent component.\n */\n isSelected: boolean;\n /**\n * Optional prop that when true, disables the checkbox.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop that when true, displays the invalid/error state of the checkbox.\n *\n * @default false\n */\n isInvalid?: boolean;\n /**\n * Optional label prop that renders text or a React node as a label beside the checkbox.\n */\n label?: ReactNode | string;\n /**\n * Required callback for when the checked state changes.\n * Use this to update your state.\n */\n onChange: (isSelected: boolean) => void;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/Checkbox/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type CheckboxPropsShared } from './Checkbox.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,6BAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,6BAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/Checkbox/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type CheckboxPropsShared } from './Checkbox.types';\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconAlertSeverity = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* IconAlert - severity (ADR-0003)
|
|
6
|
+
*/
|
|
7
|
+
exports.IconAlertSeverity = {
|
|
8
|
+
/**
|
|
9
|
+
* Informational severity (info icon, primary color)
|
|
10
|
+
*/
|
|
11
|
+
Info: 'info',
|
|
12
|
+
/**
|
|
13
|
+
* Positive / confirmation severity
|
|
14
|
+
*/
|
|
15
|
+
Success: 'success',
|
|
16
|
+
/**
|
|
17
|
+
* Caution severity
|
|
18
|
+
*/
|
|
19
|
+
Warning: 'warning',
|
|
20
|
+
/**
|
|
21
|
+
* Critical error severity
|
|
22
|
+
*/
|
|
23
|
+
Error: 'error',
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=IconAlert.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconAlert.types.cjs","sourceRoot":"","sources":["../../../src/types/IconAlert/IconAlert.types.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,KAAK,EAAE,OAAO;CACN,CAAC","sourcesContent":["/**\n * IconAlert - severity (ADR-0003)\n */\nexport const IconAlertSeverity = {\n /**\n * Informational severity (info icon, primary color)\n */\n Info: 'info',\n /**\n * Positive / confirmation severity\n */\n Success: 'success',\n /**\n * Caution severity\n */\n Warning: 'warning',\n /**\n * Critical error severity\n */\n Error: 'error',\n} as const;\nexport type IconAlertSeverity =\n (typeof IconAlertSeverity)[keyof typeof IconAlertSeverity];\n\n/**\n * IconAlert shared props (ADR-0004)\n */\nexport type IconAlertPropsShared = {\n /**\n * Maps to a fixed icon and theme color for alerts and messaging.\n */\n severity: IconAlertSeverity;\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IconAlert - severity (ADR-0003)
|
|
3
|
+
*/
|
|
4
|
+
export declare const IconAlertSeverity: {
|
|
5
|
+
/**
|
|
6
|
+
* Informational severity (info icon, primary color)
|
|
7
|
+
*/
|
|
8
|
+
readonly Info: "info";
|
|
9
|
+
/**
|
|
10
|
+
* Positive / confirmation severity
|
|
11
|
+
*/
|
|
12
|
+
readonly Success: "success";
|
|
13
|
+
/**
|
|
14
|
+
* Caution severity
|
|
15
|
+
*/
|
|
16
|
+
readonly Warning: "warning";
|
|
17
|
+
/**
|
|
18
|
+
* Critical error severity
|
|
19
|
+
*/
|
|
20
|
+
readonly Error: "error";
|
|
21
|
+
};
|
|
22
|
+
export type IconAlertSeverity = (typeof IconAlertSeverity)[keyof typeof IconAlertSeverity];
|
|
23
|
+
/**
|
|
24
|
+
* IconAlert shared props (ADR-0004)
|
|
25
|
+
*/
|
|
26
|
+
export type IconAlertPropsShared = {
|
|
27
|
+
/**
|
|
28
|
+
* Maps to a fixed icon and theme color for alerts and messaging.
|
|
29
|
+
*/
|
|
30
|
+
severity: IconAlertSeverity;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=IconAlert.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconAlert.types.d.cts","sourceRoot":"","sources":["../../../src/types/IconAlert/IconAlert.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IconAlert - severity (ADR-0003)
|
|
3
|
+
*/
|
|
4
|
+
export declare const IconAlertSeverity: {
|
|
5
|
+
/**
|
|
6
|
+
* Informational severity (info icon, primary color)
|
|
7
|
+
*/
|
|
8
|
+
readonly Info: "info";
|
|
9
|
+
/**
|
|
10
|
+
* Positive / confirmation severity
|
|
11
|
+
*/
|
|
12
|
+
readonly Success: "success";
|
|
13
|
+
/**
|
|
14
|
+
* Caution severity
|
|
15
|
+
*/
|
|
16
|
+
readonly Warning: "warning";
|
|
17
|
+
/**
|
|
18
|
+
* Critical error severity
|
|
19
|
+
*/
|
|
20
|
+
readonly Error: "error";
|
|
21
|
+
};
|
|
22
|
+
export type IconAlertSeverity = (typeof IconAlertSeverity)[keyof typeof IconAlertSeverity];
|
|
23
|
+
/**
|
|
24
|
+
* IconAlert shared props (ADR-0004)
|
|
25
|
+
*/
|
|
26
|
+
export type IconAlertPropsShared = {
|
|
27
|
+
/**
|
|
28
|
+
* Maps to a fixed icon and theme color for alerts and messaging.
|
|
29
|
+
*/
|
|
30
|
+
severity: IconAlertSeverity;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=IconAlert.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconAlert.types.d.mts","sourceRoot":"","sources":["../../../src/types/IconAlert/IconAlert.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;CAC7B,CAAC"}
|