@ornikar/bumper 2.0.1-canary.79e367e962c957c016c4df67dbcf515c8f45ff0e.0 → 2.0.2-canary.2d7ede8c7fb5706ec9d1d7e92f5956899c4ca14f.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.
@@ -1,399 +0,0 @@
1
- import { makeDecorator } from '@storybook/addons';
2
- import { createFont, createTokens, createTamagui, TamaguiProvider, useMedia } from '@tamagui/core';
3
- import _objectSpread from '@babel/runtime/helpers/objectSpread2';
4
- import { jsx } from 'react/jsx-runtime';
5
- import { useMemo } from 'react';
6
- export { useWindowDimensions as useWindowSize } from 'react-native';
7
-
8
- const createColorScale = colorScale => colorScale;
9
-
10
- // WARNING
11
- // If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
12
- const colorScales = {
13
- deepPurple: createColorScale({
14
- 5: '#936C93',
15
- 6: '#7A587A',
16
- 7: '#6E4D6E',
17
- 8: '#563B56',
18
- 9: '#452F45'
19
- }),
20
- beige: createColorScale({
21
- 1: '#F7F4EE',
22
- 2: '#F1ECE4',
23
- 3: '#EAE3D6',
24
- 4: '#E5DCCA',
25
- 5: '#DDD0B8',
26
- 6: '#C1B59F'
27
- }),
28
- lightning: createColorScale({
29
- 4: '#FFF966',
30
- 5: '#FFF500',
31
- 8: '#594D0D',
32
- 9: '#43390A'
33
- }),
34
- rainbow: createColorScale({
35
- pink: '#E4A4F9',
36
- brick: '#951D12',
37
- orange: '#DB6E2E',
38
- gold: '#9A7600',
39
- sun: '#EFD346',
40
- 'green-pine': '#1C5D47',
41
- 'green-grass': '#4DA00A',
42
- 'green-apple': '#DEF985',
43
- 'blue-electric': '#2850C4',
44
- 'blue-sky': '#B2F0FD'
45
- }),
46
- grey: createColorScale({
47
- 0: '#ffffff',
48
- 1: '#ECECEC',
49
- 2: '#CDCED0',
50
- 3: '#A8A8A8',
51
- 5: '#838383',
52
- 7: '#505050',
53
- 9: '#101010'
54
- }),
55
- blue: createColorScale({
56
- 1: '#E9F4FC',
57
- 2: '#BCDFF6',
58
- 6: '#1772AB',
59
- 7: '#125A87'
60
- }),
61
- green: createColorScale({
62
- 1: '#ECFEDD',
63
- 2: '#DBFAC1',
64
- 6: '#438D06',
65
- 7: '#357105'
66
- }),
67
- yellow: createColorScale({
68
- 1: '#FDF8E7',
69
- 2: '#FAEBB8',
70
- 6: '#EFC11F',
71
- 7: '#BA930B'
72
- }),
73
- red: createColorScale({
74
- 1: '#FDE4E3',
75
- 2: '#FAB8B8',
76
- 6: '#F14847',
77
- 7: '#BD100F'
78
- }),
79
- 'beige-alpha': createColorScale({
80
- '25': '#C1B59F40',
81
- '40': '#C1B59F66',
82
- '50': '#C1B59F80'
83
- }),
84
- 'grey-alpha': createColorScale({
85
- '25': '#10101040',
86
- '35': '#10101059',
87
- '50': '#10101080'
88
- }),
89
- 'white-alpha': createColorScale({
90
- '10': '#FFFFFF1A',
91
- '20': '#FFFFFF33',
92
- '60': '#FFFFFF99',
93
- '80': '#FFFFFFCC',
94
- '90': '#FFFFFFE5'
95
- })
96
- };
97
- const transformColorScalesToTokens = () => {
98
- return Object.fromEntries(Object.entries(colorScales).flatMap(([colorName, colorScale]) => {
99
- return Object.entries(colorScale).map(([scaleNumber, colorValue]) => {
100
- return [`${colorName}.${scaleNumber}`, colorValue];
101
- });
102
- }));
103
- };
104
- const deepPurpleColorPalette = _objectSpread(_objectSpread({}, transformColorScalesToTokens()), {}, {
105
- white: '#FFFFFF',
106
- black: '#000000',
107
- transparent: 'transparent'
108
- });
109
-
110
- const light = {
111
- // content
112
- 'content.base.hi': deepPurpleColorPalette['grey.9'],
113
- 'content.base.mid': deepPurpleColorPalette['grey.7'],
114
- 'content.base.low': deepPurpleColorPalette['grey.5'],
115
- 'content.base.onContrasted.hi': deepPurpleColorPalette['grey.0'],
116
- 'content.base.onContrasted.mid': deepPurpleColorPalette['white-alpha.80'],
117
- 'content.base.onContrasted.low': deepPurpleColorPalette['white-alpha.60'],
118
- 'content.accent': deepPurpleColorPalette['deepPurple.8'],
119
- 'content.promo': deepPurpleColorPalette['lightning.9'],
120
- 'content.promo.onContrasted': deepPurpleColorPalette['lightning.5'],
121
- 'content.info': deepPurpleColorPalette['blue.7'],
122
- 'content.success': deepPurpleColorPalette['green.7'],
123
- 'content.warning': deepPurpleColorPalette['yellow.7'],
124
- 'content.danger': deepPurpleColorPalette['red.7'],
125
- 'content.muted': deepPurpleColorPalette['beige.6'],
126
- 'content.disabled': deepPurpleColorPalette['grey.3'],
127
- 'content.disabled.onContrasted': deepPurpleColorPalette['grey.1'],
128
- // backgrounds
129
- 'bg.base.hi.default': deepPurpleColorPalette['beige.2'],
130
- 'bg.base.hi.pressed': deepPurpleColorPalette['beige.3'],
131
- 'bg.base.mid.default': deepPurpleColorPalette['beige.1'],
132
- 'bg.base.mid.pressed': deepPurpleColorPalette['beige.2'],
133
- 'bg.base.low.default': deepPurpleColorPalette['grey.0'],
134
- 'bg.base.low.pressed': deepPurpleColorPalette['beige.1'],
135
- 'bg.accent.default': deepPurpleColorPalette['deepPurple.8'],
136
- 'bg.accent.pressed': deepPurpleColorPalette['deepPurple.7'],
137
- 'bg.promo.hi.default': deepPurpleColorPalette['lightning.9'],
138
- 'bg.promo.hi.pressed': deepPurpleColorPalette['lightning.8'],
139
- 'bg.promo.mid.default': deepPurpleColorPalette['lightning.5'],
140
- 'bg.promo.mid.pressed': deepPurpleColorPalette['lightning.4'],
141
- 'bg.highlight.default': deepPurpleColorPalette['blue.1'],
142
- 'bg.highlight.pressed': deepPurpleColorPalette['blue.2'],
143
- 'bg.info.hi': deepPurpleColorPalette['blue.6'],
144
- 'bg.info.mid': deepPurpleColorPalette['blue.1'],
145
- 'bg.success.hi': deepPurpleColorPalette['green.6'],
146
- 'bg.success.mid': deepPurpleColorPalette['green.1'],
147
- 'bg.warning.hi': deepPurpleColorPalette['yellow.6'],
148
- 'bg.warning.mid': deepPurpleColorPalette['yellow.1'],
149
- 'bg.danger.hi': deepPurpleColorPalette['red.6'],
150
- 'bg.danger.mid': deepPurpleColorPalette['red.1'],
151
- 'bg.disabled.hi': deepPurpleColorPalette['grey.3'],
152
- 'bg.disabled.mid': deepPurpleColorPalette['grey.1'],
153
- 'bg.overlay': deepPurpleColorPalette['grey-alpha.50'],
154
- // borders
155
- 'border.base.hi': deepPurpleColorPalette['grey.9'],
156
- 'border.base.mid': deepPurpleColorPalette['grey.3'],
157
- 'border.base.onContrasted.hi': deepPurpleColorPalette['grey.0'],
158
- 'border.base.onContrasted.mid': deepPurpleColorPalette['white-alpha.60'],
159
- 'border.info': deepPurpleColorPalette['blue.6'],
160
- 'border.success': deepPurpleColorPalette['green.6'],
161
- 'border.warning': deepPurpleColorPalette['yellow.6'],
162
- 'border.danger': deepPurpleColorPalette['red.6'],
163
- 'border.disabled': deepPurpleColorPalette['grey.2']
164
- };
165
-
166
- let BreakpointNameEnum = /*#__PURE__*/function (BreakpointNameEnum) {
167
- BreakpointNameEnum["BASE"] = "base";
168
- BreakpointNameEnum["SMALL"] = "small";
169
- BreakpointNameEnum["MEDIUM"] = "medium";
170
- BreakpointNameEnum["LARGE"] = "large";
171
- BreakpointNameEnum["WIDE"] = "wide";
172
- return BreakpointNameEnum;
173
- }({});
174
- const breakpoints = {
175
- [BreakpointNameEnum.BASE]: 0,
176
- [BreakpointNameEnum.SMALL]: 480,
177
- [BreakpointNameEnum.MEDIUM]: 768,
178
- [BreakpointNameEnum.LARGE]: 1024,
179
- [BreakpointNameEnum.WIDE]: 1280
180
- };
181
-
182
- const GTStandardFaces = {
183
- 500: {
184
- normal: 'GTStandardRegular'
185
- },
186
- 600: {
187
- normal: 'GTStandardSemibold'
188
- },
189
- 700: {
190
- normal: 'GTStandardBold'
191
- }
192
- };
193
- const size = {
194
- 'heading-2xl': 56,
195
- 'heading-xl': 48,
196
- 'heading-l': 38,
197
- 'heading-m': 24,
198
- 'heading-s': 20,
199
- 'heading-xs': 16,
200
- 'body-xl': 24,
201
- 'body-l': 18,
202
- 'body-m': 16,
203
- 'body-s': 14,
204
- 'body-xs': 12,
205
- 'label-xl': 18,
206
- 'label-l': 16,
207
- 'label-m': 14,
208
- 'label-s': 12
209
- };
210
- const lineHeight = {
211
- 'heading-2xl': 64,
212
- 'heading-xl': 56,
213
- 'heading-l': 48,
214
- 'heading-m': 32,
215
- 'heading-s': 20,
216
- 'heading-xs': 18,
217
- 'body-xl': 32,
218
- 'body-l': 26,
219
- 'body-m': 24,
220
- 'body-s': 20,
221
- 'body-xs': 16,
222
- 'label-xl': 26,
223
- 'label-l': 24,
224
- 'label-m': 20,
225
- 'label-s': 16
226
- };
227
- const letterSpacing = {
228
- 'heading-2xl': 0,
229
- 'heading-xl': 0,
230
- 'heading-l': 0,
231
- 'heading-m': 0,
232
- 'heading-s': 0,
233
- 'heading-xs': 0,
234
- 'body-xl': 0.3,
235
- 'body-l': 0.3,
236
- 'body-m': 0.3,
237
- 'body-s': 0.3,
238
- 'body-xs': 0.3,
239
- 'label-xl': 0,
240
- 'label-l': 0,
241
- 'label-m': 0,
242
- 'label-s': 0
243
- };
244
- const weight = {
245
- bold: '700',
246
- semibold: '600',
247
- regular: '500'
248
- };
249
- const fonts = createFont({
250
- family: 'GTStandard',
251
- size,
252
- lineHeight,
253
- letterSpacing,
254
- weight,
255
- face: GTStandardFaces
256
- });
257
-
258
- const sizeTokens = {
259
- 16: 16,
260
- 20: 20,
261
- 24: 24,
262
- 32: 32,
263
- 80: 80,
264
- 128: 128,
265
- 176: 176,
266
- 208: 208
267
- };
268
-
269
- const spaceTokens = {
270
- 0: 0,
271
- 2: 2,
272
- 4: 4,
273
- 8: 8,
274
- 12: 12,
275
- 16: 16,
276
- 24: 24,
277
- 32: 32,
278
- 40: 40,
279
- 48: 48,
280
- 56: 56,
281
- 64: 64,
282
- 80: 80
283
- };
284
-
285
- const tokens = createTokens({
286
- color: {},
287
- space: spaceTokens,
288
- size: sizeTokens
289
- });
290
- const config = createTamagui({
291
- tokens,
292
- fonts: {
293
- GTStandard: fonts
294
- },
295
- themes: {
296
- light
297
- },
298
- media: {
299
- [BreakpointNameEnum.BASE]: {
300
- minWidth: breakpoints[BreakpointNameEnum.BASE]
301
- },
302
- [BreakpointNameEnum.SMALL]: {
303
- minWidth: breakpoints[BreakpointNameEnum.SMALL]
304
- },
305
- [BreakpointNameEnum.MEDIUM]: {
306
- minWidth: breakpoints[BreakpointNameEnum.MEDIUM]
307
- },
308
- [BreakpointNameEnum.LARGE]: {
309
- minWidth: breakpoints[BreakpointNameEnum.LARGE]
310
- },
311
- [BreakpointNameEnum.WIDE]: {
312
- minWidth: breakpoints[BreakpointNameEnum.WIDE]
313
- }
314
- },
315
- settings: {
316
- allowedStyleValues: 'strict',
317
- disableSSR: true,
318
- styleCompat: 'react-native',
319
- autocompleteSpecificTokens: true,
320
- debug: false
321
- }
322
- });
323
-
324
- // make imports typed
325
-
326
- function BumperProvider({
327
- children
328
- }) {
329
- return /*#__PURE__*/jsx(TamaguiProvider, {
330
- config: config,
331
- defaultTheme: "light",
332
- children: children
333
- });
334
- }
335
-
336
- const BumperDecorator = makeDecorator({
337
- name: 'BumperDecorator',
338
- parameterName: 'bumper',
339
- wrapper: (storyFn, context) => {
340
- return /*#__PURE__*/jsx(BumperProvider, {
341
- children: storyFn(context)
342
- });
343
- }
344
- });
345
-
346
- function getValueForBreakpoint(breakpoint, {
347
- base,
348
- small,
349
- medium,
350
- large,
351
- wide
352
- }) {
353
- var _ref, _ref2, _ref3, _ref4, _ref5, _ref6;
354
- switch (breakpoint) {
355
- case BreakpointNameEnum.WIDE:
356
- return (_ref = (_ref2 = (_ref3 = wide !== null && wide !== void 0 ? wide : large) !== null && _ref3 !== void 0 ? _ref3 : medium) !== null && _ref2 !== void 0 ? _ref2 : small) !== null && _ref !== void 0 ? _ref : base;
357
- case BreakpointNameEnum.LARGE:
358
- return (_ref4 = (_ref5 = large !== null && large !== void 0 ? large : medium) !== null && _ref5 !== void 0 ? _ref5 : small) !== null && _ref4 !== void 0 ? _ref4 : base;
359
- case BreakpointNameEnum.MEDIUM:
360
- return (_ref6 = medium !== null && medium !== void 0 ? medium : small) !== null && _ref6 !== void 0 ? _ref6 : base;
361
- case BreakpointNameEnum.SMALL:
362
- return small !== null && small !== void 0 ? small : base;
363
- case BreakpointNameEnum.BASE:
364
- default:
365
- return base;
366
- }
367
- }
368
-
369
- function useCurrentBreakpointName() {
370
- const media = useMedia();
371
- switch (true) {
372
- case media.wide:
373
- return BreakpointNameEnum.WIDE;
374
- case media.large:
375
- return BreakpointNameEnum.LARGE;
376
- case media.medium:
377
- return BreakpointNameEnum.MEDIUM;
378
- case media.small:
379
- return BreakpointNameEnum.SMALL;
380
- case media.base:
381
- default:
382
- return BreakpointNameEnum.BASE;
383
- }
384
- }
385
-
386
- function useBreakpointValue(values) {
387
- const breakpoint = useCurrentBreakpointName();
388
- return useMemo(() => {
389
- return getValueForBreakpoint(breakpoint, values);
390
- }, [breakpoint, values]);
391
- }
392
-
393
- function SwitchBreakpoints(values) {
394
- const breakpoint = useCurrentBreakpointName();
395
- return getValueForBreakpoint(breakpoint, values);
396
- }
397
-
398
- export { BumperDecorator, BumperProvider, SwitchBreakpoints, getValueForBreakpoint, useBreakpointValue, useCurrentBreakpointName };
399
- //# sourceMappingURL=index-metro.es.ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-metro.es.ios.js","sources":["../src/themes/palettes/deepPurpleColorPalette.ts","../src/themes/light.ts","../src/themes/utils/breakpoints.ts","../src/tokens/fonts.ts","../src/tokens/size.ts","../src/tokens/space.ts","../src/tamagui.config.ts","../src/core/BumperProvider.tsx","../src/core/BumperDecorator.tsx","../src/components/breakpoints/utils/breakpointsUtils.ts","../src/components/breakpoints/hooks/useCurrentBreakpointName.ts","../src/components/breakpoints/hooks/useBreakpointValue.ts","../src/components/breakpoints/SwitchBreakpoins.tsx"],"sourcesContent":["import type { IntRange, UnionToIntersection } from 'type-fest';\n\ninterface ColorScaleKeysMap {\n deepPurple: IntRange<5, 10>;\n beige: IntRange<1, 7>;\n lightning: 4 | 5 | 8 | 9;\n rainbow:\n | 'pink'\n | 'brick'\n | 'orange'\n | 'gold'\n | 'sun'\n | 'green-pine'\n | 'green-grass'\n | 'green-apple'\n | 'blue-electric'\n | 'blue-sky';\n grey: 0 | 1 | 2 | 3 | 5 | 7 | 9;\n blue: 1 | 2 | 6 | 7;\n green: 1 | 2 | 6 | 7;\n yellow: 1 | 2 | 6 | 7;\n red: 1 | 2 | 6 | 7;\n 'beige-alpha': '25' | '40' | '50';\n 'grey-alpha': '25' | '35' | '50';\n 'white-alpha': '10' | '20' | '60' | '80' | '90';\n}\n\ntype CreateColorScale<K extends keyof ColorScaleKeysMap> = Record<ColorScaleKeysMap[K], string>;\n\ntype ColorScales = {\n [K in keyof ColorScaleKeysMap]: CreateColorScale<K>;\n};\n\ntype CreateTokens<K extends keyof ColorScaleKeysMap> = {\n [Key in ColorScaleKeysMap[K] as `${K}.${Key}`]: string;\n};\n\ntype ColorScaleTokens = UnionToIntersection<\n {\n [K in keyof ColorScaleKeysMap]: CreateTokens<K>;\n }[keyof ColorScaleKeysMap]\n>;\n\nconst createColorScale = <const T extends Record<string | number, string>>(colorScale: T): T => colorScale;\n\n// WARNING\n// If you update this palette, don't forget to update the palette in @ornikar/bumper as well.\nexport const colorScales: ColorScales = {\n deepPurple: createColorScale({\n 5: '#936C93',\n 6: '#7A587A',\n 7: '#6E4D6E',\n 8: '#563B56',\n 9: '#452F45',\n }),\n beige: createColorScale({\n 1: '#F7F4EE',\n 2: '#F1ECE4',\n 3: '#EAE3D6',\n 4: '#E5DCCA',\n 5: '#DDD0B8',\n 6: '#C1B59F',\n }),\n lightning: createColorScale({\n 4: '#FFF966',\n 5: '#FFF500',\n 8: '#594D0D',\n 9: '#43390A',\n }),\n rainbow: createColorScale({\n pink: '#E4A4F9',\n brick: '#951D12',\n orange: '#DB6E2E',\n gold: '#9A7600',\n sun: '#EFD346',\n 'green-pine': '#1C5D47',\n 'green-grass': '#4DA00A',\n 'green-apple': '#DEF985',\n 'blue-electric': '#2850C4',\n 'blue-sky': '#B2F0FD',\n }),\n grey: createColorScale({\n 0: '#ffffff',\n 1: '#ECECEC',\n 2: '#CDCED0',\n 3: '#A8A8A8',\n 5: '#838383',\n 7: '#505050',\n 9: '#101010',\n }),\n blue: createColorScale({\n 1: '#E9F4FC',\n 2: '#BCDFF6',\n 6: '#1772AB',\n 7: '#125A87',\n }),\n green: createColorScale({\n 1: '#ECFEDD',\n 2: '#DBFAC1',\n 6: '#438D06',\n 7: '#357105',\n }),\n yellow: createColorScale({\n 1: '#FDF8E7',\n 2: '#FAEBB8',\n 6: '#EFC11F',\n 7: '#BA930B',\n }),\n red: createColorScale({\n 1: '#FDE4E3',\n 2: '#FAB8B8',\n 6: '#F14847',\n 7: '#BD100F',\n }),\n 'beige-alpha': createColorScale({\n '25': '#C1B59F40',\n '40': '#C1B59F66',\n '50': '#C1B59F80',\n }),\n 'grey-alpha': createColorScale({\n '25': '#10101040',\n '35': '#10101059',\n '50': '#10101080',\n }),\n 'white-alpha': createColorScale({\n '10': '#FFFFFF1A',\n '20': '#FFFFFF33',\n '60': '#FFFFFF99',\n '80': '#FFFFFFCC',\n '90': '#FFFFFFE5',\n }),\n} as const;\n\nconst transformColorScalesToTokens = (): ColorScaleTokens => {\n return Object.fromEntries(\n Object.entries(colorScales).flatMap(([colorName, colorScale]) => {\n return Object.entries(colorScale).map(([scaleNumber, colorValue]) => {\n return [`${colorName}.${scaleNumber}`, colorValue];\n });\n }),\n ) as ColorScaleTokens;\n};\n\nexport const deepPurpleColorPalette = {\n ...transformColorScalesToTokens(),\n white: '#FFFFFF',\n black: '#000000',\n transparent: 'transparent',\n};\n","import { deepPurpleColorPalette } from './palettes/deepPurpleColorPalette';\n\nexport const light = {\n // content\n 'content.base.hi': deepPurpleColorPalette['grey.9'],\n 'content.base.mid': deepPurpleColorPalette['grey.7'],\n 'content.base.low': deepPurpleColorPalette['grey.5'],\n 'content.base.onContrasted.hi': deepPurpleColorPalette['grey.0'],\n 'content.base.onContrasted.mid': deepPurpleColorPalette['white-alpha.80'],\n 'content.base.onContrasted.low': deepPurpleColorPalette['white-alpha.60'],\n 'content.accent': deepPurpleColorPalette['deepPurple.8'],\n 'content.promo': deepPurpleColorPalette['lightning.9'],\n 'content.promo.onContrasted': deepPurpleColorPalette['lightning.5'],\n 'content.info': deepPurpleColorPalette['blue.7'],\n 'content.success': deepPurpleColorPalette['green.7'],\n 'content.warning': deepPurpleColorPalette['yellow.7'],\n 'content.danger': deepPurpleColorPalette['red.7'],\n 'content.muted': deepPurpleColorPalette['beige.6'],\n 'content.disabled': deepPurpleColorPalette['grey.3'],\n 'content.disabled.onContrasted': deepPurpleColorPalette['grey.1'],\n\n // backgrounds\n 'bg.base.hi.default': deepPurpleColorPalette['beige.2'],\n 'bg.base.hi.pressed': deepPurpleColorPalette['beige.3'],\n 'bg.base.mid.default': deepPurpleColorPalette['beige.1'],\n 'bg.base.mid.pressed': deepPurpleColorPalette['beige.2'],\n 'bg.base.low.default': deepPurpleColorPalette['grey.0'],\n 'bg.base.low.pressed': deepPurpleColorPalette['beige.1'],\n 'bg.accent.default': deepPurpleColorPalette['deepPurple.8'],\n 'bg.accent.pressed': deepPurpleColorPalette['deepPurple.7'],\n 'bg.promo.hi.default': deepPurpleColorPalette['lightning.9'],\n 'bg.promo.hi.pressed': deepPurpleColorPalette['lightning.8'],\n 'bg.promo.mid.default': deepPurpleColorPalette['lightning.5'],\n 'bg.promo.mid.pressed': deepPurpleColorPalette['lightning.4'],\n 'bg.highlight.default': deepPurpleColorPalette['blue.1'],\n 'bg.highlight.pressed': deepPurpleColorPalette['blue.2'],\n 'bg.info.hi': deepPurpleColorPalette['blue.6'],\n 'bg.info.mid': deepPurpleColorPalette['blue.1'],\n 'bg.success.hi': deepPurpleColorPalette['green.6'],\n 'bg.success.mid': deepPurpleColorPalette['green.1'],\n 'bg.warning.hi': deepPurpleColorPalette['yellow.6'],\n 'bg.warning.mid': deepPurpleColorPalette['yellow.1'],\n 'bg.danger.hi': deepPurpleColorPalette['red.6'],\n 'bg.danger.mid': deepPurpleColorPalette['red.1'],\n 'bg.disabled.hi': deepPurpleColorPalette['grey.3'],\n 'bg.disabled.mid': deepPurpleColorPalette['grey.1'],\n 'bg.overlay': deepPurpleColorPalette['grey-alpha.50'],\n\n // borders\n 'border.base.hi': deepPurpleColorPalette['grey.9'],\n 'border.base.mid': deepPurpleColorPalette['grey.3'],\n 'border.base.onContrasted.hi': deepPurpleColorPalette['grey.0'],\n 'border.base.onContrasted.mid': deepPurpleColorPalette['white-alpha.60'],\n 'border.info': deepPurpleColorPalette['blue.6'],\n 'border.success': deepPurpleColorPalette['green.6'],\n 'border.warning': deepPurpleColorPalette['yellow.6'],\n 'border.danger': deepPurpleColorPalette['red.6'],\n 'border.disabled': deepPurpleColorPalette['grey.2'],\n};\n","export enum BreakpointNameEnum {\n BASE = 'base',\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n WIDE = 'wide',\n}\n\nexport const breakpoints = {\n [BreakpointNameEnum.BASE]: 0,\n [BreakpointNameEnum.SMALL]: 480,\n [BreakpointNameEnum.MEDIUM]: 768,\n [BreakpointNameEnum.LARGE]: 1024,\n [BreakpointNameEnum.WIDE]: 1280,\n};\n","import { createFont } from '@tamagui/core';\n\nexport const HEADING_VARIANTS = [\n 'heading-2xl',\n 'heading-xl',\n 'heading-l',\n 'heading-m',\n 'heading-s',\n 'heading-xs',\n] as const;\nexport const BODY_VARIANTS = ['body-xl', 'body-l', 'body-m', 'body-s', 'body-xs'] as const;\nexport const LABEL_VARIANTS = ['label-xl', 'label-l', 'label-m', 'label-s'] as const;\nexport const VARIANTS = [...HEADING_VARIANTS, ...BODY_VARIANTS, ...LABEL_VARIANTS] as const;\n\nexport type FontVariants = (typeof VARIANTS)[number];\nexport type BodyFontVariants = (typeof BODY_VARIANTS)[number];\nexport type LabelFontVariants = (typeof LABEL_VARIANTS)[number];\nexport type HeadingFontVariants = (typeof HEADING_VARIANTS)[number];\n\nexport type GTStandardFontWeight = '500' | '600' | '700';\n\nconst GTStandardFaces: Record<GTStandardFontWeight, Record<string, string>> = {\n 500: { normal: 'GTStandardRegular' },\n 600: { normal: 'GTStandardSemibold' },\n 700: { normal: 'GTStandardBold' },\n};\n\nconst size: Record<FontVariants, number> = {\n 'heading-2xl': 56,\n 'heading-xl': 48,\n 'heading-l': 38,\n 'heading-m': 24,\n 'heading-s': 20,\n 'heading-xs': 16,\n 'body-xl': 24,\n 'body-l': 18,\n 'body-m': 16,\n 'body-s': 14,\n 'body-xs': 12,\n 'label-xl': 18,\n 'label-l': 16,\n 'label-m': 14,\n 'label-s': 12,\n};\n\nconst lineHeight: Record<FontVariants, number> = {\n 'heading-2xl': 64,\n 'heading-xl': 56,\n 'heading-l': 48,\n 'heading-m': 32,\n 'heading-s': 20,\n 'heading-xs': 18,\n 'body-xl': 32,\n 'body-l': 26,\n 'body-m': 24,\n 'body-s': 20,\n 'body-xs': 16,\n 'label-xl': 26,\n 'label-l': 24,\n 'label-m': 20,\n 'label-s': 16,\n};\n\nconst letterSpacing: Record<FontVariants, number> = {\n 'heading-2xl': 0,\n 'heading-xl': 0,\n 'heading-l': 0,\n 'heading-m': 0,\n 'heading-s': 0,\n 'heading-xs': 0,\n 'body-xl': 0.3,\n 'body-l': 0.3,\n 'body-m': 0.3,\n 'body-s': 0.3,\n 'body-xs': 0.3,\n 'label-xl': 0,\n 'label-l': 0,\n 'label-m': 0,\n 'label-s': 0,\n};\n\nconst weight: Record<string, GTStandardFontWeight> = {\n bold: '700',\n semibold: '600',\n regular: '500',\n};\n\nexport const fonts = createFont({\n family: 'GTStandard',\n size,\n lineHeight,\n letterSpacing,\n weight,\n face: GTStandardFaces,\n});\n","export const sizeTokens = {\n 16: 16,\n 20: 20,\n 24: 24,\n 32: 32,\n 80: 80,\n 128: 128,\n 176: 176,\n 208: 208,\n};\n","export const spaceTokens = {\n 0: 0,\n 2: 2,\n 4: 4,\n 8: 8,\n 12: 12,\n 16: 16,\n 24: 24,\n 32: 32,\n 40: 40,\n 48: 48,\n 56: 56,\n 64: 64,\n 80: 80,\n};\n","import { createTamagui, createTokens } from '@tamagui/core';\nimport { light } from './themes/light';\nimport { BreakpointNameEnum, breakpoints } from './themes/utils/breakpoints';\nimport { fonts } from './tokens/fonts';\nimport { sizeTokens } from './tokens/size';\nimport { spaceTokens } from './tokens/space';\n\nconst tokens = createTokens({\n color: {},\n space: spaceTokens,\n size: sizeTokens,\n});\n\nexport const config = createTamagui({\n tokens,\n fonts: {\n GTStandard: fonts,\n },\n themes: {\n light,\n },\n media: {\n [BreakpointNameEnum.BASE]: { minWidth: breakpoints[BreakpointNameEnum.BASE] },\n [BreakpointNameEnum.SMALL]: { minWidth: breakpoints[BreakpointNameEnum.SMALL] },\n [BreakpointNameEnum.MEDIUM]: { minWidth: breakpoints[BreakpointNameEnum.MEDIUM] },\n [BreakpointNameEnum.LARGE]: { minWidth: breakpoints[BreakpointNameEnum.LARGE] },\n [BreakpointNameEnum.WIDE]: { minWidth: breakpoints[BreakpointNameEnum.WIDE] },\n },\n settings: {\n allowedStyleValues: 'strict',\n disableSSR: true,\n styleCompat: 'react-native',\n autocompleteSpecificTokens: true,\n debug: false,\n },\n});\n\ntype Conf = typeof config;\n\n// make imports typed\ndeclare module '@tamagui/core' {\n interface TamaguiCustomConfig extends Conf {}\n}\n","import { TamaguiProvider } from '@tamagui/core';\nimport type { ReactNode } from 'react';\nimport { config } from '../tamagui.config';\n\nexport interface BumperProviderProps {\n children: ReactNode;\n}\n\nexport function BumperProvider({ children }: BumperProviderProps): ReactNode {\n return (\n <TamaguiProvider config={config} defaultTheme=\"light\">\n {children}\n </TamaguiProvider>\n );\n}\n","import { makeDecorator } from '@storybook/addons';\nimport type { ReactNode } from 'react';\nimport { BumperProvider } from './BumperProvider';\n\nexport const BumperDecorator = makeDecorator({\n name: 'BumperDecorator',\n parameterName: 'bumper',\n wrapper: (storyFn, context) => {\n return <BumperProvider>{storyFn(context) as ReactNode}</BumperProvider>;\n },\n});\n","import { BreakpointNameEnum } from '../../../themes/utils/breakpoints';\n\nexport interface ValueForBreakpoint<T> {\n base: T;\n small?: T;\n medium?: T;\n large?: T;\n wide?: T;\n}\n\nexport function getValueForBreakpoint<T>(\n breakpoint: BreakpointNameEnum,\n { base, small, medium, large, wide }: ValueForBreakpoint<T>,\n): T {\n switch (breakpoint) {\n case BreakpointNameEnum.WIDE:\n return wide ?? large ?? medium ?? small ?? base;\n case BreakpointNameEnum.LARGE:\n return large ?? medium ?? small ?? base;\n case BreakpointNameEnum.MEDIUM:\n return medium ?? small ?? base;\n case BreakpointNameEnum.SMALL:\n return small ?? base;\n case BreakpointNameEnum.BASE:\n default:\n return base;\n }\n}\n","import { useMedia } from '@tamagui/core';\nimport { BreakpointNameEnum } from '../../../themes/utils/breakpoints';\n\nexport function useCurrentBreakpointName(): BreakpointNameEnum {\n const media = useMedia();\n\n switch (true) {\n case media.wide:\n return BreakpointNameEnum.WIDE;\n case media.large:\n return BreakpointNameEnum.LARGE;\n case media.medium:\n return BreakpointNameEnum.MEDIUM;\n case media.small:\n return BreakpointNameEnum.SMALL;\n case media.base:\n default:\n return BreakpointNameEnum.BASE;\n }\n}\n","import { useMemo } from 'react';\nimport type { ValueForBreakpoint } from '../utils/breakpointsUtils';\nimport { getValueForBreakpoint } from '../utils/breakpointsUtils';\nimport { useCurrentBreakpointName } from './useCurrentBreakpointName';\n\nexport function useBreakpointValue<T>(values: ValueForBreakpoint<T>): T {\n const breakpoint = useCurrentBreakpointName();\n\n return useMemo(() => {\n return getValueForBreakpoint(breakpoint, values);\n }, [breakpoint, values]);\n}\n","import type { ReactNode } from 'react';\nimport { useCurrentBreakpointName } from './hooks/useCurrentBreakpointName';\nimport type { ValueForBreakpoint } from './utils/breakpointsUtils';\nimport { getValueForBreakpoint } from './utils/breakpointsUtils';\n\nexport type SwitchBreakpointsProps = ValueForBreakpoint<ReactNode>;\n\nexport function SwitchBreakpoints(values: SwitchBreakpointsProps): ReactNode {\n const breakpoint = useCurrentBreakpointName();\n\n return getValueForBreakpoint(breakpoint, values);\n}\n"],"names":["createColorScale","colorScale","colorScales","deepPurple","beige","lightning","rainbow","pink","brick","orange","gold","sun","grey","blue","green","yellow","red","transformColorScalesToTokens","Object","fromEntries","entries","flatMap","colorName","map","scaleNumber","colorValue","deepPurpleColorPalette","_objectSpread","white","black","transparent","light","BreakpointNameEnum","breakpoints","BASE","SMALL","MEDIUM","LARGE","WIDE","GTStandardFaces","normal","size","lineHeight","letterSpacing","weight","bold","semibold","regular","fonts","createFont","family","face","sizeTokens","spaceTokens","tokens","createTokens","color","space","config","createTamagui","GTStandard","themes","media","minWidth","settings","allowedStyleValues","disableSSR","styleCompat","autocompleteSpecificTokens","debug","BumperProvider","children","_jsx","TamaguiProvider","defaultTheme","BumperDecorator","makeDecorator","name","parameterName","wrapper","storyFn","context","getValueForBreakpoint","breakpoint","base","small","medium","large","wide","_ref","_ref2","_ref3","_ref4","_ref5","_ref6","useCurrentBreakpointName","useMedia","useBreakpointValue","values","useMemo","SwitchBreakpoints"],"mappings":";;;;;;;AA2CA,MAAMA,gBAAgB,GAAqDC,UAAa,IAAQA,UAAU,CAAA;;AAE1G;AACA;AACO,MAAMC,WAAwB,GAAG;EACtCC,UAAU,EAAEH,gBAAgB,CAAC;AAC3B,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAA;AACL,GAAC,CAAC;EACFI,KAAK,EAAEJ,gBAAgB,CAAC;AACtB,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAA;AACL,GAAC,CAAC;EACFK,SAAS,EAAEL,gBAA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