@ornikar/bumper 2.8.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 +15 -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/primitives/ScrollView/ScrollView.d.ts +3 -0
- package/dist/definitions/system/core/primitives/ScrollView/ScrollView.d.ts.map +1 -0
- package/dist/index-metro.es.android.js +1 -0
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +1 -0
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +2 -0
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +2 -0
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +1 -0
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +1 -0
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +1 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +1 -0
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +12 -9
- 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/__snapshots_web__/Typography.features.stories.tsx.snap +7 -7
- package/src/system/content/typography/__snapshots_web__/Typography.stories.tsx.snap +1 -1
- 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/__snapshots_web__/Center.features.stories.tsx.snap +2 -2
- package/src/system/core/primitives/__snapshots_web__/Center.stories.tsx.snap +1 -1
- package/src/system/core/primitives/__snapshots_web__/Pressable.features.stories.tsx.snap +3 -3
- package/src/system/core/primitives/__snapshots_web__/Pressable.stories.tsx.snap +1 -1
- package/src/system/core/primitives/__snapshots_web__/Stack.features.stories.tsx.snap +6 -6
- package/src/system/core/primitives/__snapshots_web__/Stack.stories.tsx.snap +1 -1
- package/src/system/core/primitives/__snapshots_web__/View.features.stories.tsx.snap +11 -11
- package/src/system/core/primitives/__snapshots_web__/View.stories.tsx.snap +1 -1
- package/src/system/core/themes/__snapshots_web__/light.stories.tsx.snap +1 -1
- package/src/system/core/tokens/__snapshots_web__/breakpoints.stories.tsx.snap +1 -1
- package/src/system/core/tokens/__snapshots_web__/fonts.stories.tsx.snap +1 -1
- package/src/system/core/tokens/__snapshots_web__/radius.stories.tsx.snap +1 -1
- package/src/system/core/tokens/__snapshots_web__/size.stories.tsx.snap +1 -1
- package/src/system/core/tokens/__snapshots_web__/space.stories.tsx.snap +1 -1
- package/src/system/core/tokens/palettes/__snapshots_web__/deepPurpleColorPalette.stories.tsx.snap +1 -1
|
@@ -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
|
+
`;
|
package/src/system/content/typography/__snapshots_web__/Typography.features.stories.tsx.snap
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Bumper/Content/Typography/Features BodyVariants 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="css-view-
|
|
6
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
7
7
|
>
|
|
8
8
|
<span
|
|
9
9
|
class=""
|
|
@@ -61,7 +61,7 @@ exports[`Bumper/Content/Typography/Features BodyVariants 1`] = `
|
|
|
61
61
|
exports[`Bumper/Content/Typography/Features BodyVariantsBold 1`] = `
|
|
62
62
|
<DocumentFragment>
|
|
63
63
|
<div
|
|
64
|
-
class="css-view-
|
|
64
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
65
65
|
>
|
|
66
66
|
<span
|
|
67
67
|
class=""
|
|
@@ -119,7 +119,7 @@ exports[`Bumper/Content/Typography/Features BodyVariantsBold 1`] = `
|
|
|
119
119
|
exports[`Bumper/Content/Typography/Features ContentCapsVariants 1`] = `
|
|
120
120
|
<DocumentFragment>
|
|
121
121
|
<div
|
|
122
|
-
class="css-view-
|
|
122
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
123
123
|
>
|
|
124
124
|
<span
|
|
125
125
|
class=""
|
|
@@ -189,7 +189,7 @@ exports[`Bumper/Content/Typography/Features ContentCapsVariants 1`] = `
|
|
|
189
189
|
exports[`Bumper/Content/Typography/Features ContextInheritance 1`] = `
|
|
190
190
|
<DocumentFragment>
|
|
191
191
|
<div
|
|
192
|
-
class="css-view-
|
|
192
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
193
193
|
>
|
|
194
194
|
<span
|
|
195
195
|
class=""
|
|
@@ -305,7 +305,7 @@ exports[`Bumper/Content/Typography/Features ContextInheritance 1`] = `
|
|
|
305
305
|
exports[`Bumper/Content/Typography/Features HeaderComponents 1`] = `
|
|
306
306
|
<DocumentFragment>
|
|
307
307
|
<div
|
|
308
|
-
class="css-view-
|
|
308
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
309
309
|
>
|
|
310
310
|
<span
|
|
311
311
|
class=""
|
|
@@ -381,7 +381,7 @@ exports[`Bumper/Content/Typography/Features HeaderComponents 1`] = `
|
|
|
381
381
|
exports[`Bumper/Content/Typography/Features HeadingVariants 1`] = `
|
|
382
382
|
<DocumentFragment>
|
|
383
383
|
<div
|
|
384
|
-
class="css-view-
|
|
384
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
385
385
|
>
|
|
386
386
|
<span
|
|
387
387
|
class=""
|
|
@@ -451,7 +451,7 @@ exports[`Bumper/Content/Typography/Features HeadingVariants 1`] = `
|
|
|
451
451
|
exports[`Bumper/Content/Typography/Features LabelVariants 1`] = `
|
|
452
452
|
<DocumentFragment>
|
|
453
453
|
<div
|
|
454
|
-
class="css-view-
|
|
454
|
+
class="css-view-g5y9jx r-flex-13awgt0"
|
|
455
455
|
>
|
|
456
456
|
<span
|
|
457
457
|
class=""
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../content/typography/Typography';
|
|
3
|
+
import { HStack, VStack } from '../Stack';
|
|
4
|
+
import { View } from '../View';
|
|
5
|
+
import { ScrollView } from './ScrollView';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof ScrollView> = {
|
|
8
|
+
title: 'Bumper/Core/Primitives/ScrollView/Features',
|
|
9
|
+
component: ScrollView,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
|
|
15
|
+
export const HorizontalScroll: Story = {
|
|
16
|
+
render: () => (
|
|
17
|
+
<ScrollView horizontal height="$size.96" width="$size.208">
|
|
18
|
+
<HStack gap="$space.8" padding="$space.8">
|
|
19
|
+
{Array.from({ length: 10 }, (_, i) => (
|
|
20
|
+
<View
|
|
21
|
+
key={`item-${i}`}
|
|
22
|
+
backgroundColor="$bg.success.mid"
|
|
23
|
+
padding="$space.16"
|
|
24
|
+
borderRadius="$radius.m"
|
|
25
|
+
width="$size.96"
|
|
26
|
+
>
|
|
27
|
+
<Typography.Text variant="body-s">H-Item {i + 1}</Typography.Text>
|
|
28
|
+
</View>
|
|
29
|
+
))}
|
|
30
|
+
</HStack>
|
|
31
|
+
</ScrollView>
|
|
32
|
+
),
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const HiddenIndicators: Story = {
|
|
36
|
+
render: () => (
|
|
37
|
+
<VStack gap="$space.16">
|
|
38
|
+
<Typography.Text variant="body-s">Vertical scroll without indicator:</Typography.Text>
|
|
39
|
+
<ScrollView height="$size.120" width="$size.208" showsVerticalScrollIndicator={false}>
|
|
40
|
+
<VStack gap="$space.8" padding="$space.8">
|
|
41
|
+
{Array.from({ length: 8 }, (_, i) => (
|
|
42
|
+
<View key={`item-${i}`} backgroundColor="$bg.warning.mid" padding="$space.12" borderRadius="$radius.m">
|
|
43
|
+
<Typography.Text variant="body-s">Item {i + 1}</Typography.Text>
|
|
44
|
+
</View>
|
|
45
|
+
))}
|
|
46
|
+
</VStack>
|
|
47
|
+
</ScrollView>
|
|
48
|
+
|
|
49
|
+
<Typography.Text variant="body-s">Horizontal scroll without indicator:</Typography.Text>
|
|
50
|
+
<ScrollView horizontal height="$size.80" width="$size.208" showsHorizontalScrollIndicator={false}>
|
|
51
|
+
<HStack gap="$space.8" padding="$space.8">
|
|
52
|
+
{Array.from({ length: 8 }, (_, i) => (
|
|
53
|
+
<View
|
|
54
|
+
key={`item-${i}`}
|
|
55
|
+
backgroundColor="$bg.danger.mid"
|
|
56
|
+
padding="$space.12"
|
|
57
|
+
borderRadius="$radius.m"
|
|
58
|
+
width="$size.80"
|
|
59
|
+
>
|
|
60
|
+
<Typography.Text variant="body-s">Item {i + 1}</Typography.Text>
|
|
61
|
+
</View>
|
|
62
|
+
))}
|
|
63
|
+
</HStack>
|
|
64
|
+
</ScrollView>
|
|
65
|
+
</VStack>
|
|
66
|
+
),
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const ScrollDisabled: Story = {
|
|
70
|
+
render: () => (
|
|
71
|
+
<VStack gap="$space.16">
|
|
72
|
+
<Typography.Text variant="body-s">Scroll disabled (cannot scroll):</Typography.Text>
|
|
73
|
+
<ScrollView height="$size.120" width="$size.208" scrollEnabled={false}>
|
|
74
|
+
<VStack gap="$space.8" padding="$space.8">
|
|
75
|
+
{Array.from({ length: 8 }, (_, i) => (
|
|
76
|
+
<View key={`item-${i}`} backgroundColor="$bg.disabled.mid" padding="$space.12" borderRadius="$radius.m">
|
|
77
|
+
<Typography.Text variant="body-s">Item {i + 1}</Typography.Text>
|
|
78
|
+
</View>
|
|
79
|
+
))}
|
|
80
|
+
</VStack>
|
|
81
|
+
</ScrollView>
|
|
82
|
+
</VStack>
|
|
83
|
+
),
|
|
84
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Typography } from '../../../content/typography/Typography';
|
|
3
|
+
import { View } from '../View';
|
|
4
|
+
import { ScrollView } from './ScrollView';
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ScrollView> = {
|
|
7
|
+
title: 'Bumper/Core/Primitives/ScrollView',
|
|
8
|
+
component: ScrollView,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
argTypes: {
|
|
11
|
+
horizontal: {
|
|
12
|
+
control: 'boolean',
|
|
13
|
+
description: 'When true, the scroll view content is arranged horizontally',
|
|
14
|
+
},
|
|
15
|
+
scrollEnabled: {
|
|
16
|
+
control: 'boolean',
|
|
17
|
+
description: 'When false, the view cannot be scrolled',
|
|
18
|
+
},
|
|
19
|
+
showsVerticalScrollIndicator: {
|
|
20
|
+
control: 'boolean',
|
|
21
|
+
description: 'When true, shows a vertical scroll indicator',
|
|
22
|
+
},
|
|
23
|
+
showsHorizontalScrollIndicator: {
|
|
24
|
+
control: 'boolean',
|
|
25
|
+
description: 'When true, shows a horizontal scroll indicator',
|
|
26
|
+
},
|
|
27
|
+
height: {
|
|
28
|
+
control: 'select',
|
|
29
|
+
options: ['$size.96', '$size.120', '$size.144', '$size.176', '$size.208'],
|
|
30
|
+
description: 'Height of the scroll view (size token)',
|
|
31
|
+
},
|
|
32
|
+
width: {
|
|
33
|
+
control: 'select',
|
|
34
|
+
options: ['$size.176', '$size.208', '100%'],
|
|
35
|
+
description: 'Width of the scroll view (size token)',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default meta;
|
|
41
|
+
type Story = StoryObj<typeof meta>;
|
|
42
|
+
|
|
43
|
+
export const Default: Story = {
|
|
44
|
+
args: {
|
|
45
|
+
height: '$size.176',
|
|
46
|
+
width: '$size.208',
|
|
47
|
+
showsVerticalScrollIndicator: true,
|
|
48
|
+
},
|
|
49
|
+
render: (args) => (
|
|
50
|
+
<ScrollView
|
|
51
|
+
{...args}
|
|
52
|
+
contentContainerStyle={{
|
|
53
|
+
gap: '$space.8',
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
{Array.from({ length: 10 }, (_, i) => (
|
|
57
|
+
<View key={`item-${i}`} backgroundColor="$bg.info.mid" padding="$space.16" borderRadius="$radius.m">
|
|
58
|
+
<Typography.Text variant="body-s">Item {i + 1}</Typography.Text>
|
|
59
|
+
</View>
|
|
60
|
+
))}
|
|
61
|
+
</ScrollView>
|
|
62
|
+
),
|
|
63
|
+
};
|