@ornikar/bumper 2.12.0 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/definitions/index.d.ts +2 -0
  3. package/dist/definitions/index.d.ts.map +1 -1
  4. package/dist/definitions/system/content/icon/Icon.d.ts +3 -2
  5. package/dist/definitions/system/content/icon/Icon.d.ts.map +1 -1
  6. package/dist/definitions/system/content/typography/Typography.d.ts +4 -7
  7. package/dist/definitions/system/content/typography/Typography.d.ts.map +1 -1
  8. package/dist/definitions/system/dataDisplays/Badge/Badge.d.ts +14 -0
  9. package/dist/definitions/system/dataDisplays/Badge/Badge.d.ts.map +1 -0
  10. package/dist/definitions/system/types.d.ts +7 -0
  11. package/dist/definitions/system/types.d.ts.map +1 -0
  12. package/dist/index-metro.es.android.js +38 -1
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +38 -1
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-22.22.cjs.js +38 -0
  17. package/dist/index-node-22.22.cjs.js.map +1 -1
  18. package/dist/index-node-22.22.cjs.web.js +38 -0
  19. package/dist/index-node-22.22.cjs.web.js.map +1 -1
  20. package/dist/index-node-22.22.es.mjs +38 -1
  21. package/dist/index-node-22.22.es.mjs.map +1 -1
  22. package/dist/index-node-22.22.es.web.mjs +38 -1
  23. package/dist/index-node-22.22.es.web.mjs.map +1 -1
  24. package/dist/index.es.js +38 -1
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.es.web.js +38 -1
  27. package/dist/index.es.web.js.map +1 -1
  28. package/dist/tsbuildinfo +1 -1
  29. package/package.json +1 -1
  30. package/src/index.ts +4 -0
  31. package/src/system/content/icon/Icon.tsx +3 -2
  32. package/src/system/content/typography/Typography.features.stories.tsx +2 -1
  33. package/src/system/content/typography/Typography.stories.tsx +2 -1
  34. package/src/system/content/typography/Typography.tsx +6 -13
  35. package/src/system/dataDisplays/Badge/Badge.features.stories.tsx +37 -0
  36. package/src/system/dataDisplays/Badge/Badge.stories.tsx +32 -0
  37. package/src/system/dataDisplays/Badge/Badge.tsx +59 -0
  38. package/src/system/dataDisplays/Badge/__snapshots__/Badge.features.stories.tsx.snap +353 -0
  39. package/src/system/dataDisplays/Badge/__snapshots__/Badge.stories.tsx.snap +50 -0
  40. package/src/system/dataDisplays/Badge/__snapshots_web__/Badge.features.stories.tsx.snap +164 -0
  41. package/src/system/dataDisplays/Badge/__snapshots_web__/Badge.stories.tsx.snap +35 -0
  42. package/src/system/types.ts +7 -0
@@ -0,0 +1,164 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`Bumper/Data Displays/Badge/Features WithCount 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 _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313 _alignItems-center"
22
+ >
23
+ <div
24
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
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-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
28
+ data-disable-theme="true"
29
+ >
30
+ 1
31
+ </span>
32
+ </div>
33
+ <div
34
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
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-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
38
+ data-disable-theme="true"
39
+ >
40
+ 5
41
+ </span>
42
+ </div>
43
+ <div
44
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
45
+ >
46
+ <span
47
+ 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-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
48
+ data-disable-theme="true"
49
+ >
50
+ 9+
51
+ </span>
52
+ </div>
53
+ <div
54
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
55
+ >
56
+ <span
57
+ 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-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
58
+ data-disable-theme="true"
59
+ >
60
+ 9+
61
+ </span>
62
+ </div>
63
+ <div
64
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
65
+ >
66
+ <span
67
+ 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-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
68
+ data-disable-theme="true"
69
+ >
70
+ 0
71
+ </span>
72
+ </div>
73
+ </div>
74
+ </span>
75
+ </span>
76
+ </span>
77
+ </div>
78
+ </DocumentFragment>
79
+ `;
80
+
81
+ exports[`Bumper/Data Displays/Badge/Features WithMaximumCount 1`] = `
82
+ <DocumentFragment>
83
+ <div
84
+ class="css-view-175oi2r r-flex-13awgt0"
85
+ >
86
+ <span
87
+ class=""
88
+ style="display: contents;"
89
+ >
90
+ <span
91
+ class=" "
92
+ style="display: contents;"
93
+ >
94
+ <span
95
+ class=" t_light is_Theme"
96
+ style="display: contents;"
97
+ >
98
+ <div
99
+ class="is_HStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313 _alignItems-center"
100
+ >
101
+ <div
102
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
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-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
106
+ data-disable-theme="true"
107
+ >
108
+ 9+
109
+ </span>
110
+ </div>
111
+ <div
112
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
113
+ >
114
+ <span
115
+ 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-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
116
+ data-disable-theme="true"
117
+ >
118
+ 99+
119
+ </span>
120
+ </div>
121
+ <div
122
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
123
+ >
124
+ <span
125
+ class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
126
+ data-disable-theme="true"
127
+ >
128
+ 999
129
+ </span>
130
+ </div>
131
+ </div>
132
+ </span>
133
+ </span>
134
+ </span>
135
+ </div>
136
+ </DocumentFragment>
137
+ `;
138
+
139
+ exports[`Bumper/Data Displays/Badge/Features WithoutCount 1`] = `
140
+ <DocumentFragment>
141
+ <div
142
+ class="css-view-175oi2r r-flex-13awgt0"
143
+ >
144
+ <span
145
+ class=""
146
+ style="display: contents;"
147
+ >
148
+ <span
149
+ class=" "
150
+ style="display: contents;"
151
+ >
152
+ <span
153
+ class=" t_light is_Theme"
154
+ style="display: contents;"
155
+ >
156
+ <div
157
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _width-8px _height-8px"
158
+ />
159
+ </span>
160
+ </span>
161
+ </span>
162
+ </div>
163
+ </DocumentFragment>
164
+ `;
@@ -0,0 +1,35 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`Bumper/Data Displays/Badge 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
+ <div
21
+ class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _flexShrink-0 _justifyContent-center _alignItems-center _btlr-t-radius-ra1854241453 _btrr-t-radius-ra1854241453 _bbrr-t-radius-ra1854241453 _bblr-t-radius-ra1854241453 _backgroundColor-bg--danger-46574 _alignSelf-flex-start _minWidth-16px _minHeight-16px _paddingRight-t-space-spa94482162 _paddingLeft-t-space-spa94482162"
22
+ >
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 _fs-f-size-cont1213109893 _lh-f-lineHeigh599485626 _ls-f-letterSpa1883393765 _fw-f-weight-bo3448 _col-content--ba254712717 _paddingBottom-1px"
25
+ data-disable-theme="true"
26
+ >
27
+ 3
28
+ </span>
29
+ </div>
30
+ </span>
31
+ </span>
32
+ </span>
33
+ </div>
34
+ </DocumentFragment>
35
+ `;
@@ -0,0 +1,7 @@
1
+ import type { WithMediaProps } from '@tamagui/core';
2
+
3
+ type PropsWithoutMediaStyles<A> = {
4
+ [Key in keyof A as Key extends `$${string}` ? never : Key]: A[Key];
5
+ };
6
+
7
+ export type TamaguiMediaProps<A> = PropsWithoutMediaStyles<A> & WithMediaProps<PropsWithoutMediaStyles<A>>;