@ornikar/bumper 3.6.2 → 3.7.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/definitions/system/actions/Button/Button.d.ts +3 -3
  3. package/dist/definitions/system/actions/IconButton/IconButton.d.ts +1 -1
  4. package/dist/definitions/system/content/icon/Icon.d.ts +1 -1
  5. package/dist/definitions/system/content/typography/Typography.d.ts.map +1 -1
  6. package/dist/definitions/system/types.d.ts +13 -2
  7. package/dist/definitions/system/types.d.ts.map +1 -1
  8. package/dist/index-metro.es.android.js +2 -1
  9. package/dist/index-metro.es.android.js.map +1 -1
  10. package/dist/index-metro.es.ios.js +2 -1
  11. package/dist/index-metro.es.ios.js.map +1 -1
  12. package/dist/index-node-22.22.cjs.js +2 -1
  13. package/dist/index-node-22.22.cjs.js.map +1 -1
  14. package/dist/index-node-22.22.cjs.web.js +2 -1
  15. package/dist/index-node-22.22.cjs.web.js.map +1 -1
  16. package/dist/index-node-22.22.es.mjs +2 -1
  17. package/dist/index-node-22.22.es.mjs.map +1 -1
  18. package/dist/index-node-22.22.es.web.mjs +2 -1
  19. package/dist/index-node-22.22.es.web.mjs.map +1 -1
  20. package/dist/index.es.js +2 -1
  21. package/dist/index.es.js.map +1 -1
  22. package/dist/index.es.web.js +2 -1
  23. package/dist/index.es.web.js.map +1 -1
  24. package/dist/tsbuildinfo +1 -1
  25. package/package.json +1 -1
  26. package/src/Bumper.mdx +5 -0
  27. package/src/system/actions/Button/Button.features.stories.tsx +13 -0
  28. package/src/system/actions/Button/Button.mdx +86 -0
  29. package/src/system/actions/Button/Button.stories.tsx +0 -1
  30. package/src/system/actions/Button/__snapshots__/Button.features.stories.tsx.snap +166 -0
  31. package/src/system/actions/Button/__snapshots_web__/Button.features.stories.tsx.snap +60 -0
  32. package/src/system/actions/IconButton/IconButton.features.stories.tsx +8 -0
  33. package/src/system/actions/IconButton/IconButton.mdx +74 -0
  34. package/src/system/actions/IconButton/IconButton.stories.tsx +0 -1
  35. package/src/system/actions/IconButton/__snapshots__/IconButton.features.stories.tsx.snap +76 -0
  36. package/src/system/actions/IconButton/__snapshots_web__/IconButton.features.stories.tsx.snap +39 -0
  37. package/src/system/content/icon/Icon.features.stories.tsx +12 -0
  38. package/src/system/content/icon/__snapshots__/Icon.features.stories.tsx.snap +28 -0
  39. package/src/system/content/icon/__snapshots_web__/Icon.features.stories.tsx.snap +32 -0
  40. package/src/system/content/typography/Typography.features.stories.tsx +8 -0
  41. package/src/system/content/typography/Typography.tsx +3 -1
  42. package/src/system/content/typography/TypographyIcon.features.stories.tsx +9 -0
  43. package/src/system/content/typography/TypographyLink.features.stories.tsx +9 -0
  44. package/src/system/content/typography/__snapshots__/Typography.features.stories.tsx.snap +29 -0
  45. package/src/system/content/typography/__snapshots__/TypographyIcon.features.stories.tsx.snap +45 -0
  46. package/src/system/content/typography/__snapshots__/TypographyLink.features.stories.tsx.snap +55 -0
  47. package/src/system/content/typography/__snapshots_web__/Typography.features.stories.tsx.snap +29 -0
  48. package/src/system/content/typography/__snapshots_web__/TypographyIcon.features.stories.tsx.snap +41 -0
  49. package/src/system/content/typography/__snapshots_web__/TypographyLink.features.stories.tsx.snap +36 -0
  50. package/src/system/core/primitives/Center.features.stories.tsx +17 -0
  51. package/src/system/core/primitives/Pressable.features.stories.tsx +18 -0
  52. package/src/system/core/primitives/ScrollView/ScrollView.features.stories.tsx +14 -0
  53. package/src/system/core/primitives/ScrollView/__snapshots__/ScrollView.features.stories.tsx.snap +350 -0
  54. package/src/system/core/primitives/ScrollView/__snapshots_web__/ScrollView.features.stories.tsx.snap +130 -0
  55. package/src/system/core/primitives/Stack.features.stories.tsx +29 -0
  56. package/src/system/core/primitives/View.features.stories.tsx +30 -0
  57. package/src/system/core/primitives/__snapshots__/Center.features.stories.tsx.snap +50 -0
  58. package/src/system/core/primitives/__snapshots__/Pressable.features.stories.tsx.snap +60 -0
  59. package/src/system/core/primitives/__snapshots__/Stack.features.stories.tsx.snap +126 -0
  60. package/src/system/core/primitives/__snapshots__/View.features.stories.tsx.snap +126 -0
  61. package/src/system/core/primitives/__snapshots_web__/Center.features.stories.tsx.snap +34 -1
  62. package/src/system/core/primitives/__snapshots_web__/Pressable.features.stories.tsx.snap +35 -0
  63. package/src/system/core/primitives/__snapshots_web__/Stack.features.stories.tsx.snap +55 -0
  64. package/src/system/core/primitives/__snapshots_web__/View.features.stories.tsx.snap +55 -0
  65. package/src/system/dataDisplays/Badge/Badge.features.stories.tsx +10 -0
  66. package/src/system/dataDisplays/Badge/__snapshots__/Badge.features.stories.tsx.snap +30 -0
  67. package/src/system/dataDisplays/Badge/__snapshots_web__/Badge.features.stories.tsx.snap +27 -0
  68. package/src/system/types.ts +14 -3
@@ -1121,6 +1121,132 @@ exports[`Bumper/Core/Primitives/Stack/Features NestedStacks 1`] = `
1121
1121
  </RNCSafeAreaProvider>
1122
1122
  `;
1123
1123
 
1124
+ exports[`Bumper/Core/Primitives/Stack/Features Responsive 1`] = `
1125
+ <RNCSafeAreaProvider
1126
+ onInsetsChange={[Function]}
1127
+ style={
1128
+ [
1129
+ {
1130
+ "flex": 1,
1131
+ },
1132
+ undefined,
1133
+ ]
1134
+ }
1135
+ >
1136
+ <View
1137
+ style={
1138
+ {
1139
+ "backgroundColor": "#F7F4EE",
1140
+ "borderBottomLeftRadius": 4,
1141
+ "borderBottomRightRadius": 4,
1142
+ "borderTopLeftRadius": 4,
1143
+ "borderTopRightRadius": 4,
1144
+ "flexDirection": "column",
1145
+ "gap": 8,
1146
+ "paddingBottom": 16,
1147
+ "paddingLeft": 16,
1148
+ "paddingRight": 16,
1149
+ "paddingTop": 16,
1150
+ }
1151
+ }
1152
+ >
1153
+ <View
1154
+ style={
1155
+ {
1156
+ "backgroundColor": "#563B56",
1157
+ "borderBottomLeftRadius": 2,
1158
+ "borderBottomRightRadius": 2,
1159
+ "borderTopLeftRadius": 2,
1160
+ "borderTopRightRadius": 2,
1161
+ "flexGrow": 1,
1162
+ "paddingBottom": 16,
1163
+ "paddingLeft": 16,
1164
+ "paddingRight": 16,
1165
+ "paddingTop": 16,
1166
+ }
1167
+ }
1168
+ >
1169
+ <Text
1170
+ style={
1171
+ {
1172
+ "color": "#ffffff",
1173
+ "fontFamily": "GTStandardRegular",
1174
+ "fontSize": 16,
1175
+ "letterSpacing": 0.3,
1176
+ "lineHeight": 24,
1177
+ }
1178
+ }
1179
+ suppressHighlighting={true}
1180
+ >
1181
+ Item 1
1182
+ </Text>
1183
+ </View>
1184
+ <View
1185
+ style={
1186
+ {
1187
+ "backgroundColor": "#43390A",
1188
+ "borderBottomLeftRadius": 2,
1189
+ "borderBottomRightRadius": 2,
1190
+ "borderTopLeftRadius": 2,
1191
+ "borderTopRightRadius": 2,
1192
+ "flexGrow": 1,
1193
+ "paddingBottom": 16,
1194
+ "paddingLeft": 16,
1195
+ "paddingRight": 16,
1196
+ "paddingTop": 16,
1197
+ }
1198
+ }
1199
+ >
1200
+ <Text
1201
+ style={
1202
+ {
1203
+ "color": "#ffffff",
1204
+ "fontFamily": "GTStandardRegular",
1205
+ "fontSize": 16,
1206
+ "letterSpacing": 0.3,
1207
+ "lineHeight": 24,
1208
+ }
1209
+ }
1210
+ suppressHighlighting={true}
1211
+ >
1212
+ Item 2
1213
+ </Text>
1214
+ </View>
1215
+ <View
1216
+ style={
1217
+ {
1218
+ "backgroundColor": "#1772AB",
1219
+ "borderBottomLeftRadius": 2,
1220
+ "borderBottomRightRadius": 2,
1221
+ "borderTopLeftRadius": 2,
1222
+ "borderTopRightRadius": 2,
1223
+ "flexGrow": 1,
1224
+ "paddingBottom": 16,
1225
+ "paddingLeft": 16,
1226
+ "paddingRight": 16,
1227
+ "paddingTop": 16,
1228
+ }
1229
+ }
1230
+ >
1231
+ <Text
1232
+ style={
1233
+ {
1234
+ "color": "#ffffff",
1235
+ "fontFamily": "GTStandardRegular",
1236
+ "fontSize": 16,
1237
+ "letterSpacing": 0.3,
1238
+ "lineHeight": 24,
1239
+ }
1240
+ }
1241
+ suppressHighlighting={true}
1242
+ >
1243
+ Item 3
1244
+ </Text>
1245
+ </View>
1246
+ </View>
1247
+ </RNCSafeAreaProvider>
1248
+ `;
1249
+
1124
1250
  exports[`Bumper/Core/Primitives/Stack/Features VStackBasic 1`] = `
1125
1251
  <RNCSafeAreaProvider
1126
1252
  onInsetsChange={[Function]}
@@ -2373,3 +2373,129 @@ exports[`Bumper/Core/Primitives/View/Features PaddingVariants 1`] = `
2373
2373
  </View>
2374
2374
  </RNCSafeAreaProvider>
2375
2375
  `;
2376
+
2377
+ exports[`Bumper/Core/Primitives/View/Features Responsive 1`] = `
2378
+ <RNCSafeAreaProvider
2379
+ onInsetsChange={[Function]}
2380
+ style={
2381
+ [
2382
+ {
2383
+ "flex": 1,
2384
+ },
2385
+ undefined,
2386
+ ]
2387
+ }
2388
+ >
2389
+ <View
2390
+ style={
2391
+ {
2392
+ "backgroundColor": "#F7F4EE",
2393
+ "borderBottomLeftRadius": 4,
2394
+ "borderBottomRightRadius": 4,
2395
+ "borderTopLeftRadius": 4,
2396
+ "borderTopRightRadius": 4,
2397
+ "flexDirection": "column",
2398
+ "gap": 8,
2399
+ "paddingBottom": 8,
2400
+ "paddingLeft": 8,
2401
+ "paddingRight": 8,
2402
+ "paddingTop": 8,
2403
+ }
2404
+ }
2405
+ >
2406
+ <View
2407
+ style={
2408
+ {
2409
+ "backgroundColor": "#563B56",
2410
+ "borderBottomLeftRadius": 2,
2411
+ "borderBottomRightRadius": 2,
2412
+ "borderTopLeftRadius": 2,
2413
+ "borderTopRightRadius": 2,
2414
+ "flexGrow": 1,
2415
+ "paddingBottom": 16,
2416
+ "paddingLeft": 16,
2417
+ "paddingRight": 16,
2418
+ "paddingTop": 16,
2419
+ }
2420
+ }
2421
+ >
2422
+ <Text
2423
+ style={
2424
+ {
2425
+ "color": "#ffffff",
2426
+ "fontFamily": "GTStandardRegular",
2427
+ "fontSize": 14,
2428
+ "letterSpacing": 0.3,
2429
+ "lineHeight": 20,
2430
+ }
2431
+ }
2432
+ suppressHighlighting={true}
2433
+ >
2434
+ Item 1
2435
+ </Text>
2436
+ </View>
2437
+ <View
2438
+ style={
2439
+ {
2440
+ "backgroundColor": "#43390A",
2441
+ "borderBottomLeftRadius": 2,
2442
+ "borderBottomRightRadius": 2,
2443
+ "borderTopLeftRadius": 2,
2444
+ "borderTopRightRadius": 2,
2445
+ "flexGrow": 1,
2446
+ "paddingBottom": 16,
2447
+ "paddingLeft": 16,
2448
+ "paddingRight": 16,
2449
+ "paddingTop": 16,
2450
+ }
2451
+ }
2452
+ >
2453
+ <Text
2454
+ style={
2455
+ {
2456
+ "color": "#ffffff",
2457
+ "fontFamily": "GTStandardRegular",
2458
+ "fontSize": 14,
2459
+ "letterSpacing": 0.3,
2460
+ "lineHeight": 20,
2461
+ }
2462
+ }
2463
+ suppressHighlighting={true}
2464
+ >
2465
+ Item 2
2466
+ </Text>
2467
+ </View>
2468
+ <View
2469
+ style={
2470
+ {
2471
+ "backgroundColor": "#1772AB",
2472
+ "borderBottomLeftRadius": 2,
2473
+ "borderBottomRightRadius": 2,
2474
+ "borderTopLeftRadius": 2,
2475
+ "borderTopRightRadius": 2,
2476
+ "flexGrow": 1,
2477
+ "paddingBottom": 16,
2478
+ "paddingLeft": 16,
2479
+ "paddingRight": 16,
2480
+ "paddingTop": 16,
2481
+ }
2482
+ }
2483
+ >
2484
+ <Text
2485
+ style={
2486
+ {
2487
+ "color": "#ffffff",
2488
+ "fontFamily": "GTStandardRegular",
2489
+ "fontSize": 14,
2490
+ "letterSpacing": 0.3,
2491
+ "lineHeight": 20,
2492
+ }
2493
+ }
2494
+ suppressHighlighting={true}
2495
+ >
2496
+ Item 3
2497
+ </Text>
2498
+ </View>
2499
+ </View>
2500
+ </RNCSafeAreaProvider>
2501
+ `;
@@ -33,7 +33,7 @@ exports[`Bumper/Core/Primitives/Center/Features CenteringText 1`] = `
33
33
  class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _justifyContent-center _alignItems-center _backgroundColor-bg--promo--1572356288 _paddingTop-t-space-spa1366020284 _paddingRight-t-space-spa1366020284 _paddingBottom-t-space-spa1366020284 _paddingLeft-t-space-spa1366020284 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410 _width-t-size-size42947793 _height-t-size-size42947793"
34
34
  >
35
35
  <span
36
- 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--ba254712717 _textAlign-center"
36
+ 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 _textAlign-center _col-content--ba254712717"
37
37
  >
38
38
  Multi-line centered text content
39
39
  </span>
@@ -100,3 +100,36 @@ exports[`Bumper/Core/Primitives/Center/Features CircularCentering 1`] = `
100
100
  </div>
101
101
  </DocumentFragment>
102
102
  `;
103
+
104
+ exports[`Bumper/Core/Primitives/Center/Features Responsive 1`] = `
105
+ <DocumentFragment>
106
+ <div
107
+ class="css-view-g5y9jx r-flex-13awgt0"
108
+ >
109
+ <span
110
+ class=""
111
+ style="display: contents;"
112
+ >
113
+ <span
114
+ class=" "
115
+ style="display: contents;"
116
+ >
117
+ <span
118
+ class=" t_light is_Theme"
119
+ style="display: contents;"
120
+ >
121
+ <div
122
+ class="_width-_medium_t-size-size42947793 _height-_medium_t-size-size42947793 _paddingTop-_medium_t-space-spa1366020284 _paddingRight-_medium_t-space-spa1366020284 _paddingBottom-_medium_t-space-spa1366020284 _paddingLeft-_medium_t-space-spa1366020284 _dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _justifyContent-center _alignItems-center _backgroundColor-bg--accent-1633109644 _width-t-size-size1385661 _height-t-size-size1385661 _paddingTop-t-space-spa94482166 _paddingRight-t-space-spa94482166 _paddingBottom-t-space-spa94482166 _paddingLeft-t-space-spa94482166 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410"
123
+ >
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-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _fw-f-weight-re98715119 _textAlign-center _col-content--ba254712717"
126
+ >
127
+ Responsive
128
+ </span>
129
+ </div>
130
+ </span>
131
+ </span>
132
+ </span>
133
+ </div>
134
+ </DocumentFragment>
135
+ `;
@@ -182,3 +182,38 @@ exports[`Bumper/Core/Primitives/Pressable/Features PressEffects 1`] = `
182
182
  </div>
183
183
  </DocumentFragment>
184
184
  `;
185
+
186
+ exports[`Bumper/Core/Primitives/Pressable/Features Responsive 1`] = `
187
+ <DocumentFragment>
188
+ <div
189
+ class="css-view-g5y9jx r-flex-13awgt0"
190
+ >
191
+ <span
192
+ class=""
193
+ style="display: contents;"
194
+ >
195
+ <span
196
+ class=" "
197
+ style="display: contents;"
198
+ >
199
+ <span
200
+ class=" t_light is_Theme"
201
+ style="display: contents;"
202
+ >
203
+ <div
204
+ class="is_Pressable _tr-0active-scale0--981281 _paddingTop-_medium_t-space-spa1366020313 _paddingRight-_medium_t-space-spa1366020313 _paddingBottom-_medium_t-space-spa1366020313 _paddingLeft-_medium_t-space-spa1366020313 _btlr-_medium_t-radius-ra1673638410 _btrr-_medium_t-radius-ra1673638410 _bbrr-_medium_t-radius-ra1673638410 _bblr-_medium_t-radius-ra1673638410 _paddingTop-_large_t-space-spa1366020284 _paddingRight-_large_t-space-spa1366020284 _paddingBottom-_large_t-space-spa1366020284 _paddingLeft-_large_t-space-spa1366020284 _btlr-_large_t-radius-ra1673638409 _btrr-_large_t-radius-ra1673638409 _bbrr-_large_t-radius-ra1673638409 _bblr-_large_t-radius-ra1673638409 _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _cur-pointer _backgroundColor-bg--accent-1633109644 _paddingTop-t-space-spa94482166 _paddingRight-t-space-spa94482166 _paddingBottom-t-space-spa94482166 _paddingLeft-t-space-spa94482166 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416"
205
+ role="button"
206
+ tabindex="0"
207
+ >
208
+ <span
209
+ 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--ba254712717"
210
+ >
211
+ Responsive padding and radius
212
+ </span>
213
+ </div>
214
+ </span>
215
+ </span>
216
+ </span>
217
+ </div>
218
+ </DocumentFragment>
219
+ `;
@@ -426,6 +426,61 @@ exports[`Bumper/Core/Primitives/Stack/Features NestedStacks 1`] = `
426
426
  </DocumentFragment>
427
427
  `;
428
428
 
429
+ exports[`Bumper/Core/Primitives/Stack/Features Responsive 1`] = `
430
+ <DocumentFragment>
431
+ <div
432
+ class="css-view-g5y9jx r-flex-13awgt0"
433
+ >
434
+ <span
435
+ class=""
436
+ style="display: contents;"
437
+ >
438
+ <span
439
+ class=" "
440
+ style="display: contents;"
441
+ >
442
+ <span
443
+ class=" t_light is_Theme"
444
+ style="display: contents;"
445
+ >
446
+ <div
447
+ class="_fd-_medium_row _gap-_medium_t-space-spa1366020313 _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166 _backgroundColor-bg--base--m757972454 _paddingTop-t-space-spa1366020313 _paddingRight-t-space-spa1366020313 _paddingBottom-t-space-spa1366020313 _paddingLeft-t-space-spa1366020313 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410"
448
+ >
449
+ <div
450
+ class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _backgroundColor-bg--accent-1633109644 _paddingTop-t-space-spa1366020313 _paddingRight-t-space-spa1366020313 _paddingBottom-t-space-spa1366020313 _paddingLeft-t-space-spa1366020313 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _flexGrow-1"
451
+ >
452
+ <span
453
+ 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--ba254712717"
454
+ >
455
+ Item 1
456
+ </span>
457
+ </div>
458
+ <div
459
+ class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _backgroundColor-bg--promo--1572356288 _paddingTop-t-space-spa1366020313 _paddingRight-t-space-spa1366020313 _paddingBottom-t-space-spa1366020313 _paddingLeft-t-space-spa1366020313 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _flexGrow-1"
460
+ >
461
+ <span
462
+ 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--ba254712717"
463
+ >
464
+ Item 2
465
+ </span>
466
+ </div>
467
+ <div
468
+ class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _backgroundColor-bg--info--h105 _paddingTop-t-space-spa1366020313 _paddingRight-t-space-spa1366020313 _paddingBottom-t-space-spa1366020313 _paddingLeft-t-space-spa1366020313 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _flexGrow-1"
469
+ >
470
+ <span
471
+ 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--ba254712717"
472
+ >
473
+ Item 3
474
+ </span>
475
+ </div>
476
+ </div>
477
+ </span>
478
+ </span>
479
+ </span>
480
+ </div>
481
+ </DocumentFragment>
482
+ `;
483
+
429
484
  exports[`Bumper/Core/Primitives/Stack/Features VStackBasic 1`] = `
430
485
  <DocumentFragment>
431
486
  <div
@@ -879,3 +879,58 @@ exports[`Bumper/Core/Primitives/View/Features PaddingVariants 1`] = `
879
879
  </div>
880
880
  </DocumentFragment>
881
881
  `;
882
+
883
+ exports[`Bumper/Core/Primitives/View/Features Responsive 1`] = `
884
+ <DocumentFragment>
885
+ <div
886
+ class="css-view-g5y9jx r-flex-13awgt0"
887
+ >
888
+ <span
889
+ class=""
890
+ style="display: contents;"
891
+ >
892
+ <span
893
+ class=" "
894
+ style="display: contents;"
895
+ >
896
+ <span
897
+ class=" t_light is_Theme"
898
+ style="display: contents;"
899
+ >
900
+ <div
901
+ class="_paddingTop-_medium_t-space-spa1366020313 _paddingRight-_medium_t-space-spa1366020313 _paddingBottom-_medium_t-space-spa1366020313 _paddingLeft-_medium_t-space-spa1366020313 _fd-_medium_row _gap-_medium_t-space-spa1366020313 _paddingTop-_large_t-space-spa1366020255 _paddingRight-_large_t-space-spa1366020255 _paddingBottom-_large_t-space-spa1366020255 _paddingLeft-_large_t-space-spa1366020255 _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _backgroundColor-bg--base--m757972454 _paddingTop-t-space-spa94482166 _paddingRight-t-space-spa94482166 _paddingBottom-t-space-spa94482166 _paddingLeft-t-space-spa94482166 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410 _fd-column _gap-t-space-spa94482166"
902
+ >
903
+ <div
904
+ class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _backgroundColor-bg--accent-1633109644 _paddingTop-t-space-spa1366020313 _paddingRight-t-space-spa1366020313 _paddingBottom-t-space-spa1366020313 _paddingLeft-t-space-spa1366020313 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _flexGrow-1"
905
+ >
906
+ <span
907
+ 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--ba254712717"
908
+ >
909
+ Item 1
910
+ </span>
911
+ </div>
912
+ <div
913
+ class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _backgroundColor-bg--promo--1572356288 _paddingTop-t-space-spa1366020313 _paddingRight-t-space-spa1366020313 _paddingBottom-t-space-spa1366020313 _paddingLeft-t-space-spa1366020313 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _flexGrow-1"
914
+ >
915
+ <span
916
+ 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--ba254712717"
917
+ >
918
+ Item 2
919
+ </span>
920
+ </div>
921
+ <div
922
+ class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _backgroundColor-bg--info--h105 _paddingTop-t-space-spa1366020313 _paddingRight-t-space-spa1366020313 _paddingBottom-t-space-spa1366020313 _paddingLeft-t-space-spa1366020313 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _flexGrow-1"
923
+ >
924
+ <span
925
+ 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--ba254712717"
926
+ >
927
+ Item 3
928
+ </span>
929
+ </div>
930
+ </div>
931
+ </span>
932
+ </span>
933
+ </span>
934
+ </div>
935
+ </DocumentFragment>
936
+ `;
@@ -35,3 +35,13 @@ export const WithMaximumCount: Story = {
35
35
  </HStack>
36
36
  ),
37
37
  };
38
+
39
+ export const Responsive: Story = {
40
+ render: () => (
41
+ <Badge
42
+ $wide={{
43
+ count: 3,
44
+ }}
45
+ />
46
+ ),
47
+ };
@@ -1,5 +1,35 @@
1
1
  // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
+ exports[`Bumper/Data Displays/Badge/Features Responsive 1`] = `
4
+ <RNCSafeAreaProvider
5
+ onInsetsChange={[Function]}
6
+ style={
7
+ [
8
+ {
9
+ "flex": 1,
10
+ },
11
+ undefined,
12
+ ]
13
+ }
14
+ >
15
+ <View
16
+ style={
17
+ {
18
+ "alignItems": "center",
19
+ "backgroundColor": "#E2483D",
20
+ "borderBottomLeftRadius": 1000,
21
+ "borderBottomRightRadius": 1000,
22
+ "borderTopLeftRadius": 1000,
23
+ "borderTopRightRadius": 1000,
24
+ "height": 8,
25
+ "justifyContent": "center",
26
+ "width": 8,
27
+ }
28
+ }
29
+ />
30
+ </RNCSafeAreaProvider>
31
+ `;
32
+
3
33
  exports[`Bumper/Data Displays/Badge/Features WithCount 1`] = `
4
34
  <RNCSafeAreaProvider
5
35
  onInsetsChange={[Function]}
@@ -1,5 +1,32 @@
1
1
  // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
+ exports[`Bumper/Data Displays/Badge/Features Responsive 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="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _width-8px _height-8px"
22
+ />
23
+ </span>
24
+ </span>
25
+ </span>
26
+ </div>
27
+ </DocumentFragment>
28
+ `;
29
+
3
30
  exports[`Bumper/Data Displays/Badge/Features WithCount 1`] = `
4
31
  <DocumentFragment>
5
32
  <div
@@ -1,8 +1,19 @@
1
- import type { WithMediaProps } from '@tamagui/core';
1
+ // eslint-disable-next-line no-restricted-imports
2
+ import type { PropsWithoutMediaStyles as InternalPropsWithoutMediaStyles, WithMediaProps } from '@tamagui/core';
2
3
 
3
- // Rewrite PropsWithoutMediaStyles to fix Tamagui's one. Which make optionnall all media props, even if they are required in the original props type. This is a problem for our components which have required media props (like variant for Typography).
4
+ /**
5
+ * Rewrite of Tamagui PropsWithoutMediaStyles to make all responsive props optionnal.
6
+ * @internal Do not use directly, use TamaguiMediaProps instead.
7
+ */
4
8
  export type PropsWithoutMediaStyles<A> = {
5
9
  [Key in keyof A as Key extends `$${string}` ? never : Key]: A[Key];
6
10
  };
7
11
 
8
- export type TamaguiMediaProps<A> = PropsWithoutMediaStyles<A> & WithMediaProps<PropsWithoutMediaStyles<A>>;
12
+ /**
13
+ * Wraps a component's base props to add responsive breakpoint overrides.
14
+ *
15
+ * Strips all `$`-prefixed media keys from `A` (keeping base props required as defined),
16
+ * then re-adds them as optional via Tamagui's `WithMediaProps`. This lets consumers
17
+ * pass breakpoint-specific prop objects alongside regular props.
18
+ */
19
+ export type TamaguiMediaProps<A> = PropsWithoutMediaStyles<A> & WithMediaProps<InternalPropsWithoutMediaStyles<A>>;