@ornikar/bumper 2.8.1-canary.1768839311.501438316959a9593513e74c70cb87b0597f2db6.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 +6 -6
- package/dist/definitions/index.d.ts +5 -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/icon/Icon.d.ts +4 -7
- package/dist/definitions/system/content/icon/Icon.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/Typography.d.ts +11 -19
- package/dist/definitions/system/content/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/TypographyIcon.d.ts +9 -0
- package/dist/definitions/system/content/typography/TypographyIcon.d.ts.map +1 -0
- 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/TypographyView.d.ts +18 -0
- package/dist/definitions/system/content/typography/TypographyView.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/content/typography/utils/getVariantAndWeightValues.d.ts +2 -1
- package/dist/definitions/system/content/typography/utils/getVariantAndWeightValues.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/utils/typographyContext.d.ts +16 -0
- package/dist/definitions/system/content/typography/utils/typographyContext.d.ts.map +1 -0
- package/dist/definitions/system/core/primitives/Image/Image.d.ts +3 -0
- package/dist/definitions/system/core/primitives/Image/Image.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 +151 -12
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +151 -12
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +154 -8
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +154 -8
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +155 -10
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +155 -10
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +149 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +149 -12
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +11 -10
- package/src/index.ts +5 -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/icon/Icon.tsx +4 -14
- package/src/system/content/icon/__snapshots_web__/Icon.features.stories.tsx.snap +2 -2
- package/src/system/content/icon/__snapshots_web__/Icon.stories.tsx.snap +1 -1
- 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 +24 -27
- package/src/system/content/typography/TypographyIcon.features.stories.tsx +163 -0
- package/src/system/content/typography/TypographyIcon.stories.tsx +35 -0
- package/src/system/content/typography/TypographyIcon.tsx +33 -0
- 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/TypographyView.tsx +34 -0
- package/src/system/content/typography/__snapshots__/TypographyIcon.features.stories.tsx.snap +839 -0
- package/src/system/content/typography/__snapshots__/TypographyIcon.stories.tsx.snap +31 -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__/Typography.features.stories.tsx.snap +7 -7
- package/src/system/content/typography/__snapshots_web__/Typography.stories.tsx.snap +1 -1
- package/src/system/content/typography/__snapshots_web__/TypographyIcon.features.stories.tsx.snap +543 -0
- package/src/system/content/typography/__snapshots_web__/TypographyIcon.stories.tsx.snap +37 -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/content/typography/utils/getVariantAndWeightValues.tsx +2 -6
- package/src/system/content/typography/utils/typographyContext.ts +29 -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 +34 -0
- package/src/system/core/primitives/Image/Image.ts +2 -0
- package/src/system/core/primitives/Image/__snapshots__/Image.stories.tsx.snap +30 -0
- package/src/system/core/primitives/Image/__snapshots_web__/Image.stories.tsx.snap +40 -0
- 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/ScrollView/__snapshots_web__/ScrollView.features.stories.tsx.snap +11 -11
- package/src/system/core/primitives/ScrollView/__snapshots_web__/ScrollView.stories.tsx.snap +3 -3
- 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/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/__snapshots_web__}/light.stories.tsx.snap +1 -1
- 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/__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/breakpoints.stories.tsx +1 -1
- package/src/system/core/tokens/fonts.stories.tsx +1 -1
- package/src/system/core/tokens/palettes/__snapshots_web__/deepPurpleColorPalette.stories.tsx.snap +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/primitives/ScrollView/__snapshots_web__/ScrollView.features.stories.tsx.snap
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Bumper/Core/Primitives/ScrollView/Features HiddenIndicators 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=""
|
|
@@ -30,10 +30,10 @@ exports[`Bumper/Core/Primitives/ScrollView/Features HiddenIndicators 1`] = `
|
|
|
30
30
|
class="_dsp_contents"
|
|
31
31
|
>
|
|
32
32
|
<div
|
|
33
|
-
class="css-view-
|
|
33
|
+
class="css-view-175oi2r r-WebkitOverflowScrolling-150rngu r-flexDirection-eqz5dr r-flexGrow-16y2uox r-flexShrink-1wbh5a2 r-overflowX-11yh6sk r-overflowY-1rnoaur r-transform-agouwx is_ScrollView _height-t-size-size42947727 _width-t-size-size42948634 r-scrollbarWidth-2eszeu"
|
|
34
34
|
>
|
|
35
35
|
<div
|
|
36
|
-
class="css-view-
|
|
36
|
+
class="css-view-175oi2r"
|
|
37
37
|
>
|
|
38
38
|
<div
|
|
39
39
|
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-spa94482166 _paddingTop-t-space-spa94482166 _paddingRight-t-space-spa94482166 _paddingBottom-t-space-spa94482166 _paddingLeft-t-space-spa94482166"
|
|
@@ -132,10 +132,10 @@ exports[`Bumper/Core/Primitives/ScrollView/Features HiddenIndicators 1`] = `
|
|
|
132
132
|
class="_dsp_contents"
|
|
133
133
|
>
|
|
134
134
|
<div
|
|
135
|
-
class="css-view-
|
|
135
|
+
class="css-view-175oi2r r-WebkitOverflowScrolling-150rngu r-flexDirection-18u37iz r-flexGrow-16y2uox r-flexShrink-1wbh5a2 r-overflowX-lltvgl r-overflowY-buy8e9 r-transform-agouwx is_ScrollView _height-t-size-size1385624 _width-t-size-size42948634 r-scrollbarWidth-2eszeu"
|
|
136
136
|
>
|
|
137
137
|
<div
|
|
138
|
-
class="css-view-
|
|
138
|
+
class="css-view-175oi2r r-flexDirection-18u37iz"
|
|
139
139
|
>
|
|
140
140
|
<div
|
|
141
141
|
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-spa94482166 _paddingTop-t-space-spa94482166 _paddingRight-t-space-spa94482166 _paddingBottom-t-space-spa94482166 _paddingLeft-t-space-spa94482166"
|
|
@@ -235,7 +235,7 @@ exports[`Bumper/Core/Primitives/ScrollView/Features HiddenIndicators 1`] = `
|
|
|
235
235
|
exports[`Bumper/Core/Primitives/ScrollView/Features HorizontalScroll 1`] = `
|
|
236
236
|
<DocumentFragment>
|
|
237
237
|
<div
|
|
238
|
-
class="css-view-
|
|
238
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
239
239
|
>
|
|
240
240
|
<span
|
|
241
241
|
class=""
|
|
@@ -253,10 +253,10 @@ exports[`Bumper/Core/Primitives/ScrollView/Features HorizontalScroll 1`] = `
|
|
|
253
253
|
class="_dsp_contents"
|
|
254
254
|
>
|
|
255
255
|
<div
|
|
256
|
-
class="css-view-
|
|
256
|
+
class="css-view-175oi2r r-WebkitOverflowScrolling-150rngu r-flexDirection-18u37iz r-flexGrow-16y2uox r-flexShrink-1wbh5a2 r-overflowX-lltvgl r-overflowY-buy8e9 r-transform-agouwx is_ScrollView _height-t-size-size1385661 _width-t-size-size42948634"
|
|
257
257
|
>
|
|
258
258
|
<div
|
|
259
|
-
class="css-view-
|
|
259
|
+
class="css-view-175oi2r r-flexDirection-18u37iz"
|
|
260
260
|
>
|
|
261
261
|
<div
|
|
262
262
|
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-spa94482166 _paddingTop-t-space-spa94482166 _paddingRight-t-space-spa94482166 _paddingBottom-t-space-spa94482166 _paddingLeft-t-space-spa94482166"
|
|
@@ -375,7 +375,7 @@ exports[`Bumper/Core/Primitives/ScrollView/Features HorizontalScroll 1`] = `
|
|
|
375
375
|
exports[`Bumper/Core/Primitives/ScrollView/Features ScrollDisabled 1`] = `
|
|
376
376
|
<DocumentFragment>
|
|
377
377
|
<div
|
|
378
|
-
class="css-view-
|
|
378
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
379
379
|
>
|
|
380
380
|
<span
|
|
381
381
|
class=""
|
|
@@ -402,10 +402,10 @@ exports[`Bumper/Core/Primitives/ScrollView/Features ScrollDisabled 1`] = `
|
|
|
402
402
|
class="_dsp_contents"
|
|
403
403
|
>
|
|
404
404
|
<div
|
|
405
|
-
class="css-view-
|
|
405
|
+
class="css-view-175oi2r r-WebkitOverflowScrolling-150rngu r-flexDirection-eqz5dr r-flexGrow-16y2uox r-flexShrink-1wbh5a2 r-transform-agouwx is_ScrollView _height-t-size-size42947727 _width-t-size-size42948634 r-overflowX-11yh6sk r-overflowY-buy8e9 r-touchAction-19z077z"
|
|
406
406
|
>
|
|
407
407
|
<div
|
|
408
|
-
class="css-view-
|
|
408
|
+
class="css-view-175oi2r"
|
|
409
409
|
>
|
|
410
410
|
<div
|
|
411
411
|
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-spa94482166 _paddingTop-t-space-spa94482166 _paddingRight-t-space-spa94482166 _paddingBottom-t-space-spa94482166 _paddingLeft-t-space-spa94482166"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Bumper/Core/Primitives/ScrollView 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=""
|
|
@@ -21,10 +21,10 @@ exports[`Bumper/Core/Primitives/ScrollView Default 1`] = `
|
|
|
21
21
|
class="_dsp_contents"
|
|
22
22
|
>
|
|
23
23
|
<div
|
|
24
|
-
class="css-view-
|
|
24
|
+
class="css-view-175oi2r r-WebkitOverflowScrolling-150rngu r-flexDirection-eqz5dr r-flexGrow-16y2uox r-flexShrink-1wbh5a2 r-overflowX-11yh6sk r-overflowY-1rnoaur r-transform-agouwx is_ScrollView _height-t-size-size42947888 _width-t-size-size42948634"
|
|
25
25
|
>
|
|
26
26
|
<div
|
|
27
|
-
class="css-view-
|
|
27
|
+
class="css-view-175oi2r"
|
|
28
28
|
style="gap: var(--t-space-space--8);"
|
|
29
29
|
>
|
|
30
30
|
<div
|
|
@@ -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
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { backgroundColorArgType, sizeArgType, spaceArgType } from '../../../shared/storybook/helpers/argsHelpers';
|
|
2
3
|
import { View } from './View';
|
|
3
4
|
|
|
4
5
|
const meta: Meta<typeof View> = {
|
|
@@ -6,113 +7,11 @@ const meta: Meta<typeof View> = {
|
|
|
6
7
|
component: View,
|
|
7
8
|
tags: ['autodocs'],
|
|
8
9
|
argTypes: {
|
|
9
|
-
backgroundColor:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'$bg.base.mid.default',
|
|
15
|
-
'$bg.base.mid.pressed',
|
|
16
|
-
'$bg.base.hi.default',
|
|
17
|
-
'$bg.base.hi.pressed',
|
|
18
|
-
'$bg.accent.default',
|
|
19
|
-
'$bg.accent.pressed',
|
|
20
|
-
'$bg.promo.mid.default',
|
|
21
|
-
'$bg.promo.mid.pressed',
|
|
22
|
-
'$bg.promo.hi.default',
|
|
23
|
-
'$bg.promo.hi.pressed',
|
|
24
|
-
'$bg.highlight.mid.default',
|
|
25
|
-
'$bg.highlight.mid.pressed',
|
|
26
|
-
'$bg.highlight.hi.default',
|
|
27
|
-
'$bg.highlight.hi.pressed',
|
|
28
|
-
'$bg.info.mid',
|
|
29
|
-
'$bg.info.hi',
|
|
30
|
-
'$bg.success.mid',
|
|
31
|
-
'$bg.success.hi',
|
|
32
|
-
'$bg.warning.mid',
|
|
33
|
-
'$bg.warning.hi',
|
|
34
|
-
'$bg.danger.mid',
|
|
35
|
-
'$bg.danger.hi',
|
|
36
|
-
'$bg.disabled.mid',
|
|
37
|
-
'$bg.disabled.hi',
|
|
38
|
-
'$bg.overlay',
|
|
39
|
-
],
|
|
40
|
-
description: 'Background color (semantic theme token)',
|
|
41
|
-
},
|
|
42
|
-
padding: {
|
|
43
|
-
control: 'select',
|
|
44
|
-
options: [
|
|
45
|
-
'$space.none',
|
|
46
|
-
'$space.2',
|
|
47
|
-
'$space.4',
|
|
48
|
-
'$space.8',
|
|
49
|
-
'$space.12',
|
|
50
|
-
'$space.16',
|
|
51
|
-
'$space.24',
|
|
52
|
-
'$space.32',
|
|
53
|
-
'$space.40',
|
|
54
|
-
'$space.48',
|
|
55
|
-
'$space.56',
|
|
56
|
-
'$space.64',
|
|
57
|
-
'$space.80',
|
|
58
|
-
],
|
|
59
|
-
description: 'Padding (space token)',
|
|
60
|
-
},
|
|
61
|
-
margin: {
|
|
62
|
-
control: 'select',
|
|
63
|
-
options: [
|
|
64
|
-
'$space.none',
|
|
65
|
-
'$space.2',
|
|
66
|
-
'$space.4',
|
|
67
|
-
'$space.8',
|
|
68
|
-
'$space.12',
|
|
69
|
-
'$space.16',
|
|
70
|
-
'$space.24',
|
|
71
|
-
'$space.32',
|
|
72
|
-
'$space.40',
|
|
73
|
-
'$space.48',
|
|
74
|
-
'$space.56',
|
|
75
|
-
'$space.64',
|
|
76
|
-
'$space.80',
|
|
77
|
-
],
|
|
78
|
-
description: 'Margin (space token)',
|
|
79
|
-
},
|
|
80
|
-
width: {
|
|
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: 'Width (size token)',
|
|
97
|
-
},
|
|
98
|
-
height: {
|
|
99
|
-
control: 'select',
|
|
100
|
-
options: [
|
|
101
|
-
'$size.16',
|
|
102
|
-
'$size.20',
|
|
103
|
-
'$size.24',
|
|
104
|
-
'$size.32',
|
|
105
|
-
'$size.48',
|
|
106
|
-
'$size.64',
|
|
107
|
-
'$size.80',
|
|
108
|
-
'$size.96',
|
|
109
|
-
'$size.120',
|
|
110
|
-
'$size.144',
|
|
111
|
-
'$size.176',
|
|
112
|
-
'$size.208',
|
|
113
|
-
],
|
|
114
|
-
description: 'Height (size token)',
|
|
115
|
-
},
|
|
10
|
+
backgroundColor: backgroundColorArgType,
|
|
11
|
+
padding: spaceArgType,
|
|
12
|
+
margin: spaceArgType,
|
|
13
|
+
width: sizeArgType,
|
|
14
|
+
height: sizeArgType,
|
|
116
15
|
},
|
|
117
16
|
};
|
|
118
17
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Bumper/Core/Primitives/Center/Features CenteringText 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=""
|
|
@@ -51,7 +51,7 @@ exports[`Bumper/Core/Primitives/Center/Features CenteringText 1`] = `
|
|
|
51
51
|
exports[`Bumper/Core/Primitives/Center/Features CircularCentering 1`] = `
|
|
52
52
|
<DocumentFragment>
|
|
53
53
|
<div
|
|
54
|
-
class="css-view-
|
|
54
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
55
55
|
>
|
|
56
56
|
<span
|
|
57
57
|
class=""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Bumper/Core/Primitives/Pressable/Features HoverEffects 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=""
|
|
@@ -67,7 +67,7 @@ exports[`Bumper/Core/Primitives/Pressable/Features HoverEffects 1`] = `
|
|
|
67
67
|
exports[`Bumper/Core/Primitives/Pressable/Features PolymorphicAs 1`] = `
|
|
68
68
|
<DocumentFragment>
|
|
69
69
|
<div
|
|
70
|
-
class="css-view-
|
|
70
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
71
71
|
>
|
|
72
72
|
<span
|
|
73
73
|
class=""
|
|
@@ -131,7 +131,7 @@ exports[`Bumper/Core/Primitives/Pressable/Features PolymorphicAs 1`] = `
|
|
|
131
131
|
exports[`Bumper/Core/Primitives/Pressable/Features PressEffects 1`] = `
|
|
132
132
|
<DocumentFragment>
|
|
133
133
|
<div
|
|
134
|
-
class="css-view-
|
|
134
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
135
135
|
>
|
|
136
136
|
<span
|
|
137
137
|
class=""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Bumper/Core/Primitives/Stack/Features FlexGrowExample 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=""
|
|
@@ -71,7 +71,7 @@ exports[`Bumper/Core/Primitives/Stack/Features FlexGrowExample 1`] = `
|
|
|
71
71
|
exports[`Bumper/Core/Primitives/Stack/Features FlexWrap 1`] = `
|
|
72
72
|
<DocumentFragment>
|
|
73
73
|
<div
|
|
74
|
-
class="css-view-
|
|
74
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
75
75
|
>
|
|
76
76
|
<span
|
|
77
77
|
class=""
|
|
@@ -199,7 +199,7 @@ exports[`Bumper/Core/Primitives/Stack/Features FlexWrap 1`] = `
|
|
|
199
199
|
exports[`Bumper/Core/Primitives/Stack/Features GridLikeLayout 1`] = `
|
|
200
200
|
<DocumentFragment>
|
|
201
201
|
<div
|
|
202
|
-
class="css-view-
|
|
202
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
203
203
|
>
|
|
204
204
|
<span
|
|
205
205
|
class=""
|
|
@@ -299,7 +299,7 @@ exports[`Bumper/Core/Primitives/Stack/Features GridLikeLayout 1`] = `
|
|
|
299
299
|
exports[`Bumper/Core/Primitives/Stack/Features HStackBasic 1`] = `
|
|
300
300
|
<DocumentFragment>
|
|
301
301
|
<div
|
|
302
|
-
class="css-view-
|
|
302
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
303
303
|
>
|
|
304
304
|
<span
|
|
305
305
|
class=""
|
|
@@ -357,7 +357,7 @@ exports[`Bumper/Core/Primitives/Stack/Features HStackBasic 1`] = `
|
|
|
357
357
|
exports[`Bumper/Core/Primitives/Stack/Features NestedStacks 1`] = `
|
|
358
358
|
<DocumentFragment>
|
|
359
359
|
<div
|
|
360
|
-
class="css-view-
|
|
360
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
361
361
|
>
|
|
362
362
|
<span
|
|
363
363
|
class=""
|
|
@@ -459,7 +459,7 @@ exports[`Bumper/Core/Primitives/Stack/Features NestedStacks 1`] = `
|
|
|
459
459
|
exports[`Bumper/Core/Primitives/Stack/Features VStackBasic 1`] = `
|
|
460
460
|
<DocumentFragment>
|
|
461
461
|
<div
|
|
462
|
-
class="css-view-
|
|
462
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
463
463
|
>
|
|
464
464
|
<span
|
|
465
465
|
class=""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Bumper/Core/Primitives/View/Features BackgroundColors 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=""
|
|
@@ -121,7 +121,7 @@ exports[`Bumper/Core/Primitives/View/Features BackgroundColors 1`] = `
|
|
|
121
121
|
exports[`Bumper/Core/Primitives/View/Features BorderColors 1`] = `
|
|
122
122
|
<DocumentFragment>
|
|
123
123
|
<div
|
|
124
|
-
class="css-view-
|
|
124
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
125
125
|
>
|
|
126
126
|
<span
|
|
127
127
|
class=""
|
|
@@ -219,7 +219,7 @@ exports[`Bumper/Core/Primitives/View/Features BorderColors 1`] = `
|
|
|
219
219
|
exports[`Bumper/Core/Primitives/View/Features BordersAndRadius 1`] = `
|
|
220
220
|
<DocumentFragment>
|
|
221
221
|
<div
|
|
222
|
-
class="css-view-
|
|
222
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
223
223
|
>
|
|
224
224
|
<span
|
|
225
225
|
class=""
|
|
@@ -297,7 +297,7 @@ exports[`Bumper/Core/Primitives/View/Features BordersAndRadius 1`] = `
|
|
|
297
297
|
exports[`Bumper/Core/Primitives/View/Features DirectionalMargin 1`] = `
|
|
298
298
|
<DocumentFragment>
|
|
299
299
|
<div
|
|
300
|
-
class="css-view-
|
|
300
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
301
301
|
>
|
|
302
302
|
<span
|
|
303
303
|
class=""
|
|
@@ -349,7 +349,7 @@ exports[`Bumper/Core/Primitives/View/Features DirectionalMargin 1`] = `
|
|
|
349
349
|
exports[`Bumper/Core/Primitives/View/Features DirectionalPadding 1`] = `
|
|
350
350
|
<DocumentFragment>
|
|
351
351
|
<div
|
|
352
|
-
class="css-view-
|
|
352
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
353
353
|
>
|
|
354
354
|
<span
|
|
355
355
|
class=""
|
|
@@ -407,7 +407,7 @@ exports[`Bumper/Core/Primitives/View/Features DirectionalPadding 1`] = `
|
|
|
407
407
|
exports[`Bumper/Core/Primitives/View/Features FlexAlignment 1`] = `
|
|
408
408
|
<DocumentFragment>
|
|
409
409
|
<div
|
|
410
|
-
class="css-view-
|
|
410
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
411
411
|
>
|
|
412
412
|
<span
|
|
413
413
|
class=""
|
|
@@ -511,7 +511,7 @@ exports[`Bumper/Core/Primitives/View/Features FlexAlignment 1`] = `
|
|
|
511
511
|
exports[`Bumper/Core/Primitives/View/Features FlexLayout 1`] = `
|
|
512
512
|
<DocumentFragment>
|
|
513
513
|
<div
|
|
514
|
-
class="css-view-
|
|
514
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
515
515
|
>
|
|
516
516
|
<span
|
|
517
517
|
class=""
|
|
@@ -597,7 +597,7 @@ exports[`Bumper/Core/Primitives/View/Features FlexLayout 1`] = `
|
|
|
597
597
|
exports[`Bumper/Core/Primitives/View/Features FlexWrap 1`] = `
|
|
598
598
|
<DocumentFragment>
|
|
599
599
|
<div
|
|
600
|
-
class="css-view-
|
|
600
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
601
601
|
>
|
|
602
602
|
<span
|
|
603
603
|
class=""
|
|
@@ -745,7 +745,7 @@ exports[`Bumper/Core/Primitives/View/Features FlexWrap 1`] = `
|
|
|
745
745
|
exports[`Bumper/Core/Primitives/View/Features MarginVariants 1`] = `
|
|
746
746
|
<DocumentFragment>
|
|
747
747
|
<div
|
|
748
|
-
class="css-view-
|
|
748
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
749
749
|
>
|
|
750
750
|
<span
|
|
751
751
|
class=""
|
|
@@ -807,7 +807,7 @@ exports[`Bumper/Core/Primitives/View/Features MarginVariants 1`] = `
|
|
|
807
807
|
exports[`Bumper/Core/Primitives/View/Features OverflowBehavior 1`] = `
|
|
808
808
|
<DocumentFragment>
|
|
809
809
|
<div
|
|
810
|
-
class="css-view-
|
|
810
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
811
811
|
>
|
|
812
812
|
<span
|
|
813
813
|
class=""
|
|
@@ -855,7 +855,7 @@ exports[`Bumper/Core/Primitives/View/Features OverflowBehavior 1`] = `
|
|
|
855
855
|
exports[`Bumper/Core/Primitives/View/Features PaddingVariants 1`] = `
|
|
856
856
|
<DocumentFragment>
|
|
857
857
|
<div
|
|
858
|
-
class="css-view-
|
|
858
|
+
class="css-view-175oi2r r-flex-13awgt0"
|
|
859
859
|
>
|
|
860
860
|
<span
|
|
861
861
|
class=""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Typography } from '
|
|
3
|
-
import { HStack, VStack } from '
|
|
4
|
-
import type { ViewProps } from '
|
|
5
|
-
import { View } from '
|
|
2
|
+
import { Typography } from '../../../content/typography';
|
|
3
|
+
import { HStack, VStack } from '../../primitives/Stack';
|
|
4
|
+
import type { ViewProps } from '../../primitives/View';
|
|
5
|
+
import { View } from '../../primitives/View';
|
|
6
6
|
import { light } from './light';
|
|
7
7
|
|
|
8
8
|
const ThemeTokenRow = ({ tokenName, colorValue }: { tokenName: string; colorValue: string }): React.ReactNode => {
|
|
@@ -62,7 +62,7 @@ export const Light: Story = {
|
|
|
62
62
|
The complete set of semantic color tokens for the light theme.
|
|
63
63
|
</Typography.Text>
|
|
64
64
|
<VStack gap="$space.8">
|
|
65
|
-
{Object.entries(light).map(([tokenName, colorValue]) => (
|
|
65
|
+
{Object.entries<string>(light).map(([tokenName, colorValue]) => (
|
|
66
66
|
<ThemeTokenRow key={tokenName} tokenName={tokenName} colorValue={colorValue} />
|
|
67
67
|
))}
|
|
68
68
|
</VStack>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// WARNING
|
|
2
2
|
// If you modify this theme, don't forget to update the theme in @ornikar/kitt-universal as well
|
|
3
3
|
|
|
4
|
-
import { deepPurpleColorPalette } from '
|
|
4
|
+
import { deepPurpleColorPalette } from '../../tokens/palettes/deepPurpleColorPalette';
|
|
5
|
+
import type { Theme } from '../themes';
|
|
5
6
|
|
|
6
7
|
// https://github.com/ornikar/kitt/blob/79e367e962c957c016c4df67dbcf515c8f45ff0e/@ornikar/kitt-universal/src/themes/late-ocean/colors.ts#L28
|
|
7
|
-
export const light = {
|
|
8
|
+
export const light: Theme = {
|
|
8
9
|
// content
|
|
9
10
|
'content.base.low': deepPurpleColorPalette['grey.5'],
|
|
10
11
|
'content.base.mid': deepPurpleColorPalette['grey.7'],
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export interface Theme
|
|
2
|
+
extends Record<
|
|
3
|
+
(typeof SEMANTIC_TOKENS_CONTENT | typeof SEMANTIC_TOKENS_BACKGROUND | typeof SEMANTIC_TOKENS_BORDER)[number],
|
|
4
|
+
string
|
|
5
|
+
> {}
|
|
6
|
+
|
|
7
|
+
export const SEMANTIC_TOKENS_CONTENT = [
|
|
8
|
+
'content.base.low',
|
|
9
|
+
'content.base.mid',
|
|
10
|
+
'content.base.hi',
|
|
11
|
+
'content.base.onContrasted.low',
|
|
12
|
+
'content.base.onContrasted.mid',
|
|
13
|
+
'content.base.onContrasted.hi',
|
|
14
|
+
'content.accent',
|
|
15
|
+
'content.promo',
|
|
16
|
+
'content.promo.onContrasted',
|
|
17
|
+
'content.info',
|
|
18
|
+
'content.success',
|
|
19
|
+
'content.warning',
|
|
20
|
+
'content.danger',
|
|
21
|
+
'content.muted',
|
|
22
|
+
'content.disabled',
|
|
23
|
+
'content.disabled.onContrasted',
|
|
24
|
+
] as const;
|
|
25
|
+
|
|
26
|
+
export const SEMANTIC_TOKENS_BACKGROUND = [
|
|
27
|
+
'bg.base.low.default',
|
|
28
|
+
'bg.base.low.pressed',
|
|
29
|
+
'bg.base.mid.default',
|
|
30
|
+
'bg.base.mid.pressed',
|
|
31
|
+
'bg.base.hi.default',
|
|
32
|
+
'bg.base.hi.pressed',
|
|
33
|
+
'bg.accent.default',
|
|
34
|
+
'bg.accent.pressed',
|
|
35
|
+
'bg.promo.mid.default',
|
|
36
|
+
'bg.promo.mid.pressed',
|
|
37
|
+
'bg.promo.hi.default',
|
|
38
|
+
'bg.promo.hi.pressed',
|
|
39
|
+
'bg.highlight.mid.default',
|
|
40
|
+
'bg.highlight.mid.pressed',
|
|
41
|
+
'bg.highlight.hi.default',
|
|
42
|
+
'bg.highlight.hi.pressed',
|
|
43
|
+
'bg.info.mid',
|
|
44
|
+
'bg.info.hi',
|
|
45
|
+
'bg.success.mid',
|
|
46
|
+
'bg.success.hi',
|
|
47
|
+
'bg.warning.mid',
|
|
48
|
+
'bg.warning.hi',
|
|
49
|
+
'bg.danger.mid',
|
|
50
|
+
'bg.danger.hi',
|
|
51
|
+
'bg.disabled.mid',
|
|
52
|
+
'bg.disabled.hi',
|
|
53
|
+
'bg.overlay',
|
|
54
|
+
] as const;
|
|
55
|
+
|
|
56
|
+
export const SEMANTIC_TOKENS_BORDER = [
|
|
57
|
+
'border.base.low',
|
|
58
|
+
'border.base.mid',
|
|
59
|
+
'border.base.hi',
|
|
60
|
+
'border.base.onContrasted.mid',
|
|
61
|
+
'border.base.onContrasted.hi',
|
|
62
|
+
'border.base.accent',
|
|
63
|
+
'border.info',
|
|
64
|
+
'border.success',
|
|
65
|
+
'border.warning',
|
|
66
|
+
'border.danger',
|
|
67
|
+
'border.disabled',
|
|
68
|
+
'border.highlight',
|
|
69
|
+
] as const;
|