@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.
- package/CHANGELOG.md +24 -1
- package/dist/index.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/{BoxHorizontal/BoxHorizontal.types.cjs → BadgeNetwork/BadgeNetwork.types.cjs} +1 -1
- package/dist/types/BadgeNetwork/BadgeNetwork.types.cjs.map +1 -0
- package/dist/types/BadgeNetwork/BadgeNetwork.types.d.cts +20 -0
- package/dist/types/BadgeNetwork/BadgeNetwork.types.d.cts.map +1 -0
- package/dist/types/BadgeNetwork/BadgeNetwork.types.d.mts +20 -0
- package/dist/types/BadgeNetwork/BadgeNetwork.types.d.mts.map +1 -0
- package/dist/types/BadgeNetwork/BadgeNetwork.types.mjs +2 -0
- package/dist/types/BadgeNetwork/BadgeNetwork.types.mjs.map +1 -0
- package/dist/types/BadgeNetwork/index.cjs.map +1 -0
- package/dist/types/BadgeNetwork/index.d.cts +2 -0
- package/dist/types/BadgeNetwork/index.d.cts.map +1 -0
- package/dist/types/BadgeNetwork/index.d.mts +2 -0
- package/dist/types/BadgeNetwork/index.d.mts.map +1 -0
- package/dist/types/BadgeNetwork/index.mjs.map +1 -0
- package/dist/types/{BoxVertical/BoxVertical.types.cjs → BoxColumn/BoxColumn.types.cjs} +1 -1
- package/dist/types/BoxColumn/BoxColumn.types.cjs.map +1 -0
- package/dist/types/{BoxVertical/BoxVertical.types.d.cts → BoxColumn/BoxColumn.types.d.cts} +3 -3
- package/dist/types/BoxColumn/BoxColumn.types.d.cts.map +1 -0
- package/dist/types/{BoxVertical/BoxVertical.types.d.mts → BoxColumn/BoxColumn.types.d.mts} +3 -3
- package/dist/types/BoxColumn/BoxColumn.types.d.mts.map +1 -0
- package/dist/types/BoxColumn/BoxColumn.types.mjs +2 -0
- package/dist/types/BoxColumn/BoxColumn.types.mjs.map +1 -0
- package/dist/types/BoxColumn/index.cjs.map +1 -0
- package/dist/types/BoxColumn/index.d.cts +2 -0
- package/dist/types/BoxColumn/index.d.cts.map +1 -0
- package/dist/types/BoxColumn/index.d.mts +2 -0
- package/dist/types/BoxColumn/index.d.mts.map +1 -0
- package/dist/types/BoxColumn/index.mjs.map +1 -0
- package/dist/types/BoxRow/BoxRow.types.cjs +3 -0
- package/dist/types/BoxRow/BoxRow.types.cjs.map +1 -0
- package/dist/types/{BoxHorizontal/BoxHorizontal.types.d.cts → BoxRow/BoxRow.types.d.cts} +3 -3
- package/dist/types/BoxRow/BoxRow.types.d.cts.map +1 -0
- package/dist/types/{BoxHorizontal/BoxHorizontal.types.d.mts → BoxRow/BoxRow.types.d.mts} +3 -3
- package/dist/types/BoxRow/BoxRow.types.d.mts.map +1 -0
- package/dist/types/BoxRow/BoxRow.types.mjs +2 -0
- package/dist/types/BoxRow/BoxRow.types.mjs.map +1 -0
- package/dist/types/BoxRow/index.cjs +3 -0
- package/dist/types/BoxRow/index.cjs.map +1 -0
- package/dist/types/BoxRow/index.d.cts +2 -0
- package/dist/types/BoxRow/index.d.cts.map +1 -0
- package/dist/types/BoxRow/index.d.mts +2 -0
- package/dist/types/BoxRow/index.d.mts.map +1 -0
- package/dist/types/BoxRow/index.mjs +2 -0
- package/dist/types/BoxRow/index.mjs.map +1 -0
- package/dist/types/HeaderSearch/HeaderSearch.types.cjs +11 -0
- package/dist/types/HeaderSearch/HeaderSearch.types.cjs.map +1 -0
- package/dist/types/HeaderSearch/HeaderSearch.types.d.cts +25 -0
- package/dist/types/HeaderSearch/HeaderSearch.types.d.cts.map +1 -0
- package/dist/types/HeaderSearch/HeaderSearch.types.d.mts +25 -0
- package/dist/types/HeaderSearch/HeaderSearch.types.d.mts.map +1 -0
- package/dist/types/HeaderSearch/HeaderSearch.types.mjs +8 -0
- package/dist/types/HeaderSearch/HeaderSearch.types.mjs.map +1 -0
- package/dist/types/HeaderSearch/index.cjs +6 -0
- package/dist/types/HeaderSearch/index.cjs.map +1 -0
- package/dist/types/HeaderSearch/index.d.cts +2 -0
- package/dist/types/HeaderSearch/index.d.cts.map +1 -0
- package/dist/types/HeaderSearch/index.d.mts +2 -0
- package/dist/types/HeaderSearch/index.d.mts.map +1 -0
- package/dist/types/HeaderSearch/index.mjs +2 -0
- package/dist/types/HeaderSearch/index.mjs.map +1 -0
- package/dist/types/Icon/Icon.types.cjs +351 -0
- package/dist/types/Icon/Icon.types.cjs.map +1 -0
- package/dist/types/Icon/Icon.types.d.cts +367 -0
- package/dist/types/Icon/Icon.types.d.cts.map +1 -0
- package/dist/types/Icon/Icon.types.d.mts +367 -0
- package/dist/types/Icon/Icon.types.d.mts.map +1 -0
- package/dist/types/Icon/Icon.types.mjs +348 -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/KeyValueColumn/KeyValueColumn.types.cjs +3 -0
- package/dist/types/KeyValueColumn/KeyValueColumn.types.cjs.map +1 -0
- package/dist/types/KeyValueColumn/KeyValueColumn.types.d.cts +20 -0
- package/dist/types/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -0
- package/dist/types/KeyValueColumn/KeyValueColumn.types.d.mts +20 -0
- package/dist/types/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -0
- package/dist/types/KeyValueColumn/KeyValueColumn.types.mjs +2 -0
- package/dist/types/KeyValueColumn/KeyValueColumn.types.mjs.map +1 -0
- package/dist/types/KeyValueColumn/index.cjs +3 -0
- package/dist/types/KeyValueColumn/index.cjs.map +1 -0
- package/dist/types/KeyValueColumn/index.d.cts +2 -0
- package/dist/types/KeyValueColumn/index.d.cts.map +1 -0
- package/dist/types/KeyValueColumn/index.d.mts +2 -0
- package/dist/types/KeyValueColumn/index.d.mts.map +1 -0
- package/dist/types/KeyValueColumn/index.mjs +2 -0
- package/dist/types/KeyValueColumn/index.mjs.map +1 -0
- package/dist/types/KeyValueRow/KeyValueRow.types.cjs +14 -0
- package/dist/types/KeyValueRow/KeyValueRow.types.cjs.map +1 -0
- package/dist/types/KeyValueRow/KeyValueRow.types.d.cts +37 -0
- package/dist/types/KeyValueRow/KeyValueRow.types.d.cts.map +1 -0
- package/dist/types/KeyValueRow/KeyValueRow.types.d.mts +37 -0
- package/dist/types/KeyValueRow/KeyValueRow.types.d.mts.map +1 -0
- package/dist/types/KeyValueRow/KeyValueRow.types.mjs +11 -0
- package/dist/types/KeyValueRow/KeyValueRow.types.mjs.map +1 -0
- package/dist/types/KeyValueRow/index.cjs +6 -0
- package/dist/types/KeyValueRow/index.cjs.map +1 -0
- package/dist/types/KeyValueRow/index.d.cts +2 -0
- package/dist/types/KeyValueRow/index.d.cts.map +1 -0
- package/dist/types/KeyValueRow/index.d.mts +2 -0
- package/dist/types/KeyValueRow/index.d.mts.map +1 -0
- package/dist/types/KeyValueRow/index.mjs +2 -0
- package/dist/types/KeyValueRow/index.mjs.map +1 -0
- package/package.json +6 -1
- package/dist/types/BoxHorizontal/BoxHorizontal.types.cjs.map +0 -1
- package/dist/types/BoxHorizontal/BoxHorizontal.types.d.cts.map +0 -1
- package/dist/types/BoxHorizontal/BoxHorizontal.types.d.mts.map +0 -1
- package/dist/types/BoxHorizontal/BoxHorizontal.types.mjs +0 -2
- package/dist/types/BoxHorizontal/BoxHorizontal.types.mjs.map +0 -1
- package/dist/types/BoxHorizontal/index.cjs.map +0 -1
- package/dist/types/BoxHorizontal/index.d.cts +0 -2
- package/dist/types/BoxHorizontal/index.d.cts.map +0 -1
- package/dist/types/BoxHorizontal/index.d.mts +0 -2
- package/dist/types/BoxHorizontal/index.d.mts.map +0 -1
- package/dist/types/BoxHorizontal/index.mjs.map +0 -1
- package/dist/types/BoxVertical/BoxVertical.types.cjs.map +0 -1
- package/dist/types/BoxVertical/BoxVertical.types.d.cts.map +0 -1
- package/dist/types/BoxVertical/BoxVertical.types.d.mts.map +0 -1
- package/dist/types/BoxVertical/BoxVertical.types.mjs +0 -2
- package/dist/types/BoxVertical/BoxVertical.types.mjs.map +0 -1
- package/dist/types/BoxVertical/index.cjs.map +0 -1
- package/dist/types/BoxVertical/index.d.cts +0 -2
- package/dist/types/BoxVertical/index.d.cts.map +0 -1
- package/dist/types/BoxVertical/index.d.mts +0 -2
- package/dist/types/BoxVertical/index.d.mts.map +0 -1
- package/dist/types/BoxVertical/index.mjs.map +0 -1
- package/dist/types/Text/Text.types.cjs +0 -118
- package/dist/types/Text/Text.types.cjs.map +0 -1
- package/dist/types/Text/Text.types.d.cts +0 -140
- package/dist/types/Text/Text.types.d.cts.map +0 -1
- package/dist/types/Text/Text.types.d.mts +0 -140
- package/dist/types/Text/Text.types.d.mts.map +0 -1
- package/dist/types/Text/Text.types.mjs +0 -115
- package/dist/types/Text/Text.types.mjs.map +0 -1
- package/dist/types/Text/index.cjs +0 -10
- package/dist/types/Text/index.cjs.map +0 -1
- package/dist/types/Text/index.d.cts +0 -2
- package/dist/types/Text/index.d.cts.map +0 -1
- package/dist/types/Text/index.d.mts +0 -2
- package/dist/types/Text/index.d.mts.map +0 -1
- package/dist/types/Text/index.mjs +0 -2
- package/dist/types/Text/index.mjs.map +0 -1
- /package/dist/types/{BoxHorizontal → BadgeNetwork}/index.cjs +0 -0
- /package/dist/types/{BoxHorizontal → BadgeNetwork}/index.mjs +0 -0
- /package/dist/types/{BoxVertical → BoxColumn}/index.cjs +0 -0
- /package/dist/types/{BoxVertical → BoxColumn}/index.mjs +0 -0
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Text - fontWeight (ADR-0003)
|
|
3
|
-
* Semantic values shared across React and React Native platforms.
|
|
4
|
-
*/
|
|
5
|
-
export const FontWeight = {
|
|
6
|
-
/** Weight - 600 */
|
|
7
|
-
Bold: 'bold',
|
|
8
|
-
/** Weight - 500 */
|
|
9
|
-
Medium: 'medium',
|
|
10
|
-
/** Weight - 400 */
|
|
11
|
-
Regular: 'regular',
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Text - fontStyle (ADR-0003)
|
|
15
|
-
* Semantic values shared across React and React Native platforms.
|
|
16
|
-
*/
|
|
17
|
-
export const FontStyle = {
|
|
18
|
-
Italic: 'italic',
|
|
19
|
-
Normal: 'normal',
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Text - fontFamily (ADR-0003)
|
|
23
|
-
* Semantic values shared across React and React Native platforms.
|
|
24
|
-
*/
|
|
25
|
-
export const FontFamily = {
|
|
26
|
-
/** Default: Geist */
|
|
27
|
-
Default: 'default',
|
|
28
|
-
/** Accent: MM Sans */
|
|
29
|
-
Accent: 'accent',
|
|
30
|
-
/** Hero: MM Poly */
|
|
31
|
-
Hero: 'hero',
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Text - variant (ADR-0003)
|
|
35
|
-
* Identical values across React and React Native platforms.
|
|
36
|
-
*/
|
|
37
|
-
export const TextVariant = {
|
|
38
|
-
// Display Sizes
|
|
39
|
-
DisplayLg: 'display-lg',
|
|
40
|
-
DisplayMd: 'display-md',
|
|
41
|
-
// Heading Sizes
|
|
42
|
-
HeadingLg: 'heading-lg',
|
|
43
|
-
HeadingMd: 'heading-md',
|
|
44
|
-
HeadingSm: 'heading-sm',
|
|
45
|
-
// Body Sizes
|
|
46
|
-
BodyLg: 'body-lg',
|
|
47
|
-
BodyMd: 'body-md',
|
|
48
|
-
BodySm: 'body-sm',
|
|
49
|
-
BodyXs: 'body-xs',
|
|
50
|
-
// Special Typography Variants
|
|
51
|
-
PageHeading: 'page-heading',
|
|
52
|
-
SectionHeading: 'section-heading',
|
|
53
|
-
ButtonLabelMd: 'button-label-md',
|
|
54
|
-
ButtonLabelLg: 'button-label-lg',
|
|
55
|
-
AmountDisplayLg: 'amount-display-lg',
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Text - color (ADR-0003)
|
|
59
|
-
* All text color values shared across React and React Native platforms.
|
|
60
|
-
*/
|
|
61
|
-
export const TextColor = {
|
|
62
|
-
/** For default neutral text. */
|
|
63
|
-
TextDefault: 'text-default',
|
|
64
|
-
/** For softer contrast neutral text */
|
|
65
|
-
TextAlternative: 'text-alternative',
|
|
66
|
-
/** For the softest contrast neutral text (not accessible) */
|
|
67
|
-
TextMuted: 'text-muted',
|
|
68
|
-
/** For elements used on top of overlay/alternative. Used for text, icon or border */
|
|
69
|
-
OverlayInverse: 'text-overlay-inverse',
|
|
70
|
-
/** For interactive, active, and selected semantics. Used for text, background, icon or border */
|
|
71
|
-
PrimaryDefault: 'text-primary-default',
|
|
72
|
-
/** For elements used on top of primary/default. Used for text, icon or border */
|
|
73
|
-
PrimaryInverse: 'text-primary-inverse',
|
|
74
|
-
/** For softer variants of primary text. */
|
|
75
|
-
PrimaryAlternative: 'text-primary-alternative',
|
|
76
|
-
/** For primary text in a hover state. */
|
|
77
|
-
PrimaryDefaultHover: 'text-primary-default-hover',
|
|
78
|
-
/** For primary text in a pressed state. */
|
|
79
|
-
PrimaryDefaultPressed: 'text-primary-default-pressed',
|
|
80
|
-
/** For the critical alert semantic elements. Used for text, background, icon or border */
|
|
81
|
-
ErrorDefault: 'text-error-default',
|
|
82
|
-
/** For the stronger contrast error semantic elements. */
|
|
83
|
-
ErrorAlternative: 'text-error-alternative',
|
|
84
|
-
/** For elements used on top of error/default. Used for text, icon or border */
|
|
85
|
-
ErrorInverse: 'text-error-inverse',
|
|
86
|
-
/** For critical alert text in a hover state. */
|
|
87
|
-
ErrorDefaultHover: 'text-error-default-hover',
|
|
88
|
-
/** For critical alert text in a pressed state. */
|
|
89
|
-
ErrorDefaultPressed: 'text-error-default-pressed',
|
|
90
|
-
/** For the positive semantic elements. Used for text, background, icon or border */
|
|
91
|
-
SuccessDefault: 'text-success-default',
|
|
92
|
-
/** For elements used on top of success/default. Used for text, icon or border */
|
|
93
|
-
SuccessInverse: 'text-success-inverse',
|
|
94
|
-
/** For positive text in a hover state. */
|
|
95
|
-
SuccessDefaultHover: 'text-success-default-hover',
|
|
96
|
-
/** For positive text in a pressed state. */
|
|
97
|
-
SuccessDefaultPressed: 'text-success-default-pressed',
|
|
98
|
-
/** For the caution alert semantic elements. Used for text, background, icon or border */
|
|
99
|
-
WarningDefault: 'text-warning-default',
|
|
100
|
-
/** For elements used on top of warning/default. Used for text, icon or border */
|
|
101
|
-
WarningInverse: 'text-warning-inverse',
|
|
102
|
-
/** For caution text in a hover state. */
|
|
103
|
-
WarningDefaultHover: 'text-warning-default-hover',
|
|
104
|
-
/** For caution text in a pressed state. */
|
|
105
|
-
WarningDefaultPressed: 'text-warning-default-pressed',
|
|
106
|
-
/** For informational read-only elements. Used for text, background, icon or border */
|
|
107
|
-
InfoDefault: 'text-info-default',
|
|
108
|
-
/** For elements used on top of info/default. Used for text, icon or border */
|
|
109
|
-
InfoInverse: 'text-info-inverse',
|
|
110
|
-
/** Make the text color transparent */
|
|
111
|
-
Transparent: 'text-transparent',
|
|
112
|
-
/** Inherit the color of the parent element */
|
|
113
|
-
Inherit: 'text-inherit',
|
|
114
|
-
};
|
|
115
|
-
//# sourceMappingURL=Text.types.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Text.types.mjs","sourceRoot":"","sources":["../../../src/types/Text/Text.types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,mBAAmB;IACnB,IAAI,EAAE,MAAM;IACZ,mBAAmB;IACnB,MAAM,EAAE,QAAQ;IAChB,mBAAmB;IACnB,OAAO,EAAE,SAAS;CACV,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,sBAAsB;IACtB,MAAM,EAAE,QAAQ;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,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;AACH,MAAM,CAAC,MAAM,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,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextVariant = exports.TextColor = exports.FontWeight = exports.FontStyle = exports.FontFamily = void 0;
|
|
4
|
-
var Text_types_1 = require("./Text.types.cjs");
|
|
5
|
-
Object.defineProperty(exports, "FontFamily", { enumerable: true, get: function () { return Text_types_1.FontFamily; } });
|
|
6
|
-
Object.defineProperty(exports, "FontStyle", { enumerable: true, get: function () { return Text_types_1.FontStyle; } });
|
|
7
|
-
Object.defineProperty(exports, "FontWeight", { enumerable: true, get: function () { return Text_types_1.FontWeight; } });
|
|
8
|
-
Object.defineProperty(exports, "TextColor", { enumerable: true, get: function () { return Text_types_1.TextColor; } });
|
|
9
|
-
Object.defineProperty(exports, "TextVariant", { enumerable: true, get: function () { return Text_types_1.TextVariant; } });
|
|
10
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/Text/index.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AANpB,wGAAA,UAAU,OAAA;AACV,uGAAA,SAAS,OAAA;AACT,wGAAA,UAAU,OAAA;AACV,uGAAA,SAAS,OAAA;AACT,yGAAA,WAAW,OAAA","sourcesContent":["export {\n FontFamily,\n FontStyle,\n FontWeight,\n TextColor,\n TextVariant,\n type TextPropsShared,\n} from './Text.types';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,EACX,KAAK,eAAe,GACrB,yBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,EACX,KAAK,eAAe,GACrB,yBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,EAEZ,yBAAqB","sourcesContent":["export {\n FontFamily,\n FontStyle,\n FontWeight,\n TextColor,\n TextVariant,\n type TextPropsShared,\n} from './Text.types';\n"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|