@ornikar/bumper 2.7.2-canary.1768566928.e85c568dc49c9180e37b7aec8792b1e8d45968a6.0 → 2.8.1-canary.1768839311.501438316959a9593513e74c70cb87b0597f2db6.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 +19 -4
- package/CLAUDE.md +45 -0
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/system/content/icon/Icon.d.ts +21 -0
- package/dist/definitions/system/content/icon/Icon.d.ts.map +1 -0
- package/dist/definitions/system/core/breakpoints/hooks/useCurrentBreakpointName.d.ts +1 -1
- package/dist/definitions/system/core/breakpoints/hooks/useCurrentBreakpointName.d.ts.map +1 -1
- package/dist/definitions/system/core/breakpoints/utils/breakpointsUtils.d.ts +1 -1
- package/dist/definitions/system/core/breakpoints/utils/breakpointsUtils.d.ts.map +1 -1
- package/dist/definitions/system/core/primitives/Pressable.d.ts +0 -9
- package/dist/definitions/system/core/primitives/Pressable.d.ts.map +1 -1
- package/dist/definitions/system/core/primitives/ScrollView/ScrollView.d.ts +3 -0
- package/dist/definitions/system/core/primitives/ScrollView/ScrollView.d.ts.map +1 -0
- package/dist/definitions/system/core/{breakpoints/constants.d.ts → tokens/breakpoints.d.ts} +1 -1
- package/dist/definitions/system/core/tokens/breakpoints.d.ts.map +1 -0
- package/dist/definitions/tamagui.config.d.ts +2 -28
- package/dist/definitions/tamagui.config.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +43 -26
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +43 -26
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +44 -26
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +44 -26
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +43 -26
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +43 -26
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +37 -20
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +37 -20
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +5 -2
- package/src/index.ts +2 -0
- package/src/system/content/icon/Icon.features.stories.tsx +116 -0
- package/src/system/content/icon/Icon.stories.tsx +44 -0
- package/src/system/content/icon/Icon.tsx +53 -0
- package/src/system/content/icon/__snapshots__/Icon.features.stories.tsx.snap +569 -0
- package/src/system/content/icon/__snapshots__/Icon.stories.tsx.snap +29 -0
- package/src/system/content/icon/__snapshots_web__/Icon.features.stories.tsx.snap +309 -0
- package/src/system/content/icon/__snapshots_web__/Icon.stories.tsx.snap +33 -0
- package/src/system/content/typography/Typography.features.stories.tsx +156 -0
- package/src/system/content/typography/Typography.stories.tsx +72 -166
- package/src/system/content/typography/__snapshots__/Typography.features.stories.tsx.snap +826 -0
- package/src/system/content/typography/__snapshots__/Typography.stories.tsx.snap +10 -1990
- package/src/system/content/typography/__snapshots_web__/Typography.features.stories.tsx.snap +501 -0
- package/src/system/content/typography/__snapshots_web__/Typography.stories.tsx.snap +6 -807
- package/src/system/core/breakpoints/hooks/useBreakpointValue.test.ts +1 -1
- package/src/system/core/breakpoints/hooks/useCurrentBreakpointName.test.ts +1 -1
- package/src/system/core/breakpoints/hooks/useCurrentBreakpointName.ts +1 -1
- package/src/system/core/breakpoints/utils/breakpointsUtils.test.ts +1 -1
- package/src/system/core/breakpoints/utils/breakpointsUtils.ts +1 -1
- package/src/system/core/primitives/Center.features.stories.tsx +63 -0
- package/src/system/core/primitives/Center.stories.tsx +111 -12
- package/src/system/core/primitives/Pressable.features.stories.tsx +171 -0
- package/src/system/core/primitives/Pressable.stories.tsx +82 -20
- package/src/system/core/primitives/Pressable.tsx +0 -9
- package/src/system/core/primitives/ScrollView/ScrollView.features.stories.tsx +84 -0
- package/src/system/core/primitives/ScrollView/ScrollView.stories.tsx +63 -0
- package/src/system/core/primitives/ScrollView/ScrollView.ts +2 -0
- package/src/system/core/primitives/ScrollView/__snapshots__/ScrollView.features.stories.tsx.snap +1245 -0
- package/src/system/core/primitives/ScrollView/__snapshots__/ScrollView.stories.tsx.snap +334 -0
- package/src/system/core/primitives/ScrollView/__snapshots_web__/ScrollView.features.stories.tsx.snap +503 -0
- package/src/system/core/primitives/ScrollView/__snapshots_web__/ScrollView.stories.tsx.snap +138 -0
- package/src/system/core/primitives/Stack.features.stories.tsx +179 -0
- package/src/system/core/primitives/Stack.stories.tsx +74 -44
- package/src/system/core/primitives/View.features.stories.tsx +452 -0
- package/src/system/core/primitives/View.stories.tsx +122 -9
- package/src/system/core/primitives/__snapshots__/Center.features.stories.tsx.snap +208 -0
- package/src/system/core/primitives/__snapshots__/Center.stories.tsx.snap +13 -8
- package/src/system/core/primitives/__snapshots__/Pressable.features.stories.tsx.snap +470 -0
- package/src/system/core/primitives/__snapshots__/Pressable.stories.tsx.snap +11 -10
- package/src/system/core/primitives/__snapshots__/Stack.features.stories.tsx.snap +1234 -0
- package/src/system/core/primitives/__snapshots__/Stack.stories.tsx.snap +63 -84
- package/src/system/core/primitives/__snapshots__/View.features.stories.tsx.snap +2338 -0
- package/src/system/core/primitives/__snapshots__/View.stories.tsx.snap +6 -4
- package/src/system/core/primitives/__snapshots_web__/Center.features.stories.tsx.snap +107 -0
- package/src/system/core/primitives/__snapshots_web__/Center.stories.tsx.snap +8 -5
- package/src/system/core/primitives/__snapshots_web__/Pressable.features.stories.tsx.snap +193 -0
- package/src/system/core/primitives/__snapshots_web__/Pressable.stories.tsx.snap +4 -4
- package/src/system/core/primitives/__snapshots_web__/Stack.features.stories.tsx.snap +515 -0
- package/src/system/core/primitives/__snapshots_web__/Stack.stories.tsx.snap +29 -21
- package/src/system/core/primitives/__snapshots_web__/View.features.stories.tsx.snap +941 -0
- package/src/system/core/primitives/__snapshots_web__/View.stories.tsx.snap +2 -2
- package/src/system/core/themes/__snapshots__/light.stories.tsx.snap +3822 -2233
- package/src/system/core/themes/__snapshots_web__/light.stories.tsx.snap +1243 -991
- package/src/system/core/themes/light.stories.tsx +61 -28
- package/src/system/core/tokens/__snapshots__/breakpoints.stories.tsx.snap +423 -0
- package/src/system/core/tokens/__snapshots__/fonts.stories.tsx.snap +1635 -0
- package/src/system/core/tokens/__snapshots__/radius.stories.tsx.snap +383 -0
- package/src/system/core/tokens/__snapshots__/size.stories.tsx.snap +864 -0
- package/src/system/core/tokens/__snapshots__/space.stories.tsx.snap +945 -0
- package/src/system/core/tokens/__snapshots_web__/breakpoints.stories.tsx.snap +194 -0
- package/src/system/core/tokens/__snapshots_web__/fonts.stories.tsx.snap +729 -0
- package/src/system/core/tokens/__snapshots_web__/radius.stories.tsx.snap +174 -0
- package/src/system/core/tokens/__snapshots_web__/size.stories.tsx.snap +363 -0
- package/src/system/core/tokens/__snapshots_web__/space.stories.tsx.snap +396 -0
- package/src/system/core/tokens/breakpoints.stories.tsx +46 -0
- package/src/system/core/tokens/fonts.stories.tsx +39 -0
- package/src/system/core/tokens/palettes/__snapshots__/deepPurpleColorPalette.stories.tsx.snap +4337 -2747
- package/src/system/core/tokens/palettes/__snapshots_web__/deepPurpleColorPalette.stories.tsx.snap +1524 -1256
- package/src/system/core/tokens/palettes/deepPurpleColorPalette.stories.tsx +42 -28
- package/src/system/core/tokens/radius.stories.tsx +39 -0
- package/src/system/core/tokens/size.stories.tsx +39 -0
- package/src/system/core/tokens/space.stories.tsx +40 -0
- package/src/tamagui.config.ts +3 -3
- package/dist/definitions/system/core/breakpoints/constants.d.ts.map +0 -1
- package/src/system/core/breakpoints/__snapshots__/breakpoints.stories.tsx.snap +0 -49
- package/src/system/core/breakpoints/__snapshots_web__/breakpoints.stories.tsx.snap +0 -43
- package/src/system/core/breakpoints/breakpoints.stories.tsx +0 -45
- /package/src/system/core/{breakpoints/constants.ts → tokens/breakpoints.ts} +0 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Bumper/Content/Icon/Features Colors 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
7
|
+
>
|
|
8
|
+
<span
|
|
9
|
+
class=""
|
|
10
|
+
style="display: contents;"
|
|
11
|
+
>
|
|
12
|
+
<span
|
|
13
|
+
class=" "
|
|
14
|
+
style="display: contents;"
|
|
15
|
+
>
|
|
16
|
+
<span
|
|
17
|
+
class=" t_light is_Theme"
|
|
18
|
+
style="display: contents;"
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
class="is_HStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313 _alignItems-center"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
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"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442"
|
|
28
|
+
>
|
|
29
|
+
<svg
|
|
30
|
+
color="var(--content--base--hi)"
|
|
31
|
+
data-file-name="star.inline.svg"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
<span
|
|
35
|
+
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 _col-content--ba1918259606"
|
|
36
|
+
data-disable-theme="true"
|
|
37
|
+
>
|
|
38
|
+
base.hi
|
|
39
|
+
</span>
|
|
40
|
+
</div>
|
|
41
|
+
<div
|
|
42
|
+
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"
|
|
43
|
+
>
|
|
44
|
+
<div
|
|
45
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442"
|
|
46
|
+
>
|
|
47
|
+
<svg
|
|
48
|
+
color="var(--content--base--mid)"
|
|
49
|
+
data-file-name="star.inline.svg"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
<span
|
|
53
|
+
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 _col-content--ba1918259606"
|
|
54
|
+
data-disable-theme="true"
|
|
55
|
+
>
|
|
56
|
+
base.mid
|
|
57
|
+
</span>
|
|
58
|
+
</div>
|
|
59
|
+
<div
|
|
60
|
+
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"
|
|
61
|
+
>
|
|
62
|
+
<div
|
|
63
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442"
|
|
64
|
+
>
|
|
65
|
+
<svg
|
|
66
|
+
color="var(--content--base--low)"
|
|
67
|
+
data-file-name="star.inline.svg"
|
|
68
|
+
/>
|
|
69
|
+
</div>
|
|
70
|
+
<span
|
|
71
|
+
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 _col-content--ba1918259606"
|
|
72
|
+
data-disable-theme="true"
|
|
73
|
+
>
|
|
74
|
+
base.low
|
|
75
|
+
</span>
|
|
76
|
+
</div>
|
|
77
|
+
<div
|
|
78
|
+
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"
|
|
79
|
+
>
|
|
80
|
+
<div
|
|
81
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442"
|
|
82
|
+
>
|
|
83
|
+
<svg
|
|
84
|
+
color="var(--content--accent)"
|
|
85
|
+
data-file-name="star.inline.svg"
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
88
|
+
<span
|
|
89
|
+
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 _col-content--ba1918259606"
|
|
90
|
+
data-disable-theme="true"
|
|
91
|
+
>
|
|
92
|
+
accent
|
|
93
|
+
</span>
|
|
94
|
+
</div>
|
|
95
|
+
<div
|
|
96
|
+
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"
|
|
97
|
+
>
|
|
98
|
+
<div
|
|
99
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442"
|
|
100
|
+
>
|
|
101
|
+
<svg
|
|
102
|
+
color="var(--content--success)"
|
|
103
|
+
data-file-name="check-circle.inline.svg"
|
|
104
|
+
/>
|
|
105
|
+
</div>
|
|
106
|
+
<span
|
|
107
|
+
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 _col-content--ba1918259606"
|
|
108
|
+
data-disable-theme="true"
|
|
109
|
+
>
|
|
110
|
+
success
|
|
111
|
+
</span>
|
|
112
|
+
</div>
|
|
113
|
+
<div
|
|
114
|
+
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"
|
|
115
|
+
>
|
|
116
|
+
<div
|
|
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-size-size1385442 _height-t-size-size1385442"
|
|
118
|
+
>
|
|
119
|
+
<svg
|
|
120
|
+
color="var(--content--warning)"
|
|
121
|
+
data-file-name="warning.inline.svg"
|
|
122
|
+
/>
|
|
123
|
+
</div>
|
|
124
|
+
<span
|
|
125
|
+
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 _col-content--ba1918259606"
|
|
126
|
+
data-disable-theme="true"
|
|
127
|
+
>
|
|
128
|
+
warning
|
|
129
|
+
</span>
|
|
130
|
+
</div>
|
|
131
|
+
<div
|
|
132
|
+
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"
|
|
133
|
+
>
|
|
134
|
+
<div
|
|
135
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442"
|
|
136
|
+
>
|
|
137
|
+
<svg
|
|
138
|
+
color="var(--content--danger)"
|
|
139
|
+
data-file-name="warning.inline.svg"
|
|
140
|
+
/>
|
|
141
|
+
</div>
|
|
142
|
+
<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 _fs-f-size-body47080 _lh-f-lineHeigh1960620717 _ls-f-letterSpa260968488 _col-content--ba1918259606"
|
|
144
|
+
data-disable-theme="true"
|
|
145
|
+
>
|
|
146
|
+
danger
|
|
147
|
+
</span>
|
|
148
|
+
</div>
|
|
149
|
+
<div
|
|
150
|
+
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"
|
|
151
|
+
>
|
|
152
|
+
<div
|
|
153
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442"
|
|
154
|
+
>
|
|
155
|
+
<svg
|
|
156
|
+
color="var(--content--info)"
|
|
157
|
+
data-file-name="info.inline.svg"
|
|
158
|
+
/>
|
|
159
|
+
</div>
|
|
160
|
+
<span
|
|
161
|
+
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 _col-content--ba1918259606"
|
|
162
|
+
data-disable-theme="true"
|
|
163
|
+
>
|
|
164
|
+
info
|
|
165
|
+
</span>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
</span>
|
|
169
|
+
</span>
|
|
170
|
+
</span>
|
|
171
|
+
</div>
|
|
172
|
+
</DocumentFragment>
|
|
173
|
+
`;
|
|
174
|
+
|
|
175
|
+
exports[`Bumper/Content/Icon/Features Sizes 1`] = `
|
|
176
|
+
<DocumentFragment>
|
|
177
|
+
<div
|
|
178
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
179
|
+
>
|
|
180
|
+
<span
|
|
181
|
+
class=""
|
|
182
|
+
style="display: contents;"
|
|
183
|
+
>
|
|
184
|
+
<span
|
|
185
|
+
class=" "
|
|
186
|
+
style="display: contents;"
|
|
187
|
+
>
|
|
188
|
+
<span
|
|
189
|
+
class=" t_light is_Theme"
|
|
190
|
+
style="display: contents;"
|
|
191
|
+
>
|
|
192
|
+
<div
|
|
193
|
+
class="is_HStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313 _alignItems-center"
|
|
194
|
+
>
|
|
195
|
+
<div
|
|
196
|
+
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"
|
|
197
|
+
>
|
|
198
|
+
<div
|
|
199
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385413 _height-t-size-size1385413"
|
|
200
|
+
>
|
|
201
|
+
<svg
|
|
202
|
+
color="var(--content--base--hi)"
|
|
203
|
+
data-file-name="star.inline.svg"
|
|
204
|
+
/>
|
|
205
|
+
</div>
|
|
206
|
+
<span
|
|
207
|
+
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 _col-content--ba1918259606"
|
|
208
|
+
data-disable-theme="true"
|
|
209
|
+
>
|
|
210
|
+
16
|
|
211
|
+
</span>
|
|
212
|
+
</div>
|
|
213
|
+
<div
|
|
214
|
+
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"
|
|
215
|
+
>
|
|
216
|
+
<div
|
|
217
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385438 _height-t-size-size1385438"
|
|
218
|
+
>
|
|
219
|
+
<svg
|
|
220
|
+
color="var(--content--base--hi)"
|
|
221
|
+
data-file-name="star.inline.svg"
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
<span
|
|
225
|
+
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 _col-content--ba1918259606"
|
|
226
|
+
data-disable-theme="true"
|
|
227
|
+
>
|
|
228
|
+
20
|
|
229
|
+
</span>
|
|
230
|
+
</div>
|
|
231
|
+
<div
|
|
232
|
+
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"
|
|
233
|
+
>
|
|
234
|
+
<div
|
|
235
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442"
|
|
236
|
+
>
|
|
237
|
+
<svg
|
|
238
|
+
color="var(--content--base--hi)"
|
|
239
|
+
data-file-name="star.inline.svg"
|
|
240
|
+
/>
|
|
241
|
+
</div>
|
|
242
|
+
<span
|
|
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-body47080 _lh-f-lineHeigh1960620717 _ls-f-letterSpa260968488 _col-content--ba1918259606"
|
|
244
|
+
data-disable-theme="true"
|
|
245
|
+
>
|
|
246
|
+
24
|
|
247
|
+
</span>
|
|
248
|
+
</div>
|
|
249
|
+
<div
|
|
250
|
+
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"
|
|
251
|
+
>
|
|
252
|
+
<div
|
|
253
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385471 _height-t-size-size1385471"
|
|
254
|
+
>
|
|
255
|
+
<svg
|
|
256
|
+
color="var(--content--base--hi)"
|
|
257
|
+
data-file-name="star.inline.svg"
|
|
258
|
+
/>
|
|
259
|
+
</div>
|
|
260
|
+
<span
|
|
261
|
+
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 _col-content--ba1918259606"
|
|
262
|
+
data-disable-theme="true"
|
|
263
|
+
>
|
|
264
|
+
32
|
|
265
|
+
</span>
|
|
266
|
+
</div>
|
|
267
|
+
<div
|
|
268
|
+
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"
|
|
269
|
+
>
|
|
270
|
+
<div
|
|
271
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385508 _height-t-size-size1385508"
|
|
272
|
+
>
|
|
273
|
+
<svg
|
|
274
|
+
color="var(--content--base--hi)"
|
|
275
|
+
data-file-name="star.inline.svg"
|
|
276
|
+
/>
|
|
277
|
+
</div>
|
|
278
|
+
<span
|
|
279
|
+
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 _col-content--ba1918259606"
|
|
280
|
+
data-disable-theme="true"
|
|
281
|
+
>
|
|
282
|
+
48
|
|
283
|
+
</span>
|
|
284
|
+
</div>
|
|
285
|
+
<div
|
|
286
|
+
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"
|
|
287
|
+
>
|
|
288
|
+
<div
|
|
289
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385566 _height-t-size-size1385566"
|
|
290
|
+
>
|
|
291
|
+
<svg
|
|
292
|
+
color="var(--content--base--hi)"
|
|
293
|
+
data-file-name="star.inline.svg"
|
|
294
|
+
/>
|
|
295
|
+
</div>
|
|
296
|
+
<span
|
|
297
|
+
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 _col-content--ba1918259606"
|
|
298
|
+
data-disable-theme="true"
|
|
299
|
+
>
|
|
300
|
+
64
|
|
301
|
+
</span>
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
</span>
|
|
305
|
+
</span>
|
|
306
|
+
</span>
|
|
307
|
+
</div>
|
|
308
|
+
</DocumentFragment>
|
|
309
|
+
`;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Bumper/Content/Icon Default 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
7
|
+
>
|
|
8
|
+
<span
|
|
9
|
+
class=""
|
|
10
|
+
style="display: contents;"
|
|
11
|
+
>
|
|
12
|
+
<span
|
|
13
|
+
class=" "
|
|
14
|
+
style="display: contents;"
|
|
15
|
+
>
|
|
16
|
+
<span
|
|
17
|
+
class=" t_light is_Theme"
|
|
18
|
+
style="display: contents;"
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
class="is_Icon _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385438 _height-t-size-size1385438"
|
|
22
|
+
>
|
|
23
|
+
<svg
|
|
24
|
+
color="var(--content--base--hi)"
|
|
25
|
+
data-file-name="star.inline.svg"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
</span>
|
|
29
|
+
</span>
|
|
30
|
+
</span>
|
|
31
|
+
</div>
|
|
32
|
+
</DocumentFragment>
|
|
33
|
+
`;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { VStack } from '../../core/primitives/Stack';
|
|
3
|
+
import { Typography } from './Typography';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof Typography.Text> = {
|
|
6
|
+
title: 'Bumper/Content/Typography/Features',
|
|
7
|
+
component: Typography.Text,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
|
|
13
|
+
export const HeadingVariants: Story = {
|
|
14
|
+
render: () => (
|
|
15
|
+
<VStack gap="$space.16">
|
|
16
|
+
<Typography.Text variant="heading-2xl">Heading 2XL - Semibold</Typography.Text>
|
|
17
|
+
<Typography.Text variant="heading-xl">Heading XL - Semibold</Typography.Text>
|
|
18
|
+
<Typography.Text variant="heading-l">Heading L - Semibold</Typography.Text>
|
|
19
|
+
<Typography.Text variant="heading-m">Heading M - Semibold</Typography.Text>
|
|
20
|
+
<Typography.Text variant="heading-s">Heading S - Semibold</Typography.Text>
|
|
21
|
+
<Typography.Text variant="heading-xs">Heading XS - Semibold</Typography.Text>
|
|
22
|
+
<Typography.Text variant="heading-2xs">Heading 2XS - Semibold</Typography.Text>
|
|
23
|
+
</VStack>
|
|
24
|
+
),
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const BodyVariants: Story = {
|
|
28
|
+
render: () => (
|
|
29
|
+
<VStack gap="$space.16">
|
|
30
|
+
<Typography.Text variant="body-xl" weight="regular">
|
|
31
|
+
Body XL Regular - The quick brown fox jumps over the lazy dog
|
|
32
|
+
</Typography.Text>
|
|
33
|
+
<Typography.Text variant="body-l" weight="regular">
|
|
34
|
+
Body L Regular - The quick brown fox jumps over the lazy dog
|
|
35
|
+
</Typography.Text>
|
|
36
|
+
<Typography.Text variant="body-m" weight="regular">
|
|
37
|
+
Body M Regular - The quick brown fox jumps over the lazy dog
|
|
38
|
+
</Typography.Text>
|
|
39
|
+
<Typography.Text variant="body-s" weight="regular">
|
|
40
|
+
Body S Regular - The quick brown fox jumps over the lazy dog
|
|
41
|
+
</Typography.Text>
|
|
42
|
+
<Typography.Text variant="body-xs" weight="regular">
|
|
43
|
+
Body XS Regular - The quick brown fox jumps over the lazy dog
|
|
44
|
+
</Typography.Text>
|
|
45
|
+
</VStack>
|
|
46
|
+
),
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const BodyVariantsBold: Story = {
|
|
50
|
+
render: () => (
|
|
51
|
+
<VStack gap="$space.16">
|
|
52
|
+
<Typography.Text variant="body-xl" weight="bold">
|
|
53
|
+
Body XL Bold - The quick brown fox jumps over the lazy dog
|
|
54
|
+
</Typography.Text>
|
|
55
|
+
<Typography.Text variant="body-l" weight="bold">
|
|
56
|
+
Body L Bold - The quick brown fox jumps over the lazy dog
|
|
57
|
+
</Typography.Text>
|
|
58
|
+
<Typography.Text variant="body-m" weight="bold">
|
|
59
|
+
Body M Bold - The quick brown fox jumps over the lazy dog
|
|
60
|
+
</Typography.Text>
|
|
61
|
+
<Typography.Text variant="body-s" weight="bold">
|
|
62
|
+
Body S Bold - The quick brown fox jumps over the lazy dog
|
|
63
|
+
</Typography.Text>
|
|
64
|
+
<Typography.Text variant="body-xs" weight="bold">
|
|
65
|
+
Body XS Bold - The quick brown fox jumps over the lazy dog
|
|
66
|
+
</Typography.Text>
|
|
67
|
+
</VStack>
|
|
68
|
+
),
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const LabelVariants: Story = {
|
|
72
|
+
render: () => (
|
|
73
|
+
<VStack gap="$space.16">
|
|
74
|
+
<Typography.Text variant="label-xl">Label XL - Semibold</Typography.Text>
|
|
75
|
+
<Typography.Text variant="label-l">Label L - Semibold</Typography.Text>
|
|
76
|
+
<Typography.Text variant="label-m">Label M - Semibold</Typography.Text>
|
|
77
|
+
<Typography.Text variant="label-s">Label S - Semibold</Typography.Text>
|
|
78
|
+
</VStack>
|
|
79
|
+
),
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export const ContentCapsVariants: Story = {
|
|
83
|
+
render: () => (
|
|
84
|
+
<VStack gap="$space.16">
|
|
85
|
+
<Typography.Text variant="content-caps-3xl">CONTENT CAPS 3XL</Typography.Text>
|
|
86
|
+
<Typography.Text variant="content-caps-2xl">CONTENT CAPS 2XL</Typography.Text>
|
|
87
|
+
<Typography.Text variant="content-caps-xl">CONTENT CAPS XL</Typography.Text>
|
|
88
|
+
<Typography.Text variant="content-caps-l">CONTENT CAPS L</Typography.Text>
|
|
89
|
+
<Typography.Text variant="content-caps-m">CONTENT CAPS M</Typography.Text>
|
|
90
|
+
<Typography.Text variant="content-caps-s">CONTENT CAPS S</Typography.Text>
|
|
91
|
+
<Typography.Text variant="content-caps-xs">CONTENT CAPS XS</Typography.Text>
|
|
92
|
+
</VStack>
|
|
93
|
+
),
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export const HeaderComponents: Story = {
|
|
97
|
+
render: () => (
|
|
98
|
+
<VStack gap="$space.16">
|
|
99
|
+
<Typography.Header1 variant="heading-2xl">Header 1 - heading-2xl</Typography.Header1>
|
|
100
|
+
<Typography.Header2 variant="heading-xl">Header 2 - heading-xl</Typography.Header2>
|
|
101
|
+
<Typography.Header3 variant="heading-l">Header 3 - heading-l</Typography.Header3>
|
|
102
|
+
<Typography.Header4 variant="heading-m">Header 4 - heading-m</Typography.Header4>
|
|
103
|
+
<Typography.Header5 variant="heading-s">Header 5 - heading-s</Typography.Header5>
|
|
104
|
+
<Typography.Header6 variant="heading-xs">Header 6 - heading-xs</Typography.Header6>
|
|
105
|
+
</VStack>
|
|
106
|
+
),
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export const ContextInheritance: Story = {
|
|
110
|
+
render: () => (
|
|
111
|
+
<VStack gap="$space.24">
|
|
112
|
+
<VStack gap="$space.8">
|
|
113
|
+
<Typography.Text variant="body-s" weight="regular" color="$content.base.mid">
|
|
114
|
+
Parent variant
|
|
115
|
+
</Typography.Text>
|
|
116
|
+
<Typography.Text variant="body-l" weight="bold" color="$content.accent">
|
|
117
|
+
Parent: body-l bold accent
|
|
118
|
+
<Typography.Text> - Child inherits all (variant, weight, color)</Typography.Text>
|
|
119
|
+
</Typography.Text>
|
|
120
|
+
</VStack>
|
|
121
|
+
|
|
122
|
+
<VStack gap="$space.8">
|
|
123
|
+
<Typography.Text variant="body-s" weight="regular" color="$content.base.mid">
|
|
124
|
+
Weight inheritance
|
|
125
|
+
</Typography.Text>
|
|
126
|
+
<Typography.Text variant="body-m" weight="bold">
|
|
127
|
+
Parent: body-m bold
|
|
128
|
+
<Typography.Text> - Child inherits weight</Typography.Text>
|
|
129
|
+
</Typography.Text>
|
|
130
|
+
</VStack>
|
|
131
|
+
|
|
132
|
+
<VStack gap="$space.8">
|
|
133
|
+
<Typography.Text variant="body-s" weight="regular" color="$content.base.mid">
|
|
134
|
+
Color inheritance
|
|
135
|
+
</Typography.Text>
|
|
136
|
+
<Typography.Text variant="body-m" color="$content.success">
|
|
137
|
+
Parent: success color
|
|
138
|
+
<Typography.Text> - Child inherits color</Typography.Text>
|
|
139
|
+
</Typography.Text>
|
|
140
|
+
</VStack>
|
|
141
|
+
|
|
142
|
+
<VStack gap="$space.8">
|
|
143
|
+
<Typography.Text variant="body-s" weight="regular" color="$content.base.mid">
|
|
144
|
+
Override inherited values
|
|
145
|
+
</Typography.Text>
|
|
146
|
+
<Typography.Text variant="body-m" weight="bold" color="$content.accent">
|
|
147
|
+
Parent: body-m bold accent
|
|
148
|
+
<Typography.Text variant="body-s" weight="regular" color="$content.danger">
|
|
149
|
+
{' '}
|
|
150
|
+
- Child overrides all
|
|
151
|
+
</Typography.Text>
|
|
152
|
+
</Typography.Text>
|
|
153
|
+
</VStack>
|
|
154
|
+
</VStack>
|
|
155
|
+
),
|
|
156
|
+
};
|