@ornikar/bumper 2.8.1-canary.1768927687.5a0439490957cfbbe8b8c5136c5fc68b0828466d.0 → 2.8.1-canary.1769087114.a46790da1b5b6361954b6ad25766074d3ed69784.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 -1
- package/dist/definitions/index.d.ts +2 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/shared/storybook/StoryTitle.d.ts +1 -1
- package/dist/definitions/shared/storybook/helpers/argsHelpers.d.ts +8 -0
- package/dist/definitions/shared/storybook/helpers/argsHelpers.d.ts.map +1 -0
- package/dist/definitions/system/content/typography/Typography.d.ts +5 -14
- package/dist/definitions/system/content/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/TypographyLink.d.ts +9 -0
- package/dist/definitions/system/content/typography/TypographyLink.d.ts.map +1 -0
- package/dist/definitions/system/content/typography/index.d.ts +21 -0
- package/dist/definitions/system/content/typography/index.d.ts.map +1 -0
- package/dist/definitions/system/core/themes/light/light.d.ts +3 -0
- package/dist/definitions/system/core/themes/light/light.d.ts.map +1 -0
- package/dist/definitions/system/core/themes/themes.d.ts +6 -0
- package/dist/definitions/system/core/themes/themes.d.ts.map +1 -0
- package/dist/definitions/tamagui.config.d.ts +1 -57
- package/dist/definitions/tamagui.config.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +139 -105
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +139 -105
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +143 -109
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +143 -109
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +145 -111
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +145 -111
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +137 -103
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +137 -103
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -1
- package/src/shared/storybook/StoryTitle.tsx +1 -1
- package/src/shared/storybook/helpers/argsHelpers.ts +47 -0
- package/src/system/content/icon/Icon.features.stories.tsx +1 -1
- package/src/system/content/icon/Icon.stories.tsx +3 -22
- package/src/system/content/typography/Typography.features.stories.tsx +1 -1
- package/src/system/content/typography/Typography.stories.tsx +3 -23
- package/src/system/content/typography/Typography.tsx +2 -14
- package/src/system/content/typography/TypographyIcon.features.stories.tsx +1 -1
- package/src/system/content/typography/TypographyIcon.stories.tsx +2 -19
- package/src/system/content/typography/TypographyLink.features.stories.tsx +62 -0
- package/src/system/content/typography/TypographyLink.stories.tsx +72 -0
- package/src/system/content/typography/TypographyLink.tsx +38 -0
- package/src/system/content/typography/__snapshots__/TypographyLink.features.stories.tsx.snap +229 -0
- package/src/system/content/typography/__snapshots__/TypographyLink.stories.tsx.snap +41 -0
- package/src/system/content/typography/__snapshots_web__/TypographyLink.features.stories.tsx.snap +196 -0
- package/src/system/content/typography/__snapshots_web__/TypographyLink.stories.tsx.snap +33 -0
- package/src/system/content/typography/index.ts +15 -0
- package/src/system/core/primitives/Center.features.stories.tsx +1 -1
- package/src/system/core/primitives/Center.stories.tsx +6 -89
- package/src/system/core/primitives/Image/Image.stories.tsx +3 -8
- package/src/system/core/primitives/Pressable.features.stories.tsx +1 -1
- package/src/system/core/primitives/Pressable.stories.tsx +4 -53
- package/src/system/core/primitives/ScrollView/ScrollView.features.stories.tsx +1 -1
- package/src/system/core/primitives/ScrollView/ScrollView.stories.tsx +3 -6
- package/src/system/core/primitives/Stack.features.stories.tsx +1 -1
- package/src/system/core/primitives/Stack.stories.tsx +4 -39
- package/src/system/core/primitives/View.features.stories.tsx +1 -1
- package/src/system/core/primitives/View.stories.tsx +6 -107
- package/src/system/core/themes/{light.stories.tsx → light/light.stories.tsx} +5 -5
- package/src/system/core/themes/{light.ts → light/light.ts} +3 -2
- package/src/system/core/themes/themes.ts +69 -0
- package/src/system/core/tokens/breakpoints.stories.tsx +1 -1
- package/src/system/core/tokens/fonts.stories.tsx +1 -1
- package/src/system/core/tokens/palettes/deepPurpleColorPalette.stories.tsx +1 -1
- package/src/system/core/tokens/radius.stories.tsx +1 -1
- package/src/system/core/tokens/size.stories.tsx +1 -1
- package/src/system/core/tokens/space.stories.tsx +1 -1
- package/src/tamagui.config.ts +1 -1
- package/dist/definitions/system/core/themes/light.d.ts +0 -58
- package/dist/definitions/system/core/themes/light.d.ts.map +0 -1
- /package/src/system/core/themes/{__snapshots__ → light/__snapshots__}/light.stories.tsx.snap +0 -0
- /package/src/system/core/themes/{__snapshots_web__ → light/__snapshots_web__}/light.stories.tsx.snap +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Bumper/Content/TypographyLink Default 1`] = `
|
|
4
|
+
<RNCSafeAreaProvider
|
|
5
|
+
onInsetsChange={[Function]}
|
|
6
|
+
style={
|
|
7
|
+
[
|
|
8
|
+
{
|
|
9
|
+
"flex": 1,
|
|
10
|
+
},
|
|
11
|
+
undefined,
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
>
|
|
15
|
+
<Text
|
|
16
|
+
onBlur={[Function]}
|
|
17
|
+
onClick={[Function]}
|
|
18
|
+
onFocus={[Function]}
|
|
19
|
+
onResponderGrant={[Function]}
|
|
20
|
+
onResponderMove={[Function]}
|
|
21
|
+
onResponderRelease={[Function]}
|
|
22
|
+
onResponderTerminate={[Function]}
|
|
23
|
+
onResponderTerminationRequest={[Function]}
|
|
24
|
+
onStartShouldSetResponder={[Function]}
|
|
25
|
+
role="link"
|
|
26
|
+
style={
|
|
27
|
+
{
|
|
28
|
+
"color": "#563B56",
|
|
29
|
+
"fontFamily": "GTStandardRegular",
|
|
30
|
+
"fontSize": 16,
|
|
31
|
+
"letterSpacing": 0.3,
|
|
32
|
+
"lineHeight": 24,
|
|
33
|
+
"textDecorationLine": "underline",
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
suppressHighlighting={true}
|
|
37
|
+
>
|
|
38
|
+
This is a link
|
|
39
|
+
</Text>
|
|
40
|
+
</RNCSafeAreaProvider>
|
|
41
|
+
`;
|
package/src/system/content/typography/__snapshots_web__/TypographyLink.features.stories.tsx.snap
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Bumper/Content/TypographyLink/Features DisabledFalse 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
|
+
<span
|
|
21
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _ls-inherit _tt-inherit _td-underline _cur-pointer is_TypographyLink "
|
|
22
|
+
data-disable-theme="true"
|
|
23
|
+
role="link"
|
|
24
|
+
tabindex="0"
|
|
25
|
+
>
|
|
26
|
+
Enabled link (clickable with pointer cursor)
|
|
27
|
+
</span>
|
|
28
|
+
</span>
|
|
29
|
+
</span>
|
|
30
|
+
</span>
|
|
31
|
+
</div>
|
|
32
|
+
</DocumentFragment>
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
exports[`Bumper/Content/TypographyLink/Features DisabledTrue 1`] = `
|
|
36
|
+
<DocumentFragment>
|
|
37
|
+
<div
|
|
38
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
39
|
+
>
|
|
40
|
+
<span
|
|
41
|
+
class=""
|
|
42
|
+
style="display: contents;"
|
|
43
|
+
>
|
|
44
|
+
<span
|
|
45
|
+
class=" "
|
|
46
|
+
style="display: contents;"
|
|
47
|
+
>
|
|
48
|
+
<span
|
|
49
|
+
class=" t_light is_Theme"
|
|
50
|
+
style="display: contents;"
|
|
51
|
+
>
|
|
52
|
+
<span
|
|
53
|
+
aria-disabled="true"
|
|
54
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _ls-inherit _tt-inherit _td-underline _cur-not-allowed _col-content--di910006857 is_TypographyLink "
|
|
55
|
+
data-disable-theme="true"
|
|
56
|
+
role="link"
|
|
57
|
+
tabindex="0"
|
|
58
|
+
>
|
|
59
|
+
Disabled link (not-allowed cursor, onPress removed)
|
|
60
|
+
</span>
|
|
61
|
+
</span>
|
|
62
|
+
</span>
|
|
63
|
+
</span>
|
|
64
|
+
</div>
|
|
65
|
+
</DocumentFragment>
|
|
66
|
+
`;
|
|
67
|
+
|
|
68
|
+
exports[`Bumper/Content/TypographyLink/Features NoUnderlineFalse 1`] = `
|
|
69
|
+
<DocumentFragment>
|
|
70
|
+
<div
|
|
71
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
72
|
+
>
|
|
73
|
+
<span
|
|
74
|
+
class=""
|
|
75
|
+
style="display: contents;"
|
|
76
|
+
>
|
|
77
|
+
<span
|
|
78
|
+
class=" "
|
|
79
|
+
style="display: contents;"
|
|
80
|
+
>
|
|
81
|
+
<span
|
|
82
|
+
class=" t_light is_Theme"
|
|
83
|
+
style="display: contents;"
|
|
84
|
+
>
|
|
85
|
+
<span
|
|
86
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _ls-inherit _tt-inherit _cur-pointer _td-underline is_TypographyLink "
|
|
87
|
+
data-disable-theme="true"
|
|
88
|
+
role="link"
|
|
89
|
+
tabindex="0"
|
|
90
|
+
>
|
|
91
|
+
Link with underline (default)
|
|
92
|
+
</span>
|
|
93
|
+
</span>
|
|
94
|
+
</span>
|
|
95
|
+
</span>
|
|
96
|
+
</div>
|
|
97
|
+
</DocumentFragment>
|
|
98
|
+
`;
|
|
99
|
+
|
|
100
|
+
exports[`Bumper/Content/TypographyLink/Features NoUnderlineTrue 1`] = `
|
|
101
|
+
<DocumentFragment>
|
|
102
|
+
<div
|
|
103
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
104
|
+
>
|
|
105
|
+
<span
|
|
106
|
+
class=""
|
|
107
|
+
style="display: contents;"
|
|
108
|
+
>
|
|
109
|
+
<span
|
|
110
|
+
class=" "
|
|
111
|
+
style="display: contents;"
|
|
112
|
+
>
|
|
113
|
+
<span
|
|
114
|
+
class=" t_light is_Theme"
|
|
115
|
+
style="display: contents;"
|
|
116
|
+
>
|
|
117
|
+
<span
|
|
118
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _ls-inherit _tt-inherit _cur-pointer _td-none is_TypographyLink "
|
|
119
|
+
data-disable-theme="true"
|
|
120
|
+
role="link"
|
|
121
|
+
tabindex="0"
|
|
122
|
+
>
|
|
123
|
+
Link without underline
|
|
124
|
+
</span>
|
|
125
|
+
</span>
|
|
126
|
+
</span>
|
|
127
|
+
</span>
|
|
128
|
+
</div>
|
|
129
|
+
</DocumentFragment>
|
|
130
|
+
`;
|
|
131
|
+
|
|
132
|
+
exports[`Bumper/Content/TypographyLink/Features StateHover 1`] = `
|
|
133
|
+
<DocumentFragment>
|
|
134
|
+
<div
|
|
135
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
136
|
+
>
|
|
137
|
+
<span
|
|
138
|
+
class=""
|
|
139
|
+
style="display: contents;"
|
|
140
|
+
>
|
|
141
|
+
<span
|
|
142
|
+
class=" "
|
|
143
|
+
style="display: contents;"
|
|
144
|
+
>
|
|
145
|
+
<span
|
|
146
|
+
class=" t_light is_Theme"
|
|
147
|
+
style="display: contents;"
|
|
148
|
+
>
|
|
149
|
+
<div
|
|
150
|
+
class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa1366020313"
|
|
151
|
+
>
|
|
152
|
+
<span
|
|
153
|
+
class="font_GTStandard is_TypographyLink "
|
|
154
|
+
data-disable-theme="true"
|
|
155
|
+
role="link"
|
|
156
|
+
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space: inherit; margin: 0px 0px 0px 0px; font-family: var(--f-family); -webkit-font-smoothing: antialiased; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-decoration-line: none;"
|
|
157
|
+
tabindex="0"
|
|
158
|
+
>
|
|
159
|
+
Forced hover state - underline removed (hoverStyle applied)
|
|
160
|
+
</span>
|
|
161
|
+
<span
|
|
162
|
+
class="font_GTStandard is_TypographyLink "
|
|
163
|
+
data-disable-theme="true"
|
|
164
|
+
role="link"
|
|
165
|
+
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space: inherit; margin: 0px 0px 0px 0px; font-family: var(--f-family); -webkit-font-smoothing: antialiased; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-decoration-line: none;"
|
|
166
|
+
tabindex="0"
|
|
167
|
+
>
|
|
168
|
+
Forced hover state with noUnderline - no visual change
|
|
169
|
+
</span>
|
|
170
|
+
<span
|
|
171
|
+
aria-disabled="true"
|
|
172
|
+
class="font_GTStandard is_TypographyLink "
|
|
173
|
+
data-disable-theme="true"
|
|
174
|
+
role="link"
|
|
175
|
+
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space: inherit; margin: 0px 0px 0px 0px; font-family: var(--f-family); -webkit-font-smoothing: antialiased; letter-spacing: inherit; text-transform: inherit; text-decoration-line: underline; cursor: not-allowed; color: var(--content--disabled);"
|
|
176
|
+
tabindex="0"
|
|
177
|
+
>
|
|
178
|
+
Forced hover state on disabled - underline removed (hoverStyle applied)
|
|
179
|
+
</span>
|
|
180
|
+
<span
|
|
181
|
+
aria-disabled="true"
|
|
182
|
+
class="font_GTStandard is_TypographyLink "
|
|
183
|
+
data-disable-theme="true"
|
|
184
|
+
role="link"
|
|
185
|
+
style="display: inline; box-sizing: border-box; word-wrap: break-word; white-space: inherit; margin: 0px 0px 0px 0px; font-family: var(--f-family); -webkit-font-smoothing: antialiased; letter-spacing: inherit; text-transform: inherit; cursor: not-allowed; color: var(--content--disabled); text-decoration-line: none;"
|
|
186
|
+
tabindex="0"
|
|
187
|
+
>
|
|
188
|
+
Forced hover state with noUnderline on disabled - no visual change
|
|
189
|
+
</span>
|
|
190
|
+
</div>
|
|
191
|
+
</span>
|
|
192
|
+
</span>
|
|
193
|
+
</span>
|
|
194
|
+
</div>
|
|
195
|
+
</DocumentFragment>
|
|
196
|
+
`;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Bumper/Content/TypographyLink Default 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
|
+
<span
|
|
21
|
+
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _td-0hover-none _dsp-inline _bxs-border-box _ww-break-word _ws-inherit _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _ls-f-letterSpa1099960304 _tt-inherit _fs-f-size-body1504 _lh-f-lineHeigh201793147 _fw-f-weight-re98715119 _col-content--ac3049896 _cur-pointer _td-underline is_TypographyLink "
|
|
22
|
+
data-disable-theme="true"
|
|
23
|
+
role="link"
|
|
24
|
+
tabindex="0"
|
|
25
|
+
>
|
|
26
|
+
This is a link
|
|
27
|
+
</span>
|
|
28
|
+
</span>
|
|
29
|
+
</span>
|
|
30
|
+
</span>
|
|
31
|
+
</div>
|
|
32
|
+
</DocumentFragment>
|
|
33
|
+
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TypographyBase, createHeading } from './Typography';
|
|
2
|
+
import { TypographyIcon } from './TypographyIcon';
|
|
3
|
+
import { TypographyLink } from './TypographyLink';
|
|
4
|
+
|
|
5
|
+
export const Typography = {
|
|
6
|
+
Text: TypographyBase,
|
|
7
|
+
Header1: createHeading(1),
|
|
8
|
+
Header2: createHeading(2),
|
|
9
|
+
Header3: createHeading(3),
|
|
10
|
+
Header4: createHeading(4),
|
|
11
|
+
Header5: createHeading(5),
|
|
12
|
+
Header6: createHeading(6),
|
|
13
|
+
Icon: TypographyIcon,
|
|
14
|
+
Link: TypographyLink,
|
|
15
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { backgroundColorArgType, sizeArgType, spaceArgType } from '../../../shared/storybook/helpers/argsHelpers';
|
|
3
|
+
import { Typography } from '../../content/typography';
|
|
3
4
|
import { Center } from './Center';
|
|
4
5
|
|
|
5
6
|
const meta: Meta<typeof Center> = {
|
|
@@ -7,94 +8,10 @@ const meta: Meta<typeof Center> = {
|
|
|
7
8
|
component: Center,
|
|
8
9
|
tags: ['autodocs'],
|
|
9
10
|
argTypes: {
|
|
10
|
-
backgroundColor:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'$bg.base.low.pressed',
|
|
15
|
-
'$bg.base.mid.default',
|
|
16
|
-
'$bg.base.mid.pressed',
|
|
17
|
-
'$bg.base.hi.default',
|
|
18
|
-
'$bg.base.hi.pressed',
|
|
19
|
-
'$bg.accent.default',
|
|
20
|
-
'$bg.accent.pressed',
|
|
21
|
-
'$bg.promo.mid.default',
|
|
22
|
-
'$bg.promo.mid.pressed',
|
|
23
|
-
'$bg.promo.hi.default',
|
|
24
|
-
'$bg.promo.hi.pressed',
|
|
25
|
-
'$bg.highlight.mid.default',
|
|
26
|
-
'$bg.highlight.mid.pressed',
|
|
27
|
-
'$bg.highlight.hi.default',
|
|
28
|
-
'$bg.highlight.hi.pressed',
|
|
29
|
-
'$bg.info.mid',
|
|
30
|
-
'$bg.info.hi',
|
|
31
|
-
'$bg.success.mid',
|
|
32
|
-
'$bg.success.hi',
|
|
33
|
-
'$bg.warning.mid',
|
|
34
|
-
'$bg.warning.hi',
|
|
35
|
-
'$bg.danger.mid',
|
|
36
|
-
'$bg.danger.hi',
|
|
37
|
-
'$bg.disabled.mid',
|
|
38
|
-
'$bg.disabled.hi',
|
|
39
|
-
'$bg.overlay',
|
|
40
|
-
],
|
|
41
|
-
description: 'Background color (semantic theme token)',
|
|
42
|
-
},
|
|
43
|
-
padding: {
|
|
44
|
-
control: 'select',
|
|
45
|
-
options: [
|
|
46
|
-
'$space.none',
|
|
47
|
-
'$space.2',
|
|
48
|
-
'$space.4',
|
|
49
|
-
'$space.8',
|
|
50
|
-
'$space.12',
|
|
51
|
-
'$space.16',
|
|
52
|
-
'$space.24',
|
|
53
|
-
'$space.32',
|
|
54
|
-
'$space.40',
|
|
55
|
-
'$space.48',
|
|
56
|
-
'$space.56',
|
|
57
|
-
'$space.64',
|
|
58
|
-
'$space.80',
|
|
59
|
-
],
|
|
60
|
-
description: 'Padding (space token)',
|
|
61
|
-
},
|
|
62
|
-
width: {
|
|
63
|
-
control: 'select',
|
|
64
|
-
options: [
|
|
65
|
-
'$size.16',
|
|
66
|
-
'$size.20',
|
|
67
|
-
'$size.24',
|
|
68
|
-
'$size.32',
|
|
69
|
-
'$size.48',
|
|
70
|
-
'$size.64',
|
|
71
|
-
'$size.80',
|
|
72
|
-
'$size.96',
|
|
73
|
-
'$size.120',
|
|
74
|
-
'$size.144',
|
|
75
|
-
'$size.176',
|
|
76
|
-
'$size.208',
|
|
77
|
-
],
|
|
78
|
-
description: 'Width (size token)',
|
|
79
|
-
},
|
|
80
|
-
height: {
|
|
81
|
-
control: 'select',
|
|
82
|
-
options: [
|
|
83
|
-
'$size.16',
|
|
84
|
-
'$size.20',
|
|
85
|
-
'$size.24',
|
|
86
|
-
'$size.32',
|
|
87
|
-
'$size.48',
|
|
88
|
-
'$size.64',
|
|
89
|
-
'$size.80',
|
|
90
|
-
'$size.96',
|
|
91
|
-
'$size.120',
|
|
92
|
-
'$size.144',
|
|
93
|
-
'$size.176',
|
|
94
|
-
'$size.208',
|
|
95
|
-
],
|
|
96
|
-
description: 'Height (size token)',
|
|
97
|
-
},
|
|
11
|
+
backgroundColor: backgroundColorArgType,
|
|
12
|
+
padding: spaceArgType,
|
|
13
|
+
width: sizeArgType,
|
|
14
|
+
height: sizeArgType,
|
|
98
15
|
},
|
|
99
16
|
};
|
|
100
17
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { sizeArgType } from '../../../../shared/storybook/helpers/argsHelpers';
|
|
2
3
|
import { Image } from './Image';
|
|
3
4
|
|
|
4
5
|
const meta: Meta<typeof Image> = {
|
|
@@ -9,14 +10,8 @@ const meta: Meta<typeof Image> = {
|
|
|
9
10
|
source: {
|
|
10
11
|
table: { disable: true },
|
|
11
12
|
},
|
|
12
|
-
width:
|
|
13
|
-
|
|
14
|
-
options: ['$size.48', '$size.64', '$size.96', '$size.120', '$size.144'],
|
|
15
|
-
},
|
|
16
|
-
height: {
|
|
17
|
-
control: 'select',
|
|
18
|
-
options: ['$size.48', '$size.64', '$size.96', '$size.120', '$size.144'],
|
|
19
|
-
},
|
|
13
|
+
width: sizeArgType,
|
|
14
|
+
height: sizeArgType,
|
|
20
15
|
resizeMode: {
|
|
21
16
|
control: 'select',
|
|
22
17
|
options: ['cover', 'contain', 'stretch', 'center'],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { backgroundColorArgType, spaceArgType } from '../../../shared/storybook/helpers/argsHelpers';
|
|
3
|
+
import { Typography } from '../../content/typography';
|
|
3
4
|
import { Pressable } from './Pressable';
|
|
4
5
|
|
|
5
6
|
const meta: Meta<typeof Pressable> = {
|
|
@@ -7,58 +8,8 @@ const meta: Meta<typeof Pressable> = {
|
|
|
7
8
|
component: Pressable,
|
|
8
9
|
tags: ['autodocs'],
|
|
9
10
|
argTypes: {
|
|
10
|
-
backgroundColor:
|
|
11
|
-
|
|
12
|
-
options: [
|
|
13
|
-
'$bg.base.low.default',
|
|
14
|
-
'$bg.base.low.pressed',
|
|
15
|
-
'$bg.base.mid.default',
|
|
16
|
-
'$bg.base.mid.pressed',
|
|
17
|
-
'$bg.base.hi.default',
|
|
18
|
-
'$bg.base.hi.pressed',
|
|
19
|
-
'$bg.accent.default',
|
|
20
|
-
'$bg.accent.pressed',
|
|
21
|
-
'$bg.promo.mid.default',
|
|
22
|
-
'$bg.promo.mid.pressed',
|
|
23
|
-
'$bg.promo.hi.default',
|
|
24
|
-
'$bg.promo.hi.pressed',
|
|
25
|
-
'$bg.highlight.mid.default',
|
|
26
|
-
'$bg.highlight.mid.pressed',
|
|
27
|
-
'$bg.highlight.hi.default',
|
|
28
|
-
'$bg.highlight.hi.pressed',
|
|
29
|
-
'$bg.info.mid',
|
|
30
|
-
'$bg.info.hi',
|
|
31
|
-
'$bg.success.mid',
|
|
32
|
-
'$bg.success.hi',
|
|
33
|
-
'$bg.warning.mid',
|
|
34
|
-
'$bg.warning.hi',
|
|
35
|
-
'$bg.danger.mid',
|
|
36
|
-
'$bg.danger.hi',
|
|
37
|
-
'$bg.disabled.mid',
|
|
38
|
-
'$bg.disabled.hi',
|
|
39
|
-
'$bg.overlay',
|
|
40
|
-
],
|
|
41
|
-
description: 'Background color (semantic theme token)',
|
|
42
|
-
},
|
|
43
|
-
padding: {
|
|
44
|
-
control: 'select',
|
|
45
|
-
options: [
|
|
46
|
-
'$space.none',
|
|
47
|
-
'$space.2',
|
|
48
|
-
'$space.4',
|
|
49
|
-
'$space.8',
|
|
50
|
-
'$space.12',
|
|
51
|
-
'$space.16',
|
|
52
|
-
'$space.24',
|
|
53
|
-
'$space.32',
|
|
54
|
-
'$space.40',
|
|
55
|
-
'$space.48',
|
|
56
|
-
'$space.56',
|
|
57
|
-
'$space.64',
|
|
58
|
-
'$space.80',
|
|
59
|
-
],
|
|
60
|
-
description: 'Padding (space token)',
|
|
61
|
-
},
|
|
11
|
+
backgroundColor: backgroundColorArgType,
|
|
12
|
+
padding: spaceArgType,
|
|
62
13
|
pressStyle: {
|
|
63
14
|
control: 'object',
|
|
64
15
|
description: 'Styles to apply on press',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Typography } from '../../../content/typography
|
|
2
|
+
import { Typography } from '../../../content/typography';
|
|
3
3
|
import { HStack, VStack } from '../Stack';
|
|
4
4
|
import { View } from '../View';
|
|
5
5
|
import { ScrollView } from './ScrollView';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { sizeArgType } from '../../../../shared/storybook/helpers/argsHelpers';
|
|
3
|
+
import { Typography } from '../../../content/typography';
|
|
3
4
|
import { View } from '../View';
|
|
4
5
|
import { ScrollView } from './ScrollView';
|
|
5
6
|
|
|
@@ -24,11 +25,7 @@ const meta: Meta<typeof ScrollView> = {
|
|
|
24
25
|
control: 'boolean',
|
|
25
26
|
description: 'When true, shows a horizontal scroll indicator',
|
|
26
27
|
},
|
|
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
|
-
},
|
|
28
|
+
height: sizeArgType,
|
|
32
29
|
width: {
|
|
33
30
|
control: 'select',
|
|
34
31
|
options: ['$size.176', '$size.208', '100%'],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { spaceArgType } from '../../../shared/storybook/helpers/argsHelpers';
|
|
3
|
+
import { Typography } from '../../content/typography';
|
|
3
4
|
import { Stack } from './Stack';
|
|
4
5
|
import { View } from './View';
|
|
5
6
|
|
|
@@ -13,44 +14,8 @@ const meta: Meta<typeof Stack> = {
|
|
|
13
14
|
options: ['row', 'column', 'row-reverse', 'column-reverse'],
|
|
14
15
|
description: 'Flex direction',
|
|
15
16
|
},
|
|
16
|
-
gap:
|
|
17
|
-
|
|
18
|
-
options: [
|
|
19
|
-
'$space.none',
|
|
20
|
-
'$space.2',
|
|
21
|
-
'$space.4',
|
|
22
|
-
'$space.8',
|
|
23
|
-
'$space.12',
|
|
24
|
-
'$space.16',
|
|
25
|
-
'$space.24',
|
|
26
|
-
'$space.32',
|
|
27
|
-
'$space.40',
|
|
28
|
-
'$space.48',
|
|
29
|
-
'$space.56',
|
|
30
|
-
'$space.64',
|
|
31
|
-
'$space.80',
|
|
32
|
-
],
|
|
33
|
-
description: 'Gap between items (space token)',
|
|
34
|
-
},
|
|
35
|
-
padding: {
|
|
36
|
-
control: 'select',
|
|
37
|
-
options: [
|
|
38
|
-
'$space.none',
|
|
39
|
-
'$space.2',
|
|
40
|
-
'$space.4',
|
|
41
|
-
'$space.8',
|
|
42
|
-
'$space.12',
|
|
43
|
-
'$space.16',
|
|
44
|
-
'$space.24',
|
|
45
|
-
'$space.32',
|
|
46
|
-
'$space.40',
|
|
47
|
-
'$space.48',
|
|
48
|
-
'$space.56',
|
|
49
|
-
'$space.64',
|
|
50
|
-
'$space.80',
|
|
51
|
-
],
|
|
52
|
-
description: 'Padding (space token)',
|
|
53
|
-
},
|
|
17
|
+
gap: spaceArgType,
|
|
18
|
+
padding: spaceArgType,
|
|
54
19
|
},
|
|
55
20
|
};
|
|
56
21
|
|