@metamask-previews/design-system-shared 0.12.0-preview.1679aa9 → 0.17.0-preview.178e60f
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 +51 -1
- package/dist/index.cjs +34 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +13 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/AvatarGroup/AvatarGroup.types.cjs +28 -0
- package/dist/types/AvatarGroup/AvatarGroup.types.cjs.map +1 -0
- package/dist/types/AvatarGroup/AvatarGroup.types.d.cts +60 -0
- package/dist/types/AvatarGroup/AvatarGroup.types.d.cts.map +1 -0
- package/dist/types/AvatarGroup/AvatarGroup.types.d.mts +60 -0
- package/dist/types/AvatarGroup/AvatarGroup.types.d.mts.map +1 -0
- package/dist/types/AvatarGroup/AvatarGroup.types.mjs +25 -0
- package/dist/types/AvatarGroup/AvatarGroup.types.mjs.map +1 -0
- package/dist/types/AvatarGroup/index.cjs +7 -0
- package/dist/types/AvatarGroup/index.cjs.map +1 -0
- package/dist/types/AvatarGroup/index.d.cts +2 -0
- package/dist/types/AvatarGroup/index.d.cts.map +1 -0
- package/dist/types/AvatarGroup/index.d.mts +2 -0
- package/dist/types/AvatarGroup/index.d.mts.map +1 -0
- package/dist/types/AvatarGroup/index.mjs +2 -0
- package/dist/types/AvatarGroup/index.mjs.map +1 -0
- package/dist/types/AvatarIcon/AvatarIcon.types.cjs +32 -0
- package/dist/types/AvatarIcon/AvatarIcon.types.cjs.map +1 -0
- package/dist/types/AvatarIcon/AvatarIcon.types.d.cts +59 -0
- package/dist/types/AvatarIcon/AvatarIcon.types.d.cts.map +1 -0
- package/dist/types/AvatarIcon/AvatarIcon.types.d.mts +59 -0
- package/dist/types/AvatarIcon/AvatarIcon.types.d.mts.map +1 -0
- package/dist/types/AvatarIcon/AvatarIcon.types.mjs +28 -0
- package/dist/types/AvatarIcon/AvatarIcon.types.mjs.map +1 -0
- package/dist/types/AvatarIcon/index.cjs +7 -0
- package/dist/types/AvatarIcon/index.cjs.map +1 -0
- package/dist/types/AvatarIcon/index.d.cts +2 -0
- package/dist/types/AvatarIcon/index.d.cts.map +1 -0
- package/dist/types/AvatarIcon/index.d.mts +2 -0
- package/dist/types/AvatarIcon/index.d.mts.map +1 -0
- package/dist/types/AvatarIcon/index.mjs +2 -0
- package/dist/types/AvatarIcon/index.mjs.map +1 -0
- package/dist/types/BadgeIcon/BadgeIcon.types.cjs +3 -0
- package/dist/types/BadgeIcon/BadgeIcon.types.cjs.map +1 -0
- package/dist/types/BadgeIcon/BadgeIcon.types.d.cts +13 -0
- package/dist/types/BadgeIcon/BadgeIcon.types.d.cts.map +1 -0
- package/dist/types/BadgeIcon/BadgeIcon.types.d.mts +13 -0
- package/dist/types/BadgeIcon/BadgeIcon.types.d.mts.map +1 -0
- package/dist/types/BadgeIcon/BadgeIcon.types.mjs +2 -0
- package/dist/types/BadgeIcon/BadgeIcon.types.mjs.map +1 -0
- package/dist/types/BadgeIcon/index.cjs +3 -0
- package/dist/types/BadgeIcon/index.cjs.map +1 -0
- package/dist/types/BadgeIcon/index.d.cts +2 -0
- package/dist/types/BadgeIcon/index.d.cts.map +1 -0
- package/dist/types/BadgeIcon/index.d.mts +2 -0
- package/dist/types/BadgeIcon/index.d.mts.map +1 -0
- package/dist/types/BadgeIcon/index.mjs +2 -0
- package/dist/types/BadgeIcon/index.mjs.map +1 -0
- package/dist/types/Box/Box.types.cjs +166 -0
- package/dist/types/Box/Box.types.cjs.map +1 -0
- package/dist/types/Box/Box.types.d.cts +287 -0
- package/dist/types/Box/Box.types.d.cts.map +1 -0
- package/dist/types/Box/Box.types.d.mts +287 -0
- package/dist/types/Box/Box.types.d.mts.map +1 -0
- package/dist/types/Box/Box.types.mjs +163 -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/Button/Button.types.cjs +22 -0
- package/dist/types/Button/Button.types.cjs.map +1 -0
- package/dist/types/Button/Button.types.d.cts +32 -0
- package/dist/types/Button/Button.types.d.cts.map +1 -0
- package/dist/types/Button/Button.types.d.mts +32 -0
- package/dist/types/Button/Button.types.d.mts.map +1 -0
- package/dist/types/Button/Button.types.mjs +19 -0
- package/dist/types/Button/Button.types.mjs.map +1 -0
- package/dist/types/Button/index.cjs +6 -0
- package/dist/types/Button/index.cjs.map +1 -0
- package/dist/types/Button/index.d.cts +2 -0
- package/dist/types/Button/index.d.cts.map +1 -0
- package/dist/types/Button/index.d.mts +2 -0
- package/dist/types/Button/index.d.mts.map +1 -0
- package/dist/types/Button/index.mjs +2 -0
- package/dist/types/Button/index.mjs.map +1 -0
- package/dist/types/ButtonBase/ButtonBase.types.cjs +24 -0
- package/dist/types/ButtonBase/ButtonBase.types.cjs.map +1 -0
- package/dist/types/ButtonBase/ButtonBase.types.d.cts +88 -0
- package/dist/types/ButtonBase/ButtonBase.types.d.cts.map +1 -0
- package/dist/types/ButtonBase/ButtonBase.types.d.mts +88 -0
- package/dist/types/ButtonBase/ButtonBase.types.d.mts.map +1 -0
- package/dist/types/ButtonBase/ButtonBase.types.mjs +21 -0
- package/dist/types/ButtonBase/ButtonBase.types.mjs.map +1 -0
- package/dist/types/ButtonBase/index.cjs +8 -0
- package/dist/types/ButtonBase/index.cjs.map +1 -0
- package/dist/types/ButtonBase/index.d.cts +2 -0
- package/dist/types/ButtonBase/index.d.cts.map +1 -0
- package/dist/types/ButtonBase/index.d.mts +2 -0
- package/dist/types/ButtonBase/index.d.mts.map +1 -0
- package/dist/types/ButtonBase/index.mjs +2 -0
- package/dist/types/ButtonBase/index.mjs.map +1 -0
- package/dist/types/ButtonIcon/ButtonIcon.types.cjs +40 -0
- package/dist/types/ButtonIcon/ButtonIcon.types.cjs.map +1 -0
- package/dist/types/ButtonIcon/ButtonIcon.types.d.cts +68 -0
- package/dist/types/ButtonIcon/ButtonIcon.types.d.cts.map +1 -0
- package/dist/types/ButtonIcon/ButtonIcon.types.d.mts +68 -0
- package/dist/types/ButtonIcon/ButtonIcon.types.d.mts.map +1 -0
- package/dist/types/ButtonIcon/ButtonIcon.types.mjs +37 -0
- package/dist/types/ButtonIcon/ButtonIcon.types.mjs.map +1 -0
- package/dist/types/ButtonIcon/index.cjs +7 -0
- package/dist/types/ButtonIcon/index.cjs.map +1 -0
- package/dist/types/ButtonIcon/index.d.cts +2 -0
- package/dist/types/ButtonIcon/index.d.cts.map +1 -0
- package/dist/types/ButtonIcon/index.d.mts +2 -0
- package/dist/types/ButtonIcon/index.d.mts.map +1 -0
- package/dist/types/ButtonIcon/index.mjs +2 -0
- package/dist/types/ButtonIcon/index.mjs.map +1 -0
- package/dist/types/Icon/Icon.types.cjs +359 -0
- package/dist/types/Icon/Icon.types.cjs.map +1 -0
- package/dist/types/Icon/Icon.types.d.cts +377 -0
- package/dist/types/Icon/Icon.types.d.cts.map +1 -0
- package/dist/types/Icon/Icon.types.d.mts +377 -0
- package/dist/types/Icon/Icon.types.d.mts.map +1 -0
- package/dist/types/Icon/Icon.types.mjs +356 -0
- package/dist/types/Icon/Icon.types.mjs.map +1 -0
- package/dist/types/Icon/index.cjs +8 -0
- package/dist/types/Icon/index.cjs.map +1 -0
- package/dist/types/Icon/index.d.cts +2 -0
- package/dist/types/Icon/index.d.cts.map +1 -0
- package/dist/types/Icon/index.d.mts +2 -0
- package/dist/types/Icon/index.d.mts.map +1 -0
- package/dist/types/Icon/index.mjs +2 -0
- package/dist/types/Icon/index.mjs.map +1 -0
- package/dist/types/Input/Input.types.cjs +3 -0
- package/dist/types/Input/Input.types.cjs.map +1 -0
- package/dist/types/Input/Input.types.d.cts +46 -0
- package/dist/types/Input/Input.types.d.cts.map +1 -0
- package/dist/types/Input/Input.types.d.mts +46 -0
- package/dist/types/Input/Input.types.d.mts.map +1 -0
- package/dist/types/Input/Input.types.mjs +2 -0
- package/dist/types/Input/Input.types.mjs.map +1 -0
- package/dist/types/Input/index.cjs +3 -0
- package/dist/types/Input/index.cjs.map +1 -0
- package/dist/types/Input/index.d.cts +2 -0
- package/dist/types/Input/index.d.cts.map +1 -0
- package/dist/types/Input/index.d.mts +2 -0
- package/dist/types/Input/index.d.mts.map +1 -0
- package/dist/types/Input/index.mjs +2 -0
- package/dist/types/Input/index.mjs.map +1 -0
- package/dist/types/TextArea/TextArea.types.cjs +3 -0
- package/dist/types/TextArea/TextArea.types.cjs.map +1 -0
- package/dist/types/TextArea/TextArea.types.d.cts +18 -0
- package/dist/types/TextArea/TextArea.types.d.cts.map +1 -0
- package/dist/types/TextArea/TextArea.types.d.mts +18 -0
- package/dist/types/TextArea/TextArea.types.d.mts.map +1 -0
- package/dist/types/TextArea/TextArea.types.mjs +2 -0
- package/dist/types/TextArea/TextArea.types.mjs.map +1 -0
- package/dist/types/TextArea/index.cjs +3 -0
- package/dist/types/TextArea/index.cjs.map +1 -0
- package/dist/types/TextArea/index.d.cts +2 -0
- package/dist/types/TextArea/index.d.cts.map +1 -0
- package/dist/types/TextArea/index.d.mts +2 -0
- package/dist/types/TextArea/index.d.mts.map +1 -0
- package/dist/types/TextArea/index.mjs +2 -0
- package/dist/types/TextArea/index.mjs.map +1 -0
- package/dist/types/TextField/TextField.types.cjs +3 -0
- package/dist/types/TextField/TextField.types.cjs.map +1 -0
- package/dist/types/TextField/TextField.types.d.cts +25 -0
- package/dist/types/TextField/TextField.types.d.cts.map +1 -0
- package/dist/types/TextField/TextField.types.d.mts +25 -0
- package/dist/types/TextField/TextField.types.d.mts.map +1 -0
- package/dist/types/TextField/TextField.types.mjs +2 -0
- package/dist/types/TextField/TextField.types.mjs.map +1 -0
- package/dist/types/TextField/index.cjs +3 -0
- package/dist/types/TextField/index.cjs.map +1 -0
- package/dist/types/TextField/index.d.cts +2 -0
- package/dist/types/TextField/index.d.cts.map +1 -0
- package/dist/types/TextField/index.d.mts +2 -0
- package/dist/types/TextField/index.d.mts.map +1 -0
- package/dist/types/TextField/index.mjs +2 -0
- package/dist/types/TextField/index.mjs.map +1 -0
- package/dist/types/TitleStandard/TitleStandard.types.cjs +3 -0
- package/dist/types/TitleStandard/TitleStandard.types.cjs.map +1 -0
- package/dist/types/TitleStandard/TitleStandard.types.d.cts +36 -0
- package/dist/types/TitleStandard/TitleStandard.types.d.cts.map +1 -0
- package/dist/types/TitleStandard/TitleStandard.types.d.mts +36 -0
- package/dist/types/TitleStandard/TitleStandard.types.d.mts.map +1 -0
- package/dist/types/TitleStandard/TitleStandard.types.mjs +2 -0
- package/dist/types/TitleStandard/TitleStandard.types.mjs.map +1 -0
- package/dist/types/TitleStandard/index.cjs +3 -0
- package/dist/types/TitleStandard/index.cjs.map +1 -0
- package/dist/types/TitleStandard/index.d.cts +2 -0
- package/dist/types/TitleStandard/index.d.cts.map +1 -0
- package/dist/types/TitleStandard/index.d.mts +2 -0
- package/dist/types/TitleStandard/index.d.mts.map +1 -0
- package/dist/types/TitleStandard/index.mjs +2 -0
- package/dist/types/TitleStandard/index.mjs.map +1 -0
- package/dist/types/TitleSubpage/TitleSubpage.types.cjs +3 -0
- package/dist/types/TitleSubpage/TitleSubpage.types.cjs.map +1 -0
- package/dist/types/TitleSubpage/TitleSubpage.types.d.cts +55 -0
- package/dist/types/TitleSubpage/TitleSubpage.types.d.cts.map +1 -0
- package/dist/types/TitleSubpage/TitleSubpage.types.d.mts +55 -0
- package/dist/types/TitleSubpage/TitleSubpage.types.d.mts.map +1 -0
- package/dist/types/TitleSubpage/TitleSubpage.types.mjs +2 -0
- package/dist/types/TitleSubpage/TitleSubpage.types.mjs.map +1 -0
- package/dist/types/TitleSubpage/index.cjs +3 -0
- package/dist/types/TitleSubpage/index.cjs.map +1 -0
- package/dist/types/TitleSubpage/index.d.cts +2 -0
- package/dist/types/TitleSubpage/index.d.cts.map +1 -0
- package/dist/types/TitleSubpage/index.d.mts +2 -0
- package/dist/types/TitleSubpage/index.d.mts.map +1 -0
- package/dist/types/TitleSubpage/index.mjs +2 -0
- package/dist/types/TitleSubpage/index.mjs.map +1 -0
- package/package.json +7 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvatarIconSeverity = exports.AvatarIconSize = void 0;
|
|
4
|
+
var AvatarBase_1 = require("../AvatarBase/index.cjs");
|
|
5
|
+
Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return AvatarBase_1.AvatarBaseSize; } });
|
|
6
|
+
/**
|
|
7
|
+
* AvatarIcon - severity
|
|
8
|
+
* Convert from enum to const object (ADR-0003)
|
|
9
|
+
*/
|
|
10
|
+
exports.AvatarIconSeverity = {
|
|
11
|
+
/**
|
|
12
|
+
* Represents a neutral severity
|
|
13
|
+
*/
|
|
14
|
+
Neutral: 'neutral',
|
|
15
|
+
/**
|
|
16
|
+
* Represents an info severity
|
|
17
|
+
*/
|
|
18
|
+
Info: 'info',
|
|
19
|
+
/**
|
|
20
|
+
* Represents a success severity
|
|
21
|
+
*/
|
|
22
|
+
Success: 'success',
|
|
23
|
+
/**
|
|
24
|
+
* Represents an error severity
|
|
25
|
+
*/
|
|
26
|
+
Error: 'error',
|
|
27
|
+
/**
|
|
28
|
+
* Represents a warning severity
|
|
29
|
+
*/
|
|
30
|
+
Warning: 'warning',
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=AvatarIcon.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.types.cjs","sourceRoot":"","sources":["../../../src/types/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":";;;AAGA,sDAAiE;AAAxD,4GAAA,cAAc,OAAkB;AAEzC;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAChC;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,OAAO,EAAE,SAAS;CACV,CAAC","sourcesContent":["import type { AvatarBaseSize as AvatarIconSize } from '../AvatarBase';\nimport type { IconName } from '../Icon/Icon.types';\n\nexport { AvatarBaseSize as AvatarIconSize } from '../AvatarBase';\n\n/**\n * AvatarIcon - severity\n * Convert from enum to const object (ADR-0003)\n */\nexport const AvatarIconSeverity = {\n /**\n * Represents a neutral severity\n */\n Neutral: 'neutral',\n /**\n * Represents an info severity\n */\n Info: 'info',\n /**\n * Represents a success severity\n */\n Success: 'success',\n /**\n * Represents an error severity\n */\n Error: 'error',\n /**\n * Represents a warning severity\n */\n Warning: 'warning',\n} as const;\nexport type AvatarIconSeverity =\n (typeof AvatarIconSeverity)[keyof typeof AvatarIconSeverity];\n\n/**\n * AvatarIcon component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native\n */\nexport type AvatarIconPropsShared = {\n /**\n * Required icon name from the icon set\n */\n iconName: IconName;\n /**\n * Optional prop to control the size of the avatar\n *\n * @default AvatarIconSize.Md\n */\n size?: AvatarIconSize;\n /**\n * Optional prop to control the severity of the avatar\n * Possible values:\n * - AvatarIconSeverity.Neutral\n * - AvatarIconSeverity.Info\n * - AvatarIconSeverity.Success\n * - AvatarIconSeverity.Error\n * - AvatarIconSeverity.Warning\n *\n * @default AvatarIconSeverity.Neutral\n */\n severity?: AvatarIconSeverity;\n};\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { AvatarBaseSize as AvatarIconSize } from "../AvatarBase/index.cjs";
|
|
2
|
+
import type { IconName } from "../Icon/Icon.types.cjs";
|
|
3
|
+
export { AvatarBaseSize as AvatarIconSize } from "../AvatarBase/index.cjs";
|
|
4
|
+
/**
|
|
5
|
+
* AvatarIcon - severity
|
|
6
|
+
* Convert from enum to const object (ADR-0003)
|
|
7
|
+
*/
|
|
8
|
+
export declare const AvatarIconSeverity: {
|
|
9
|
+
/**
|
|
10
|
+
* Represents a neutral severity
|
|
11
|
+
*/
|
|
12
|
+
readonly Neutral: "neutral";
|
|
13
|
+
/**
|
|
14
|
+
* Represents an info severity
|
|
15
|
+
*/
|
|
16
|
+
readonly Info: "info";
|
|
17
|
+
/**
|
|
18
|
+
* Represents a success severity
|
|
19
|
+
*/
|
|
20
|
+
readonly Success: "success";
|
|
21
|
+
/**
|
|
22
|
+
* Represents an error severity
|
|
23
|
+
*/
|
|
24
|
+
readonly Error: "error";
|
|
25
|
+
/**
|
|
26
|
+
* Represents a warning severity
|
|
27
|
+
*/
|
|
28
|
+
readonly Warning: "warning";
|
|
29
|
+
};
|
|
30
|
+
export type AvatarIconSeverity = (typeof AvatarIconSeverity)[keyof typeof AvatarIconSeverity];
|
|
31
|
+
/**
|
|
32
|
+
* AvatarIcon component shared props (ADR-0004)
|
|
33
|
+
* Platform-independent properties shared across React and React Native
|
|
34
|
+
*/
|
|
35
|
+
export type AvatarIconPropsShared = {
|
|
36
|
+
/**
|
|
37
|
+
* Required icon name from the icon set
|
|
38
|
+
*/
|
|
39
|
+
iconName: IconName;
|
|
40
|
+
/**
|
|
41
|
+
* Optional prop to control the size of the avatar
|
|
42
|
+
*
|
|
43
|
+
* @default AvatarIconSize.Md
|
|
44
|
+
*/
|
|
45
|
+
size?: AvatarIconSize;
|
|
46
|
+
/**
|
|
47
|
+
* Optional prop to control the severity of the avatar
|
|
48
|
+
* Possible values:
|
|
49
|
+
* - AvatarIconSeverity.Neutral
|
|
50
|
+
* - AvatarIconSeverity.Info
|
|
51
|
+
* - AvatarIconSeverity.Success
|
|
52
|
+
* - AvatarIconSeverity.Error
|
|
53
|
+
* - AvatarIconSeverity.Warning
|
|
54
|
+
*
|
|
55
|
+
* @default AvatarIconSeverity.Neutral
|
|
56
|
+
*/
|
|
57
|
+
severity?: AvatarIconSeverity;
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=AvatarIcon.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.types.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,cAAc,EAAE,gCAAsB;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,+BAA2B;AAEnD,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,gCAAsB;AAEjE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { AvatarBaseSize as AvatarIconSize } from "../AvatarBase/index.mjs";
|
|
2
|
+
import type { IconName } from "../Icon/Icon.types.mjs";
|
|
3
|
+
export { AvatarBaseSize as AvatarIconSize } from "../AvatarBase/index.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* AvatarIcon - severity
|
|
6
|
+
* Convert from enum to const object (ADR-0003)
|
|
7
|
+
*/
|
|
8
|
+
export declare const AvatarIconSeverity: {
|
|
9
|
+
/**
|
|
10
|
+
* Represents a neutral severity
|
|
11
|
+
*/
|
|
12
|
+
readonly Neutral: "neutral";
|
|
13
|
+
/**
|
|
14
|
+
* Represents an info severity
|
|
15
|
+
*/
|
|
16
|
+
readonly Info: "info";
|
|
17
|
+
/**
|
|
18
|
+
* Represents a success severity
|
|
19
|
+
*/
|
|
20
|
+
readonly Success: "success";
|
|
21
|
+
/**
|
|
22
|
+
* Represents an error severity
|
|
23
|
+
*/
|
|
24
|
+
readonly Error: "error";
|
|
25
|
+
/**
|
|
26
|
+
* Represents a warning severity
|
|
27
|
+
*/
|
|
28
|
+
readonly Warning: "warning";
|
|
29
|
+
};
|
|
30
|
+
export type AvatarIconSeverity = (typeof AvatarIconSeverity)[keyof typeof AvatarIconSeverity];
|
|
31
|
+
/**
|
|
32
|
+
* AvatarIcon component shared props (ADR-0004)
|
|
33
|
+
* Platform-independent properties shared across React and React Native
|
|
34
|
+
*/
|
|
35
|
+
export type AvatarIconPropsShared = {
|
|
36
|
+
/**
|
|
37
|
+
* Required icon name from the icon set
|
|
38
|
+
*/
|
|
39
|
+
iconName: IconName;
|
|
40
|
+
/**
|
|
41
|
+
* Optional prop to control the size of the avatar
|
|
42
|
+
*
|
|
43
|
+
* @default AvatarIconSize.Md
|
|
44
|
+
*/
|
|
45
|
+
size?: AvatarIconSize;
|
|
46
|
+
/**
|
|
47
|
+
* Optional prop to control the severity of the avatar
|
|
48
|
+
* Possible values:
|
|
49
|
+
* - AvatarIconSeverity.Neutral
|
|
50
|
+
* - AvatarIconSeverity.Info
|
|
51
|
+
* - AvatarIconSeverity.Success
|
|
52
|
+
* - AvatarIconSeverity.Error
|
|
53
|
+
* - AvatarIconSeverity.Warning
|
|
54
|
+
*
|
|
55
|
+
* @default AvatarIconSeverity.Neutral
|
|
56
|
+
*/
|
|
57
|
+
severity?: AvatarIconSeverity;
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=AvatarIcon.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.types.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,cAAc,EAAE,gCAAsB;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,+BAA2B;AAEnD,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,gCAAsB;AAEjE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { AvatarBaseSize as AvatarIconSize } from "../AvatarBase/index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* AvatarIcon - severity
|
|
4
|
+
* Convert from enum to const object (ADR-0003)
|
|
5
|
+
*/
|
|
6
|
+
export const AvatarIconSeverity = {
|
|
7
|
+
/**
|
|
8
|
+
* Represents a neutral severity
|
|
9
|
+
*/
|
|
10
|
+
Neutral: 'neutral',
|
|
11
|
+
/**
|
|
12
|
+
* Represents an info severity
|
|
13
|
+
*/
|
|
14
|
+
Info: 'info',
|
|
15
|
+
/**
|
|
16
|
+
* Represents a success severity
|
|
17
|
+
*/
|
|
18
|
+
Success: 'success',
|
|
19
|
+
/**
|
|
20
|
+
* Represents an error severity
|
|
21
|
+
*/
|
|
22
|
+
Error: 'error',
|
|
23
|
+
/**
|
|
24
|
+
* Represents a warning severity
|
|
25
|
+
*/
|
|
26
|
+
Warning: 'warning',
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=AvatarIcon.types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.types.mjs","sourceRoot":"","sources":["../../../src/types/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,gCAAsB;AAEjE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,OAAO,EAAE,SAAS;CACV,CAAC","sourcesContent":["import type { AvatarBaseSize as AvatarIconSize } from '../AvatarBase';\nimport type { IconName } from '../Icon/Icon.types';\n\nexport { AvatarBaseSize as AvatarIconSize } from '../AvatarBase';\n\n/**\n * AvatarIcon - severity\n * Convert from enum to const object (ADR-0003)\n */\nexport const AvatarIconSeverity = {\n /**\n * Represents a neutral severity\n */\n Neutral: 'neutral',\n /**\n * Represents an info severity\n */\n Info: 'info',\n /**\n * Represents a success severity\n */\n Success: 'success',\n /**\n * Represents an error severity\n */\n Error: 'error',\n /**\n * Represents a warning severity\n */\n Warning: 'warning',\n} as const;\nexport type AvatarIconSeverity =\n (typeof AvatarIconSeverity)[keyof typeof AvatarIconSeverity];\n\n/**\n * AvatarIcon component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native\n */\nexport type AvatarIconPropsShared = {\n /**\n * Required icon name from the icon set\n */\n iconName: IconName;\n /**\n * Optional prop to control the size of the avatar\n *\n * @default AvatarIconSize.Md\n */\n size?: AvatarIconSize;\n /**\n * Optional prop to control the severity of the avatar\n * Possible values:\n * - AvatarIconSeverity.Neutral\n * - AvatarIconSeverity.Info\n * - AvatarIconSeverity.Success\n * - AvatarIconSeverity.Error\n * - AvatarIconSeverity.Warning\n *\n * @default AvatarIconSeverity.Neutral\n */\n severity?: AvatarIconSeverity;\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvatarIconSeverity = exports.AvatarIconSize = void 0;
|
|
4
|
+
var AvatarIcon_types_1 = require("./AvatarIcon.types.cjs");
|
|
5
|
+
Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return AvatarIcon_types_1.AvatarIconSize; } });
|
|
6
|
+
Object.defineProperty(exports, "AvatarIconSeverity", { enumerable: true, get: function () { return AvatarIcon_types_1.AvatarIconSeverity; } });
|
|
7
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/AvatarIcon/index.ts"],"names":[],"mappings":";;;AAAA,2DAI4B;AAH1B,kHAAA,cAAc,OAAA;AACd,sHAAA,kBAAkB,OAAA","sourcesContent":["export {\n AvatarIconSize,\n AvatarIconSeverity,\n type AvatarIconPropsShared,\n} from './AvatarIcon.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/AvatarIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,KAAK,qBAAqB,GAC3B,+BAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/AvatarIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,KAAK,qBAAqB,GAC3B,+BAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/AvatarIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAEnB,+BAA2B","sourcesContent":["export {\n AvatarIconSize,\n AvatarIconSeverity,\n type AvatarIconPropsShared,\n} from './AvatarIcon.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeIcon.types.cjs","sourceRoot":"","sources":["../../../src/types/BadgeIcon/BadgeIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { IconName } from '../Icon';\n\n/**\n * BadgeIcon component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native\n */\nexport type BadgeIconPropsShared = {\n /**\n * Required prop to specify an icon to show.\n * Uses shared IconName because the shared package owns icon names.\n */\n iconName: IconName;\n};\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconName } from "../Icon/index.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* BadgeIcon component shared props (ADR-0004)
|
|
4
|
+
* Platform-independent properties shared across React and React Native
|
|
5
|
+
*/
|
|
6
|
+
export type BadgeIconPropsShared = {
|
|
7
|
+
/**
|
|
8
|
+
* Required prop to specify an icon to show.
|
|
9
|
+
* Uses shared IconName because the shared package owns icon names.
|
|
10
|
+
*/
|
|
11
|
+
iconName: IconName;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=BadgeIcon.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeIcon.types.d.cts","sourceRoot":"","sources":["../../../src/types/BadgeIcon/BadgeIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,0BAAgB;AAExC;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconName } from "../Icon/index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* BadgeIcon component shared props (ADR-0004)
|
|
4
|
+
* Platform-independent properties shared across React and React Native
|
|
5
|
+
*/
|
|
6
|
+
export type BadgeIconPropsShared = {
|
|
7
|
+
/**
|
|
8
|
+
* Required prop to specify an icon to show.
|
|
9
|
+
* Uses shared IconName because the shared package owns icon names.
|
|
10
|
+
*/
|
|
11
|
+
iconName: IconName;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=BadgeIcon.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeIcon.types.d.mts","sourceRoot":"","sources":["../../../src/types/BadgeIcon/BadgeIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,0BAAgB;AAExC;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeIcon.types.mjs","sourceRoot":"","sources":["../../../src/types/BadgeIcon/BadgeIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { IconName } from '../Icon';\n\n/**\n * BadgeIcon component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native\n */\nexport type BadgeIconPropsShared = {\n /**\n * Required prop to specify an icon to show.\n * Uses shared IconName because the shared package owns icon names.\n */\n iconName: IconName;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/BadgeIcon/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type BadgeIconPropsShared } from './BadgeIcon.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/BadgeIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,8BAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/BadgeIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,8BAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/BadgeIcon/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type BadgeIconPropsShared } from './BadgeIcon.types';\n"]}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BoxBorderColor = exports.BoxBackgroundColor = exports.BoxJustifyContent = exports.BoxAlignItems = exports.BoxFlexWrap = exports.BoxFlexDirection = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Box - flexDirection
|
|
6
|
+
* Convert from enum to const object (ADR-0003)
|
|
7
|
+
*/
|
|
8
|
+
exports.BoxFlexDirection = {
|
|
9
|
+
Row: 'flex-row',
|
|
10
|
+
RowReverse: 'flex-row-reverse',
|
|
11
|
+
Column: 'flex-col',
|
|
12
|
+
ColumnReverse: 'flex-col-reverse',
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Box - flexWrap
|
|
16
|
+
* Convert from enum to const object (ADR-0003)
|
|
17
|
+
*/
|
|
18
|
+
exports.BoxFlexWrap = {
|
|
19
|
+
NoWrap: 'flex-nowrap',
|
|
20
|
+
Wrap: 'flex-wrap',
|
|
21
|
+
WrapReverse: 'flex-wrap-reverse',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Box - alignItems
|
|
25
|
+
* Convert from enum to const object (ADR-0003)
|
|
26
|
+
*/
|
|
27
|
+
exports.BoxAlignItems = {
|
|
28
|
+
Start: 'items-start',
|
|
29
|
+
Center: 'items-center',
|
|
30
|
+
End: 'items-end',
|
|
31
|
+
Stretch: 'items-stretch',
|
|
32
|
+
Baseline: 'items-baseline',
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Box - justifyContent
|
|
36
|
+
* Convert from enum to const object (ADR-0003)
|
|
37
|
+
*/
|
|
38
|
+
exports.BoxJustifyContent = {
|
|
39
|
+
Start: 'justify-start',
|
|
40
|
+
Center: 'justify-center',
|
|
41
|
+
End: 'justify-end',
|
|
42
|
+
Between: 'justify-between',
|
|
43
|
+
Around: 'justify-around',
|
|
44
|
+
Evenly: 'justify-evenly',
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Box - backgroundColor
|
|
48
|
+
* Convert from enum to const object (ADR-0003)
|
|
49
|
+
*/
|
|
50
|
+
exports.BoxBackgroundColor = {
|
|
51
|
+
/** Default background color */
|
|
52
|
+
BackgroundDefault: 'bg-default',
|
|
53
|
+
/** Alternative background color */
|
|
54
|
+
BackgroundAlternative: 'bg-alternative',
|
|
55
|
+
/** Section background color */
|
|
56
|
+
BackgroundSection: 'bg-section',
|
|
57
|
+
/** Subsection background color */
|
|
58
|
+
BackgroundSubsection: 'bg-subsection',
|
|
59
|
+
/** Muted background color */
|
|
60
|
+
BackgroundMuted: 'bg-muted',
|
|
61
|
+
/** Primary default background color */
|
|
62
|
+
PrimaryDefault: 'bg-primary-default',
|
|
63
|
+
/** Primary alternative background color */
|
|
64
|
+
PrimaryAlternative: 'bg-primary-alternative',
|
|
65
|
+
/** Primary muted background color */
|
|
66
|
+
PrimaryMuted: 'bg-primary-muted',
|
|
67
|
+
/** Primary inverse background color */
|
|
68
|
+
PrimaryInverse: 'bg-primary-inverse',
|
|
69
|
+
/** Error default background color */
|
|
70
|
+
ErrorDefault: 'bg-error-default',
|
|
71
|
+
/** Error alternative background color */
|
|
72
|
+
ErrorAlternative: 'bg-error-alternative',
|
|
73
|
+
/** Error muted background color */
|
|
74
|
+
ErrorMuted: 'bg-error-muted',
|
|
75
|
+
/** Error inverse background color */
|
|
76
|
+
ErrorInverse: 'bg-error-inverse',
|
|
77
|
+
/** Warning default background color */
|
|
78
|
+
WarningDefault: 'bg-warning-default',
|
|
79
|
+
/** Warning muted background color */
|
|
80
|
+
WarningMuted: 'bg-warning-muted',
|
|
81
|
+
/** Warning inverse background color */
|
|
82
|
+
WarningInverse: 'bg-warning-inverse',
|
|
83
|
+
/** Success default background color */
|
|
84
|
+
SuccessDefault: 'bg-success-default',
|
|
85
|
+
/** Success muted background color */
|
|
86
|
+
SuccessMuted: 'bg-success-muted',
|
|
87
|
+
/** Success inverse background color */
|
|
88
|
+
SuccessInverse: 'bg-success-inverse',
|
|
89
|
+
/** Info default background color */
|
|
90
|
+
InfoDefault: 'bg-info-default',
|
|
91
|
+
/** Info muted background color */
|
|
92
|
+
InfoMuted: 'bg-info-muted',
|
|
93
|
+
/** Info inverse background color */
|
|
94
|
+
InfoInverse: 'bg-info-inverse',
|
|
95
|
+
/** Flask default background color */
|
|
96
|
+
FlaskDefault: 'bg-flask-default',
|
|
97
|
+
/** Flask inverse background color */
|
|
98
|
+
FlaskInverse: 'bg-flask-inverse',
|
|
99
|
+
/** Overlay alternative background color */
|
|
100
|
+
OverlayAlternative: 'bg-overlay-alternative',
|
|
101
|
+
/** Overlay default background color */
|
|
102
|
+
OverlayDefault: 'bg-overlay-default',
|
|
103
|
+
/** Overlay inverse background color */
|
|
104
|
+
OverlayInverse: 'bg-overlay-inverse',
|
|
105
|
+
/** Transparent background color */
|
|
106
|
+
Transparent: 'bg-transparent',
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Box - borderColor
|
|
110
|
+
* Convert from enum to const object (ADR-0003)
|
|
111
|
+
*/
|
|
112
|
+
exports.BoxBorderColor = {
|
|
113
|
+
/** Background default for cut out effect */
|
|
114
|
+
BackgroundDefault: 'border-background-default',
|
|
115
|
+
/** Default border color */
|
|
116
|
+
BorderDefault: 'border-default',
|
|
117
|
+
/** Muted border color */
|
|
118
|
+
BorderMuted: 'border-muted',
|
|
119
|
+
/** Primary default border color */
|
|
120
|
+
PrimaryDefault: 'border-primary-default',
|
|
121
|
+
/** Primary alternative border color */
|
|
122
|
+
PrimaryAlternative: 'border-primary-alternative',
|
|
123
|
+
/** Primary muted border color */
|
|
124
|
+
PrimaryMuted: 'border-primary-muted',
|
|
125
|
+
/** Primary inverse border color */
|
|
126
|
+
PrimaryInverse: 'border-primary-inverse',
|
|
127
|
+
/** Error default border color */
|
|
128
|
+
ErrorDefault: 'border-error-default',
|
|
129
|
+
/** Error alternative border color */
|
|
130
|
+
ErrorAlternative: 'border-error-alternative',
|
|
131
|
+
/** Error muted border color */
|
|
132
|
+
ErrorMuted: 'border-error-muted',
|
|
133
|
+
/** Error inverse border color */
|
|
134
|
+
ErrorInverse: 'border-error-inverse',
|
|
135
|
+
/** Warning default border color */
|
|
136
|
+
WarningDefault: 'border-warning-default',
|
|
137
|
+
/** Warning muted border color */
|
|
138
|
+
WarningMuted: 'border-warning-muted',
|
|
139
|
+
/** Warning inverse border color */
|
|
140
|
+
WarningInverse: 'border-warning-inverse',
|
|
141
|
+
/** Success default border color */
|
|
142
|
+
SuccessDefault: 'border-success-default',
|
|
143
|
+
/** Success muted border color */
|
|
144
|
+
SuccessMuted: 'border-success-muted',
|
|
145
|
+
/** Success inverse border color */
|
|
146
|
+
SuccessInverse: 'border-success-inverse',
|
|
147
|
+
/** Info default border color */
|
|
148
|
+
InfoDefault: 'border-info-default',
|
|
149
|
+
/** Info muted border color */
|
|
150
|
+
InfoMuted: 'border-info-muted',
|
|
151
|
+
/** Info inverse border color */
|
|
152
|
+
InfoInverse: 'border-info-inverse',
|
|
153
|
+
/** Flask default border color */
|
|
154
|
+
FlaskDefault: 'border-flask-default',
|
|
155
|
+
/** Flask inverse border color */
|
|
156
|
+
FlaskInverse: 'border-flask-inverse',
|
|
157
|
+
/** Overlay alternative border color */
|
|
158
|
+
OverlayAlternative: 'border-overlay-alternative',
|
|
159
|
+
/** Overlay default border color */
|
|
160
|
+
OverlayDefault: 'border-overlay-default',
|
|
161
|
+
/** Overlay inverse border color */
|
|
162
|
+
OverlayInverse: 'border-overlay-inverse',
|
|
163
|
+
/** Transparent border color */
|
|
164
|
+
Transparent: 'border-transparent',
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=Box.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.types.cjs","sourceRoot":"","sources":["../../../src/types/Box/Box.types.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Box - all spacing-related props\n */\nexport type BoxSpacing = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Box - border width values (only valid Tailwind CSS border width utilities)\n */\nexport type BoxBorderWidth = 0 | 1 | 2 | 4 | 8;\n\n/**\n * Box - flexDirection\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexDirection = {\n Row: 'flex-row',\n RowReverse: 'flex-row-reverse',\n Column: 'flex-col',\n ColumnReverse: 'flex-col-reverse',\n} as const;\nexport type BoxFlexDirection =\n (typeof BoxFlexDirection)[keyof typeof BoxFlexDirection];\n\n/**\n * Box - flexWrap\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexWrap = {\n NoWrap: 'flex-nowrap',\n Wrap: 'flex-wrap',\n WrapReverse: 'flex-wrap-reverse',\n} as const;\nexport type BoxFlexWrap = (typeof BoxFlexWrap)[keyof typeof BoxFlexWrap];\n\n/**\n * Box - alignItems\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxAlignItems = {\n Start: 'items-start',\n Center: 'items-center',\n End: 'items-end',\n Stretch: 'items-stretch',\n Baseline: 'items-baseline',\n} as const;\nexport type BoxAlignItems = (typeof BoxAlignItems)[keyof typeof BoxAlignItems];\n\n/**\n * Box - justifyContent\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxJustifyContent = {\n Start: 'justify-start',\n Center: 'justify-center',\n End: 'justify-end',\n Between: 'justify-between',\n Around: 'justify-around',\n Evenly: 'justify-evenly',\n} as const;\nexport type BoxJustifyContent =\n (typeof BoxJustifyContent)[keyof typeof BoxJustifyContent];\n\n/**\n * Box - backgroundColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBackgroundColor = {\n /** Default background color */\n BackgroundDefault: 'bg-default',\n /** Alternative background color */\n BackgroundAlternative: 'bg-alternative',\n /** Section background color */\n BackgroundSection: 'bg-section',\n /** Subsection background color */\n BackgroundSubsection: 'bg-subsection',\n /** Muted background color */\n BackgroundMuted: 'bg-muted',\n /** Primary default background color */\n PrimaryDefault: 'bg-primary-default',\n /** Primary alternative background color */\n PrimaryAlternative: 'bg-primary-alternative',\n /** Primary muted background color */\n PrimaryMuted: 'bg-primary-muted',\n /** Primary inverse background color */\n PrimaryInverse: 'bg-primary-inverse',\n /** Error default background color */\n ErrorDefault: 'bg-error-default',\n /** Error alternative background color */\n ErrorAlternative: 'bg-error-alternative',\n /** Error muted background color */\n ErrorMuted: 'bg-error-muted',\n /** Error inverse background color */\n ErrorInverse: 'bg-error-inverse',\n /** Warning default background color */\n WarningDefault: 'bg-warning-default',\n /** Warning muted background color */\n WarningMuted: 'bg-warning-muted',\n /** Warning inverse background color */\n WarningInverse: 'bg-warning-inverse',\n /** Success default background color */\n SuccessDefault: 'bg-success-default',\n /** Success muted background color */\n SuccessMuted: 'bg-success-muted',\n /** Success inverse background color */\n SuccessInverse: 'bg-success-inverse',\n /** Info default background color */\n InfoDefault: 'bg-info-default',\n /** Info muted background color */\n InfoMuted: 'bg-info-muted',\n /** Info inverse background color */\n InfoInverse: 'bg-info-inverse',\n /** Flask default background color */\n FlaskDefault: 'bg-flask-default',\n /** Flask inverse background color */\n FlaskInverse: 'bg-flask-inverse',\n /** Overlay alternative background color */\n OverlayAlternative: 'bg-overlay-alternative',\n /** Overlay default background color */\n OverlayDefault: 'bg-overlay-default',\n /** Overlay inverse background color */\n OverlayInverse: 'bg-overlay-inverse',\n /** Transparent background color */\n Transparent: 'bg-transparent',\n} as const;\nexport type BoxBackgroundColor =\n (typeof BoxBackgroundColor)[keyof typeof BoxBackgroundColor];\n\n/**\n * Box - borderColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBorderColor = {\n /** Background default for cut out effect */\n BackgroundDefault: 'border-background-default',\n /** Default border color */\n BorderDefault: 'border-default',\n /** Muted border color */\n BorderMuted: 'border-muted',\n /** Primary default border color */\n PrimaryDefault: 'border-primary-default',\n /** Primary alternative border color */\n PrimaryAlternative: 'border-primary-alternative',\n /** Primary muted border color */\n PrimaryMuted: 'border-primary-muted',\n /** Primary inverse border color */\n PrimaryInverse: 'border-primary-inverse',\n /** Error default border color */\n ErrorDefault: 'border-error-default',\n /** Error alternative border color */\n ErrorAlternative: 'border-error-alternative',\n /** Error muted border color */\n ErrorMuted: 'border-error-muted',\n /** Error inverse border color */\n ErrorInverse: 'border-error-inverse',\n /** Warning default border color */\n WarningDefault: 'border-warning-default',\n /** Warning muted border color */\n WarningMuted: 'border-warning-muted',\n /** Warning inverse border color */\n WarningInverse: 'border-warning-inverse',\n /** Success default border color */\n SuccessDefault: 'border-success-default',\n /** Success muted border color */\n SuccessMuted: 'border-success-muted',\n /** Success inverse border color */\n SuccessInverse: 'border-success-inverse',\n /** Info default border color */\n InfoDefault: 'border-info-default',\n /** Info muted border color */\n InfoMuted: 'border-info-muted',\n /** Info inverse border color */\n InfoInverse: 'border-info-inverse',\n /** Flask default border color */\n FlaskDefault: 'border-flask-default',\n /** Flask inverse border color */\n FlaskInverse: 'border-flask-inverse',\n /** Overlay alternative border color */\n OverlayAlternative: 'border-overlay-alternative',\n /** Overlay default border color */\n OverlayDefault: 'border-overlay-default',\n /** Overlay inverse border color */\n OverlayInverse: 'border-overlay-inverse',\n /** Transparent border color */\n Transparent: 'border-transparent',\n} as const;\nexport type BoxBorderColor =\n (typeof BoxBorderColor)[keyof typeof BoxBorderColor];\n\n/**\n * Box component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxPropsShared = {\n /**\n * The flex-direction style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flex-wrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 0-12 for a gap of 0px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The align-items style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justify-content style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n};\n"]}
|