@metamask-previews/design-system-shared 0.7.0-preview.dff9dce → 0.9.0-preview.d854123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/dist/index.cjs +12 -8
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +7 -3
  5. package/dist/index.d.cts.map +1 -1
  6. package/dist/index.d.mts +7 -3
  7. package/dist/index.d.mts.map +1 -1
  8. package/dist/index.mjs +6 -2
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/types/{BoxHorizontal/BoxHorizontal.types.cjs → BadgeNetwork/BadgeNetwork.types.cjs} +1 -1
  11. package/dist/types/BadgeNetwork/BadgeNetwork.types.cjs.map +1 -0
  12. package/dist/types/BadgeNetwork/BadgeNetwork.types.d.cts +20 -0
  13. package/dist/types/BadgeNetwork/BadgeNetwork.types.d.cts.map +1 -0
  14. package/dist/types/BadgeNetwork/BadgeNetwork.types.d.mts +20 -0
  15. package/dist/types/BadgeNetwork/BadgeNetwork.types.d.mts.map +1 -0
  16. package/dist/types/BadgeNetwork/BadgeNetwork.types.mjs +2 -0
  17. package/dist/types/BadgeNetwork/BadgeNetwork.types.mjs.map +1 -0
  18. package/dist/types/BadgeNetwork/index.cjs.map +1 -0
  19. package/dist/types/BadgeNetwork/index.d.cts +2 -0
  20. package/dist/types/BadgeNetwork/index.d.cts.map +1 -0
  21. package/dist/types/BadgeNetwork/index.d.mts +2 -0
  22. package/dist/types/BadgeNetwork/index.d.mts.map +1 -0
  23. package/dist/types/BadgeNetwork/index.mjs.map +1 -0
  24. package/dist/types/{BoxVertical/BoxVertical.types.cjs → BoxColumn/BoxColumn.types.cjs} +1 -1
  25. package/dist/types/BoxColumn/BoxColumn.types.cjs.map +1 -0
  26. package/dist/types/{BoxVertical/BoxVertical.types.d.cts → BoxColumn/BoxColumn.types.d.cts} +3 -3
  27. package/dist/types/BoxColumn/BoxColumn.types.d.cts.map +1 -0
  28. package/dist/types/{BoxVertical/BoxVertical.types.d.mts → BoxColumn/BoxColumn.types.d.mts} +3 -3
  29. package/dist/types/BoxColumn/BoxColumn.types.d.mts.map +1 -0
  30. package/dist/types/BoxColumn/BoxColumn.types.mjs +2 -0
  31. package/dist/types/BoxColumn/BoxColumn.types.mjs.map +1 -0
  32. package/dist/types/BoxColumn/index.cjs.map +1 -0
  33. package/dist/types/BoxColumn/index.d.cts +2 -0
  34. package/dist/types/BoxColumn/index.d.cts.map +1 -0
  35. package/dist/types/BoxColumn/index.d.mts +2 -0
  36. package/dist/types/BoxColumn/index.d.mts.map +1 -0
  37. package/dist/types/BoxColumn/index.mjs.map +1 -0
  38. package/dist/types/BoxRow/BoxRow.types.cjs +3 -0
  39. package/dist/types/BoxRow/BoxRow.types.cjs.map +1 -0
  40. package/dist/types/{BoxHorizontal/BoxHorizontal.types.d.cts → BoxRow/BoxRow.types.d.cts} +3 -3
  41. package/dist/types/BoxRow/BoxRow.types.d.cts.map +1 -0
  42. package/dist/types/{BoxHorizontal/BoxHorizontal.types.d.mts → BoxRow/BoxRow.types.d.mts} +3 -3
  43. package/dist/types/BoxRow/BoxRow.types.d.mts.map +1 -0
  44. package/dist/types/BoxRow/BoxRow.types.mjs +2 -0
  45. package/dist/types/BoxRow/BoxRow.types.mjs.map +1 -0
  46. package/dist/types/BoxRow/index.cjs +3 -0
  47. package/dist/types/BoxRow/index.cjs.map +1 -0
  48. package/dist/types/BoxRow/index.d.cts +2 -0
  49. package/dist/types/BoxRow/index.d.cts.map +1 -0
  50. package/dist/types/BoxRow/index.d.mts +2 -0
  51. package/dist/types/BoxRow/index.d.mts.map +1 -0
  52. package/dist/types/BoxRow/index.mjs +2 -0
  53. package/dist/types/BoxRow/index.mjs.map +1 -0
  54. package/dist/types/HeaderSearch/HeaderSearch.types.cjs +11 -0
  55. package/dist/types/HeaderSearch/HeaderSearch.types.cjs.map +1 -0
  56. package/dist/types/HeaderSearch/HeaderSearch.types.d.cts +25 -0
  57. package/dist/types/HeaderSearch/HeaderSearch.types.d.cts.map +1 -0
  58. package/dist/types/HeaderSearch/HeaderSearch.types.d.mts +25 -0
  59. package/dist/types/HeaderSearch/HeaderSearch.types.d.mts.map +1 -0
  60. package/dist/types/HeaderSearch/HeaderSearch.types.mjs +8 -0
  61. package/dist/types/HeaderSearch/HeaderSearch.types.mjs.map +1 -0
  62. package/dist/types/HeaderSearch/index.cjs +6 -0
  63. package/dist/types/HeaderSearch/index.cjs.map +1 -0
  64. package/dist/types/HeaderSearch/index.d.cts +2 -0
  65. package/dist/types/HeaderSearch/index.d.cts.map +1 -0
  66. package/dist/types/HeaderSearch/index.d.mts +2 -0
  67. package/dist/types/HeaderSearch/index.d.mts.map +1 -0
  68. package/dist/types/HeaderSearch/index.mjs +2 -0
  69. package/dist/types/HeaderSearch/index.mjs.map +1 -0
  70. package/dist/types/Icon/Icon.types.cjs +351 -0
  71. package/dist/types/Icon/Icon.types.cjs.map +1 -0
  72. package/dist/types/Icon/Icon.types.d.cts +367 -0
  73. package/dist/types/Icon/Icon.types.d.cts.map +1 -0
  74. package/dist/types/Icon/Icon.types.d.mts +367 -0
  75. package/dist/types/Icon/Icon.types.d.mts.map +1 -0
  76. package/dist/types/Icon/Icon.types.mjs +348 -0
  77. package/dist/types/Icon/Icon.types.mjs.map +1 -0
  78. package/dist/types/Icon/index.cjs +8 -0
  79. package/dist/types/Icon/index.cjs.map +1 -0
  80. package/dist/types/Icon/index.d.cts +2 -0
  81. package/dist/types/Icon/index.d.cts.map +1 -0
  82. package/dist/types/Icon/index.d.mts +2 -0
  83. package/dist/types/Icon/index.d.mts.map +1 -0
  84. package/dist/types/Icon/index.mjs +2 -0
  85. package/dist/types/Icon/index.mjs.map +1 -0
  86. package/dist/types/KeyValueColumn/KeyValueColumn.types.cjs +3 -0
  87. package/dist/types/KeyValueColumn/KeyValueColumn.types.cjs.map +1 -0
  88. package/dist/types/KeyValueColumn/KeyValueColumn.types.d.cts +20 -0
  89. package/dist/types/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -0
  90. package/dist/types/KeyValueColumn/KeyValueColumn.types.d.mts +20 -0
  91. package/dist/types/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -0
  92. package/dist/types/KeyValueColumn/KeyValueColumn.types.mjs +2 -0
  93. package/dist/types/KeyValueColumn/KeyValueColumn.types.mjs.map +1 -0
  94. package/dist/types/KeyValueColumn/index.cjs +3 -0
  95. package/dist/types/KeyValueColumn/index.cjs.map +1 -0
  96. package/dist/types/KeyValueColumn/index.d.cts +2 -0
  97. package/dist/types/KeyValueColumn/index.d.cts.map +1 -0
  98. package/dist/types/KeyValueColumn/index.d.mts +2 -0
  99. package/dist/types/KeyValueColumn/index.d.mts.map +1 -0
  100. package/dist/types/KeyValueColumn/index.mjs +2 -0
  101. package/dist/types/KeyValueColumn/index.mjs.map +1 -0
  102. package/dist/types/KeyValueRow/KeyValueRow.types.cjs +14 -0
  103. package/dist/types/KeyValueRow/KeyValueRow.types.cjs.map +1 -0
  104. package/dist/types/KeyValueRow/KeyValueRow.types.d.cts +37 -0
  105. package/dist/types/KeyValueRow/KeyValueRow.types.d.cts.map +1 -0
  106. package/dist/types/KeyValueRow/KeyValueRow.types.d.mts +37 -0
  107. package/dist/types/KeyValueRow/KeyValueRow.types.d.mts.map +1 -0
  108. package/dist/types/KeyValueRow/KeyValueRow.types.mjs +11 -0
  109. package/dist/types/KeyValueRow/KeyValueRow.types.mjs.map +1 -0
  110. package/dist/types/KeyValueRow/index.cjs +6 -0
  111. package/dist/types/KeyValueRow/index.cjs.map +1 -0
  112. package/dist/types/KeyValueRow/index.d.cts +2 -0
  113. package/dist/types/KeyValueRow/index.d.cts.map +1 -0
  114. package/dist/types/KeyValueRow/index.d.mts +2 -0
  115. package/dist/types/KeyValueRow/index.d.mts.map +1 -0
  116. package/dist/types/KeyValueRow/index.mjs +2 -0
  117. package/dist/types/KeyValueRow/index.mjs.map +1 -0
  118. package/package.json +6 -1
  119. package/dist/types/BoxHorizontal/BoxHorizontal.types.cjs.map +0 -1
  120. package/dist/types/BoxHorizontal/BoxHorizontal.types.d.cts.map +0 -1
  121. package/dist/types/BoxHorizontal/BoxHorizontal.types.d.mts.map +0 -1
  122. package/dist/types/BoxHorizontal/BoxHorizontal.types.mjs +0 -2
  123. package/dist/types/BoxHorizontal/BoxHorizontal.types.mjs.map +0 -1
  124. package/dist/types/BoxHorizontal/index.cjs.map +0 -1
  125. package/dist/types/BoxHorizontal/index.d.cts +0 -2
  126. package/dist/types/BoxHorizontal/index.d.cts.map +0 -1
  127. package/dist/types/BoxHorizontal/index.d.mts +0 -2
  128. package/dist/types/BoxHorizontal/index.d.mts.map +0 -1
  129. package/dist/types/BoxHorizontal/index.mjs.map +0 -1
  130. package/dist/types/BoxVertical/BoxVertical.types.cjs.map +0 -1
  131. package/dist/types/BoxVertical/BoxVertical.types.d.cts.map +0 -1
  132. package/dist/types/BoxVertical/BoxVertical.types.d.mts.map +0 -1
  133. package/dist/types/BoxVertical/BoxVertical.types.mjs +0 -2
  134. package/dist/types/BoxVertical/BoxVertical.types.mjs.map +0 -1
  135. package/dist/types/BoxVertical/index.cjs.map +0 -1
  136. package/dist/types/BoxVertical/index.d.cts +0 -2
  137. package/dist/types/BoxVertical/index.d.cts.map +0 -1
  138. package/dist/types/BoxVertical/index.d.mts +0 -2
  139. package/dist/types/BoxVertical/index.d.mts.map +0 -1
  140. package/dist/types/BoxVertical/index.mjs.map +0 -1
  141. package/dist/types/Text/Text.types.cjs +0 -118
  142. package/dist/types/Text/Text.types.cjs.map +0 -1
  143. package/dist/types/Text/Text.types.d.cts +0 -140
  144. package/dist/types/Text/Text.types.d.cts.map +0 -1
  145. package/dist/types/Text/Text.types.d.mts +0 -140
  146. package/dist/types/Text/Text.types.d.mts.map +0 -1
  147. package/dist/types/Text/Text.types.mjs +0 -115
  148. package/dist/types/Text/Text.types.mjs.map +0 -1
  149. package/dist/types/Text/index.cjs +0 -10
  150. package/dist/types/Text/index.cjs.map +0 -1
  151. package/dist/types/Text/index.d.cts +0 -2
  152. package/dist/types/Text/index.d.cts.map +0 -1
  153. package/dist/types/Text/index.d.mts +0 -2
  154. package/dist/types/Text/index.d.mts.map +0 -1
  155. package/dist/types/Text/index.mjs +0 -2
  156. package/dist/types/Text/index.mjs.map +0 -1
  157. /package/dist/types/{BoxHorizontal → BadgeNetwork}/index.cjs +0 -0
  158. /package/dist/types/{BoxHorizontal → BadgeNetwork}/index.mjs +0 -0
  159. /package/dist/types/{BoxVertical → BoxColumn}/index.cjs +0 -0
  160. /package/dist/types/{BoxVertical → BoxColumn}/index.mjs +0 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * KeyValueRow layout variant (height).
3
+ * Uses const object with derived union type (ADR-0003).
4
+ */
5
+ export const KeyValueRowVariant = {
6
+ /** Compact row height (40px, h-10). */
7
+ Summary: 'summary',
8
+ /** Taller row for input contexts (48px, h-12). */
9
+ Input: 'input',
10
+ };
11
+ //# sourceMappingURL=KeyValueRow.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueRow.types.mjs","sourceRoot":"","sources":["../../../src/types/KeyValueRow/KeyValueRow.types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,uCAAuC;IACvC,OAAO,EAAE,SAAS;IAClB,kDAAkD;IAClD,KAAK,EAAE,OAAO;CACN,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * KeyValueRow layout variant (height).\n * Uses const object with derived union type (ADR-0003).\n */\nexport const KeyValueRowVariant = {\n /** Compact row height (40px, h-10). */\n Summary: 'summary',\n /** Taller row for input contexts (48px, h-12). */\n Input: 'input',\n} as const;\n\nexport type KeyValueRowVariant =\n (typeof KeyValueRowVariant)[keyof typeof KeyValueRowVariant];\n\n/**\n * KeyValueRow shared props (ADR-0004).\n * Platform-independent properties shared across React and React Native.\n */\nexport type KeyValueRowPropsShared = {\n /** Optional node rendered before the key (e.g. icon). */\n keyStartAccessory?: ReactNode;\n /** Optional node rendered after the key (e.g. icon, badge). */\n keyEndAccessory?: ReactNode;\n /** Key content: string or custom ReactNode. Named keyLabel to avoid React’s reserved `key` prop. */\n keyLabel: string | ReactNode;\n /** Optional node rendered before the value (e.g. icon). */\n valueStartAccessory?: ReactNode;\n /** Optional node rendered after the value (e.g. icon, badge). */\n valueEndAccessory?: ReactNode;\n /** Value content: string or custom ReactNode. */\n value: string | ReactNode;\n /**\n * Row height variant.\n *\n * @default KeyValueRowVariant.Summary\n */\n variant?: KeyValueRowVariant;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KeyValueRowVariant = void 0;
4
+ var KeyValueRow_types_1 = require("./KeyValueRow.types.cjs");
5
+ Object.defineProperty(exports, "KeyValueRowVariant", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowVariant; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/KeyValueRow/index.ts"],"names":[],"mappings":";;;AAAA,6DAG6B;AAF3B,uHAAA,kBAAkB,OAAA","sourcesContent":["export {\n KeyValueRowVariant,\n type KeyValueRowPropsShared,\n} from './KeyValueRow.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { KeyValueRowVariant, type KeyValueRowPropsShared, } from "./KeyValueRow.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/KeyValueRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,sBAAsB,GAC5B,gCAA4B"}
@@ -0,0 +1,2 @@
1
+ export { KeyValueRowVariant, type KeyValueRowPropsShared, } from "./KeyValueRow.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/KeyValueRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,sBAAsB,GAC5B,gCAA4B"}
@@ -0,0 +1,2 @@
1
+ export { KeyValueRowVariant } from "./KeyValueRow.types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/KeyValueRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAEnB,gCAA4B","sourcesContent":["export {\n KeyValueRowVariant,\n type KeyValueRowPropsShared,\n} from './KeyValueRow.types';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-shared",
3
- "version": "0.7.0-preview.dff9dce",
3
+ "version": "0.9.0-preview.d854123",
4
4
  "description": "Shared types for design system libraries",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -43,6 +43,7 @@
43
43
  "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",
44
44
  "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch",
45
45
  "since-latest-release": "../../scripts/since-latest-release.sh",
46
+ "generate-icons": "tsx scripts/generate-icons.ts",
46
47
  "publish:preview": "yarn npm publish --tag preview"
47
48
  },
48
49
  "dependencies": {
@@ -50,6 +51,9 @@
50
51
  },
51
52
  "devDependencies": {
52
53
  "@metamask/auto-changelog": "^5.3.2",
54
+ "@svgr/core": "^8.1.0",
55
+ "@svgr/plugin-jsx": "^8.1.0",
56
+ "@svgr/plugin-svgo": "^8.1.0",
53
57
  "@ts-bridge/cli": "^0.6.3",
54
58
  "@types/jest": "^27.4.1",
55
59
  "@types/react": "^18.2.0",
@@ -57,6 +61,7 @@
57
61
  "jest": "^29.7.0",
58
62
  "react": "^18.2.0",
59
63
  "ts-jest": "^29.2.5",
64
+ "tsx": "^4.20.6",
60
65
  "typescript": "~5.2.2"
61
66
  },
62
67
  "peerDependencies": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoxHorizontal.types.cjs","sourceRoot":"","sources":["../../../src/types/BoxHorizontal/BoxHorizontal.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { TextOrChildrenPropsShared } from '../TextOrChildren';\n\n/**\n * BoxHorizontal component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxHorizontalPropsShared = TextOrChildrenPropsShared & {\n /**\n * Optional node rendered before the text/children (e.g. icon, avatar).\n */\n startAccessory?: ReactNode;\n /**\n * Optional node rendered after the text/children (e.g. icon, badge).\n */\n endAccessory?: ReactNode;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoxHorizontal.types.d.cts","sourceRoot":"","sources":["../../../src/types/BoxHorizontal/BoxHorizontal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,oCAA0B;AAEnE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,GAAG;IACjE;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoxHorizontal.types.d.mts","sourceRoot":"","sources":["../../../src/types/BoxHorizontal/BoxHorizontal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,oCAA0B;AAEnE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,GAAG;IACjE;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BoxHorizontal.types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoxHorizontal.types.mjs","sourceRoot":"","sources":["../../../src/types/BoxHorizontal/BoxHorizontal.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { TextOrChildrenPropsShared } from '../TextOrChildren';\n\n/**\n * BoxHorizontal component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxHorizontalPropsShared = TextOrChildrenPropsShared & {\n /**\n * Optional node rendered before the text/children (e.g. icon, avatar).\n */\n startAccessory?: ReactNode;\n /**\n * Optional node rendered after the text/children (e.g. icon, badge).\n */\n endAccessory?: ReactNode;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/BoxHorizontal/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type BoxHorizontalPropsShared } from './BoxHorizontal.types';\n"]}
@@ -1,2 +0,0 @@
1
- export { type BoxHorizontalPropsShared } from "./BoxHorizontal.types.cjs";
2
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/BoxHorizontal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,kCAA8B"}
@@ -1,2 +0,0 @@
1
- export { type BoxHorizontalPropsShared } from "./BoxHorizontal.types.mjs";
2
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/BoxHorizontal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,kCAA8B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/BoxHorizontal/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type BoxHorizontalPropsShared } from './BoxHorizontal.types';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoxVertical.types.cjs","sourceRoot":"","sources":["../../../src/types/BoxVertical/BoxVertical.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { TextOrChildrenPropsShared } from '../TextOrChildren';\n\n/**\n * BoxVertical component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxVerticalPropsShared = TextOrChildrenPropsShared & {\n /**\n * Optional node rendered above the text/children.\n */\n topAccessory?: ReactNode;\n /**\n * Optional node rendered below the text/children.\n */\n bottomAccessory?: ReactNode;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoxVertical.types.d.cts","sourceRoot":"","sources":["../../../src/types/BoxVertical/BoxVertical.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,oCAA0B;AAEnE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,GAAG;IAC/D;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;CAC7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoxVertical.types.d.mts","sourceRoot":"","sources":["../../../src/types/BoxVertical/BoxVertical.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,oCAA0B;AAEnE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,GAAG;IAC/D;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;CAC7B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BoxVertical.types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoxVertical.types.mjs","sourceRoot":"","sources":["../../../src/types/BoxVertical/BoxVertical.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { TextOrChildrenPropsShared } from '../TextOrChildren';\n\n/**\n * BoxVertical component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxVerticalPropsShared = TextOrChildrenPropsShared & {\n /**\n * Optional node rendered above the text/children.\n */\n topAccessory?: ReactNode;\n /**\n * Optional node rendered below the text/children.\n */\n bottomAccessory?: ReactNode;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/BoxVertical/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type BoxVerticalPropsShared } from './BoxVertical.types';\n"]}
@@ -1,2 +0,0 @@
1
- export { type BoxVerticalPropsShared } from "./BoxVertical.types.cjs";
2
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/BoxVertical/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,gCAA4B"}
@@ -1,2 +0,0 @@
1
- export { type BoxVerticalPropsShared } from "./BoxVertical.types.mjs";
2
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/BoxVertical/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,gCAA4B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/BoxVertical/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type BoxVerticalPropsShared } from './BoxVertical.types';\n"]}
@@ -1,118 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextColor = exports.TextVariant = exports.FontFamily = exports.FontStyle = exports.FontWeight = void 0;
4
- /**
5
- * Text - fontWeight (ADR-0003)
6
- * Semantic values shared across React and React Native platforms.
7
- */
8
- exports.FontWeight = {
9
- /** Weight - 600 */
10
- Bold: 'bold',
11
- /** Weight - 500 */
12
- Medium: 'medium',
13
- /** Weight - 400 */
14
- Regular: 'regular',
15
- };
16
- /**
17
- * Text - fontStyle (ADR-0003)
18
- * Semantic values shared across React and React Native platforms.
19
- */
20
- exports.FontStyle = {
21
- Italic: 'italic',
22
- Normal: 'normal',
23
- };
24
- /**
25
- * Text - fontFamily (ADR-0003)
26
- * Semantic values shared across React and React Native platforms.
27
- */
28
- exports.FontFamily = {
29
- /** Default: Geist */
30
- Default: 'default',
31
- /** Accent: MM Sans */
32
- Accent: 'accent',
33
- /** Hero: MM Poly */
34
- Hero: 'hero',
35
- };
36
- /**
37
- * Text - variant (ADR-0003)
38
- * Identical values across React and React Native platforms.
39
- */
40
- exports.TextVariant = {
41
- // Display Sizes
42
- DisplayLg: 'display-lg',
43
- DisplayMd: 'display-md',
44
- // Heading Sizes
45
- HeadingLg: 'heading-lg',
46
- HeadingMd: 'heading-md',
47
- HeadingSm: 'heading-sm',
48
- // Body Sizes
49
- BodyLg: 'body-lg',
50
- BodyMd: 'body-md',
51
- BodySm: 'body-sm',
52
- BodyXs: 'body-xs',
53
- // Special Typography Variants
54
- PageHeading: 'page-heading',
55
- SectionHeading: 'section-heading',
56
- ButtonLabelMd: 'button-label-md',
57
- ButtonLabelLg: 'button-label-lg',
58
- AmountDisplayLg: 'amount-display-lg',
59
- };
60
- /**
61
- * Text - color (ADR-0003)
62
- * All text color values shared across React and React Native platforms.
63
- */
64
- exports.TextColor = {
65
- /** For default neutral text. */
66
- TextDefault: 'text-default',
67
- /** For softer contrast neutral text */
68
- TextAlternative: 'text-alternative',
69
- /** For the softest contrast neutral text (not accessible) */
70
- TextMuted: 'text-muted',
71
- /** For elements used on top of overlay/alternative. Used for text, icon or border */
72
- OverlayInverse: 'text-overlay-inverse',
73
- /** For interactive, active, and selected semantics. Used for text, background, icon or border */
74
- PrimaryDefault: 'text-primary-default',
75
- /** For elements used on top of primary/default. Used for text, icon or border */
76
- PrimaryInverse: 'text-primary-inverse',
77
- /** For softer variants of primary text. */
78
- PrimaryAlternative: 'text-primary-alternative',
79
- /** For primary text in a hover state. */
80
- PrimaryDefaultHover: 'text-primary-default-hover',
81
- /** For primary text in a pressed state. */
82
- PrimaryDefaultPressed: 'text-primary-default-pressed',
83
- /** For the critical alert semantic elements. Used for text, background, icon or border */
84
- ErrorDefault: 'text-error-default',
85
- /** For the stronger contrast error semantic elements. */
86
- ErrorAlternative: 'text-error-alternative',
87
- /** For elements used on top of error/default. Used for text, icon or border */
88
- ErrorInverse: 'text-error-inverse',
89
- /** For critical alert text in a hover state. */
90
- ErrorDefaultHover: 'text-error-default-hover',
91
- /** For critical alert text in a pressed state. */
92
- ErrorDefaultPressed: 'text-error-default-pressed',
93
- /** For the positive semantic elements. Used for text, background, icon or border */
94
- SuccessDefault: 'text-success-default',
95
- /** For elements used on top of success/default. Used for text, icon or border */
96
- SuccessInverse: 'text-success-inverse',
97
- /** For positive text in a hover state. */
98
- SuccessDefaultHover: 'text-success-default-hover',
99
- /** For positive text in a pressed state. */
100
- SuccessDefaultPressed: 'text-success-default-pressed',
101
- /** For the caution alert semantic elements. Used for text, background, icon or border */
102
- WarningDefault: 'text-warning-default',
103
- /** For elements used on top of warning/default. Used for text, icon or border */
104
- WarningInverse: 'text-warning-inverse',
105
- /** For caution text in a hover state. */
106
- WarningDefaultHover: 'text-warning-default-hover',
107
- /** For caution text in a pressed state. */
108
- WarningDefaultPressed: 'text-warning-default-pressed',
109
- /** For informational read-only elements. Used for text, background, icon or border */
110
- InfoDefault: 'text-info-default',
111
- /** For elements used on top of info/default. Used for text, icon or border */
112
- InfoInverse: 'text-info-inverse',
113
- /** Make the text color transparent */
114
- Transparent: 'text-transparent',
115
- /** Inherit the color of the parent element */
116
- Inherit: 'text-inherit',
117
- };
118
- //# sourceMappingURL=Text.types.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.types.cjs","sourceRoot":"","sources":["../../../src/types/Text/Text.types.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,UAAU,GAAG;IACxB,mBAAmB;IACnB,IAAI,EAAE,MAAM;IACZ,mBAAmB;IACnB,MAAM,EAAE,QAAQ;IAChB,mBAAmB;IACnB,OAAO,EAAE,SAAS;CACV,CAAC;AAIX;;;GAGG;AACU,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAIX;;;GAGG;AACU,QAAA,UAAU,GAAG;IACxB,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,sBAAsB;IACtB,MAAM,EAAE,QAAQ;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAIX;;;GAGG;AACU,QAAA,WAAW,GAAG;IACzB,gBAAgB;IAChB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IAEvB,gBAAgB;IAChB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IAEvB,aAAa;IACb,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IAEjB,8BAA8B;IAC9B,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,iBAAiB;IAChC,aAAa,EAAE,iBAAiB;IAChC,eAAe,EAAE,mBAAmB;CAC5B,CAAC;AAIX;;;GAGG;AACU,QAAA,SAAS,GAAG;IACvB,gCAAgC;IAChC,WAAW,EAAE,cAAc;IAC3B,uCAAuC;IACvC,eAAe,EAAE,kBAAkB;IACnC,6DAA6D;IAC7D,SAAS,EAAE,YAAY;IACvB,qFAAqF;IACrF,cAAc,EAAE,sBAAsB;IACtC,iGAAiG;IACjG,cAAc,EAAE,sBAAsB;IACtC,iFAAiF;IACjF,cAAc,EAAE,sBAAsB;IACtC,2CAA2C;IAC3C,kBAAkB,EAAE,0BAA0B;IAC9C,yCAAyC;IACzC,mBAAmB,EAAE,4BAA4B;IACjD,2CAA2C;IAC3C,qBAAqB,EAAE,8BAA8B;IACrD,0FAA0F;IAC1F,YAAY,EAAE,oBAAoB;IAClC,yDAAyD;IACzD,gBAAgB,EAAE,wBAAwB;IAC1C,+EAA+E;IAC/E,YAAY,EAAE,oBAAoB;IAClC,gDAAgD;IAChD,iBAAiB,EAAE,0BAA0B;IAC7C,kDAAkD;IAClD,mBAAmB,EAAE,4BAA4B;IACjD,oFAAoF;IACpF,cAAc,EAAE,sBAAsB;IACtC,iFAAiF;IACjF,cAAc,EAAE,sBAAsB;IACtC,0CAA0C;IAC1C,mBAAmB,EAAE,4BAA4B;IACjD,4CAA4C;IAC5C,qBAAqB,EAAE,8BAA8B;IACrD,yFAAyF;IACzF,cAAc,EAAE,sBAAsB;IACtC,iFAAiF;IACjF,cAAc,EAAE,sBAAsB;IACtC,yCAAyC;IACzC,mBAAmB,EAAE,4BAA4B;IACjD,2CAA2C;IAC3C,qBAAqB,EAAE,8BAA8B;IACrD,sFAAsF;IACtF,WAAW,EAAE,mBAAmB;IAChC,8EAA8E;IAC9E,WAAW,EAAE,mBAAmB;IAChC,sCAAsC;IACtC,WAAW,EAAE,kBAAkB;IAC/B,8CAA8C;IAC9C,OAAO,EAAE,cAAc;CACf,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * Text - fontWeight (ADR-0003)\n * Semantic values shared across React and React Native platforms.\n */\nexport const FontWeight = {\n /** Weight - 600 */\n Bold: 'bold',\n /** Weight - 500 */\n Medium: 'medium',\n /** Weight - 400 */\n Regular: 'regular',\n} as const;\n\nexport type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];\n\n/**\n * Text - fontStyle (ADR-0003)\n * Semantic values shared across React and React Native platforms.\n */\nexport const FontStyle = {\n Italic: 'italic',\n Normal: 'normal',\n} as const;\n\nexport type FontStyle = (typeof FontStyle)[keyof typeof FontStyle];\n\n/**\n * Text - fontFamily (ADR-0003)\n * Semantic values shared across React and React Native platforms.\n */\nexport const FontFamily = {\n /** Default: Geist */\n Default: 'default',\n /** Accent: MM Sans */\n Accent: 'accent',\n /** Hero: MM Poly */\n Hero: 'hero',\n} as const;\n\nexport type FontFamily = (typeof FontFamily)[keyof typeof FontFamily];\n\n/**\n * Text - variant (ADR-0003)\n * Identical values across React and React Native platforms.\n */\nexport const TextVariant = {\n // Display Sizes\n DisplayLg: 'display-lg',\n DisplayMd: 'display-md',\n\n // Heading Sizes\n HeadingLg: 'heading-lg',\n HeadingMd: 'heading-md',\n HeadingSm: 'heading-sm',\n\n // Body Sizes\n BodyLg: 'body-lg',\n BodyMd: 'body-md',\n BodySm: 'body-sm',\n BodyXs: 'body-xs',\n\n // Special Typography Variants\n PageHeading: 'page-heading',\n SectionHeading: 'section-heading',\n ButtonLabelMd: 'button-label-md',\n ButtonLabelLg: 'button-label-lg',\n AmountDisplayLg: 'amount-display-lg',\n} as const;\n\nexport type TextVariant = (typeof TextVariant)[keyof typeof TextVariant];\n\n/**\n * Text - color (ADR-0003)\n * All text color values shared across React and React Native platforms.\n */\nexport const TextColor = {\n /** For default neutral text. */\n TextDefault: 'text-default',\n /** For softer contrast neutral text */\n TextAlternative: 'text-alternative',\n /** For the softest contrast neutral text (not accessible) */\n TextMuted: 'text-muted',\n /** For elements used on top of overlay/alternative. Used for text, icon or border */\n OverlayInverse: 'text-overlay-inverse',\n /** For interactive, active, and selected semantics. Used for text, background, icon or border */\n PrimaryDefault: 'text-primary-default',\n /** For elements used on top of primary/default. Used for text, icon or border */\n PrimaryInverse: 'text-primary-inverse',\n /** For softer variants of primary text. */\n PrimaryAlternative: 'text-primary-alternative',\n /** For primary text in a hover state. */\n PrimaryDefaultHover: 'text-primary-default-hover',\n /** For primary text in a pressed state. */\n PrimaryDefaultPressed: 'text-primary-default-pressed',\n /** For the critical alert semantic elements. Used for text, background, icon or border */\n ErrorDefault: 'text-error-default',\n /** For the stronger contrast error semantic elements. */\n ErrorAlternative: 'text-error-alternative',\n /** For elements used on top of error/default. Used for text, icon or border */\n ErrorInverse: 'text-error-inverse',\n /** For critical alert text in a hover state. */\n ErrorDefaultHover: 'text-error-default-hover',\n /** For critical alert text in a pressed state. */\n ErrorDefaultPressed: 'text-error-default-pressed',\n /** For the positive semantic elements. Used for text, background, icon or border */\n SuccessDefault: 'text-success-default',\n /** For elements used on top of success/default. Used for text, icon or border */\n SuccessInverse: 'text-success-inverse',\n /** For positive text in a hover state. */\n SuccessDefaultHover: 'text-success-default-hover',\n /** For positive text in a pressed state. */\n SuccessDefaultPressed: 'text-success-default-pressed',\n /** For the caution alert semantic elements. Used for text, background, icon or border */\n WarningDefault: 'text-warning-default',\n /** For elements used on top of warning/default. Used for text, icon or border */\n WarningInverse: 'text-warning-inverse',\n /** For caution text in a hover state. */\n WarningDefaultHover: 'text-warning-default-hover',\n /** For caution text in a pressed state. */\n WarningDefaultPressed: 'text-warning-default-pressed',\n /** For informational read-only elements. Used for text, background, icon or border */\n InfoDefault: 'text-info-default',\n /** For elements used on top of info/default. Used for text, icon or border */\n InfoInverse: 'text-info-inverse',\n /** Make the text color transparent */\n Transparent: 'text-transparent',\n /** Inherit the color of the parent element */\n Inherit: 'text-inherit',\n} as const;\n\nexport type TextColor = (typeof TextColor)[keyof typeof TextColor];\n\n/**\n * Text component shared props (ADR-0004).\n * Platform-independent props shared across React and React Native.\n */\nexport type TextPropsShared = {\n /**\n * Optional prop to change the font size of the component.\n * Different variants map to specific HTML elements by default.\n *\n * @default TextVariant.BodyMd\n */\n variant?: TextVariant;\n /**\n * The text content or elements to be rendered within the component.\n */\n children: ReactNode;\n /**\n * Optional prop that sets the color of the text using predefined theme colors.\n *\n * @default TextColor.TextDefault\n */\n color?: TextColor;\n};\n"]}
@@ -1,140 +0,0 @@
1
- import type { ReactNode } from "react";
2
- /**
3
- * Text - fontWeight (ADR-0003)
4
- * Semantic values shared across React and React Native platforms.
5
- */
6
- export declare const FontWeight: {
7
- /** Weight - 600 */
8
- readonly Bold: "bold";
9
- /** Weight - 500 */
10
- readonly Medium: "medium";
11
- /** Weight - 400 */
12
- readonly Regular: "regular";
13
- };
14
- export type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];
15
- /**
16
- * Text - fontStyle (ADR-0003)
17
- * Semantic values shared across React and React Native platforms.
18
- */
19
- export declare const FontStyle: {
20
- readonly Italic: "italic";
21
- readonly Normal: "normal";
22
- };
23
- export type FontStyle = (typeof FontStyle)[keyof typeof FontStyle];
24
- /**
25
- * Text - fontFamily (ADR-0003)
26
- * Semantic values shared across React and React Native platforms.
27
- */
28
- export declare const FontFamily: {
29
- /** Default: Geist */
30
- readonly Default: "default";
31
- /** Accent: MM Sans */
32
- readonly Accent: "accent";
33
- /** Hero: MM Poly */
34
- readonly Hero: "hero";
35
- };
36
- export type FontFamily = (typeof FontFamily)[keyof typeof FontFamily];
37
- /**
38
- * Text - variant (ADR-0003)
39
- * Identical values across React and React Native platforms.
40
- */
41
- export declare const TextVariant: {
42
- readonly DisplayLg: "display-lg";
43
- readonly DisplayMd: "display-md";
44
- readonly HeadingLg: "heading-lg";
45
- readonly HeadingMd: "heading-md";
46
- readonly HeadingSm: "heading-sm";
47
- readonly BodyLg: "body-lg";
48
- readonly BodyMd: "body-md";
49
- readonly BodySm: "body-sm";
50
- readonly BodyXs: "body-xs";
51
- readonly PageHeading: "page-heading";
52
- readonly SectionHeading: "section-heading";
53
- readonly ButtonLabelMd: "button-label-md";
54
- readonly ButtonLabelLg: "button-label-lg";
55
- readonly AmountDisplayLg: "amount-display-lg";
56
- };
57
- export type TextVariant = (typeof TextVariant)[keyof typeof TextVariant];
58
- /**
59
- * Text - color (ADR-0003)
60
- * All text color values shared across React and React Native platforms.
61
- */
62
- export declare const TextColor: {
63
- /** For default neutral text. */
64
- readonly TextDefault: "text-default";
65
- /** For softer contrast neutral text */
66
- readonly TextAlternative: "text-alternative";
67
- /** For the softest contrast neutral text (not accessible) */
68
- readonly TextMuted: "text-muted";
69
- /** For elements used on top of overlay/alternative. Used for text, icon or border */
70
- readonly OverlayInverse: "text-overlay-inverse";
71
- /** For interactive, active, and selected semantics. Used for text, background, icon or border */
72
- readonly PrimaryDefault: "text-primary-default";
73
- /** For elements used on top of primary/default. Used for text, icon or border */
74
- readonly PrimaryInverse: "text-primary-inverse";
75
- /** For softer variants of primary text. */
76
- readonly PrimaryAlternative: "text-primary-alternative";
77
- /** For primary text in a hover state. */
78
- readonly PrimaryDefaultHover: "text-primary-default-hover";
79
- /** For primary text in a pressed state. */
80
- readonly PrimaryDefaultPressed: "text-primary-default-pressed";
81
- /** For the critical alert semantic elements. Used for text, background, icon or border */
82
- readonly ErrorDefault: "text-error-default";
83
- /** For the stronger contrast error semantic elements. */
84
- readonly ErrorAlternative: "text-error-alternative";
85
- /** For elements used on top of error/default. Used for text, icon or border */
86
- readonly ErrorInverse: "text-error-inverse";
87
- /** For critical alert text in a hover state. */
88
- readonly ErrorDefaultHover: "text-error-default-hover";
89
- /** For critical alert text in a pressed state. */
90
- readonly ErrorDefaultPressed: "text-error-default-pressed";
91
- /** For the positive semantic elements. Used for text, background, icon or border */
92
- readonly SuccessDefault: "text-success-default";
93
- /** For elements used on top of success/default. Used for text, icon or border */
94
- readonly SuccessInverse: "text-success-inverse";
95
- /** For positive text in a hover state. */
96
- readonly SuccessDefaultHover: "text-success-default-hover";
97
- /** For positive text in a pressed state. */
98
- readonly SuccessDefaultPressed: "text-success-default-pressed";
99
- /** For the caution alert semantic elements. Used for text, background, icon or border */
100
- readonly WarningDefault: "text-warning-default";
101
- /** For elements used on top of warning/default. Used for text, icon or border */
102
- readonly WarningInverse: "text-warning-inverse";
103
- /** For caution text in a hover state. */
104
- readonly WarningDefaultHover: "text-warning-default-hover";
105
- /** For caution text in a pressed state. */
106
- readonly WarningDefaultPressed: "text-warning-default-pressed";
107
- /** For informational read-only elements. Used for text, background, icon or border */
108
- readonly InfoDefault: "text-info-default";
109
- /** For elements used on top of info/default. Used for text, icon or border */
110
- readonly InfoInverse: "text-info-inverse";
111
- /** Make the text color transparent */
112
- readonly Transparent: "text-transparent";
113
- /** Inherit the color of the parent element */
114
- readonly Inherit: "text-inherit";
115
- };
116
- export type TextColor = (typeof TextColor)[keyof typeof TextColor];
117
- /**
118
- * Text component shared props (ADR-0004).
119
- * Platform-independent props shared across React and React Native.
120
- */
121
- export type TextPropsShared = {
122
- /**
123
- * Optional prop to change the font size of the component.
124
- * Different variants map to specific HTML elements by default.
125
- *
126
- * @default TextVariant.BodyMd
127
- */
128
- variant?: TextVariant;
129
- /**
130
- * The text content or elements to be rendered within the component.
131
- */
132
- children: ReactNode;
133
- /**
134
- * Optional prop that sets the color of the text using predefined theme colors.
135
- *
136
- * @default TextColor.TextDefault
137
- */
138
- color?: TextColor;
139
- };
140
- //# sourceMappingURL=Text.types.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.types.d.cts","sourceRoot":"","sources":["../../../src/types/Text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;GAGG;AACH,eAAO,MAAM,UAAU;IACrB,mBAAmB;;IAEnB,mBAAmB;;IAEnB,mBAAmB;;CAEX,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,UAAU;IACrB,qBAAqB;;IAErB,sBAAsB;;IAEtB,oBAAoB;;CAEZ,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;CAsBd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,SAAS;IACpB,gCAAgC;;IAEhC,uCAAuC;;IAEvC,6DAA6D;;IAE7D,qFAAqF;;IAErF,iGAAiG;;IAEjG,iFAAiF;;IAEjF,2CAA2C;;IAE3C,yCAAyC;;IAEzC,2CAA2C;;IAE3C,0FAA0F;;IAE1F,yDAAyD;;IAEzD,+EAA+E;;IAE/E,gDAAgD;;IAEhD,kDAAkD;;IAElD,oFAAoF;;IAEpF,iFAAiF;;IAEjF,0CAA0C;;IAE1C,4CAA4C;;IAE5C,yFAAyF;;IAEzF,iFAAiF;;IAEjF,yCAAyC;;IAEzC,2CAA2C;;IAE3C,sFAAsF;;IAEtF,8EAA8E;;IAE9E,sCAAsC;;IAEtC,8CAA8C;;CAEtC,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC"}
@@ -1,140 +0,0 @@
1
- import type { ReactNode } from "react";
2
- /**
3
- * Text - fontWeight (ADR-0003)
4
- * Semantic values shared across React and React Native platforms.
5
- */
6
- export declare const FontWeight: {
7
- /** Weight - 600 */
8
- readonly Bold: "bold";
9
- /** Weight - 500 */
10
- readonly Medium: "medium";
11
- /** Weight - 400 */
12
- readonly Regular: "regular";
13
- };
14
- export type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];
15
- /**
16
- * Text - fontStyle (ADR-0003)
17
- * Semantic values shared across React and React Native platforms.
18
- */
19
- export declare const FontStyle: {
20
- readonly Italic: "italic";
21
- readonly Normal: "normal";
22
- };
23
- export type FontStyle = (typeof FontStyle)[keyof typeof FontStyle];
24
- /**
25
- * Text - fontFamily (ADR-0003)
26
- * Semantic values shared across React and React Native platforms.
27
- */
28
- export declare const FontFamily: {
29
- /** Default: Geist */
30
- readonly Default: "default";
31
- /** Accent: MM Sans */
32
- readonly Accent: "accent";
33
- /** Hero: MM Poly */
34
- readonly Hero: "hero";
35
- };
36
- export type FontFamily = (typeof FontFamily)[keyof typeof FontFamily];
37
- /**
38
- * Text - variant (ADR-0003)
39
- * Identical values across React and React Native platforms.
40
- */
41
- export declare const TextVariant: {
42
- readonly DisplayLg: "display-lg";
43
- readonly DisplayMd: "display-md";
44
- readonly HeadingLg: "heading-lg";
45
- readonly HeadingMd: "heading-md";
46
- readonly HeadingSm: "heading-sm";
47
- readonly BodyLg: "body-lg";
48
- readonly BodyMd: "body-md";
49
- readonly BodySm: "body-sm";
50
- readonly BodyXs: "body-xs";
51
- readonly PageHeading: "page-heading";
52
- readonly SectionHeading: "section-heading";
53
- readonly ButtonLabelMd: "button-label-md";
54
- readonly ButtonLabelLg: "button-label-lg";
55
- readonly AmountDisplayLg: "amount-display-lg";
56
- };
57
- export type TextVariant = (typeof TextVariant)[keyof typeof TextVariant];
58
- /**
59
- * Text - color (ADR-0003)
60
- * All text color values shared across React and React Native platforms.
61
- */
62
- export declare const TextColor: {
63
- /** For default neutral text. */
64
- readonly TextDefault: "text-default";
65
- /** For softer contrast neutral text */
66
- readonly TextAlternative: "text-alternative";
67
- /** For the softest contrast neutral text (not accessible) */
68
- readonly TextMuted: "text-muted";
69
- /** For elements used on top of overlay/alternative. Used for text, icon or border */
70
- readonly OverlayInverse: "text-overlay-inverse";
71
- /** For interactive, active, and selected semantics. Used for text, background, icon or border */
72
- readonly PrimaryDefault: "text-primary-default";
73
- /** For elements used on top of primary/default. Used for text, icon or border */
74
- readonly PrimaryInverse: "text-primary-inverse";
75
- /** For softer variants of primary text. */
76
- readonly PrimaryAlternative: "text-primary-alternative";
77
- /** For primary text in a hover state. */
78
- readonly PrimaryDefaultHover: "text-primary-default-hover";
79
- /** For primary text in a pressed state. */
80
- readonly PrimaryDefaultPressed: "text-primary-default-pressed";
81
- /** For the critical alert semantic elements. Used for text, background, icon or border */
82
- readonly ErrorDefault: "text-error-default";
83
- /** For the stronger contrast error semantic elements. */
84
- readonly ErrorAlternative: "text-error-alternative";
85
- /** For elements used on top of error/default. Used for text, icon or border */
86
- readonly ErrorInverse: "text-error-inverse";
87
- /** For critical alert text in a hover state. */
88
- readonly ErrorDefaultHover: "text-error-default-hover";
89
- /** For critical alert text in a pressed state. */
90
- readonly ErrorDefaultPressed: "text-error-default-pressed";
91
- /** For the positive semantic elements. Used for text, background, icon or border */
92
- readonly SuccessDefault: "text-success-default";
93
- /** For elements used on top of success/default. Used for text, icon or border */
94
- readonly SuccessInverse: "text-success-inverse";
95
- /** For positive text in a hover state. */
96
- readonly SuccessDefaultHover: "text-success-default-hover";
97
- /** For positive text in a pressed state. */
98
- readonly SuccessDefaultPressed: "text-success-default-pressed";
99
- /** For the caution alert semantic elements. Used for text, background, icon or border */
100
- readonly WarningDefault: "text-warning-default";
101
- /** For elements used on top of warning/default. Used for text, icon or border */
102
- readonly WarningInverse: "text-warning-inverse";
103
- /** For caution text in a hover state. */
104
- readonly WarningDefaultHover: "text-warning-default-hover";
105
- /** For caution text in a pressed state. */
106
- readonly WarningDefaultPressed: "text-warning-default-pressed";
107
- /** For informational read-only elements. Used for text, background, icon or border */
108
- readonly InfoDefault: "text-info-default";
109
- /** For elements used on top of info/default. Used for text, icon or border */
110
- readonly InfoInverse: "text-info-inverse";
111
- /** Make the text color transparent */
112
- readonly Transparent: "text-transparent";
113
- /** Inherit the color of the parent element */
114
- readonly Inherit: "text-inherit";
115
- };
116
- export type TextColor = (typeof TextColor)[keyof typeof TextColor];
117
- /**
118
- * Text component shared props (ADR-0004).
119
- * Platform-independent props shared across React and React Native.
120
- */
121
- export type TextPropsShared = {
122
- /**
123
- * Optional prop to change the font size of the component.
124
- * Different variants map to specific HTML elements by default.
125
- *
126
- * @default TextVariant.BodyMd
127
- */
128
- variant?: TextVariant;
129
- /**
130
- * The text content or elements to be rendered within the component.
131
- */
132
- children: ReactNode;
133
- /**
134
- * Optional prop that sets the color of the text using predefined theme colors.
135
- *
136
- * @default TextColor.TextDefault
137
- */
138
- color?: TextColor;
139
- };
140
- //# sourceMappingURL=Text.types.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.types.d.mts","sourceRoot":"","sources":["../../../src/types/Text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;GAGG;AACH,eAAO,MAAM,UAAU;IACrB,mBAAmB;;IAEnB,mBAAmB;;IAEnB,mBAAmB;;CAEX,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,UAAU;IACrB,qBAAqB;;IAErB,sBAAsB;;IAEtB,oBAAoB;;CAEZ,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;CAsBd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,SAAS;IACpB,gCAAgC;;IAEhC,uCAAuC;;IAEvC,6DAA6D;;IAE7D,qFAAqF;;IAErF,iGAAiG;;IAEjG,iFAAiF;;IAEjF,2CAA2C;;IAE3C,yCAAyC;;IAEzC,2CAA2C;;IAE3C,0FAA0F;;IAE1F,yDAAyD;;IAEzD,+EAA+E;;IAE/E,gDAAgD;;IAEhD,kDAAkD;;IAElD,oFAAoF;;IAEpF,iFAAiF;;IAEjF,0CAA0C;;IAE1C,4CAA4C;;IAE5C,yFAAyF;;IAEzF,iFAAiF;;IAEjF,yCAAyC;;IAEzC,2CAA2C;;IAE3C,sFAAsF;;IAEtF,8EAA8E;;IAE9E,sCAAsC;;IAEtC,8CAA8C;;CAEtC,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC"}