@pagopa/io-app-design-system 3.1.0 → 4.0.0
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/lib/commonjs/components/alert/Alert.js +1 -2
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js +2 -2
- package/lib/commonjs/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/commonjs/components/banner/Banner.js +1 -1
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -2
- package/lib/commonjs/components/buttons/ButtonLink.js +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -3
- package/lib/commonjs/components/featureInfo/FeatureInfo.js +3 -2
- package/lib/commonjs/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderFirstLevel.js +1 -0
- package/lib/commonjs/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js +1 -1
- package/lib/commonjs/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js +2 -2
- package/lib/commonjs/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js +1 -1
- package/lib/commonjs/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +2 -2
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +7 -7
- package/lib/commonjs/components/modules/ModuleAttachment.js +1 -1
- package/lib/commonjs/components/modules/ModuleAttachment.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCheckout.js +1 -1
- package/lib/commonjs/components/modules/ModuleCheckout.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleCredential.js +1 -1
- package/lib/commonjs/components/modules/ModuleCredential.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleNavigation.js +3 -2
- package/lib/commonjs/components/modules/ModuleNavigation.js.map +1 -1
- package/lib/commonjs/components/modules/ModulePaymentNotice.js +2 -2
- package/lib/commonjs/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/commonjs/components/modules/ModuleSummary.js +1 -1
- package/lib/commonjs/components/modules/ModuleSummary.js.map +1 -1
- package/lib/commonjs/components/otpInput/BoxedInput.js +4 -6
- package/lib/commonjs/components/otpInput/BoxedInput.js.map +1 -1
- package/lib/commonjs/components/otpInput/OTPInput.js +5 -4
- package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +1 -1
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +2 -2
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/typography/{LabelSmall.js → BodySmall.js} +8 -10
- package/lib/commonjs/components/typography/BodySmall.js.map +1 -0
- package/lib/commonjs/components/typography/ButtonText.js +1 -3
- package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +3 -6
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +4 -5
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/__test__/__snapshots__/typography.test.tsx.snap +118 -161
- package/lib/commonjs/components/typography/__test__/typography.test.js +6 -18
- package/lib/commonjs/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +28 -72
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/module/components/alert/Alert.js +2 -3
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/alert/AlertEdgeToEdge.js +2 -2
- package/lib/module/components/alert/AlertEdgeToEdge.js.map +1 -1
- package/lib/module/components/banner/Banner.js +2 -2
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -2
- package/lib/module/components/buttons/ButtonLink.js +1 -1
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +1 -1
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -3
- package/lib/module/components/featureInfo/FeatureInfo.js +4 -3
- package/lib/module/components/featureInfo/FeatureInfo.js.map +1 -1
- package/lib/module/components/layout/HeaderFirstLevel.js +1 -0
- package/lib/module/components/layout/HeaderFirstLevel.js.map +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js +2 -2
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfo.js +2 -2
- package/lib/module/components/listitems/ListItemInfo.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +2 -2
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +2 -2
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +2 -2
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +2 -2
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadioWithAmount.js +3 -3
- package/lib/module/components/listitems/ListItemRadioWithAmount.js.map +1 -1
- package/lib/module/components/listitems/ListItemSwitch.js +2 -2
- package/lib/module/components/listitems/ListItemSwitch.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +3 -3
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +7 -7
- package/lib/module/components/modules/ModuleAttachment.js +2 -2
- package/lib/module/components/modules/ModuleAttachment.js.map +1 -1
- package/lib/module/components/modules/ModuleCheckout.js +2 -2
- package/lib/module/components/modules/ModuleCheckout.js.map +1 -1
- package/lib/module/components/modules/ModuleCredential.js +2 -2
- package/lib/module/components/modules/ModuleCredential.js.map +1 -1
- package/lib/module/components/modules/ModuleNavigation.js +4 -3
- package/lib/module/components/modules/ModuleNavigation.js.map +1 -1
- package/lib/module/components/modules/ModulePaymentNotice.js +3 -3
- package/lib/module/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/module/components/modules/ModuleSummary.js +2 -2
- package/lib/module/components/modules/ModuleSummary.js.map +1 -1
- package/lib/module/components/otpInput/BoxedInput.js +5 -7
- package/lib/module/components/otpInput/BoxedInput.js.map +1 -1
- package/lib/module/components/otpInput/OTPInput.js +5 -4
- package/lib/module/components/otpInput/OTPInput.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +2 -2
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +3 -3
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/typography/{LabelSmall.js → BodySmall.js} +6 -8
- package/lib/module/components/typography/BodySmall.js.map +1 -0
- package/lib/module/components/typography/ButtonText.js +1 -3
- package/lib/module/components/typography/ButtonText.js.map +1 -1
- package/lib/module/components/typography/H3.js +3 -6
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/H6.js +4 -5
- package/lib/module/components/typography/H6.js.map +1 -1
- package/lib/module/components/typography/__test__/__snapshots__/typography.test.tsx.snap +118 -161
- package/lib/module/components/typography/__test__/typography.test.js +6 -18
- package/lib/module/components/typography/__test__/typography.test.js.map +1 -1
- package/lib/module/components/typography/index.js +6 -10
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts +1 -1
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/featureInfo/FeatureInfo.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderFirstLevel.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemSwitch.d.ts.map +1 -1
- package/lib/typescript/components/modules/ModuleNavigation.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/BoxedInput.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/OTPInput.d.ts.map +1 -1
- package/lib/typescript/components/typography/Body.d.ts +1 -1
- package/lib/typescript/components/typography/Body.d.ts.map +1 -1
- package/lib/typescript/components/typography/BodySmall.d.ts +13 -0
- package/lib/typescript/components/typography/BodySmall.d.ts.map +1 -0
- package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
- package/lib/typescript/components/typography/H3.d.ts +2 -0
- package/lib/typescript/components/typography/H3.d.ts.map +1 -1
- package/lib/typescript/components/typography/H6.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelMini.d.ts +1 -1
- package/lib/typescript/components/typography/LabelMini.d.ts.map +1 -1
- package/lib/typescript/components/typography/index.d.ts +6 -10
- package/lib/typescript/components/typography/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/alert/Alert.tsx +3 -4
- package/src/components/alert/AlertEdgeToEdge.tsx +3 -3
- package/src/components/banner/Banner.tsx +7 -5
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -2
- package/src/components/buttons/ButtonLink.tsx +1 -1
- package/src/components/buttons/ButtonOutline.tsx +1 -1
- package/src/components/buttons/__test__/__snapshots__/button.test.tsx.snap +3 -3
- package/src/components/featureInfo/FeatureInfo.tsx +6 -6
- package/src/components/layout/HeaderFirstLevel.tsx +1 -0
- package/src/components/listitems/ListItemCheckbox.tsx +3 -3
- package/src/components/listitems/ListItemInfo.tsx +3 -3
- package/src/components/listitems/ListItemInfoCopy.tsx +3 -3
- package/src/components/listitems/ListItemNav.tsx +3 -3
- package/src/components/listitems/ListItemNavAlert.tsx +3 -3
- package/src/components/listitems/ListItemRadio.tsx +3 -3
- package/src/components/listitems/ListItemRadioWithAmount.tsx +5 -5
- package/src/components/listitems/ListItemSwitch.tsx +4 -4
- package/src/components/listitems/ListItemTransaction.tsx +5 -5
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +7 -7
- package/src/components/modules/ModuleAttachment.tsx +3 -3
- package/src/components/modules/ModuleCheckout.tsx +3 -3
- package/src/components/modules/ModuleCredential.tsx +3 -3
- package/src/components/modules/ModuleNavigation.tsx +6 -4
- package/src/components/modules/ModulePaymentNotice.tsx +5 -5
- package/src/components/modules/ModuleSummary.tsx +3 -3
- package/src/components/otpInput/BoxedInput.tsx +6 -5
- package/src/components/otpInput/OTPInput.tsx +23 -8
- package/src/components/tabs/TabItem.tsx +3 -3
- package/src/components/textInput/TextInputBase.tsx +5 -5
- package/src/components/typography/Body.tsx +1 -1
- package/src/components/typography/{LabelSmall.tsx → BodySmall.tsx} +7 -14
- package/src/components/typography/ButtonText.tsx +2 -4
- package/src/components/typography/H3.tsx +11 -8
- package/src/components/typography/H6.tsx +5 -6
- package/src/components/typography/LabelMini.tsx +1 -1
- package/src/components/typography/__test__/__snapshots__/typography.test.tsx.snap +118 -161
- package/src/components/typography/__test__/typography.test.tsx +8 -24
- package/src/components/typography/index.tsx +6 -10
- package/lib/commonjs/components/typography/BaseTypography.js +0 -52
- package/lib/commonjs/components/typography/BaseTypography.js.map +0 -1
- package/lib/commonjs/components/typography/Chip.js +0 -41
- package/lib/commonjs/components/typography/Chip.js.map +0 -1
- package/lib/commonjs/components/typography/Factory.js +0 -62
- package/lib/commonjs/components/typography/Factory.js.map +0 -1
- package/lib/commonjs/components/typography/Label.js +0 -51
- package/lib/commonjs/components/typography/Label.js.map +0 -1
- package/lib/commonjs/components/typography/LabelSmall.js.map +0 -1
- package/lib/module/components/typography/BaseTypography.js +0 -44
- package/lib/module/components/typography/BaseTypography.js.map +0 -1
- package/lib/module/components/typography/Chip.js +0 -32
- package/lib/module/components/typography/Chip.js.map +0 -1
- package/lib/module/components/typography/Factory.js +0 -55
- package/lib/module/components/typography/Factory.js.map +0 -1
- package/lib/module/components/typography/Label.js +0 -42
- package/lib/module/components/typography/Label.js.map +0 -1
- package/lib/module/components/typography/LabelSmall.js.map +0 -1
- package/lib/typescript/components/typography/BaseTypography.d.ts +0 -29
- package/lib/typescript/components/typography/BaseTypography.d.ts.map +0 -1
- package/lib/typescript/components/typography/Chip.d.ts +0 -13
- package/lib/typescript/components/typography/Chip.d.ts.map +0 -1
- package/lib/typescript/components/typography/Factory.d.ts +0 -43
- package/lib/typescript/components/typography/Factory.d.ts.map +0 -1
- package/lib/typescript/components/typography/Label.d.ts +0 -13
- package/lib/typescript/components/typography/Label.d.ts.map +0 -1
- package/lib/typescript/components/typography/LabelSmall.d.ts +0 -13
- package/lib/typescript/components/typography/LabelSmall.d.ts.map +0 -1
- package/src/components/typography/BaseTypography.tsx +0 -71
- package/src/components/typography/Chip.tsx +0 -33
- package/src/components/typography/Factory.tsx +0 -98
- package/src/components/typography/Label.tsx +0 -62
|
@@ -48,6 +48,121 @@ exports[`Test Typography Components BodyMonospace Snapshot 1`] = `
|
|
|
48
48
|
</Text>
|
|
49
49
|
`;
|
|
50
50
|
|
|
51
|
+
exports[`Test Typography Components BodySmall Snapshot 1`] = `
|
|
52
|
+
<Text
|
|
53
|
+
allowFontScaling={false}
|
|
54
|
+
dynamicTypeRamp="footnote"
|
|
55
|
+
maxFontSizeMultiplier={1.25}
|
|
56
|
+
style={
|
|
57
|
+
[
|
|
58
|
+
{},
|
|
59
|
+
{
|
|
60
|
+
"color": "#555C70",
|
|
61
|
+
"fontFamily": "Titillium Sans Pro",
|
|
62
|
+
"fontSize": 14,
|
|
63
|
+
"fontStyle": "normal",
|
|
64
|
+
"fontWeight": "400",
|
|
65
|
+
"lineHeight": 21,
|
|
66
|
+
},
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
>
|
|
70
|
+
Text
|
|
71
|
+
</Text>
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
exports[`Test Typography Components BodySmall Snapshot 2`] = `
|
|
75
|
+
<Text
|
|
76
|
+
allowFontScaling={false}
|
|
77
|
+
dynamicTypeRamp="footnote"
|
|
78
|
+
maxFontSizeMultiplier={1.25}
|
|
79
|
+
style={
|
|
80
|
+
[
|
|
81
|
+
{},
|
|
82
|
+
{
|
|
83
|
+
"color": "#0073E6",
|
|
84
|
+
"fontFamily": "Titillium Sans Pro",
|
|
85
|
+
"fontSize": 14,
|
|
86
|
+
"fontStyle": "normal",
|
|
87
|
+
"fontWeight": "400",
|
|
88
|
+
"lineHeight": 21,
|
|
89
|
+
},
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
>
|
|
93
|
+
Text
|
|
94
|
+
</Text>
|
|
95
|
+
`;
|
|
96
|
+
|
|
97
|
+
exports[`Test Typography Components BodySmall Snapshot 3`] = `
|
|
98
|
+
<Text
|
|
99
|
+
allowFontScaling={false}
|
|
100
|
+
dynamicTypeRamp="footnote"
|
|
101
|
+
maxFontSizeMultiplier={1.25}
|
|
102
|
+
style={
|
|
103
|
+
[
|
|
104
|
+
{},
|
|
105
|
+
{
|
|
106
|
+
"color": "#475A6D",
|
|
107
|
+
"fontFamily": "Titillium Sans Pro",
|
|
108
|
+
"fontSize": 14,
|
|
109
|
+
"fontStyle": "normal",
|
|
110
|
+
"fontWeight": "400",
|
|
111
|
+
"lineHeight": 21,
|
|
112
|
+
},
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
>
|
|
116
|
+
Text
|
|
117
|
+
</Text>
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
exports[`Test Typography Components BodySmall Snapshot 4`] = `
|
|
121
|
+
<Text
|
|
122
|
+
allowFontScaling={false}
|
|
123
|
+
dynamicTypeRamp="footnote"
|
|
124
|
+
maxFontSizeMultiplier={1.25}
|
|
125
|
+
style={
|
|
126
|
+
[
|
|
127
|
+
{},
|
|
128
|
+
{
|
|
129
|
+
"color": "#C02927",
|
|
130
|
+
"fontFamily": "Titillium Sans Pro",
|
|
131
|
+
"fontSize": 14,
|
|
132
|
+
"fontStyle": "normal",
|
|
133
|
+
"fontWeight": "400",
|
|
134
|
+
"lineHeight": 21,
|
|
135
|
+
},
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
>
|
|
139
|
+
Text
|
|
140
|
+
</Text>
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
exports[`Test Typography Components BodySmall Snapshot 5`] = `
|
|
144
|
+
<Text
|
|
145
|
+
allowFontScaling={false}
|
|
146
|
+
dynamicTypeRamp="footnote"
|
|
147
|
+
maxFontSizeMultiplier={1.25}
|
|
148
|
+
style={
|
|
149
|
+
[
|
|
150
|
+
{},
|
|
151
|
+
{
|
|
152
|
+
"color": "#FFFFFF",
|
|
153
|
+
"fontFamily": "Titillium Sans Pro",
|
|
154
|
+
"fontSize": 14,
|
|
155
|
+
"fontStyle": "normal",
|
|
156
|
+
"fontWeight": "400",
|
|
157
|
+
"lineHeight": 21,
|
|
158
|
+
},
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
>
|
|
162
|
+
Text
|
|
163
|
+
</Text>
|
|
164
|
+
`;
|
|
165
|
+
|
|
51
166
|
exports[`Test Typography Components CTA Snapshot 1`] = `
|
|
52
167
|
<Text
|
|
53
168
|
allowFontScaling={false}
|
|
@@ -60,7 +175,7 @@ exports[`Test Typography Components CTA Snapshot 1`] = `
|
|
|
60
175
|
"fontFamily": "Titillium Sans Pro",
|
|
61
176
|
"fontSize": 16,
|
|
62
177
|
"fontStyle": "normal",
|
|
63
|
-
"fontWeight": "
|
|
178
|
+
"fontWeight": "600",
|
|
64
179
|
"lineHeight": 20,
|
|
65
180
|
},
|
|
66
181
|
]
|
|
@@ -450,169 +565,11 @@ exports[`Test Typography Components H6 Snapshot 1`] = `
|
|
|
450
565
|
</Text>
|
|
451
566
|
`;
|
|
452
567
|
|
|
453
|
-
exports[`Test Typography Components Label Snapshot 1`] = `
|
|
454
|
-
<Text
|
|
455
|
-
allowFontScaling={false}
|
|
456
|
-
maxFontSizeMultiplier={1.25}
|
|
457
|
-
style={
|
|
458
|
-
[
|
|
459
|
-
{},
|
|
460
|
-
{
|
|
461
|
-
"color": "#555C70",
|
|
462
|
-
"fontFamily": "Titillium Sans Pro",
|
|
463
|
-
"fontSize": 16,
|
|
464
|
-
"fontStyle": "normal",
|
|
465
|
-
"fontWeight": "600",
|
|
466
|
-
"lineHeight": 24,
|
|
467
|
-
},
|
|
468
|
-
]
|
|
469
|
-
}
|
|
470
|
-
>
|
|
471
|
-
Text
|
|
472
|
-
</Text>
|
|
473
|
-
`;
|
|
474
|
-
|
|
475
|
-
exports[`Test Typography Components Label Snapshot 2`] = `
|
|
476
|
-
<Text
|
|
477
|
-
allowFontScaling={false}
|
|
478
|
-
maxFontSizeMultiplier={1.25}
|
|
479
|
-
style={
|
|
480
|
-
[
|
|
481
|
-
{},
|
|
482
|
-
{
|
|
483
|
-
"color": "#0E0F13",
|
|
484
|
-
"fontFamily": "Titillium Sans Pro",
|
|
485
|
-
"fontSize": 16,
|
|
486
|
-
"fontStyle": "normal",
|
|
487
|
-
"fontWeight": "600",
|
|
488
|
-
"lineHeight": 24,
|
|
489
|
-
},
|
|
490
|
-
]
|
|
491
|
-
}
|
|
492
|
-
>
|
|
493
|
-
Text
|
|
494
|
-
</Text>
|
|
495
|
-
`;
|
|
496
|
-
|
|
497
|
-
exports[`Test Typography Components LabelSmall Snapshot 1`] = `
|
|
498
|
-
<Text
|
|
499
|
-
allowFontScaling={false}
|
|
500
|
-
dynamicTypeRamp="footnote"
|
|
501
|
-
maxFontSizeMultiplier={1.25}
|
|
502
|
-
style={
|
|
503
|
-
[
|
|
504
|
-
{},
|
|
505
|
-
{
|
|
506
|
-
"color": "#555C70",
|
|
507
|
-
"fontFamily": "Titillium Sans Pro",
|
|
508
|
-
"fontSize": 14,
|
|
509
|
-
"fontStyle": "normal",
|
|
510
|
-
"fontWeight": "600",
|
|
511
|
-
"lineHeight": 21,
|
|
512
|
-
},
|
|
513
|
-
]
|
|
514
|
-
}
|
|
515
|
-
>
|
|
516
|
-
Text
|
|
517
|
-
</Text>
|
|
518
|
-
`;
|
|
519
|
-
|
|
520
|
-
exports[`Test Typography Components LabelSmall Snapshot 2`] = `
|
|
521
|
-
<Text
|
|
522
|
-
allowFontScaling={false}
|
|
523
|
-
dynamicTypeRamp="footnote"
|
|
524
|
-
maxFontSizeMultiplier={1.25}
|
|
525
|
-
style={
|
|
526
|
-
[
|
|
527
|
-
{},
|
|
528
|
-
{
|
|
529
|
-
"color": "#0073E6",
|
|
530
|
-
"fontFamily": "Titillium Sans Pro",
|
|
531
|
-
"fontSize": 14,
|
|
532
|
-
"fontStyle": "normal",
|
|
533
|
-
"fontWeight": "600",
|
|
534
|
-
"lineHeight": 21,
|
|
535
|
-
},
|
|
536
|
-
]
|
|
537
|
-
}
|
|
538
|
-
>
|
|
539
|
-
Text
|
|
540
|
-
</Text>
|
|
541
|
-
`;
|
|
542
|
-
|
|
543
|
-
exports[`Test Typography Components LabelSmall Snapshot 3`] = `
|
|
544
|
-
<Text
|
|
545
|
-
allowFontScaling={false}
|
|
546
|
-
dynamicTypeRamp="footnote"
|
|
547
|
-
maxFontSizeMultiplier={1.25}
|
|
548
|
-
style={
|
|
549
|
-
[
|
|
550
|
-
{},
|
|
551
|
-
{
|
|
552
|
-
"color": "#475A6D",
|
|
553
|
-
"fontFamily": "Titillium Sans Pro",
|
|
554
|
-
"fontSize": 14,
|
|
555
|
-
"fontStyle": "normal",
|
|
556
|
-
"fontWeight": "600",
|
|
557
|
-
"lineHeight": 21,
|
|
558
|
-
},
|
|
559
|
-
]
|
|
560
|
-
}
|
|
561
|
-
>
|
|
562
|
-
Text
|
|
563
|
-
</Text>
|
|
564
|
-
`;
|
|
565
|
-
|
|
566
|
-
exports[`Test Typography Components LabelSmall Snapshot 4`] = `
|
|
567
|
-
<Text
|
|
568
|
-
allowFontScaling={false}
|
|
569
|
-
dynamicTypeRamp="footnote"
|
|
570
|
-
maxFontSizeMultiplier={1.25}
|
|
571
|
-
style={
|
|
572
|
-
[
|
|
573
|
-
{},
|
|
574
|
-
{
|
|
575
|
-
"color": "#C02927",
|
|
576
|
-
"fontFamily": "Titillium Sans Pro",
|
|
577
|
-
"fontSize": 14,
|
|
578
|
-
"fontStyle": "normal",
|
|
579
|
-
"fontWeight": "600",
|
|
580
|
-
"lineHeight": 21,
|
|
581
|
-
},
|
|
582
|
-
]
|
|
583
|
-
}
|
|
584
|
-
>
|
|
585
|
-
Text
|
|
586
|
-
</Text>
|
|
587
|
-
`;
|
|
588
|
-
|
|
589
|
-
exports[`Test Typography Components LabelSmall Snapshot 5`] = `
|
|
590
|
-
<Text
|
|
591
|
-
allowFontScaling={false}
|
|
592
|
-
dynamicTypeRamp="footnote"
|
|
593
|
-
maxFontSizeMultiplier={1.25}
|
|
594
|
-
style={
|
|
595
|
-
[
|
|
596
|
-
{},
|
|
597
|
-
{
|
|
598
|
-
"color": "#FFFFFF",
|
|
599
|
-
"fontFamily": "Titillium Sans Pro",
|
|
600
|
-
"fontSize": 14,
|
|
601
|
-
"fontStyle": "normal",
|
|
602
|
-
"fontWeight": "600",
|
|
603
|
-
"lineHeight": 21,
|
|
604
|
-
},
|
|
605
|
-
]
|
|
606
|
-
}
|
|
607
|
-
>
|
|
608
|
-
Text
|
|
609
|
-
</Text>
|
|
610
|
-
`;
|
|
611
|
-
|
|
612
568
|
exports[`Test Typography Components Link Snapshot 1`] = `
|
|
613
569
|
<Text
|
|
614
570
|
accessibilityRole="link"
|
|
615
571
|
allowFontScaling={false}
|
|
572
|
+
dynamicTypeRamp="body"
|
|
616
573
|
maxFontSizeMultiplier={1.25}
|
|
617
574
|
onPress={[Function]}
|
|
618
575
|
style={
|
|
@@ -625,7 +582,7 @@ exports[`Test Typography Components Link Snapshot 1`] = `
|
|
|
625
582
|
"fontFamily": "Titillium Sans Pro",
|
|
626
583
|
"fontSize": 16,
|
|
627
584
|
"fontStyle": "normal",
|
|
628
|
-
"fontWeight": "
|
|
585
|
+
"fontWeight": "400",
|
|
629
586
|
"lineHeight": 24,
|
|
630
587
|
},
|
|
631
588
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as TestRenderer from "react-test-renderer";
|
|
3
2
|
import { Alert } from "react-native";
|
|
3
|
+
import * as TestRenderer from "react-test-renderer";
|
|
4
4
|
import type { IOColors } from "../../../core/IOColors";
|
|
5
5
|
import { IOFontWeight } from "../../../utils/fonts";
|
|
6
6
|
import { Body } from "../Body";
|
|
@@ -12,8 +12,7 @@ import { H3 } from "../H3";
|
|
|
12
12
|
import { H4 } from "../H4";
|
|
13
13
|
import { H5 } from "../H5";
|
|
14
14
|
import { H6 } from "../H6";
|
|
15
|
-
import {
|
|
16
|
-
import { LabelSmall } from "../LabelSmall";
|
|
15
|
+
import { BodySmall } from "../BodySmall";
|
|
17
16
|
import { calculateWeightColor } from "../common";
|
|
18
17
|
|
|
19
18
|
describe("Test Typography Components", () => {
|
|
@@ -85,13 +84,13 @@ describe("Test Typography Components", () => {
|
|
|
85
84
|
const cta = TestRenderer.create(<ButtonText>Text</ButtonText>).toJSON();
|
|
86
85
|
expect(cta).toMatchSnapshot();
|
|
87
86
|
});
|
|
88
|
-
it("
|
|
87
|
+
it("BodySmall Snapshot", () => {
|
|
89
88
|
const labelSmallDefault = TestRenderer.create(
|
|
90
|
-
<
|
|
89
|
+
<BodySmall>Text</BodySmall>
|
|
91
90
|
).toJSON();
|
|
92
91
|
expect(labelSmallDefault).toMatchSnapshot();
|
|
93
92
|
|
|
94
|
-
type BodyColors = React.ComponentProps<typeof
|
|
93
|
+
type BodyColors = React.ComponentProps<typeof BodySmall>["color"];
|
|
95
94
|
|
|
96
95
|
const allowedColors: ReadonlyArray<BodyColors> = [
|
|
97
96
|
"blue",
|
|
@@ -102,31 +101,16 @@ describe("Test Typography Components", () => {
|
|
|
102
101
|
|
|
103
102
|
allowedColors.map(color => {
|
|
104
103
|
const labelSmall = TestRenderer.create(
|
|
105
|
-
<
|
|
104
|
+
<BodySmall color={color}>Text</BodySmall>
|
|
106
105
|
).toJSON();
|
|
107
106
|
expect(labelSmall).toMatchSnapshot();
|
|
108
107
|
});
|
|
109
108
|
});
|
|
110
|
-
it("Label Snapshot", () => {
|
|
111
|
-
const labelDefault = TestRenderer.create(<Label>Text</Label>).toJSON();
|
|
112
|
-
expect(labelDefault).toMatchSnapshot();
|
|
113
|
-
|
|
114
|
-
type BodyColors = React.ComponentProps<typeof Label>["color"];
|
|
115
|
-
|
|
116
|
-
const allowedColors: ReadonlyArray<BodyColors> = ["black"];
|
|
117
|
-
|
|
118
|
-
allowedColors.map(color => {
|
|
119
|
-
const label = TestRenderer.create(
|
|
120
|
-
<Label color={color}>Text</Label>
|
|
121
|
-
).toJSON();
|
|
122
|
-
expect(label).toMatchSnapshot();
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
109
|
it("Link Snapshot", () => {
|
|
126
110
|
const link = TestRenderer.create(
|
|
127
|
-
<
|
|
111
|
+
<Body asLink onPress={() => Alert.alert("Pressed")}>
|
|
128
112
|
Text
|
|
129
|
-
</
|
|
113
|
+
</Body>
|
|
130
114
|
).toJSON();
|
|
131
115
|
expect(link).toMatchSnapshot();
|
|
132
116
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from "./BaseTypography";
|
|
2
|
-
export * from "./IOText";
|
|
3
1
|
export * from "./Body";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./Chip";
|
|
2
|
+
export * from "./BodyMonospace";
|
|
3
|
+
export * from "./BodySmall";
|
|
7
4
|
export * from "./ButtonText";
|
|
8
|
-
export * from "./
|
|
5
|
+
export * from "./Caption";
|
|
6
|
+
export * from "./common";
|
|
7
|
+
export * from "./ComposedBodyFromArray";
|
|
9
8
|
export * from "./H1";
|
|
10
9
|
export * from "./H2";
|
|
11
10
|
export * from "./H3";
|
|
@@ -13,11 +12,8 @@ export * from "./H4";
|
|
|
13
12
|
export * from "./H5";
|
|
14
13
|
export * from "./H6";
|
|
15
14
|
export * from "./Hero";
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./LabelSmall";
|
|
15
|
+
export * from "./IOText";
|
|
18
16
|
export * from "./LabelMini";
|
|
19
|
-
export * from "./BodyMonospace";
|
|
20
|
-
export * from "./common";
|
|
21
17
|
export * from "./markdown/MdH1";
|
|
22
18
|
export * from "./markdown/MdH2";
|
|
23
19
|
export * from "./markdown/MdH3";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BaseTypography = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _IOColors = require("../../core/IOColors");
|
|
10
|
-
var _fonts = require("../../utils/fonts");
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
-
/**
|
|
15
|
-
* The specific properties needed to calculate the font style using {@link makeFontStyleObject} (these information
|
|
16
|
-
* cannot be included in the default StyleProp<TextStyle>
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Decorate the function {@link makeFontStyleObject} with the additional color calculation.
|
|
21
|
-
* @param color A value key from {@link IOColors}, transformed here in {@link ColorValue}
|
|
22
|
-
* @param args the args of the function {@link makeFontStyleObject}
|
|
23
|
-
*/
|
|
24
|
-
const calculateTextStyle = (color, ...args) => ({
|
|
25
|
-
...(0, _fonts.makeFontStyleObject)(...args),
|
|
26
|
-
color: _IOColors.IOColors[color]
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* `BaseTypography` is the core Typography component used to render a text.
|
|
31
|
-
* It accepts all the default text style `StyleProp<TextStyle>` in addition with {@link BaseTypographyProps}
|
|
32
|
-
* used to calculate at runtime the platform-dependent styles.
|
|
33
|
-
* This component shouldn't be used in the application but only to compose others `Typography elements`.
|
|
34
|
-
* @param props
|
|
35
|
-
* @deprecated Use {@link IOText} instead
|
|
36
|
-
* @constructor
|
|
37
|
-
*/
|
|
38
|
-
const BaseTypography = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
39
|
-
const fontStyle = (0, _react.useMemo)(() => {
|
|
40
|
-
var _props$fontStyle, _props$fontStyle2;
|
|
41
|
-
return calculateTextStyle(props.color, (_props$fontStyle = props.fontStyle) === null || _props$fontStyle === void 0 ? void 0 : _props$fontStyle.fontSize, props.font, (_props$fontStyle2 = props.fontStyle) === null || _props$fontStyle2 === void 0 ? void 0 : _props$fontStyle2.lineHeight, props.weight, props.isItalic ? "italic" : "normal");
|
|
42
|
-
}, [props.color, props.fontStyle, props.font, props.weight, props.isItalic]);
|
|
43
|
-
const style = props.style ? [props.style, props.fontStyle, fontStyle] : [props.fontStyle, fontStyle];
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({
|
|
45
|
-
allowFontScaling: false
|
|
46
|
-
}, props, {
|
|
47
|
-
ref: ref,
|
|
48
|
-
style: style
|
|
49
|
-
}), props.children);
|
|
50
|
-
});
|
|
51
|
-
exports.BaseTypography = BaseTypography;
|
|
52
|
-
//# sourceMappingURL=BaseTypography.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_IOColors","_fonts","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","calculateTextStyle","color","args","makeFontStyleObject","IOColors","BaseTypography","React","forwardRef","props","ref","fontStyle","useMemo","_props$fontStyle","_props$fontStyle2","fontSize","font","lineHeight","weight","isItalic","style","createElement","Text","allowFontScaling","children","exports"],"sourceRoot":"../../../../src","sources":["components/typography/BaseTypography.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAK2B,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAN,wBAAAU,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA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AK,CAACS,MAAM,EACZT,KAAK,CAACU,QAAQ,GAAG,QAAQ,GAAG,QAC9B,CAAC;EAAA,GACH,CAACV,KAAK,CAACP,KAAK,EAAEO,KAAK,CAACE,SAAS,EAAEF,KAAK,CAACO,IAAI,EAAEP,KAAK,CAACS,MAAM,EAAET,KAAK,CAACU,QAAQ,CACzE,CAAC;EAED,MAAMC,KAAK,GAAGX,KAAK,CAACW,KAAK,GACrB,CAACX,KAAK,CAACW,KAAK,EAAEX,KAAK,CAACE,SAAS,EAAEA,SAAS,CAAC,GACzC,CAACF,KAAK,CAACE,SAAS,EAAEA,SAAS,CAAC;EAEhC,oBACE/C,MAAA,CAAAa,OAAA,CAAA4C,aAAA,CAACtD,YAAA,CAAAuD,IAAI,EAAA9B,QAAA;IAAC+B,gBAAgB,EAAE;EAAM,GAAKd,KAAK;IAAEC,GAAG,EAAEA,GAAI;IAACU,KAAK,EAAEA;EAAM,IAC9DX,KAAK,CAACe,QACH,CAAC;AAEX,CAAC,CAAC;AAACC,OAAA,CAAAnB,cAAA,GAAAA,cAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Chip = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _core = require("../../core");
|
|
9
|
-
var _IOText = require("./IOText");
|
|
10
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
-
const fontName = "Titillio";
|
|
14
|
-
// TODO: Remove this when legacy look is deprecated https://pagopa.atlassian.net/browse/IOPLT-153
|
|
15
|
-
const legacyFontName = "TitilliumSansPro";
|
|
16
|
-
/**
|
|
17
|
-
* `Chip` typographic style
|
|
18
|
-
*/
|
|
19
|
-
const Chip = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
20
|
-
color: customColor,
|
|
21
|
-
...props
|
|
22
|
-
}, ref) => {
|
|
23
|
-
const theme = (0, _core.useIOTheme)();
|
|
24
|
-
const {
|
|
25
|
-
isExperimental
|
|
26
|
-
} = (0, _core.useIOExperimentalDesign)();
|
|
27
|
-
const ChipProps = {
|
|
28
|
-
...props,
|
|
29
|
-
dynamicTypeRamp: "caption2",
|
|
30
|
-
// iOS only
|
|
31
|
-
font: isExperimental ? fontName : legacyFontName,
|
|
32
|
-
weight: "Regular",
|
|
33
|
-
size: 12,
|
|
34
|
-
color: customColor ?? theme["textBody-default"]
|
|
35
|
-
};
|
|
36
|
-
return /*#__PURE__*/_react.default.createElement(_IOText.IOText, _extends({
|
|
37
|
-
ref: ref
|
|
38
|
-
}, ChipProps), props.children);
|
|
39
|
-
});
|
|
40
|
-
exports.Chip = Chip;
|
|
41
|
-
//# sourceMappingURL=Chip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_core","_IOText","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","fontName","legacyFontName","Chip","forwardRef","color","customColor","props","ref","theme","useIOTheme","isExperimental","useIOExperimentalDesign","ChipProps","dynamicTypeRamp","font","weight","size","createElement","IOText","children","exports"],"sourceRoot":"../../../../src","sources":["components/typography/Chip.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAAsE,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA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AAGN,KAAK;IACRO,eAAe,EAAE,UAAU;IAAE;IAC7BC,IAAI,EAAEJ,cAAc,GAAGV,QAAQ,GAAGC,cAAc;IAChDc,MAAM,EAAE,SAAS;IACjBC,IAAI,EAAE,EAAE;IACRZ,KAAK,EAAEC,WAAW,IAAIG,KAAK,CAAC,kBAAkB;EAChD,CAAC;EAED,oBACE5C,MAAA,CAAAY,OAAA,CAAAyC,aAAA,CAACjD,OAAA,CAAAkD,MAAM,EAAA3B,QAAA;IAACgB,GAAG,EAAEA;EAAI,GAAKK,SAAS,GAC5BN,KAAK,CAACa,QACD,CAAC;AAEb,CACF,CAAC;AAACC,OAAA,CAAAlB,IAAA,GAAAA,IAAA"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useTypographyFactory = useTypographyFactory;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _BaseTypography = require("./BaseTypography");
|
|
9
|
-
var _common = require("./common");
|
|
10
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
-
/**
|
|
14
|
-
* Using the DefaultArgumentProps is possible to define a default fallback value for weight and color
|
|
15
|
-
* that will be used when the fields weight and color will be undefined.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Using the DefaultFactoryProps is possible to define a custom factory to calculate the default value for
|
|
20
|
-
* weight and color, thus allowing to implement more sophisticated strategies.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Only one type of default props strategy is allowed
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The factory props will include:
|
|
29
|
-
* - One of the two DefaultProps
|
|
30
|
-
* - The props of {@link BaseTypographyProps} without weight and color
|
|
31
|
-
* - The default {@link TypographyProps}
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Calculate if the props is of type {@link DefaultFactoryProps}
|
|
36
|
-
* @param props
|
|
37
|
-
*/
|
|
38
|
-
function isDefaultFactoryProps(props) {
|
|
39
|
-
return props.weightColorFactory !== undefined;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Build a {@link BaseTypography} component, calculating the default values for weight and color if undefined.
|
|
44
|
-
* The default values can be calculated specifying some fallback values using {@link DefaultArgumentProps}
|
|
45
|
-
* or with a factory function to define some custom behaviour using {@link DefaultFactoryProps}
|
|
46
|
-
* @param props
|
|
47
|
-
* @deprecated Use `IOText` instead. Or use the new typographic styles that use it.
|
|
48
|
-
*/
|
|
49
|
-
function useTypographyFactory(props, ref) {
|
|
50
|
-
// Use different strategy to calculate the default values, based on DefaultProps
|
|
51
|
-
const {
|
|
52
|
-
weight,
|
|
53
|
-
color
|
|
54
|
-
} = (0, _react.useMemo)(() => isDefaultFactoryProps(props) ? props.weightColorFactory(props.weight, props.color) : (0, _common.calculateWeightColor)(props.defaultWeight, props.defaultColor, props.weight, props.color), [props]);
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement(_BaseTypography.BaseTypography, _extends({
|
|
56
|
-
weight: weight,
|
|
57
|
-
color: color
|
|
58
|
-
}, props, {
|
|
59
|
-
ref: ref
|
|
60
|
-
}));
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=Factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_BaseTypography","_common","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","isDefaultFactoryProps","props","weightColorFactory","undefined","useTypographyFactory","ref","weight","color","useMemo","calculateWeightColor","defaultWeight","defaultColor","createElement","BaseTypography"],"sourceRoot":"../../../../src","sources":["components/typography/Factory.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAKA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAIkB,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,G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;AAElB;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAQA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA,SAASI,qBAAqBA,CAC5BC,KAE0D,EACM;EAChE,OACGA,KAAK,CACHC,kBAAkB,KAAKC,SAAS;AAEvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,oBAAoBA,CAIlCH,KAAqD,EACrDI,GAA8B,EAC9B;EACA;EACA,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAG,IAAAC,cAAO,EAC/B,MACER,qBAAqB,CAACC,KAAK,CAAC,GACxBA,KAAK,CAACC,kBAAkB,CAACD,KAAK,CAACK,MAAM,EAAEL,KAAK,CAACM,KAAK,CAAC,GACnD,IAAAE,4BAAoB,EAClBR,KAAK,CAACS,aAAa,EACnBT,KAAK,CAACU,YAAY,EAClBV,KAAK,CAACK,MAAM,EACZL,KAAK,CAACM,KACR,CAAC,EACP,CAACN,KAAK,CACR,CAAC;EAED,oBAAOrC,MAAA,CAAAY,OAAA,CAAAoC,aAAA,CAAC7C,eAAA,CAAA8C,cAAc,EAAAtB,QAAA;IAACe,MAAM,EAAEA,MAAO;IAACC,KAAK,EAAEA;EAAM,GAAKN,KAAK;IAAEI,GAAG,EAAEA;EAAI,EAAE,CAAC;AAC9E"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Label = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _core = require("../../core");
|
|
9
|
-
var _IOText = require("./IOText");
|
|
10
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
-
const fontName = "Titillio";
|
|
14
|
-
const fontWeight = "Semibold";
|
|
15
|
-
const legacyFontName = "TitilliumSansPro";
|
|
16
|
-
const legacyFontWeight = "Semibold";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* `LabelSmall` typographic style
|
|
20
|
-
*/
|
|
21
|
-
const Label = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
22
|
-
weight: customWeight,
|
|
23
|
-
color: customColor,
|
|
24
|
-
asLink,
|
|
25
|
-
...props
|
|
26
|
-
}, ref) => {
|
|
27
|
-
const theme = (0, _core.useIOTheme)();
|
|
28
|
-
const {
|
|
29
|
-
isExperimental
|
|
30
|
-
} = (0, _core.useIOExperimentalDesign)();
|
|
31
|
-
const defaultColor = asLink ? theme["interactiveElem-default"] : theme["textBody-tertiary"];
|
|
32
|
-
const LabelProps = {
|
|
33
|
-
...props,
|
|
34
|
-
font: isExperimental ? fontName : legacyFontName,
|
|
35
|
-
weight: customWeight ? customWeight : isExperimental ? fontWeight : legacyFontWeight,
|
|
36
|
-
size: 16,
|
|
37
|
-
lineHeight: 24,
|
|
38
|
-
color: customColor ?? defaultColor,
|
|
39
|
-
...(asLink ? {
|
|
40
|
-
accessibilityRole: "link",
|
|
41
|
-
textStyle: {
|
|
42
|
-
textDecorationLine: "underline"
|
|
43
|
-
}
|
|
44
|
-
} : {})
|
|
45
|
-
};
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_IOText.IOText, _extends({
|
|
47
|
-
ref: ref
|
|
48
|
-
}, LabelProps), props.children);
|
|
49
|
-
});
|
|
50
|
-
exports.Label = Label;
|
|
51
|
-
//# sourceMappingURL=Label.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_core","_IOText","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","fontName","fontWeight","legacyFontName","legacyFontWeight","Label","forwardRef","weight","customWeight","color","customColor","asLink","props","ref","theme","useIOTheme","isExperimental","useIOExperimentalDesign","defaultColor","LabelProps","font","size","lineHeight","accessibilityRole","textStyle","textDecorationLine","createElement","IOText","children","exports"],"sourceRoot":"../../../../src","sources":["components/typography/Label.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAKkB,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;A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ACC,OAAA,CAAAxB,KAAA,GAAAA,KAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_core","_IOText","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","fontName","fontWeight","legacyFontName","legacyFontWeight","LabelSmall","forwardRef","weight","customWeight","color","customColor","asLink","props","ref","theme","useIOTheme","isExperimental","useIOExperimentalDesign","defaultColor","LabelSmallProps","dynamicTypeRamp","font","size","lineHeight","accessibilityRole","textStyle","textDecorationLine","createElement","IOText","children","exports"],"sourceRoot":"../../../../src","sources":["components/typography/LabelSmall.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAKkB,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE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