@ornikar/bumper 2.7.2-canary.1768566928.e85c568dc49c9180e37b7aec8792b1e8d45968a6.0 → 2.8.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 +4 -4
- package/CLAUDE.md +45 -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/{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 +42 -26
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +42 -26
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +42 -26
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +42 -26
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +42 -26
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +42 -26
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +36 -20
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +36 -20
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +9 -9
- 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 +7 -808
- 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/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 +9 -6
- 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 +5 -5
- 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 +30 -22
- 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 +3 -3
- package/src/system/core/themes/__snapshots__/light.stories.tsx.snap +3822 -2233
- package/src/system/core/themes/__snapshots_web__/light.stories.tsx.snap +1244 -992
- 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 +1525 -1257
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Bumper/Core/Primitives/View Default 1`] = `
|
|
4
4
|
<RNCSafeAreaProvider
|
|
5
5
|
onInsetsChange={[Function]}
|
|
6
6
|
style={
|
|
@@ -15,9 +15,11 @@ exports[`bumper/Primitives View 1`] = `
|
|
|
15
15
|
<View
|
|
16
16
|
style={
|
|
17
17
|
{
|
|
18
|
-
"backgroundColor": "#
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"backgroundColor": "#F7F4EE",
|
|
19
|
+
"paddingBottom": 16,
|
|
20
|
+
"paddingLeft": 16,
|
|
21
|
+
"paddingRight": 16,
|
|
22
|
+
"paddingTop": 16,
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
/>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Bumper/Core/Primitives/Center/Features CenteringText 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="css-view-175oi2r 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 _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
class="_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 _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"
|
|
25
|
+
>
|
|
26
|
+
<span
|
|
27
|
+
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-head100347208 _lh-f-lineHeigh1544154447 _ls-f-letterSpa1195674554 _col-content--ba254712717 _fw-f-weight-se1074390495"
|
|
28
|
+
data-disable-theme="true"
|
|
29
|
+
>
|
|
30
|
+
Title
|
|
31
|
+
</span>
|
|
32
|
+
</div>
|
|
33
|
+
<div
|
|
34
|
+
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"
|
|
35
|
+
>
|
|
36
|
+
<span
|
|
37
|
+
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 _col-content--ba254712717 _textAlign-center"
|
|
38
|
+
data-disable-theme="true"
|
|
39
|
+
>
|
|
40
|
+
Multi-line centered text content
|
|
41
|
+
</span>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</span>
|
|
45
|
+
</span>
|
|
46
|
+
</span>
|
|
47
|
+
</div>
|
|
48
|
+
</DocumentFragment>
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
exports[`Bumper/Core/Primitives/Center/Features CircularCentering 1`] = `
|
|
52
|
+
<DocumentFragment>
|
|
53
|
+
<div
|
|
54
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
55
|
+
>
|
|
56
|
+
<span
|
|
57
|
+
class=""
|
|
58
|
+
style="display: contents;"
|
|
59
|
+
>
|
|
60
|
+
<span
|
|
61
|
+
class=" "
|
|
62
|
+
style="display: contents;"
|
|
63
|
+
>
|
|
64
|
+
<span
|
|
65
|
+
class=" t_light is_Theme"
|
|
66
|
+
style="display: contents;"
|
|
67
|
+
>
|
|
68
|
+
<div
|
|
69
|
+
class="is_HStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313"
|
|
70
|
+
>
|
|
71
|
+
<div
|
|
72
|
+
class="_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 _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _width-t-size-size1385624 _height-t-size-size1385624"
|
|
73
|
+
>
|
|
74
|
+
<span
|
|
75
|
+
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 _col-content--ba254712717 _fw-f-weight-se1074390495"
|
|
76
|
+
data-disable-theme="true"
|
|
77
|
+
>
|
|
78
|
+
1
|
|
79
|
+
</span>
|
|
80
|
+
</div>
|
|
81
|
+
<div
|
|
82
|
+
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 _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _width-t-size-size1385624 _height-t-size-size1385624"
|
|
83
|
+
>
|
|
84
|
+
<span
|
|
85
|
+
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 _col-content--ba254712717 _fw-f-weight-se1074390495"
|
|
86
|
+
data-disable-theme="true"
|
|
87
|
+
>
|
|
88
|
+
2
|
|
89
|
+
</span>
|
|
90
|
+
</div>
|
|
91
|
+
<div
|
|
92
|
+
class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _justifyContent-center _alignItems-center _backgroundColor-bg--info--h105 _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _width-t-size-size1385624 _height-t-size-size1385624"
|
|
93
|
+
>
|
|
94
|
+
<span
|
|
95
|
+
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 _col-content--ba254712717 _fw-f-weight-se1074390495"
|
|
96
|
+
data-disable-theme="true"
|
|
97
|
+
>
|
|
98
|
+
3
|
|
99
|
+
</span>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</span>
|
|
103
|
+
</span>
|
|
104
|
+
</span>
|
|
105
|
+
</div>
|
|
106
|
+
</DocumentFragment>
|
|
107
|
+
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Bumper/Core/Primitives/Center Default 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="css-view-
|
|
6
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
7
7
|
>
|
|
8
8
|
<span
|
|
9
9
|
class=""
|
|
@@ -18,11 +18,14 @@ exports[`bumper/Primitives Center 1`] = `
|
|
|
18
18
|
style="display: contents;"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="
|
|
21
|
+
class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _justifyContent-center _alignItems-center _backgroundColor-bg--base--m757972454 _paddingTop-t-space-spa1516347322 _paddingRight-t-space-spa1516347322 _paddingBottom-t-space-spa1516347322 _paddingLeft-t-space-spa1516347322 _width-t-size-size42948634 _height-t-size-size42947727"
|
|
22
22
|
>
|
|
23
|
-
<
|
|
24
|
-
class="
|
|
25
|
-
|
|
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"
|
|
25
|
+
data-disable-theme="true"
|
|
26
|
+
>
|
|
27
|
+
Centered content
|
|
28
|
+
</span>
|
|
26
29
|
</div>
|
|
27
30
|
</span>
|
|
28
31
|
</span>
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Bumper/Core/Primitives/Pressable/Features HoverEffects 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="css-view-175oi2r 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_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
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
class="is_Pressable _backgroundColor-0hover-bg--highlig2124217748 _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _cur-pointer _backgroundColor-bg--highlig1870923013 _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"
|
|
25
|
+
role="button"
|
|
26
|
+
tabindex="0"
|
|
27
|
+
>
|
|
28
|
+
<span
|
|
29
|
+
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"
|
|
30
|
+
data-disable-theme="true"
|
|
31
|
+
>
|
|
32
|
+
Hover to change background
|
|
33
|
+
</span>
|
|
34
|
+
</div>
|
|
35
|
+
<div
|
|
36
|
+
class="is_Pressable _tr-0hover-scale1--051281 _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-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"
|
|
37
|
+
role="button"
|
|
38
|
+
tabindex="0"
|
|
39
|
+
>
|
|
40
|
+
<span
|
|
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 _col-content--ba254712717"
|
|
42
|
+
data-disable-theme="true"
|
|
43
|
+
>
|
|
44
|
+
Hover to scale up
|
|
45
|
+
</span>
|
|
46
|
+
</div>
|
|
47
|
+
<div
|
|
48
|
+
class="is_Pressable _o-0hover-0--8 _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _cur-pointer _backgroundColor-bg--promo--1572356288 _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"
|
|
49
|
+
role="button"
|
|
50
|
+
tabindex="0"
|
|
51
|
+
>
|
|
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-body1504 _lh-f-lineHeigh201793147 _ls-f-letterSpa1099960304 _col-content--ba254712717"
|
|
54
|
+
data-disable-theme="true"
|
|
55
|
+
>
|
|
56
|
+
Hover to reduce opacity
|
|
57
|
+
</span>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</span>
|
|
61
|
+
</span>
|
|
62
|
+
</span>
|
|
63
|
+
</div>
|
|
64
|
+
</DocumentFragment>
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
exports[`Bumper/Core/Primitives/Pressable/Features PolymorphicAs 1`] = `
|
|
68
|
+
<DocumentFragment>
|
|
69
|
+
<div
|
|
70
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
71
|
+
>
|
|
72
|
+
<span
|
|
73
|
+
class=""
|
|
74
|
+
style="display: contents;"
|
|
75
|
+
>
|
|
76
|
+
<span
|
|
77
|
+
class=" "
|
|
78
|
+
style="display: contents;"
|
|
79
|
+
>
|
|
80
|
+
<span
|
|
81
|
+
class=" t_light is_Theme"
|
|
82
|
+
style="display: contents;"
|
|
83
|
+
>
|
|
84
|
+
<div
|
|
85
|
+
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"
|
|
86
|
+
>
|
|
87
|
+
<div
|
|
88
|
+
class="is_Pressable _backgroundColor-0hover-bg--accent-798789461 _tr-0active-scale0--981281 _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-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"
|
|
89
|
+
role="button"
|
|
90
|
+
tabindex="0"
|
|
91
|
+
>
|
|
92
|
+
<span
|
|
93
|
+
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-labe105292 _lh-f-lineHeigh1842530171 _ls-f-letterSpa379059034 _col-content--ba254712717 _fw-f-weight-se1074390495"
|
|
94
|
+
data-disable-theme="true"
|
|
95
|
+
>
|
|
96
|
+
Default as View
|
|
97
|
+
</span>
|
|
98
|
+
</div>
|
|
99
|
+
<div
|
|
100
|
+
class="is_Pressable _backgroundColor-0hover-bg--promo--290711903 _tr-0active-scale0--981281 _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _cur-pointer _gap-t-space-spa1366020317 _backgroundColor-bg--promo--1572356288 _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"
|
|
101
|
+
role="button"
|
|
102
|
+
tabindex="0"
|
|
103
|
+
>
|
|
104
|
+
<span
|
|
105
|
+
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-labe105292 _lh-f-lineHeigh1842530171 _ls-f-letterSpa379059034 _col-content--ba254712717 _fw-f-weight-se1074390495"
|
|
106
|
+
data-disable-theme="true"
|
|
107
|
+
>
|
|
108
|
+
Pressable as HStack
|
|
109
|
+
</span>
|
|
110
|
+
</div>
|
|
111
|
+
<div
|
|
112
|
+
class="is_Pressable _o-0hover-0--9 _tr-0active-scale0--981281 _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _cur-pointer _gap-t-space-spa94482166 _backgroundColor-bg--info--h105 _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 _alignItems-center"
|
|
113
|
+
role="button"
|
|
114
|
+
tabindex="0"
|
|
115
|
+
>
|
|
116
|
+
<span
|
|
117
|
+
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-labe105292 _lh-f-lineHeigh1842530171 _ls-f-letterSpa379059034 _col-content--ba254712717 _fw-f-weight-se1074390495"
|
|
118
|
+
data-disable-theme="true"
|
|
119
|
+
>
|
|
120
|
+
Pressable as VStack
|
|
121
|
+
</span>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</span>
|
|
125
|
+
</span>
|
|
126
|
+
</span>
|
|
127
|
+
</div>
|
|
128
|
+
</DocumentFragment>
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
exports[`Bumper/Core/Primitives/Pressable/Features PressEffects 1`] = `
|
|
132
|
+
<DocumentFragment>
|
|
133
|
+
<div
|
|
134
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
135
|
+
>
|
|
136
|
+
<span
|
|
137
|
+
class=""
|
|
138
|
+
style="display: contents;"
|
|
139
|
+
>
|
|
140
|
+
<span
|
|
141
|
+
class=" "
|
|
142
|
+
style="display: contents;"
|
|
143
|
+
>
|
|
144
|
+
<span
|
|
145
|
+
class=" t_light is_Theme"
|
|
146
|
+
style="display: contents;"
|
|
147
|
+
>
|
|
148
|
+
<div
|
|
149
|
+
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"
|
|
150
|
+
>
|
|
151
|
+
<div
|
|
152
|
+
class="is_Pressable _tr-0active-scale0--951281 _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-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"
|
|
153
|
+
role="button"
|
|
154
|
+
tabindex="0"
|
|
155
|
+
>
|
|
156
|
+
<span
|
|
157
|
+
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 _col-content--ba254712717"
|
|
158
|
+
data-disable-theme="true"
|
|
159
|
+
>
|
|
160
|
+
Press to scale down
|
|
161
|
+
</span>
|
|
162
|
+
</div>
|
|
163
|
+
<div
|
|
164
|
+
class="is_Pressable _backgroundColor-0active-bg--promo--290711903 _o-0active-0--9 _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _cur-pointer _backgroundColor-bg--promo--1572356288 _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"
|
|
165
|
+
role="button"
|
|
166
|
+
tabindex="0"
|
|
167
|
+
>
|
|
168
|
+
<span
|
|
169
|
+
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 _col-content--ba254712717"
|
|
170
|
+
data-disable-theme="true"
|
|
171
|
+
>
|
|
172
|
+
Press to change background and opacity
|
|
173
|
+
</span>
|
|
174
|
+
</div>
|
|
175
|
+
<div
|
|
176
|
+
class="is_Pressable _tr-0active-scale0--98rot1220288525 _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _cur-pointer _backgroundColor-bg--info--h105 _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"
|
|
177
|
+
role="button"
|
|
178
|
+
tabindex="0"
|
|
179
|
+
>
|
|
180
|
+
<span
|
|
181
|
+
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 _col-content--ba254712717"
|
|
182
|
+
data-disable-theme="true"
|
|
183
|
+
>
|
|
184
|
+
Press to scale and rotate
|
|
185
|
+
</span>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</span>
|
|
189
|
+
</span>
|
|
190
|
+
</span>
|
|
191
|
+
</div>
|
|
192
|
+
</DocumentFragment>
|
|
193
|
+
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Bumper/Core/Primitives/Pressable Default 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="css-view-
|
|
6
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
7
7
|
>
|
|
8
8
|
<span
|
|
9
9
|
class=""
|
|
@@ -18,15 +18,15 @@ exports[`bumper/Primitives Pressable 1`] = `
|
|
|
18
18
|
style="display: contents;"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="is_Pressable
|
|
21
|
+
class="is_Pressable _backgroundColor-0active-bg--accent-798789461 _tr-0active-scale0--981281 _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-spa1366020313 _paddingRight-t-space-spa1366020313 _paddingBottom-t-space-spa1366020313 _paddingLeft-t-space-spa1366020313"
|
|
22
22
|
role="button"
|
|
23
23
|
tabindex="0"
|
|
24
24
|
>
|
|
25
25
|
<span
|
|
26
|
-
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased
|
|
26
|
+
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 _col-content--ba254712717"
|
|
27
27
|
data-disable-theme="true"
|
|
28
28
|
>
|
|
29
|
-
|
|
29
|
+
Press me
|
|
30
30
|
</span>
|
|
31
31
|
</div>
|
|
32
32
|
</span>
|