@metamask-previews/design-system-react-native 0.0.0-preview.f4da8f1 → 0.0.0-preview.fbd1fe9
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/dist/components/Button/Button.constants.d.ts +2 -0
- package/dist/components/Button/Button.constants.d.ts.map +1 -0
- package/dist/components/Button/Button.constants.js +7 -0
- package/dist/components/Button/Button.constants.js.map +1 -0
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +25 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/Button.types.d.ts +23 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -0
- package/dist/components/Button/Button.types.js +15 -0
- package/dist/components/Button/Button.types.js.map +1 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +12 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts +3 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js +29 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts +5 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js +97 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts +17 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js +3 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts +78 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js +122 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/index.d.ts +4 -0
- package/dist/components/Button/variants/ButtonPrimary/index.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/index.js +11 -0
- package/dist/components/Button/variants/ButtonPrimary/index.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts +3 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js +29 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts +5 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js +90 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts +17 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js +3 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts +90 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js +145 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/index.d.ts +4 -0
- package/dist/components/Button/variants/ButtonSecondary/index.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/index.js +11 -0
- package/dist/components/Button/variants/ButtonSecondary/index.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts +3 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js +29 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts +5 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js +90 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts +17 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js +3 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts +88 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js +147 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/index.d.ts +4 -0
- package/dist/components/Button/variants/ButtonTertiary/index.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/index.js +11 -0
- package/dist/components/Button/variants/ButtonTertiary/index.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts +6 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.js +20 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.d.ts +5 -0
- package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.js +72 -0
- package/dist/components/ButtonIcon/ButtonIcon.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.types.d.ts +60 -0
- package/dist/components/ButtonIcon/ButtonIcon.types.d.ts.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.types.js +19 -0
- package/dist/components/ButtonIcon/ButtonIcon.types.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts +55 -0
- package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.utilities.js +73 -0
- package/dist/components/ButtonIcon/ButtonIcon.utilities.js.map +1 -0
- package/dist/components/ButtonIcon/index.d.ts +4 -0
- package/dist/components/ButtonIcon/index.d.ts.map +1 -0
- package/dist/components/ButtonIcon/index.js +11 -0
- package/dist/components/ButtonIcon/index.js.map +1 -0
- package/dist/components/Icon/Icon.assets.d.ts +6 -0
- package/dist/components/Icon/Icon.assets.d.ts.map +1 -0
- package/dist/components/Icon/Icon.assets.js +324 -0
- package/dist/components/Icon/Icon.assets.js.map +1 -0
- package/dist/components/Icon/Icon.constants.d.ts +7 -0
- package/dist/components/Icon/Icon.constants.d.ts.map +1 -0
- package/dist/components/Icon/Icon.constants.js +15 -0
- package/dist/components/Icon/Icon.constants.js.map +1 -0
- package/dist/components/Icon/Icon.d.ts +5 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/Icon.js +45 -0
- package/dist/components/Icon/Icon.js.map +1 -0
- package/dist/components/Icon/Icon.types.d.ts +254 -0
- package/dist/components/Icon/Icon.types.d.ts.map +1 -0
- package/dist/components/Icon/Icon.types.js +229 -0
- package/dist/components/Icon/Icon.types.js.map +1 -0
- package/dist/components/Icon/Icon.utilities.d.ts +22 -0
- package/dist/components/Icon/Icon.utilities.d.ts.map +1 -0
- package/dist/components/Icon/Icon.utilities.js +31 -0
- package/dist/components/Icon/Icon.utilities.js.map +1 -0
- package/dist/components/Icon/index.d.ts +4 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Icon/index.js +13 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/Text/Text.constants.d.ts +9 -0
- package/dist/components/Text/Text.constants.d.ts.map +1 -0
- package/dist/components/Text/Text.constants.js +21 -0
- package/dist/components/Text/Text.constants.js.map +1 -0
- package/dist/components/Text/Text.d.ts +5 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/Text.js +26 -0
- package/dist/components/Text/Text.js.map +1 -0
- package/dist/components/Text/Text.types.d.ts +110 -0
- package/dist/components/Text/Text.types.d.ts.map +1 -0
- package/dist/components/Text/Text.types.js +89 -0
- package/dist/components/Text/Text.types.js.map +1 -0
- package/dist/components/Text/Text.utilities.d.ts +30 -0
- package/dist/components/Text/Text.utilities.d.ts.map +1 -0
- package/dist/components/Text/Text.utilities.js +45 -0
- package/dist/components/Text/Text.utilities.js.map +1 -0
- package/dist/components/Text/index.d.ts +4 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/Text/index.js +14 -0
- package/dist/components/Text/index.js.map +1 -0
- package/dist/components/TextButton/TextButton.constants.d.ts +3 -0
- package/dist/components/TextButton/TextButton.constants.d.ts.map +1 -0
- package/dist/components/TextButton/TextButton.constants.js +29 -0
- package/dist/components/TextButton/TextButton.constants.js.map +1 -0
- package/dist/components/TextButton/TextButton.d.ts +5 -0
- package/dist/components/TextButton/TextButton.d.ts.map +1 -0
- package/dist/components/TextButton/TextButton.js +187 -0
- package/dist/components/TextButton/TextButton.js.map +1 -0
- package/dist/components/TextButton/TextButton.types.d.ts +73 -0
- package/dist/components/TextButton/TextButton.types.d.ts.map +1 -0
- package/dist/components/TextButton/TextButton.types.js +3 -0
- package/dist/components/TextButton/TextButton.types.js.map +1 -0
- package/dist/components/TextButton/TextButton.utilities.d.ts +55 -0
- package/dist/components/TextButton/TextButton.utilities.d.ts.map +1 -0
- package/dist/components/TextButton/TextButton.utilities.js +77 -0
- package/dist/components/TextButton/TextButton.utilities.js.map +1 -0
- package/dist/components/TextButton/index.d.ts +3 -0
- package/dist/components/TextButton/index.d.ts.map +1 -0
- package/dist/components/TextButton/index.js +9 -0
- package/dist/components/TextButton/index.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts +5 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.js +58 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.js.map +1 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts +6 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js +3 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
- package/dist/primitives/ButtonAnimated/index.d.ts +2 -0
- package/dist/primitives/ButtonAnimated/index.d.ts.map +1 -0
- package/dist/primitives/ButtonAnimated/index.js +9 -0
- package/dist/primitives/ButtonAnimated/index.js.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts +3 -0
- package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.constants.js +32 -0
- package/dist/primitives/ButtonBase/ButtonBase.constants.js.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.d.ts +5 -0
- package/dist/primitives/ButtonBase/ButtonBase.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.js +84 -0
- package/dist/primitives/ButtonBase/ButtonBase.js.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.types.d.ts +93 -0
- package/dist/primitives/ButtonBase/ButtonBase.types.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.types.js +19 -0
- package/dist/primitives/ButtonBase/ButtonBase.types.js.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts +28 -0
- package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.utilities.js +41 -0
- package/dist/primitives/ButtonBase/ButtonBase.utilities.js.map +1 -0
- package/dist/primitives/ButtonBase/index.d.ts +4 -0
- package/dist/primitives/ButtonBase/index.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/index.js +11 -0
- package/dist/primitives/ButtonBase/index.js.map +1 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.d.ts +5 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.d.ts.map +1 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.js +15 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.js.map +1 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts +15 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.types.js +3 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.types.js.map +1 -0
- package/dist/temp-components/Spinner/Spinner.constants.d.ts +3 -0
- package/dist/temp-components/Spinner/Spinner.constants.d.ts.map +1 -0
- package/dist/temp-components/Spinner/Spinner.constants.js +21 -0
- package/dist/temp-components/Spinner/Spinner.constants.js.map +1 -0
- package/dist/temp-components/Spinner/Spinner.d.ts +5 -0
- package/dist/temp-components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/temp-components/Spinner/Spinner.js +68 -0
- package/dist/temp-components/Spinner/Spinner.js.map +1 -0
- package/dist/temp-components/Spinner/Spinner.types.d.ts +30 -0
- package/dist/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/temp-components/Spinner/Spinner.types.js +3 -0
- package/dist/temp-components/Spinner/Spinner.types.js.map +1 -0
- package/dist/temp-components/Spinner/index.d.ts +3 -0
- package/dist/temp-components/Spinner/index.d.ts.map +1 -0
- package/dist/temp-components/Spinner/index.js +9 -0
- package/dist/temp-components/Spinner/index.js.map +1 -0
- package/package.json +12 -6
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { SvgProps } from 'react-native-svg';
|
|
4
|
+
/**
|
|
5
|
+
* Icon color
|
|
6
|
+
*/
|
|
7
|
+
export declare enum IconColor {
|
|
8
|
+
/** For default neutral icons */
|
|
9
|
+
IconDefault = "text-icon-default",
|
|
10
|
+
/** For softer neutral icons */
|
|
11
|
+
IconAlternative = "text-icon-alternative",
|
|
12
|
+
/** For the weakest contrast neutral icons (not accessible) */
|
|
13
|
+
IconMuted = "text-icon-muted",
|
|
14
|
+
/** For elements used on top of overlay/alternative. Used for text, icon, or border */
|
|
15
|
+
OverlayInverse = "text-overlay-inverse",
|
|
16
|
+
/** For interactive, active, and selected semantics. Used for text, background, icon, or border */
|
|
17
|
+
PrimaryDefault = "text-primary-default",
|
|
18
|
+
/** For softer variants of primary interactive elements */
|
|
19
|
+
PrimaryAlternative = "text-primary-alternative",
|
|
20
|
+
/** For elements used on top of primary/default. Used for text, icon, or border */
|
|
21
|
+
PrimaryInverse = "text-primary-inverse",
|
|
22
|
+
/** For primary interactive elements in a pressed state */
|
|
23
|
+
PrimaryDefaultPressed = "text-primary-defaultPressed",
|
|
24
|
+
/** For critical alert semantic elements. Used for text, background, icon, or border */
|
|
25
|
+
ErrorDefault = "text-error-default",
|
|
26
|
+
/** For softer variants of error elements */
|
|
27
|
+
ErrorAlternative = "text-error-alternative",
|
|
28
|
+
/** For elements used on top of error/default. Used for text, icon, or border */
|
|
29
|
+
ErrorInverse = "text-error-inverse",
|
|
30
|
+
/** For critical alert semantic elements in a pressed state */
|
|
31
|
+
ErrorDefaultPressed = "text-error-defaultPressed",
|
|
32
|
+
/** For caution alert semantic elements. Used for text, background, icon, or border */
|
|
33
|
+
WarningDefault = "text-warning-default",
|
|
34
|
+
/** For elements used on top of warning/default. Used for text, icon, or border */
|
|
35
|
+
WarningInverse = "text-warning-inverse",
|
|
36
|
+
/** For caution alert semantic elements in a pressed state */
|
|
37
|
+
WarningDefaultPressed = "text-warning-defaultPressed",
|
|
38
|
+
/** For positive semantic elements. Used for text, background, icon, or border */
|
|
39
|
+
SuccessDefault = "text-success-default",
|
|
40
|
+
/** For elements used on top of success/default. Used for text, icon, or border */
|
|
41
|
+
SuccessInverse = "text-success-inverse",
|
|
42
|
+
/** For positive semantic elements in a pressed state */
|
|
43
|
+
SuccessDefaultPressed = "text-success-defaultPressed",
|
|
44
|
+
/** For informational read-only elements. Used for text, background, icon, or border */
|
|
45
|
+
InfoDefault = "text-info-default",
|
|
46
|
+
/** For elements used on top of info/default. Used for text, icon, or border */
|
|
47
|
+
InfoInverse = "text-info-inverse"
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Icon sizes
|
|
51
|
+
*/
|
|
52
|
+
export declare enum IconSize {
|
|
53
|
+
/** Extra small - 12px */
|
|
54
|
+
Xs = 12,
|
|
55
|
+
/** Small - 16px */
|
|
56
|
+
Sm = 16,
|
|
57
|
+
/** Medium - 20px (Default) */
|
|
58
|
+
Md = 20,
|
|
59
|
+
/** Large - 24px */
|
|
60
|
+
Lg = 24,
|
|
61
|
+
/** Extra large - 32px */
|
|
62
|
+
Xl = 32
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Icon component props.
|
|
66
|
+
*/
|
|
67
|
+
export type IconProps = {
|
|
68
|
+
/**
|
|
69
|
+
* Required prop to specify which icon to render from the icon set
|
|
70
|
+
*/
|
|
71
|
+
name: IconName;
|
|
72
|
+
/**
|
|
73
|
+
* Optional prop to control the size of the icon
|
|
74
|
+
* Different sizes map to specific pixel dimensions
|
|
75
|
+
* @default IconSize.Md
|
|
76
|
+
*/
|
|
77
|
+
size?: IconSize;
|
|
78
|
+
/**
|
|
79
|
+
* Optional prop that sets the color of the icon using predefined theme colors
|
|
80
|
+
* @default IconColor.IconDefault
|
|
81
|
+
*/
|
|
82
|
+
color?: IconColor;
|
|
83
|
+
/**
|
|
84
|
+
* Optional prop to add twrnc overriding classNames.
|
|
85
|
+
*/
|
|
86
|
+
twClassName?: string;
|
|
87
|
+
} & ViewProps;
|
|
88
|
+
/**
|
|
89
|
+
* Asset stored by icon name
|
|
90
|
+
*/
|
|
91
|
+
export type AssetByIconName = {
|
|
92
|
+
[key in IconName]: React.FC<SvgProps & {
|
|
93
|
+
name: string;
|
|
94
|
+
}>;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Icon names
|
|
98
|
+
*/
|
|
99
|
+
export declare enum IconName {
|
|
100
|
+
AddSquare = "AddSquare",
|
|
101
|
+
Add = "Add",
|
|
102
|
+
Arrow2Down = "Arrow2Down",
|
|
103
|
+
Arrow2Left = "Arrow2Left",
|
|
104
|
+
Arrow2Right = "Arrow2Right",
|
|
105
|
+
Arrow2UpRight = "Arrow2UpRight",
|
|
106
|
+
Arrow2Up = "Arrow2Up",
|
|
107
|
+
ArrowDoubleLeft = "ArrowDoubleLeft",
|
|
108
|
+
ArrowDoubleRight = "ArrowDoubleRight",
|
|
109
|
+
ArrowDown = "ArrowDown",
|
|
110
|
+
ArrowLeft = "ArrowLeft",
|
|
111
|
+
ArrowRight = "ArrowRight",
|
|
112
|
+
ArrowUp = "ArrowUp",
|
|
113
|
+
Ban = "Ban",
|
|
114
|
+
BankToken = "BankToken",
|
|
115
|
+
Bank = "Bank",
|
|
116
|
+
Bold = "Bold",
|
|
117
|
+
Book = "Book",
|
|
118
|
+
Bookmark = "Bookmark",
|
|
119
|
+
Bridge = "Bridge",
|
|
120
|
+
Calculator = "Calculator",
|
|
121
|
+
CardPos = "CardPos",
|
|
122
|
+
CardToken = "CardToken",
|
|
123
|
+
Card = "Card",
|
|
124
|
+
Category = "Category",
|
|
125
|
+
Chart = "Chart",
|
|
126
|
+
CheckBold = "CheckBold",
|
|
127
|
+
Check = "Check",
|
|
128
|
+
CircleX = "CircleX",
|
|
129
|
+
Clock = "Clock",
|
|
130
|
+
Close = "Close",
|
|
131
|
+
CodeCircle = "CodeCircle",
|
|
132
|
+
Coin = "Coin",
|
|
133
|
+
Collapse = "Collapse",
|
|
134
|
+
Confirmation = "Confirmation",
|
|
135
|
+
Connect = "Connect",
|
|
136
|
+
CopySuccess = "CopySuccess",
|
|
137
|
+
Copy = "Copy",
|
|
138
|
+
Customize = "Customize",
|
|
139
|
+
Danger = "Danger",
|
|
140
|
+
Dark = "Dark",
|
|
141
|
+
Data = "Data",
|
|
142
|
+
Diagram = "Diagram",
|
|
143
|
+
DocumentCode = "DocumentCode",
|
|
144
|
+
Download = "Download",
|
|
145
|
+
Edit = "Edit",
|
|
146
|
+
Eraser = "Eraser",
|
|
147
|
+
Ethereum = "Ethereum",
|
|
148
|
+
Expand = "Expand",
|
|
149
|
+
Explore = "Explore",
|
|
150
|
+
Export = "Export",
|
|
151
|
+
EyeSlash = "EyeSlash",
|
|
152
|
+
Eye = "Eye",
|
|
153
|
+
File = "File",
|
|
154
|
+
Filter = "Filter",
|
|
155
|
+
Flag = "Flag",
|
|
156
|
+
FlashSlash = "FlashSlash",
|
|
157
|
+
Flash = "Flash",
|
|
158
|
+
Flask = "Flask",
|
|
159
|
+
FullCircle = "FullCircle",
|
|
160
|
+
Gas = "Gas",
|
|
161
|
+
GlobalSearch = "GlobalSearch",
|
|
162
|
+
Global = "Global",
|
|
163
|
+
Graph = "Graph",
|
|
164
|
+
Hardware = "Hardware",
|
|
165
|
+
Heart = "Heart",
|
|
166
|
+
Hierarchy = "Hierarchy",
|
|
167
|
+
Home = "Home",
|
|
168
|
+
Import = "Import",
|
|
169
|
+
Info = "Info",
|
|
170
|
+
Key = "Key",
|
|
171
|
+
Light = "Light",
|
|
172
|
+
Link = "Link",
|
|
173
|
+
Loading = "Loading",
|
|
174
|
+
LockCircle = "LockCircle",
|
|
175
|
+
LockSlash = "LockSlash",
|
|
176
|
+
Lock = "Lock",
|
|
177
|
+
Login = "Login",
|
|
178
|
+
Logout = "Logout",
|
|
179
|
+
Menu = "Menu",
|
|
180
|
+
MessageQuestion = "MessageQuestion",
|
|
181
|
+
Messages = "Messages",
|
|
182
|
+
MinusBold = "MinusBold",
|
|
183
|
+
MinusSquare = "MinusSquare",
|
|
184
|
+
Minus = "Minus",
|
|
185
|
+
Mobile = "Mobile",
|
|
186
|
+
Money = "Money",
|
|
187
|
+
Monitor = "Monitor",
|
|
188
|
+
MoreHorizontal = "MoreHorizontal",
|
|
189
|
+
MoreVertical = "MoreVertical",
|
|
190
|
+
NotificationCircle = "NotificationCircle",
|
|
191
|
+
Notification = "Notification",
|
|
192
|
+
PasswordCheck = "PasswordCheck",
|
|
193
|
+
People = "People",
|
|
194
|
+
Pin = "Pin",
|
|
195
|
+
Plug = "Plug",
|
|
196
|
+
PlusMinus = "PlusMinus",
|
|
197
|
+
ProgrammingArrows = "ProgrammingArrows",
|
|
198
|
+
QrCode = "QrCode",
|
|
199
|
+
Question = "Question",
|
|
200
|
+
Received = "Received",
|
|
201
|
+
Refresh = "Refresh",
|
|
202
|
+
Save = "Save",
|
|
203
|
+
ScanBarcode = "ScanBarcode",
|
|
204
|
+
ScanFocus = "ScanFocus",
|
|
205
|
+
Scan = "Scan",
|
|
206
|
+
Scroll = "Scroll",
|
|
207
|
+
Search = "Search",
|
|
208
|
+
SecurityCard = "SecurityCard",
|
|
209
|
+
SecurityCross = "SecurityCross",
|
|
210
|
+
SecurityKey = "SecurityKey",
|
|
211
|
+
SecuritySearch = "SecuritySearch",
|
|
212
|
+
SecuritySlash = "SecuritySlash",
|
|
213
|
+
SecurityTick = "SecurityTick",
|
|
214
|
+
SecurityTime = "SecurityTime",
|
|
215
|
+
SecurityUser = "SecurityUser",
|
|
216
|
+
Security = "Security",
|
|
217
|
+
Send1 = "Send1",
|
|
218
|
+
Send2 = "Send2",
|
|
219
|
+
Setting = "Setting",
|
|
220
|
+
Share = "Share",
|
|
221
|
+
Slash = "Slash",
|
|
222
|
+
SnapsMobile = "SnapsMobile",
|
|
223
|
+
SnapsPlus = "SnapsPlus",
|
|
224
|
+
Snaps = "Snaps",
|
|
225
|
+
Speedometer = "Speedometer",
|
|
226
|
+
Square = "Square",
|
|
227
|
+
Stake = "Stake",
|
|
228
|
+
Star = "Star",
|
|
229
|
+
Student = "Student",
|
|
230
|
+
SwapHorizontal = "SwapHorizontal",
|
|
231
|
+
SwapVertical = "SwapVertical",
|
|
232
|
+
Tag = "Tag",
|
|
233
|
+
Tilde = "Tilde",
|
|
234
|
+
Timer = "Timer",
|
|
235
|
+
Tint = "Tint",
|
|
236
|
+
Trash = "Trash",
|
|
237
|
+
TrendDown = "TrendDown",
|
|
238
|
+
TrendUp = "TrendUp",
|
|
239
|
+
Twitter = "Twitter",
|
|
240
|
+
Unpin = "Unpin",
|
|
241
|
+
Upload = "Upload",
|
|
242
|
+
Usb = "Usb",
|
|
243
|
+
UserCheck = "UserCheck",
|
|
244
|
+
UserCircleAdd = "UserCircleAdd",
|
|
245
|
+
UserCircleRemove = "UserCircleRemove",
|
|
246
|
+
UserCircle = "UserCircle",
|
|
247
|
+
User = "User",
|
|
248
|
+
WalletCard = "WalletCard",
|
|
249
|
+
WalletMoney = "WalletMoney",
|
|
250
|
+
Wallet = "Wallet",
|
|
251
|
+
Warning = "Warning",
|
|
252
|
+
Wifi = "Wifi"
|
|
253
|
+
}
|
|
254
|
+
//# sourceMappingURL=Icon.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],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B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconName = exports.IconSize = exports.IconColor = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Icon color
|
|
6
|
+
*/
|
|
7
|
+
var IconColor;
|
|
8
|
+
(function (IconColor) {
|
|
9
|
+
/** For default neutral icons */
|
|
10
|
+
IconColor["IconDefault"] = "text-icon-default";
|
|
11
|
+
/** For softer neutral icons */
|
|
12
|
+
IconColor["IconAlternative"] = "text-icon-alternative";
|
|
13
|
+
/** For the weakest contrast neutral icons (not accessible) */
|
|
14
|
+
IconColor["IconMuted"] = "text-icon-muted";
|
|
15
|
+
/** For elements used on top of overlay/alternative. Used for text, icon, or border */
|
|
16
|
+
IconColor["OverlayInverse"] = "text-overlay-inverse";
|
|
17
|
+
/** For interactive, active, and selected semantics. Used for text, background, icon, or border */
|
|
18
|
+
IconColor["PrimaryDefault"] = "text-primary-default";
|
|
19
|
+
/** For softer variants of primary interactive elements */
|
|
20
|
+
IconColor["PrimaryAlternative"] = "text-primary-alternative";
|
|
21
|
+
/** For elements used on top of primary/default. Used for text, icon, or border */
|
|
22
|
+
IconColor["PrimaryInverse"] = "text-primary-inverse";
|
|
23
|
+
/** For primary interactive elements in a pressed state */
|
|
24
|
+
IconColor["PrimaryDefaultPressed"] = "text-primary-defaultPressed";
|
|
25
|
+
/** For critical alert semantic elements. Used for text, background, icon, or border */
|
|
26
|
+
IconColor["ErrorDefault"] = "text-error-default";
|
|
27
|
+
/** For softer variants of error elements */
|
|
28
|
+
IconColor["ErrorAlternative"] = "text-error-alternative";
|
|
29
|
+
/** For elements used on top of error/default. Used for text, icon, or border */
|
|
30
|
+
IconColor["ErrorInverse"] = "text-error-inverse";
|
|
31
|
+
/** For critical alert semantic elements in a pressed state */
|
|
32
|
+
IconColor["ErrorDefaultPressed"] = "text-error-defaultPressed";
|
|
33
|
+
/** For caution alert semantic elements. Used for text, background, icon, or border */
|
|
34
|
+
IconColor["WarningDefault"] = "text-warning-default";
|
|
35
|
+
/** For elements used on top of warning/default. Used for text, icon, or border */
|
|
36
|
+
IconColor["WarningInverse"] = "text-warning-inverse";
|
|
37
|
+
/** For caution alert semantic elements in a pressed state */
|
|
38
|
+
IconColor["WarningDefaultPressed"] = "text-warning-defaultPressed";
|
|
39
|
+
/** For positive semantic elements. Used for text, background, icon, or border */
|
|
40
|
+
IconColor["SuccessDefault"] = "text-success-default";
|
|
41
|
+
/** For elements used on top of success/default. Used for text, icon, or border */
|
|
42
|
+
IconColor["SuccessInverse"] = "text-success-inverse";
|
|
43
|
+
/** For positive semantic elements in a pressed state */
|
|
44
|
+
IconColor["SuccessDefaultPressed"] = "text-success-defaultPressed";
|
|
45
|
+
/** For informational read-only elements. Used for text, background, icon, or border */
|
|
46
|
+
IconColor["InfoDefault"] = "text-info-default";
|
|
47
|
+
/** For elements used on top of info/default. Used for text, icon, or border */
|
|
48
|
+
IconColor["InfoInverse"] = "text-info-inverse";
|
|
49
|
+
})(IconColor || (exports.IconColor = IconColor = {}));
|
|
50
|
+
/**
|
|
51
|
+
* Icon sizes
|
|
52
|
+
*/
|
|
53
|
+
var IconSize;
|
|
54
|
+
(function (IconSize) {
|
|
55
|
+
/** Extra small - 12px */
|
|
56
|
+
IconSize[IconSize["Xs"] = 12] = "Xs";
|
|
57
|
+
/** Small - 16px */
|
|
58
|
+
IconSize[IconSize["Sm"] = 16] = "Sm";
|
|
59
|
+
/** Medium - 20px (Default) */
|
|
60
|
+
IconSize[IconSize["Md"] = 20] = "Md";
|
|
61
|
+
/** Large - 24px */
|
|
62
|
+
IconSize[IconSize["Lg"] = 24] = "Lg";
|
|
63
|
+
/** Extra large - 32px */
|
|
64
|
+
IconSize[IconSize["Xl"] = 32] = "Xl";
|
|
65
|
+
})(IconSize || (exports.IconSize = IconSize = {}));
|
|
66
|
+
// /////////////////////////////////////////////////////
|
|
67
|
+
// This is generated code - Manually add types above
|
|
68
|
+
// DO NOT EDIT - Use generate-assets.js
|
|
69
|
+
// /////////////////////////////////////////////////////
|
|
70
|
+
/**
|
|
71
|
+
* Icon names
|
|
72
|
+
*/
|
|
73
|
+
var IconName;
|
|
74
|
+
(function (IconName) {
|
|
75
|
+
IconName["AddSquare"] = "AddSquare";
|
|
76
|
+
IconName["Add"] = "Add";
|
|
77
|
+
IconName["Arrow2Down"] = "Arrow2Down";
|
|
78
|
+
IconName["Arrow2Left"] = "Arrow2Left";
|
|
79
|
+
IconName["Arrow2Right"] = "Arrow2Right";
|
|
80
|
+
IconName["Arrow2UpRight"] = "Arrow2UpRight";
|
|
81
|
+
IconName["Arrow2Up"] = "Arrow2Up";
|
|
82
|
+
IconName["ArrowDoubleLeft"] = "ArrowDoubleLeft";
|
|
83
|
+
IconName["ArrowDoubleRight"] = "ArrowDoubleRight";
|
|
84
|
+
IconName["ArrowDown"] = "ArrowDown";
|
|
85
|
+
IconName["ArrowLeft"] = "ArrowLeft";
|
|
86
|
+
IconName["ArrowRight"] = "ArrowRight";
|
|
87
|
+
IconName["ArrowUp"] = "ArrowUp";
|
|
88
|
+
IconName["Ban"] = "Ban";
|
|
89
|
+
IconName["BankToken"] = "BankToken";
|
|
90
|
+
IconName["Bank"] = "Bank";
|
|
91
|
+
IconName["Bold"] = "Bold";
|
|
92
|
+
IconName["Book"] = "Book";
|
|
93
|
+
IconName["Bookmark"] = "Bookmark";
|
|
94
|
+
IconName["Bridge"] = "Bridge";
|
|
95
|
+
IconName["Calculator"] = "Calculator";
|
|
96
|
+
IconName["CardPos"] = "CardPos";
|
|
97
|
+
IconName["CardToken"] = "CardToken";
|
|
98
|
+
IconName["Card"] = "Card";
|
|
99
|
+
IconName["Category"] = "Category";
|
|
100
|
+
IconName["Chart"] = "Chart";
|
|
101
|
+
IconName["CheckBold"] = "CheckBold";
|
|
102
|
+
IconName["Check"] = "Check";
|
|
103
|
+
IconName["CircleX"] = "CircleX";
|
|
104
|
+
IconName["Clock"] = "Clock";
|
|
105
|
+
IconName["Close"] = "Close";
|
|
106
|
+
IconName["CodeCircle"] = "CodeCircle";
|
|
107
|
+
IconName["Coin"] = "Coin";
|
|
108
|
+
IconName["Collapse"] = "Collapse";
|
|
109
|
+
IconName["Confirmation"] = "Confirmation";
|
|
110
|
+
IconName["Connect"] = "Connect";
|
|
111
|
+
IconName["CopySuccess"] = "CopySuccess";
|
|
112
|
+
IconName["Copy"] = "Copy";
|
|
113
|
+
IconName["Customize"] = "Customize";
|
|
114
|
+
IconName["Danger"] = "Danger";
|
|
115
|
+
IconName["Dark"] = "Dark";
|
|
116
|
+
IconName["Data"] = "Data";
|
|
117
|
+
IconName["Diagram"] = "Diagram";
|
|
118
|
+
IconName["DocumentCode"] = "DocumentCode";
|
|
119
|
+
IconName["Download"] = "Download";
|
|
120
|
+
IconName["Edit"] = "Edit";
|
|
121
|
+
IconName["Eraser"] = "Eraser";
|
|
122
|
+
IconName["Ethereum"] = "Ethereum";
|
|
123
|
+
IconName["Expand"] = "Expand";
|
|
124
|
+
IconName["Explore"] = "Explore";
|
|
125
|
+
IconName["Export"] = "Export";
|
|
126
|
+
IconName["EyeSlash"] = "EyeSlash";
|
|
127
|
+
IconName["Eye"] = "Eye";
|
|
128
|
+
IconName["File"] = "File";
|
|
129
|
+
IconName["Filter"] = "Filter";
|
|
130
|
+
IconName["Flag"] = "Flag";
|
|
131
|
+
IconName["FlashSlash"] = "FlashSlash";
|
|
132
|
+
IconName["Flash"] = "Flash";
|
|
133
|
+
IconName["Flask"] = "Flask";
|
|
134
|
+
IconName["FullCircle"] = "FullCircle";
|
|
135
|
+
IconName["Gas"] = "Gas";
|
|
136
|
+
IconName["GlobalSearch"] = "GlobalSearch";
|
|
137
|
+
IconName["Global"] = "Global";
|
|
138
|
+
IconName["Graph"] = "Graph";
|
|
139
|
+
IconName["Hardware"] = "Hardware";
|
|
140
|
+
IconName["Heart"] = "Heart";
|
|
141
|
+
IconName["Hierarchy"] = "Hierarchy";
|
|
142
|
+
IconName["Home"] = "Home";
|
|
143
|
+
IconName["Import"] = "Import";
|
|
144
|
+
IconName["Info"] = "Info";
|
|
145
|
+
IconName["Key"] = "Key";
|
|
146
|
+
IconName["Light"] = "Light";
|
|
147
|
+
IconName["Link"] = "Link";
|
|
148
|
+
IconName["Loading"] = "Loading";
|
|
149
|
+
IconName["LockCircle"] = "LockCircle";
|
|
150
|
+
IconName["LockSlash"] = "LockSlash";
|
|
151
|
+
IconName["Lock"] = "Lock";
|
|
152
|
+
IconName["Login"] = "Login";
|
|
153
|
+
IconName["Logout"] = "Logout";
|
|
154
|
+
IconName["Menu"] = "Menu";
|
|
155
|
+
IconName["MessageQuestion"] = "MessageQuestion";
|
|
156
|
+
IconName["Messages"] = "Messages";
|
|
157
|
+
IconName["MinusBold"] = "MinusBold";
|
|
158
|
+
IconName["MinusSquare"] = "MinusSquare";
|
|
159
|
+
IconName["Minus"] = "Minus";
|
|
160
|
+
IconName["Mobile"] = "Mobile";
|
|
161
|
+
IconName["Money"] = "Money";
|
|
162
|
+
IconName["Monitor"] = "Monitor";
|
|
163
|
+
IconName["MoreHorizontal"] = "MoreHorizontal";
|
|
164
|
+
IconName["MoreVertical"] = "MoreVertical";
|
|
165
|
+
IconName["NotificationCircle"] = "NotificationCircle";
|
|
166
|
+
IconName["Notification"] = "Notification";
|
|
167
|
+
IconName["PasswordCheck"] = "PasswordCheck";
|
|
168
|
+
IconName["People"] = "People";
|
|
169
|
+
IconName["Pin"] = "Pin";
|
|
170
|
+
IconName["Plug"] = "Plug";
|
|
171
|
+
IconName["PlusMinus"] = "PlusMinus";
|
|
172
|
+
IconName["ProgrammingArrows"] = "ProgrammingArrows";
|
|
173
|
+
IconName["QrCode"] = "QrCode";
|
|
174
|
+
IconName["Question"] = "Question";
|
|
175
|
+
IconName["Received"] = "Received";
|
|
176
|
+
IconName["Refresh"] = "Refresh";
|
|
177
|
+
IconName["Save"] = "Save";
|
|
178
|
+
IconName["ScanBarcode"] = "ScanBarcode";
|
|
179
|
+
IconName["ScanFocus"] = "ScanFocus";
|
|
180
|
+
IconName["Scan"] = "Scan";
|
|
181
|
+
IconName["Scroll"] = "Scroll";
|
|
182
|
+
IconName["Search"] = "Search";
|
|
183
|
+
IconName["SecurityCard"] = "SecurityCard";
|
|
184
|
+
IconName["SecurityCross"] = "SecurityCross";
|
|
185
|
+
IconName["SecurityKey"] = "SecurityKey";
|
|
186
|
+
IconName["SecuritySearch"] = "SecuritySearch";
|
|
187
|
+
IconName["SecuritySlash"] = "SecuritySlash";
|
|
188
|
+
IconName["SecurityTick"] = "SecurityTick";
|
|
189
|
+
IconName["SecurityTime"] = "SecurityTime";
|
|
190
|
+
IconName["SecurityUser"] = "SecurityUser";
|
|
191
|
+
IconName["Security"] = "Security";
|
|
192
|
+
IconName["Send1"] = "Send1";
|
|
193
|
+
IconName["Send2"] = "Send2";
|
|
194
|
+
IconName["Setting"] = "Setting";
|
|
195
|
+
IconName["Share"] = "Share";
|
|
196
|
+
IconName["Slash"] = "Slash";
|
|
197
|
+
IconName["SnapsMobile"] = "SnapsMobile";
|
|
198
|
+
IconName["SnapsPlus"] = "SnapsPlus";
|
|
199
|
+
IconName["Snaps"] = "Snaps";
|
|
200
|
+
IconName["Speedometer"] = "Speedometer";
|
|
201
|
+
IconName["Square"] = "Square";
|
|
202
|
+
IconName["Stake"] = "Stake";
|
|
203
|
+
IconName["Star"] = "Star";
|
|
204
|
+
IconName["Student"] = "Student";
|
|
205
|
+
IconName["SwapHorizontal"] = "SwapHorizontal";
|
|
206
|
+
IconName["SwapVertical"] = "SwapVertical";
|
|
207
|
+
IconName["Tag"] = "Tag";
|
|
208
|
+
IconName["Tilde"] = "Tilde";
|
|
209
|
+
IconName["Timer"] = "Timer";
|
|
210
|
+
IconName["Tint"] = "Tint";
|
|
211
|
+
IconName["Trash"] = "Trash";
|
|
212
|
+
IconName["TrendDown"] = "TrendDown";
|
|
213
|
+
IconName["TrendUp"] = "TrendUp";
|
|
214
|
+
IconName["Twitter"] = "Twitter";
|
|
215
|
+
IconName["Unpin"] = "Unpin";
|
|
216
|
+
IconName["Upload"] = "Upload";
|
|
217
|
+
IconName["Usb"] = "Usb";
|
|
218
|
+
IconName["UserCheck"] = "UserCheck";
|
|
219
|
+
IconName["UserCircleAdd"] = "UserCircleAdd";
|
|
220
|
+
IconName["UserCircleRemove"] = "UserCircleRemove";
|
|
221
|
+
IconName["UserCircle"] = "UserCircle";
|
|
222
|
+
IconName["User"] = "User";
|
|
223
|
+
IconName["WalletCard"] = "WalletCard";
|
|
224
|
+
IconName["WalletMoney"] = "WalletMoney";
|
|
225
|
+
IconName["Wallet"] = "Wallet";
|
|
226
|
+
IconName["Warning"] = "Warning";
|
|
227
|
+
IconName["Wifi"] = "Wifi";
|
|
228
|
+
})(IconName || (exports.IconName = IconName = {}));
|
|
229
|
+
//# sourceMappingURL=Icon.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.types.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACH,IAAY,SAyCX;AAzCD,WAAY,SAAS;IACnB,gCAAgC;IAChC,8CAAiC,CAAA;IACjC,+BAA+B;IAC/B,sDAAyC,CAAA;IACzC,8DAA8D;IAC9D,0CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oDAAuC,CAAA;IACvC,kGAAkG;IAClG,oDAAuC,CAAA;IACvC,0DAA0D;IAC1D,4DAA+C,CAAA;IAC/C,kFAAkF;IAClF,oDAAuC,CAAA;IACvC,0DAA0D;IAC1D,kEAAqD,CAAA;IACrD,uFAAuF;IACvF,gDAAmC,CAAA;IACnC,4CAA4C;IAC5C,wDAA2C,CAAA;IAC3C,gFAAgF;IAChF,gDAAmC,CAAA;IACnC,8DAA8D;IAC9D,8DAAiD,CAAA;IACjD,sFAAsF;IACtF,oDAAuC,CAAA;IACvC,kFAAkF;IAClF,oDAAuC,CAAA;IACvC,6DAA6D;IAC7D,kEAAqD,CAAA;IACrD,iFAAiF;IACjF,oDAAuC,CAAA;IACvC,kFAAkF;IAClF,oDAAuC,CAAA;IACvC,wDAAwD;IACxD,kEAAqD,CAAA;IACrD,uFAAuF;IACvF,8CAAiC,CAAA;IACjC,+EAA+E;IAC/E,8CAAiC,CAAA;AACnC,CAAC,EAzCW,SAAS,yBAAT,SAAS,QAyCpB;AAED;;GAEG;AACH,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,yBAAyB;IACzB,oCAAO,CAAA;IACP,mBAAmB;IACnB,oCAAO,CAAA;IACP,8BAA8B;IAC9B,oCAAO,CAAA;IACP,mBAAmB;IACnB,oCAAO,CAAA;IACP,yBAAyB;IACzB,oCAAO,CAAA;AACT,CAAC,EAXW,QAAQ,wBAAR,QAAQ,QAWnB;AAkCD,wDAAwD;AACxD,oDAA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A;IACnB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,uCAA2B,CAAA;IAC3B,mCAAuB,CAAA;IACvB,2BAAe,CAAA;IACf,uCAA2B,CAAA;IAC3B,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,6CAAiC,CAAA;IACjC,yCAA6B,CAAA;IAC7B,uBAAW,CAAA;IACX,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,mCAAuB,CAAA;IACvB,2CAA+B,CAAA;IAC/B,iDAAqC,CAAA;IACrC,qCAAyB,CAAA;IACzB,yBAAa,CAAA;IACb,qCAAyB,CAAA;IACzB,uCAA2B,CAAA;IAC3B,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,yBAAa,CAAA;AACf,CAAC,EA1JW,QAAQ,wBAAR,QAAQ,QA0JnB","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\n// Third party dependencies.\nimport type React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { SvgProps } from 'react-native-svg';\n\n/**\n * Icon color\n */\nexport enum IconColor {\n /** For default neutral icons */\n IconDefault = 'text-icon-default',\n /** For softer neutral icons */\n IconAlternative = 'text-icon-alternative',\n /** For the weakest contrast neutral icons (not accessible) */\n IconMuted = 'text-icon-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 softer variants of primary interactive elements */\n PrimaryAlternative = 'text-primary-alternative',\n /** For elements used on top of primary/default. Used for text, icon, or border */\n PrimaryInverse = 'text-primary-inverse',\n /** For primary interactive elements in a pressed state */\n PrimaryDefaultPressed = 'text-primary-defaultPressed',\n /** For critical alert semantic elements. Used for text, background, icon, or border */\n ErrorDefault = 'text-error-default',\n /** For softer variants of error 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 semantic elements in a pressed state */\n ErrorDefaultPressed = 'text-error-defaultPressed',\n /** For 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 alert semantic elements in a pressed state */\n WarningDefaultPressed = 'text-warning-defaultPressed',\n /** For 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 semantic elements in a pressed state */\n SuccessDefaultPressed = 'text-success-defaultPressed',\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}\n\n/**\n * Icon sizes\n */\nexport enum IconSize {\n /** Extra small - 12px */\n Xs = 12,\n /** Small - 16px */\n Sm = 16,\n /** Medium - 20px (Default) */\n Md = 20,\n /** Large - 24px */\n Lg = 24,\n /** Extra large - 32px */\n Xl = 32,\n}\n\n/**\n * Icon component props.\n */\nexport type IconProps = {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * Asset stored by icon name\n */\nexport type AssetByIconName = {\n [key in IconName]: React.FC<SvgProps & { name: string }>;\n};\n\n// /////////////////////////////////////////////////////\n// This is generated code - Manually add types above\n// DO NOT EDIT - Use generate-assets.js\n// /////////////////////////////////////////////////////\n\n/**\n * Icon names\n */\nexport enum IconName {\n AddSquare = 'AddSquare',\n Add = 'Add',\n Arrow2Down = 'Arrow2Down',\n Arrow2Left = 'Arrow2Left',\n Arrow2Right = 'Arrow2Right',\n Arrow2UpRight = 'Arrow2UpRight',\n Arrow2Up = 'Arrow2Up',\n ArrowDoubleLeft = 'ArrowDoubleLeft',\n ArrowDoubleRight = 'ArrowDoubleRight',\n ArrowDown = 'ArrowDown',\n ArrowLeft = 'ArrowLeft',\n ArrowRight = 'ArrowRight',\n ArrowUp = 'ArrowUp',\n Ban = 'Ban',\n BankToken = 'BankToken',\n Bank = 'Bank',\n Bold = 'Bold',\n Book = 'Book',\n Bookmark = 'Bookmark',\n Bridge = 'Bridge',\n Calculator = 'Calculator',\n CardPos = 'CardPos',\n CardToken = 'CardToken',\n Card = 'Card',\n Category = 'Category',\n Chart = 'Chart',\n CheckBold = 'CheckBold',\n Check = 'Check',\n CircleX = 'CircleX',\n Clock = 'Clock',\n Close = 'Close',\n CodeCircle = 'CodeCircle',\n Coin = 'Coin',\n Collapse = 'Collapse',\n Confirmation = 'Confirmation',\n Connect = 'Connect',\n CopySuccess = 'CopySuccess',\n Copy = 'Copy',\n Customize = 'Customize',\n Danger = 'Danger',\n Dark = 'Dark',\n Data = 'Data',\n Diagram = 'Diagram',\n DocumentCode = 'DocumentCode',\n Download = 'Download',\n Edit = 'Edit',\n Eraser = 'Eraser',\n Ethereum = 'Ethereum',\n Expand = 'Expand',\n Explore = 'Explore',\n Export = 'Export',\n EyeSlash = 'EyeSlash',\n Eye = 'Eye',\n File = 'File',\n Filter = 'Filter',\n Flag = 'Flag',\n FlashSlash = 'FlashSlash',\n Flash = 'Flash',\n Flask = 'Flask',\n FullCircle = 'FullCircle',\n Gas = 'Gas',\n GlobalSearch = 'GlobalSearch',\n Global = 'Global',\n Graph = 'Graph',\n Hardware = 'Hardware',\n Heart = 'Heart',\n Hierarchy = 'Hierarchy',\n Home = 'Home',\n Import = 'Import',\n Info = 'Info',\n Key = 'Key',\n Light = 'Light',\n Link = 'Link',\n Loading = 'Loading',\n LockCircle = 'LockCircle',\n LockSlash = 'LockSlash',\n Lock = 'Lock',\n Login = 'Login',\n Logout = 'Logout',\n Menu = 'Menu',\n MessageQuestion = 'MessageQuestion',\n Messages = 'Messages',\n MinusBold = 'MinusBold',\n MinusSquare = 'MinusSquare',\n Minus = 'Minus',\n Mobile = 'Mobile',\n Money = 'Money',\n Monitor = 'Monitor',\n MoreHorizontal = 'MoreHorizontal',\n MoreVertical = 'MoreVertical',\n NotificationCircle = 'NotificationCircle',\n Notification = 'Notification',\n PasswordCheck = 'PasswordCheck',\n People = 'People',\n Pin = 'Pin',\n Plug = 'Plug',\n PlusMinus = 'PlusMinus',\n ProgrammingArrows = 'ProgrammingArrows',\n QrCode = 'QrCode',\n Question = 'Question',\n Received = 'Received',\n Refresh = 'Refresh',\n Save = 'Save',\n ScanBarcode = 'ScanBarcode',\n ScanFocus = 'ScanFocus',\n Scan = 'Scan',\n Scroll = 'Scroll',\n Search = 'Search',\n SecurityCard = 'SecurityCard',\n SecurityCross = 'SecurityCross',\n SecurityKey = 'SecurityKey',\n SecuritySearch = 'SecuritySearch',\n SecuritySlash = 'SecuritySlash',\n SecurityTick = 'SecurityTick',\n SecurityTime = 'SecurityTime',\n SecurityUser = 'SecurityUser',\n Security = 'Security',\n Send1 = 'Send1',\n Send2 = 'Send2',\n Setting = 'Setting',\n Share = 'Share',\n Slash = 'Slash',\n SnapsMobile = 'SnapsMobile',\n SnapsPlus = 'SnapsPlus',\n Snaps = 'Snaps',\n Speedometer = 'Speedometer',\n Square = 'Square',\n Stake = 'Stake',\n Star = 'Star',\n Student = 'Student',\n SwapHorizontal = 'SwapHorizontal',\n SwapVertical = 'SwapVertical',\n Tag = 'Tag',\n Tilde = 'Tilde',\n Timer = 'Timer',\n Tint = 'Tint',\n Trash = 'Trash',\n TrendDown = 'TrendDown',\n TrendUp = 'TrendUp',\n Twitter = 'Twitter',\n Unpin = 'Unpin',\n Upload = 'Upload',\n Usb = 'Usb',\n UserCheck = 'UserCheck',\n UserCircleAdd = 'UserCircleAdd',\n UserCircleRemove = 'UserCircleRemove',\n UserCircle = 'UserCircle',\n User = 'User',\n WalletCard = 'WalletCard',\n WalletMoney = 'WalletMoney',\n Wallet = 'Wallet',\n Warning = 'Warning',\n Wifi = 'Wifi',\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IconProps } from './Icon.types';
|
|
2
|
+
/**
|
|
3
|
+
* Generates a Tailwind class name for the icon based on color and optional additional classes.
|
|
4
|
+
*
|
|
5
|
+
* @param color - The color of the icon, mapped to a Tailwind class.
|
|
6
|
+
* @param size - Different sizes map to specific pixel dimensions
|
|
7
|
+
* @param twClassName - Additional Tailwind class names for customization.
|
|
8
|
+
* @returns A combined string of class names.
|
|
9
|
+
*
|
|
10
|
+
* Example:
|
|
11
|
+
* ```
|
|
12
|
+
* const classNames = generateIconClassNames({
|
|
13
|
+
* color: IconColor.IconDefault,
|
|
14
|
+
* size: IconSize.Md
|
|
15
|
+
* });
|
|
16
|
+
*
|
|
17
|
+
* console.log(classNames);
|
|
18
|
+
* // Output: "text-icon-default w-[20px] h-[20px]"
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const generateIconClassNames: ({ color, size, twClassName, }: Partial<IconProps>) => string;
|
|
22
|
+
//# sourceMappingURL=Icon.utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.utilities.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.utilities.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,kCAIhC,QAAQ,SAAS,CAAC,KAAG,MAGvB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateIconClassNames = void 0;
|
|
4
|
+
/* eslint-disable jsdoc/check-param-names */
|
|
5
|
+
/* eslint-disable jsdoc/require-param */
|
|
6
|
+
const Icon_constants_1 = require("./Icon.constants");
|
|
7
|
+
/**
|
|
8
|
+
* Generates a Tailwind class name for the icon based on color and optional additional classes.
|
|
9
|
+
*
|
|
10
|
+
* @param color - The color of the icon, mapped to a Tailwind class.
|
|
11
|
+
* @param size - Different sizes map to specific pixel dimensions
|
|
12
|
+
* @param twClassName - Additional Tailwind class names for customization.
|
|
13
|
+
* @returns A combined string of class names.
|
|
14
|
+
*
|
|
15
|
+
* Example:
|
|
16
|
+
* ```
|
|
17
|
+
* const classNames = generateIconClassNames({
|
|
18
|
+
* color: IconColor.IconDefault,
|
|
19
|
+
* size: IconSize.Md
|
|
20
|
+
* });
|
|
21
|
+
*
|
|
22
|
+
* console.log(classNames);
|
|
23
|
+
* // Output: "text-icon-default w-[20px] h-[20px]"
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
const generateIconClassNames = ({ color = Icon_constants_1.DEFAULT_ICON_ICONCOLOR, size = Icon_constants_1.DEFAULT_ICON_ICONSIZE, twClassName = '', }) => {
|
|
27
|
+
const mergedClassnames = `${color} w-[${size}px] h-[${size}px] ${twClassName}`;
|
|
28
|
+
return mergedClassnames;
|
|
29
|
+
};
|
|
30
|
+
exports.generateIconClassNames = generateIconClassNames;
|
|
31
|
+
//# sourceMappingURL=Icon.utilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.utilities.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.utilities.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,wCAAwC;AACxC,qDAG0B;AAG1B;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,sBAAsB,GAAG,CAAC,EACrC,KAAK,GAAG,uCAAsB,EAC9B,IAAI,GAAG,sCAAqB,EAC5B,WAAW,GAAG,EAAE,GACG,EAAU,EAAE;IAC/B,MAAM,gBAAgB,GAAG,GAAG,KAAK,OAAO,IAAI,UAAU,IAAI,OAAO,WAAW,EAAE,CAAC;IAC/E,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAPW,QAAA,sBAAsB,0BAOjC","sourcesContent":["/* eslint-disable jsdoc/check-param-names */\n/* eslint-disable jsdoc/require-param */\nimport {\n DEFAULT_ICON_ICONCOLOR,\n DEFAULT_ICON_ICONSIZE,\n} from './Icon.constants';\nimport type { IconProps } from './Icon.types';\n\n/**\n * Generates a Tailwind class name for the icon based on color and optional additional classes.\n *\n * @param color - The color of the icon, mapped to a Tailwind class.\n * @param size - Different sizes map to specific pixel dimensions\n * @param twClassName - Additional Tailwind class names for customization.\n * @returns A combined string of class names.\n *\n * Example:\n * ```\n * const classNames = generateIconClassNames({\n * color: IconColor.IconDefault,\n * size: IconSize.Md\n * });\n *\n * console.log(classNames);\n * // Output: \"text-icon-default w-[20px] h-[20px]\"\n * ```\n */\nexport const generateIconClassNames = ({\n color = DEFAULT_ICON_ICONCOLOR,\n size = DEFAULT_ICON_ICONSIZE,\n twClassName = '',\n}: Partial<IconProps>): string => {\n const mergedClassnames = `${color} w-[${size}px] h-[${size}px] ${twClassName}`;\n return mergedClassnames;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IconColor = exports.IconName = exports.IconSize = exports.default = void 0;
|
|
7
|
+
var Icon_1 = require("./Icon");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Icon_1).default; } });
|
|
9
|
+
var Icon_types_1 = require("./Icon.types");
|
|
10
|
+
Object.defineProperty(exports, "IconSize", { enumerable: true, get: function () { return Icon_types_1.IconSize; } });
|
|
11
|
+
Object.defineProperty(exports, "IconName", { enumerable: true, get: function () { return Icon_types_1.IconName; } });
|
|
12
|
+
Object.defineProperty(exports, "IconColor", { enumerable: true, get: function () { return Icon_types_1.IconColor; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAiC;AAAxB,gHAAA,OAAO,OAAA;AAChB,2CAA6D;AAApD,sGAAA,QAAQ,OAAA;AAAE,sGAAA,QAAQ,OAAA;AAAE,uGAAA,SAAS,OAAA","sourcesContent":["export { default } from './Icon';\nexport { IconSize, IconName, IconColor } from './Icon.types';\nexport type { IconProps } from './Icon.types';\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TextProps } from './Text.types';
|
|
2
|
+
import { FontWeight, TextColor, TextVariant } from './Text.types';
|
|
3
|
+
export declare const DEFAULT_TEXT_VARIANT = TextVariant.BodyMd;
|
|
4
|
+
export declare const DEFAULT_TEXT_COLOR = TextColor.TextDefault;
|
|
5
|
+
export declare const MAPPING_FONTWEIGHT_TO_FONTFAMILYSTYLECLASSNAME: {
|
|
6
|
+
[key in FontWeight]: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SAMPLE_TEXT_PROPS: TextProps;
|
|
9
|
+
//# sourceMappingURL=Text.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.constants.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGlE,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AAGxD,eAAO,MAAM,8CAA8C,EAAE;KAC1D,GAAG,IAAI,UAAU,GAAG,MAAM;CAK5B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,SAI/B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable import/prefer-default-export */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SAMPLE_TEXT_PROPS = exports.MAPPING_FONTWEIGHT_TO_FONTFAMILYSTYLECLASSNAME = exports.DEFAULT_TEXT_COLOR = exports.DEFAULT_TEXT_VARIANT = void 0;
|
|
5
|
+
const Text_types_1 = require("./Text.types");
|
|
6
|
+
// Defaults
|
|
7
|
+
exports.DEFAULT_TEXT_VARIANT = Text_types_1.TextVariant.BodyMd;
|
|
8
|
+
exports.DEFAULT_TEXT_COLOR = Text_types_1.TextColor.TextDefault;
|
|
9
|
+
// Mappings
|
|
10
|
+
exports.MAPPING_FONTWEIGHT_TO_FONTFAMILYSTYLECLASSNAME = {
|
|
11
|
+
[Text_types_1.FontWeight.Normal]: '',
|
|
12
|
+
[Text_types_1.FontWeight.Medium]: '-medium',
|
|
13
|
+
[Text_types_1.FontWeight.Bold]: '-bold',
|
|
14
|
+
};
|
|
15
|
+
// Sample consts
|
|
16
|
+
exports.SAMPLE_TEXT_PROPS = {
|
|
17
|
+
variant: exports.DEFAULT_TEXT_VARIANT,
|
|
18
|
+
children: 'Sample Text',
|
|
19
|
+
color: exports.DEFAULT_TEXT_COLOR,
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=Text.constants.js.map
|