@ornikar/bumper 3.1.0 → 3.2.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/CHANGELOG.md +9 -0
- package/dist/definitions/shared/storybook/StoryTitle.d.ts +1 -1
- package/dist/definitions/system/content/icon/Icon.d.ts +6 -1
- package/dist/definitions/system/content/icon/Icon.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/Typography.d.ts +10 -52
- package/dist/definitions/system/content/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/TypographyIcon.d.ts +5 -2
- package/dist/definitions/system/content/typography/TypographyIcon.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/TypographyLink.d.ts +1 -1
- package/dist/definitions/system/content/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/TypographyView.d.ts +2 -2
- package/dist/definitions/system/content/typography/TypographyView.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/utils/typographyContext.d.ts +8 -13
- package/dist/definitions/system/content/typography/utils/typographyContext.d.ts.map +1 -1
- package/dist/definitions/system/core/hooks/useProps.d.ts +3 -0
- package/dist/definitions/system/core/hooks/useProps.d.ts.map +1 -0
- package/dist/definitions/system/dataDisplays/Badge/Badge.d.ts.map +1 -1
- package/dist/definitions/system/types.d.ts +1 -2
- package/dist/definitions/system/types.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +69 -160
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +69 -160
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +71 -163
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +71 -163
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +72 -164
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +72 -164
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +69 -158
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +69 -158
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/.eslintrc.json +2 -2
- package/src/system/content/icon/Icon.tsx +10 -4
- package/src/system/content/icon/__snapshots_web__/Icon.features.stories.tsx.snap +11 -22
- package/src/system/content/typography/Typography.tsx +66 -75
- package/src/system/content/typography/TypographyIcon.tsx +14 -19
- package/src/system/content/typography/TypographyLink.features.stories.tsx +34 -8
- package/src/system/content/typography/TypographyLink.stories.tsx +2 -1
- package/src/system/content/typography/TypographyLink.tsx +2 -0
- package/src/system/content/typography/TypographyView.tsx +10 -17
- package/src/system/content/typography/__snapshots__/TypographyLink.features.stories.tsx.snap +164 -0
- package/src/system/content/typography/__snapshots_web__/Typography.features.stories.tsx.snap +40 -86
- package/src/system/content/typography/__snapshots_web__/Typography.stories.tsx.snap +0 -1
- package/src/system/content/typography/__snapshots_web__/TypographyIcon.features.stories.tsx.snap +42 -67
- package/src/system/content/typography/__snapshots_web__/TypographyIcon.stories.tsx.snap +1 -1
- package/src/system/content/typography/__snapshots_web__/TypographyLink.features.stories.tsx.snap +120 -20
- package/src/system/content/typography/__snapshots_web__/TypographyLink.stories.tsx.snap +1 -2
- package/src/system/content/typography/utils/typographyContext.ts +13 -25
- package/src/system/core/hooks/useProps.ts +9 -0
- package/src/system/core/primitives/ScrollView/__snapshots_web__/ScrollView.features.stories.tsx.snap +37 -74
- package/src/system/core/primitives/ScrollView/__snapshots_web__/ScrollView.stories.tsx.snap +10 -20
- package/src/system/core/primitives/__snapshots_web__/Center.features.stories.tsx.snap +5 -10
- package/src/system/core/primitives/__snapshots_web__/Center.stories.tsx.snap +1 -2
- package/src/system/core/primitives/__snapshots_web__/Pressable.features.stories.tsx.snap +9 -18
- package/src/system/core/primitives/__snapshots_web__/Pressable.stories.tsx.snap +0 -1
- package/src/system/core/primitives/__snapshots_web__/Stack.features.stories.tsx.snap +33 -66
- package/src/system/core/primitives/__snapshots_web__/Stack.stories.tsx.snap +3 -6
- package/src/system/core/primitives/__snapshots_web__/View.features.stories.tsx.snap +60 -120
- package/src/system/core/themes/light/__snapshots_web__/light.stories.tsx.snap +111 -222
- package/src/system/core/tokens/__snapshots_web__/breakpoints.stories.tsx.snap +11 -22
- package/src/system/core/tokens/__snapshots_web__/bumperIcon.stories.tsx.snap +7 -14
- package/src/system/core/tokens/__snapshots_web__/fonts.stories.tsx.snap +67 -134
- package/src/system/core/tokens/__snapshots_web__/radius.stories.tsx.snap +11 -22
- package/src/system/core/tokens/__snapshots_web__/size.stories.tsx.snap +25 -50
- package/src/system/core/tokens/__snapshots_web__/space.stories.tsx.snap +28 -56
- package/src/system/core/tokens/palettes/__snapshots_web__/deepPurpleColorPalette.stories.tsx.snap +133 -266
- package/src/system/dataDisplays/Badge/Badge.tsx +2 -1
- package/src/system/dataDisplays/Badge/__snapshots_web__/Badge.features.stories.tsx.snap +8 -16
- package/src/system/dataDisplays/Badge/__snapshots_web__/Badge.stories.tsx.snap +1 -2
- package/src/system/loading/loader/__snapshots_web__/Loader.features.stories.tsx.snap +2 -4
- package/src/system/types.ts +2 -1
- package/dist/definitions/system/content/typography/utils/getVariantAndWeightValues.d.ts +0 -10
- package/dist/definitions/system/content/typography/utils/getVariantAndWeightValues.d.ts.map +0 -1
- package/src/system/content/typography/utils/getVariantAndWeightValues.test.tsx +0 -178
- package/src/system/content/typography/utils/getVariantAndWeightValues.tsx +0 -40
package/src/system/content/typography/__snapshots_web__/TypographyIcon.features.stories.tsx.snap
CHANGED
|
@@ -21,11 +21,10 @@ exports[`Bumper/Content/TypographyIcon/Features DifferentSizes 1`] = `
|
|
|
21
21
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa1366020313"
|
|
22
22
|
>
|
|
23
23
|
<span
|
|
24
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-head100347201 _lh-f-lineHeigh1544154440 _ls-f-letterSpa1195674547
|
|
25
|
-
data-disable-theme="true"
|
|
24
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-head100347201 _lh-f-lineHeigh1544154440 _ls-f-letterSpa1195674547 _fw-f-weight-se1074390495 _col-content--ac3049896"
|
|
26
25
|
>
|
|
27
26
|
<div
|
|
28
|
-
class="
|
|
27
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
29
28
|
>
|
|
30
29
|
<div
|
|
31
30
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282964 _height-t-bumperIco1504282964"
|
|
@@ -39,11 +38,10 @@ exports[`Bumper/Content/TypographyIcon/Features DifferentSizes 1`] = `
|
|
|
39
38
|
Large heading with size 32 icon
|
|
40
39
|
</span>
|
|
41
40
|
<span
|
|
42
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
43
|
-
data-disable-theme="true"
|
|
41
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--ac3049896"
|
|
44
42
|
>
|
|
45
43
|
<div
|
|
46
|
-
class="
|
|
44
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
47
45
|
>
|
|
48
46
|
<div
|
|
49
47
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -57,11 +55,10 @@ exports[`Bumper/Content/TypographyIcon/Features DifferentSizes 1`] = `
|
|
|
57
55
|
Body text with size 20 icon
|
|
58
56
|
</span>
|
|
59
57
|
<span
|
|
60
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
61
|
-
data-disable-theme="true"
|
|
58
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ac3049896"
|
|
62
59
|
>
|
|
63
60
|
<div
|
|
64
|
-
class="
|
|
61
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
65
62
|
>
|
|
66
63
|
<div
|
|
67
64
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282971 _height-t-bumperIco1504282971"
|
|
@@ -106,17 +103,15 @@ exports[`Bumper/Content/TypographyIcon/Features InheritFromTypography 1`] = `
|
|
|
106
103
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166"
|
|
107
104
|
>
|
|
108
105
|
<span
|
|
109
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
110
|
-
data-disable-theme="true"
|
|
106
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
111
107
|
>
|
|
112
108
|
Icon inherits accent color from Typography
|
|
113
109
|
</span>
|
|
114
110
|
<span
|
|
115
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
116
|
-
data-disable-theme="true"
|
|
111
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--ac3049896"
|
|
117
112
|
>
|
|
118
113
|
<div
|
|
119
|
-
class="
|
|
114
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
120
115
|
>
|
|
121
116
|
<div
|
|
122
117
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -134,17 +129,15 @@ exports[`Bumper/Content/TypographyIcon/Features InheritFromTypography 1`] = `
|
|
|
134
129
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166"
|
|
135
130
|
>
|
|
136
131
|
<span
|
|
137
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
138
|
-
data-disable-theme="true"
|
|
132
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
139
133
|
>
|
|
140
134
|
Icon inherits success color from Typography
|
|
141
135
|
</span>
|
|
142
136
|
<span
|
|
143
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
144
|
-
data-disable-theme="true"
|
|
137
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--su94478629"
|
|
145
138
|
>
|
|
146
139
|
<div
|
|
147
|
-
class="
|
|
140
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
148
141
|
>
|
|
149
142
|
<div
|
|
150
143
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -162,17 +155,15 @@ exports[`Bumper/Content/TypographyIcon/Features InheritFromTypography 1`] = `
|
|
|
162
155
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166"
|
|
163
156
|
>
|
|
164
157
|
<span
|
|
165
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
166
|
-
data-disable-theme="true"
|
|
158
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
167
159
|
>
|
|
168
160
|
Icon inherits danger color from Typography
|
|
169
161
|
</span>
|
|
170
162
|
<span
|
|
171
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
172
|
-
data-disable-theme="true"
|
|
163
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--da3379238"
|
|
173
164
|
>
|
|
174
165
|
<div
|
|
175
|
-
class="
|
|
166
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
176
167
|
>
|
|
177
168
|
<div
|
|
178
169
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -190,17 +181,15 @@ exports[`Bumper/Content/TypographyIcon/Features InheritFromTypography 1`] = `
|
|
|
190
181
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166"
|
|
191
182
|
>
|
|
192
183
|
<span
|
|
193
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
194
|
-
data-disable-theme="true"
|
|
184
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
195
185
|
>
|
|
196
186
|
Icon inherits warning color from Typography
|
|
197
187
|
</span>
|
|
198
188
|
<span
|
|
199
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
200
|
-
data-disable-theme="true"
|
|
189
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--wa108662822"
|
|
201
190
|
>
|
|
202
191
|
<div
|
|
203
|
-
class="
|
|
192
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
204
193
|
>
|
|
205
194
|
<div
|
|
206
195
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -246,17 +235,15 @@ exports[`Bumper/Content/TypographyIcon/Features NestedTypographyInheritance 1`]
|
|
|
246
235
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166"
|
|
247
236
|
>
|
|
248
237
|
<span
|
|
249
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
250
|
-
data-disable-theme="true"
|
|
238
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
251
239
|
>
|
|
252
240
|
Nested Typography components - icon inherits from parent
|
|
253
241
|
</span>
|
|
254
242
|
<span
|
|
255
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
256
|
-
data-disable-theme="true"
|
|
243
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1503 _lh-f-lineHeigh201793146 _ls-f-letterSpa1099960303 _fw-f-weight-re98715119 _col-content--ac3049896"
|
|
257
244
|
>
|
|
258
245
|
<div
|
|
259
|
-
class="
|
|
246
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
260
247
|
>
|
|
261
248
|
<div
|
|
262
249
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -269,11 +256,10 @@ exports[`Bumper/Content/TypographyIcon/Features NestedTypographyInheritance 1`]
|
|
|
269
256
|
</div>
|
|
270
257
|
Parent text with icon
|
|
271
258
|
<span
|
|
272
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
273
|
-
data-disable-theme="true"
|
|
259
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--ac3049896 _tt-inherit"
|
|
274
260
|
>
|
|
275
261
|
<div
|
|
276
|
-
class="
|
|
262
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
277
263
|
>
|
|
278
264
|
<div
|
|
279
265
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282971 _height-t-bumperIco1504282971"
|
|
@@ -292,17 +278,15 @@ exports[`Bumper/Content/TypographyIcon/Features NestedTypographyInheritance 1`]
|
|
|
292
278
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166"
|
|
293
279
|
>
|
|
294
280
|
<span
|
|
295
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
296
|
-
data-disable-theme="true"
|
|
281
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
297
282
|
>
|
|
298
283
|
Nested with override - child overrides parent color
|
|
299
284
|
</span>
|
|
300
285
|
<span
|
|
301
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
302
|
-
data-disable-theme="true"
|
|
286
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1503 _lh-f-lineHeigh201793146 _ls-f-letterSpa1099960303 _fw-f-weight-re98715119 _col-content--ac3049896"
|
|
303
287
|
>
|
|
304
288
|
<div
|
|
305
|
-
class="
|
|
289
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
306
290
|
>
|
|
307
291
|
<div
|
|
308
292
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -315,11 +299,10 @@ exports[`Bumper/Content/TypographyIcon/Features NestedTypographyInheritance 1`]
|
|
|
315
299
|
</div>
|
|
316
300
|
Parent accent color
|
|
317
301
|
<span
|
|
318
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
319
|
-
data-disable-theme="true"
|
|
302
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _tt-inherit _col-content--su94478629"
|
|
320
303
|
>
|
|
321
304
|
<div
|
|
322
|
-
class="
|
|
305
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
323
306
|
>
|
|
324
307
|
<div
|
|
325
308
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282971 _height-t-bumperIco1504282971"
|
|
@@ -366,17 +349,15 @@ exports[`Bumper/Content/TypographyIcon/Features OverrideInheritedColor 1`] = `
|
|
|
366
349
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166"
|
|
367
350
|
>
|
|
368
351
|
<span
|
|
369
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
370
|
-
data-disable-theme="true"
|
|
352
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
371
353
|
>
|
|
372
354
|
Typography is accent, but icon explicitly uses success color
|
|
373
355
|
</span>
|
|
374
356
|
<span
|
|
375
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
376
|
-
data-disable-theme="true"
|
|
357
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--ac3049896"
|
|
377
358
|
>
|
|
378
359
|
<div
|
|
379
|
-
class="
|
|
360
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
380
361
|
>
|
|
381
362
|
<div
|
|
382
363
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -394,17 +375,15 @@ exports[`Bumper/Content/TypographyIcon/Features OverrideInheritedColor 1`] = `
|
|
|
394
375
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166"
|
|
395
376
|
>
|
|
396
377
|
<span
|
|
397
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
398
|
-
data-disable-theme="true"
|
|
378
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
399
379
|
>
|
|
400
380
|
Typography is success, but icon explicitly uses danger color
|
|
401
381
|
</span>
|
|
402
382
|
<span
|
|
403
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
404
|
-
data-disable-theme="true"
|
|
383
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--su94478629"
|
|
405
384
|
>
|
|
406
385
|
<div
|
|
407
|
-
class="
|
|
386
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
408
387
|
>
|
|
409
388
|
<div
|
|
410
389
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
|
@@ -450,7 +429,7 @@ exports[`Bumper/Content/TypographyIcon/Features WithExplicitColor 1`] = `
|
|
|
450
429
|
class="is_VStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _alignItems-center _gap-t-space-spa94482166"
|
|
451
430
|
>
|
|
452
431
|
<div
|
|
453
|
-
class="
|
|
432
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
454
433
|
>
|
|
455
434
|
<div
|
|
456
435
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282964 _height-t-bumperIco1504282964"
|
|
@@ -462,8 +441,7 @@ exports[`Bumper/Content/TypographyIcon/Features WithExplicitColor 1`] = `
|
|
|
462
441
|
</div>
|
|
463
442
|
</div>
|
|
464
443
|
<span
|
|
465
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
466
|
-
data-disable-theme="true"
|
|
444
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body47080 _lh-f-lineHeigh1960620717 _ls-f-letterSpa260968488 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
467
445
|
>
|
|
468
446
|
Explicit accent
|
|
469
447
|
</span>
|
|
@@ -472,7 +450,7 @@ exports[`Bumper/Content/TypographyIcon/Features WithExplicitColor 1`] = `
|
|
|
472
450
|
class="is_VStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _alignItems-center _gap-t-space-spa94482166"
|
|
473
451
|
>
|
|
474
452
|
<div
|
|
475
|
-
class="
|
|
453
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
476
454
|
>
|
|
477
455
|
<div
|
|
478
456
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282964 _height-t-bumperIco1504282964"
|
|
@@ -484,8 +462,7 @@ exports[`Bumper/Content/TypographyIcon/Features WithExplicitColor 1`] = `
|
|
|
484
462
|
</div>
|
|
485
463
|
</div>
|
|
486
464
|
<span
|
|
487
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
488
|
-
data-disable-theme="true"
|
|
465
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body47080 _lh-f-lineHeigh1960620717 _ls-f-letterSpa260968488 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
489
466
|
>
|
|
490
467
|
Explicit success
|
|
491
468
|
</span>
|
|
@@ -494,7 +471,7 @@ exports[`Bumper/Content/TypographyIcon/Features WithExplicitColor 1`] = `
|
|
|
494
471
|
class="is_VStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _alignItems-center _gap-t-space-spa94482166"
|
|
495
472
|
>
|
|
496
473
|
<div
|
|
497
|
-
class="
|
|
474
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
498
475
|
>
|
|
499
476
|
<div
|
|
500
477
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282964 _height-t-bumperIco1504282964"
|
|
@@ -506,8 +483,7 @@ exports[`Bumper/Content/TypographyIcon/Features WithExplicitColor 1`] = `
|
|
|
506
483
|
</div>
|
|
507
484
|
</div>
|
|
508
485
|
<span
|
|
509
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
510
|
-
data-disable-theme="true"
|
|
486
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body47080 _lh-f-lineHeigh1960620717 _ls-f-letterSpa260968488 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
511
487
|
>
|
|
512
488
|
Explicit warning
|
|
513
489
|
</span>
|
|
@@ -516,7 +492,7 @@ exports[`Bumper/Content/TypographyIcon/Features WithExplicitColor 1`] = `
|
|
|
516
492
|
class="is_VStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _alignItems-center _gap-t-space-spa94482166"
|
|
517
493
|
>
|
|
518
494
|
<div
|
|
519
|
-
class="
|
|
495
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
520
496
|
>
|
|
521
497
|
<div
|
|
522
498
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282964 _height-t-bumperIco1504282964"
|
|
@@ -528,8 +504,7 @@ exports[`Bumper/Content/TypographyIcon/Features WithExplicitColor 1`] = `
|
|
|
528
504
|
</div>
|
|
529
505
|
</div>
|
|
530
506
|
<span
|
|
531
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family
|
|
532
|
-
data-disable-theme="true"
|
|
507
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body47080 _lh-f-lineHeigh1960620717 _ls-f-letterSpa260968488 _fw-f-weight-re98715119 _col-content--ba1918259606"
|
|
533
508
|
>
|
|
534
509
|
Explicit danger
|
|
535
510
|
</span>
|
|
@@ -18,7 +18,7 @@ exports[`Bumper/Content/TypographyIcon Default 1`] = `
|
|
|
18
18
|
style="display: contents;"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="
|
|
21
|
+
class="is_TypographyViewInternal _dsp-_platformweb_inline-flex _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0"
|
|
22
22
|
>
|
|
23
23
|
<div
|
|
24
24
|
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-bumperIco1504282965 _height-t-bumperIco1504282965"
|
package/src/system/content/typography/__snapshots_web__/TypographyLink.features.stories.tsx.snap
CHANGED
|
@@ -18,8 +18,7 @@ exports[`Bumper/Content/TypographyLink/Features DisabledFalse 1`] = `
|
|
|
18
18
|
style="display: contents;"
|
|
19
19
|
>
|
|
20
20
|
<span
|
|
21
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-
|
|
22
|
-
data-disable-theme="true"
|
|
21
|
+
class="is_TypographyLink font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--ba907952141 _td-underline _cur-pointer"
|
|
23
22
|
role="link"
|
|
24
23
|
tabindex="0"
|
|
25
24
|
>
|
|
@@ -51,8 +50,7 @@ exports[`Bumper/Content/TypographyLink/Features DisabledTrue 1`] = `
|
|
|
51
50
|
>
|
|
52
51
|
<span
|
|
53
52
|
aria-disabled="true"
|
|
54
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-
|
|
55
|
-
data-disable-theme="true"
|
|
53
|
+
class="is_TypographyLink font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--di910006857 _td-underline _cur-not-allowed"
|
|
56
54
|
role="link"
|
|
57
55
|
tabindex="0"
|
|
58
56
|
>
|
|
@@ -65,6 +63,114 @@ exports[`Bumper/Content/TypographyLink/Features DisabledTrue 1`] = `
|
|
|
65
63
|
</DocumentFragment>
|
|
66
64
|
`;
|
|
67
65
|
|
|
66
|
+
exports[`Bumper/Content/TypographyLink/Features NestedInBodyBold 1`] = `
|
|
67
|
+
<DocumentFragment>
|
|
68
|
+
<div
|
|
69
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
70
|
+
>
|
|
71
|
+
<span
|
|
72
|
+
class=""
|
|
73
|
+
style="display: contents;"
|
|
74
|
+
>
|
|
75
|
+
<span
|
|
76
|
+
class=" "
|
|
77
|
+
style="display: contents;"
|
|
78
|
+
>
|
|
79
|
+
<span
|
|
80
|
+
class=" t_light is_Theme"
|
|
81
|
+
style="display: contents;"
|
|
82
|
+
>
|
|
83
|
+
<span
|
|
84
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1503 _lh-f-lineHeigh201793146 _ls-f-letterSpa1099960303 _fw-f-weight-bo3448 _col-content--ac3049896"
|
|
85
|
+
>
|
|
86
|
+
Bold accent text with
|
|
87
|
+
<span
|
|
88
|
+
class="is_TypographyLink font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1503 _lh-f-lineHeigh201793146 _ls-f-letterSpa1099960303 _fw-f-weight-bo3448 _col-content--ac3049896 _cur-pointer _td-underline _tt-inherit"
|
|
89
|
+
role="link"
|
|
90
|
+
tabindex="0"
|
|
91
|
+
>
|
|
92
|
+
a nested link
|
|
93
|
+
</span>
|
|
94
|
+
</span>
|
|
95
|
+
</span>
|
|
96
|
+
</span>
|
|
97
|
+
</span>
|
|
98
|
+
</div>
|
|
99
|
+
</DocumentFragment>
|
|
100
|
+
`;
|
|
101
|
+
|
|
102
|
+
exports[`Bumper/Content/TypographyLink/Features NestedInContentCaps 1`] = `
|
|
103
|
+
<DocumentFragment>
|
|
104
|
+
<div
|
|
105
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
106
|
+
>
|
|
107
|
+
<span
|
|
108
|
+
class=""
|
|
109
|
+
style="display: contents;"
|
|
110
|
+
>
|
|
111
|
+
<span
|
|
112
|
+
class=" "
|
|
113
|
+
style="display: contents;"
|
|
114
|
+
>
|
|
115
|
+
<span
|
|
116
|
+
class=" t_light is_Theme"
|
|
117
|
+
style="display: contents;"
|
|
118
|
+
>
|
|
119
|
+
<span
|
|
120
|
+
class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-cont593321891 _lh-f-lineHeigh1366135090 _ls-f-letterSpa199301955 _fw-f-weight-bo3448 _col-content--ba907952141 _tt-uppercase"
|
|
121
|
+
>
|
|
122
|
+
content caps with
|
|
123
|
+
<span
|
|
124
|
+
class="is_TypographyLink font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-cont593321891 _lh-f-lineHeigh1366135090 _ls-f-letterSpa199301955 _fw-f-weight-bo3448 _col-content--ba907952141 _cur-pointer _td-underline _tt-uppercase"
|
|
125
|
+
role="link"
|
|
126
|
+
tabindex="0"
|
|
127
|
+
>
|
|
128
|
+
a nested link
|
|
129
|
+
</span>
|
|
130
|
+
</span>
|
|
131
|
+
</span>
|
|
132
|
+
</span>
|
|
133
|
+
</span>
|
|
134
|
+
</div>
|
|
135
|
+
</DocumentFragment>
|
|
136
|
+
`;
|
|
137
|
+
|
|
138
|
+
exports[`Bumper/Content/TypographyLink/Features NestedInHeading 1`] = `
|
|
139
|
+
<DocumentFragment>
|
|
140
|
+
<div
|
|
141
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
142
|
+
>
|
|
143
|
+
<span
|
|
144
|
+
class=""
|
|
145
|
+
style="display: contents;"
|
|
146
|
+
>
|
|
147
|
+
<span
|
|
148
|
+
class=" "
|
|
149
|
+
style="display: contents;"
|
|
150
|
+
>
|
|
151
|
+
<span
|
|
152
|
+
class=" t_light is_Theme"
|
|
153
|
+
style="display: contents;"
|
|
154
|
+
>
|
|
155
|
+
<span
|
|
156
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-head100347202 _lh-f-lineHeigh1544154441 _ls-f-letterSpa1195674548 _fw-f-weight-se1074390495 _col-content--ba907952141"
|
|
157
|
+
>
|
|
158
|
+
Heading with
|
|
159
|
+
<span
|
|
160
|
+
class="is_TypographyLink font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-head100347202 _lh-f-lineHeigh1544154441 _ls-f-letterSpa1195674548 _fw-f-weight-se1074390495 _col-content--ba907952141 _cur-pointer _td-underline _tt-inherit"
|
|
161
|
+
role="link"
|
|
162
|
+
tabindex="0"
|
|
163
|
+
>
|
|
164
|
+
a nested link
|
|
165
|
+
</span>
|
|
166
|
+
</span>
|
|
167
|
+
</span>
|
|
168
|
+
</span>
|
|
169
|
+
</span>
|
|
170
|
+
</div>
|
|
171
|
+
</DocumentFragment>
|
|
172
|
+
`;
|
|
173
|
+
|
|
68
174
|
exports[`Bumper/Content/TypographyLink/Features NoUnderlineFalse 1`] = `
|
|
69
175
|
<DocumentFragment>
|
|
70
176
|
<div
|
|
@@ -83,8 +189,7 @@ exports[`Bumper/Content/TypographyLink/Features NoUnderlineFalse 1`] = `
|
|
|
83
189
|
style="display: contents;"
|
|
84
190
|
>
|
|
85
191
|
<span
|
|
86
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-
|
|
87
|
-
data-disable-theme="true"
|
|
192
|
+
class="is_TypographyLink font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--ba907952141 _cur-pointer _td-underline"
|
|
88
193
|
role="link"
|
|
89
194
|
tabindex="0"
|
|
90
195
|
>
|
|
@@ -115,8 +220,7 @@ exports[`Bumper/Content/TypographyLink/Features NoUnderlineTrue 1`] = `
|
|
|
115
220
|
style="display: contents;"
|
|
116
221
|
>
|
|
117
222
|
<span
|
|
118
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-
|
|
119
|
-
data-disable-theme="true"
|
|
223
|
+
class="is_TypographyLink font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--ba907952141 _cur-pointer _td-none"
|
|
120
224
|
role="link"
|
|
121
225
|
tabindex="0"
|
|
122
226
|
>
|
|
@@ -150,39 +254,35 @@ exports[`Bumper/Content/TypographyLink/Features StateHover 1`] = `
|
|
|
150
254
|
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa1366020313"
|
|
151
255
|
>
|
|
152
256
|
<span
|
|
153
|
-
class="
|
|
154
|
-
data-disable-theme="true"
|
|
257
|
+
class="is_TypographyLink font_GTStandard "
|
|
155
258
|
role="link"
|
|
156
|
-
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space:
|
|
259
|
+
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space: pre-wrap; margin: 0px 0px 0px 0px; font-family: var(--f-family); font-size: var(--f-size-body-m); line-height: var(--f-lineHeight-body-m); letter-spacing: var(--f-letterSpacing-body-m); font-weight: var(--f-weight-regular); color: var(--content--base--hi); -webkit-font-smoothing: antialiased; cursor: pointer; text-decoration-line: none;"
|
|
157
260
|
tabindex="0"
|
|
158
261
|
>
|
|
159
262
|
Forced hover state - underline removed (hoverStyle applied)
|
|
160
263
|
</span>
|
|
161
264
|
<span
|
|
162
|
-
class="
|
|
163
|
-
data-disable-theme="true"
|
|
265
|
+
class="is_TypographyLink font_GTStandard "
|
|
164
266
|
role="link"
|
|
165
|
-
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space:
|
|
267
|
+
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space: pre-wrap; margin: 0px 0px 0px 0px; font-family: var(--f-family); font-size: var(--f-size-body-m); line-height: var(--f-lineHeight-body-m); letter-spacing: var(--f-letterSpacing-body-m); font-weight: var(--f-weight-regular); color: var(--content--base--hi); -webkit-font-smoothing: antialiased; cursor: pointer; text-decoration-line: none;"
|
|
166
268
|
tabindex="0"
|
|
167
269
|
>
|
|
168
270
|
Forced hover state with noUnderline - no visual change
|
|
169
271
|
</span>
|
|
170
272
|
<span
|
|
171
273
|
aria-disabled="true"
|
|
172
|
-
class="
|
|
173
|
-
data-disable-theme="true"
|
|
274
|
+
class="is_TypographyLink font_GTStandard "
|
|
174
275
|
role="link"
|
|
175
|
-
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space:
|
|
276
|
+
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space: pre-wrap; margin: 0px 0px 0px 0px; font-family: var(--f-family); font-size: var(--f-size-body-m); line-height: var(--f-lineHeight-body-m); letter-spacing: var(--f-letterSpacing-body-m); font-weight: var(--f-weight-regular); color: var(--content--disabled); -webkit-font-smoothing: antialiased; text-decoration-line: underline; cursor: not-allowed;"
|
|
176
277
|
tabindex="0"
|
|
177
278
|
>
|
|
178
279
|
Forced hover state on disabled - underline removed (hoverStyle applied)
|
|
179
280
|
</span>
|
|
180
281
|
<span
|
|
181
282
|
aria-disabled="true"
|
|
182
|
-
class="
|
|
183
|
-
data-disable-theme="true"
|
|
283
|
+
class="is_TypographyLink font_GTStandard "
|
|
184
284
|
role="link"
|
|
185
|
-
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space:
|
|
285
|
+
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space: pre-wrap; margin: 0px 0px 0px 0px; font-family: var(--f-family); font-size: var(--f-size-body-m); line-height: var(--f-lineHeight-body-m); letter-spacing: var(--f-letterSpacing-body-m); font-weight: var(--f-weight-regular); color: var(--content--disabled); -webkit-font-smoothing: antialiased; cursor: not-allowed; text-decoration-line: none;"
|
|
186
286
|
tabindex="0"
|
|
187
287
|
>
|
|
188
288
|
Forced hover state with noUnderline on disabled - no visual change
|
|
@@ -18,8 +18,7 @@ exports[`Bumper/Content/TypographyLink Default 1`] = `
|
|
|
18
18
|
style="display: contents;"
|
|
19
19
|
>
|
|
20
20
|
<span
|
|
21
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-
|
|
22
|
-
data-disable-theme="true"
|
|
21
|
+
class="is_TypographyLink font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _col-content--ac3049896 _cur-pointer _td-underline"
|
|
23
22
|
role="link"
|
|
24
23
|
tabindex="0"
|
|
25
24
|
>
|
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
import type { ColorTokens } from '@tamagui/core';
|
|
2
|
-
import {
|
|
2
|
+
import { createStyledContext } from '@tamagui/core';
|
|
3
3
|
import type { FontVariants } from '../../../core/tokens/fonts';
|
|
4
4
|
|
|
5
|
-
export type TypographyVariantContextValue = FontVariants |
|
|
6
|
-
export type TypographyWeightContextValue = 'regular' | 'bold' | 'semibold' |
|
|
7
|
-
export type TypograhyColorContextValue = ColorTokens |
|
|
8
|
-
type TypographyContextValue = boolean;
|
|
5
|
+
export type TypographyVariantContextValue = FontVariants | undefined;
|
|
6
|
+
export type TypographyWeightContextValue = 'regular' | 'bold' | 'semibold' | undefined;
|
|
7
|
+
export type TypograhyColorContextValue = ColorTokens | undefined;
|
|
9
8
|
|
|
10
|
-
export const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export const useTypographyVariant = (): TypographyVariantContextValue => {
|
|
20
|
-
return useContext(TypographyVariantContext);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const useTypographyWeight = (): TypographyWeightContextValue => {
|
|
24
|
-
return useContext(TypographyWeightContext);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const useTypographyContext = (): TypographyContextValue => {
|
|
28
|
-
return useContext(TypographyContext);
|
|
29
|
-
};
|
|
9
|
+
export const typographyStyleContext = createStyledContext<{
|
|
10
|
+
color: TypograhyColorContextValue;
|
|
11
|
+
weight: TypographyWeightContextValue;
|
|
12
|
+
variant: TypographyVariantContextValue;
|
|
13
|
+
}>({
|
|
14
|
+
color: undefined,
|
|
15
|
+
weight: undefined,
|
|
16
|
+
variant: undefined,
|
|
17
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// eslint-disable-next-line no-restricted-imports
|
|
2
|
+
import { useProps as usePropsTamagui } from '@tamagui/core';
|
|
3
|
+
import type { PropsWithoutMediaStyles } from '../../types';
|
|
4
|
+
|
|
5
|
+
// This hook is a wrapper around Tamagui's useProps to extract only the non-media props from the given props object.
|
|
6
|
+
// It uses our custom PropsWithoutMediaStyles type to ensure that all media props are optional, even if they are required in the original props type. This is necessary for our components which have required media props (like variant for Typography).
|
|
7
|
+
export function useProps<P extends object>(props: P): PropsWithoutMediaStyles<P> {
|
|
8
|
+
return usePropsTamagui(props) as unknown as PropsWithoutMediaStyles<P>;
|
|
9
|
+
}
|