@ornikar/bumper 3.11.0 → 3.12.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 (49) hide show
  1. package/CHANGELOG.md +11 -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/dataDisplays/Sticker/Sticker.d.ts +18 -0
  5. package/dist/definitions/system/dataDisplays/Sticker/Sticker.d.ts.map +1 -0
  6. package/dist/definitions/system/dataDisplays/Sticker/components/StickerLabel.d.ts +7 -0
  7. package/dist/definitions/system/dataDisplays/Sticker/components/StickerLabel.d.ts.map +1 -0
  8. package/dist/definitions/system/dataDisplays/Sticker/context.d.ts +3 -0
  9. package/dist/definitions/system/dataDisplays/Sticker/context.d.ts.map +1 -0
  10. package/dist/definitions/system/dataDisplays/Sticker/types.d.ts +24 -0
  11. package/dist/definitions/system/dataDisplays/Sticker/types.d.ts.map +1 -0
  12. package/dist/definitions/system/layout/divider/Divider.d.ts.map +1 -1
  13. package/dist/definitions/system/types.d.ts +10 -9
  14. package/dist/definitions/system/types.d.ts.map +1 -1
  15. package/dist/index-metro.es.android.js +146 -9
  16. package/dist/index-metro.es.android.js.map +1 -1
  17. package/dist/index-metro.es.ios.js +146 -9
  18. package/dist/index-metro.es.ios.js.map +1 -1
  19. package/dist/index-node-22.22.cjs.js +145 -6
  20. package/dist/index-node-22.22.cjs.js.map +1 -1
  21. package/dist/index-node-22.22.cjs.web.js +145 -6
  22. package/dist/index-node-22.22.cjs.web.js.map +1 -1
  23. package/dist/index-node-22.22.es.mjs +145 -7
  24. package/dist/index-node-22.22.es.mjs.map +1 -1
  25. package/dist/index-node-22.22.es.web.mjs +145 -7
  26. package/dist/index-node-22.22.es.web.mjs.map +1 -1
  27. package/dist/index.es.js +141 -9
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/index.es.web.js +141 -9
  30. package/dist/index.es.web.js.map +1 -1
  31. package/dist/tsbuildinfo +1 -1
  32. package/docs/migration/Sticker.md +222 -0
  33. package/package.json +1 -1
  34. package/src/index.ts +2 -0
  35. package/src/system/dataDisplays/Sticker/Sticker.features.stories.tsx +50 -0
  36. package/src/system/dataDisplays/Sticker/Sticker.mdx +38 -0
  37. package/src/system/dataDisplays/Sticker/Sticker.stories.tsx +49 -0
  38. package/src/system/dataDisplays/Sticker/Sticker.tsx +52 -0
  39. package/src/system/dataDisplays/Sticker/__snapshots__/Sticker.features.stories.tsx.snap +747 -0
  40. package/src/system/dataDisplays/Sticker/__snapshots__/Sticker.stories.tsx.snap +52 -0
  41. package/src/system/dataDisplays/Sticker/__snapshots_web__/Sticker.features.stories.tsx.snap +294 -0
  42. package/src/system/dataDisplays/Sticker/__snapshots_web__/Sticker.stories.tsx.snap +35 -0
  43. package/src/system/dataDisplays/Sticker/components/StickerLabel.tsx +33 -0
  44. package/src/system/dataDisplays/Sticker/context.ts +10 -0
  45. package/src/system/dataDisplays/Sticker/types.ts +61 -0
  46. package/src/system/layout/divider/Divider.tsx +7 -2
  47. package/src/system/layout/divider/__snapshots_web__/Divider.features.stories.tsx.snap +7 -0
  48. package/src/system/layout/divider/__snapshots_web__/Divider.stories.tsx.snap +1 -0
  49. package/src/system/types.ts +26 -14
@@ -0,0 +1,52 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`Bumper/Data Displays/Sticker Default 1`] = `
4
+ <RNCSafeAreaProvider
5
+ onInsetsChange={[Function]}
6
+ style={
7
+ [
8
+ {
9
+ "flex": 1,
10
+ },
11
+ undefined,
12
+ ]
13
+ }
14
+ >
15
+ <View
16
+ style={
17
+ {
18
+ "alignSelf": "flex-start",
19
+ "backgroundColor": "#4DA00A",
20
+ "borderBottomLeftRadius": 2,
21
+ "borderBottomRightRadius": 2,
22
+ "borderTopLeftRadius": 2,
23
+ "borderTopRightRadius": 2,
24
+ "maxWidth": "100%",
25
+ "paddingBottom": 4,
26
+ "paddingLeft": 4,
27
+ "paddingRight": 4,
28
+ "paddingTop": 4,
29
+ }
30
+ }
31
+ >
32
+ <Text
33
+ ellipsizeMode="tail"
34
+ numberOfLines={1}
35
+ style={
36
+ {
37
+ "color": "#DEF985",
38
+ "fontFamily": "GTStandardNarrowBold",
39
+ "fontSize": 12,
40
+ "letterSpacing": 0,
41
+ "lineHeight": 14,
42
+ "textAlign": "left",
43
+ "textTransform": "uppercase",
44
+ }
45
+ }
46
+ suppressHighlighting={true}
47
+ >
48
+ Label
49
+ </Text>
50
+ </View>
51
+ </RNCSafeAreaProvider>
52
+ `;
@@ -0,0 +1,294 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`Bumper/Data Displays/Sticker/Features Colors 1`] = `
4
+ <DocumentFragment>
5
+ <div
6
+ class="css-view-g5y9jx r-flex-13awgt0"
7
+ >
8
+ <span
9
+ class=""
10
+ style="display: contents;"
11
+ >
12
+ <span
13
+ class=" "
14
+ style="display: contents;"
15
+ >
16
+ <span
17
+ class=" t_light is_Theme"
18
+ style="display: contents;"
19
+ >
20
+ <div
21
+ class="is_VStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _gap-t-space-spa94482166 _alignItems-flex-start"
22
+ >
23
+ <div
24
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra391064167"
25
+ data-disable-theme="true"
26
+ >
27
+ <span
28
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--ra385477643 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
29
+ >
30
+ green
31
+ </span>
32
+ </div>
33
+ <div
34
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra1511145825"
35
+ data-disable-theme="true"
36
+ >
37
+ <span
38
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--ra1504015597 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
39
+ >
40
+ greenDark
41
+ </span>
42
+ </div>
43
+ <div
44
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra1504015597"
45
+ data-disable-theme="true"
46
+ >
47
+ <span
48
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--ra1511145825 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
49
+ >
50
+ blue
51
+ </span>
52
+ </div>
53
+ <div
54
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra32584085"
55
+ data-disable-theme="true"
56
+ >
57
+ <span
58
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--be1190730196 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
59
+ >
60
+ blueDark
61
+ </span>
62
+ </div>
63
+ <div
64
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra663497604"
65
+ data-disable-theme="true"
66
+ >
67
+ <span
68
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--ra1764687175 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
69
+ >
70
+ red
71
+ </span>
72
+ </div>
73
+ <div
74
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra1278361939"
75
+ data-disable-theme="true"
76
+ >
77
+ <span
78
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--be1190730197 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
79
+ >
80
+ orange
81
+ </span>
82
+ </div>
83
+ <div
84
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra1129373221"
85
+ data-disable-theme="true"
86
+ >
87
+ <span
88
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--ra663497604 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
89
+ >
90
+ pink
91
+ </span>
92
+ </div>
93
+ <div
94
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra1129635643"
95
+ data-disable-theme="true"
96
+ >
97
+ <span
98
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--be1190730198 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
99
+ >
100
+ gold
101
+ </span>
102
+ </div>
103
+ <div
104
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--be1190730198"
105
+ data-disable-theme="true"
106
+ >
107
+ <span
108
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--ra663497604 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
109
+ >
110
+ cream
111
+ </span>
112
+ </div>
113
+ <div
114
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--be1190730196"
115
+ data-disable-theme="true"
116
+ >
117
+ <span
118
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--de1049763599 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
119
+ >
120
+ linen
121
+ </span>
122
+ </div>
123
+ <div
124
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--li196729422"
125
+ data-disable-theme="true"
126
+ >
127
+ <span
128
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--li196729426 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
129
+ >
130
+ lightning
131
+ </span>
132
+ </div>
133
+ <div
134
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--li196729426"
135
+ data-disable-theme="true"
136
+ >
137
+ <span
138
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--li196729422 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
139
+ >
140
+ lightningDark
141
+ </span>
142
+ </div>
143
+ </div>
144
+ </span>
145
+ </span>
146
+ </span>
147
+ </div>
148
+ </DocumentFragment>
149
+ `;
150
+
151
+ exports[`Bumper/Data Displays/Sticker/Features Disabled 1`] = `
152
+ <DocumentFragment>
153
+ <div
154
+ class="css-view-g5y9jx r-flex-13awgt0"
155
+ >
156
+ <span
157
+ class=""
158
+ style="display: contents;"
159
+ >
160
+ <span
161
+ class=" "
162
+ style="display: contents;"
163
+ >
164
+ <span
165
+ class=" t_light is_Theme"
166
+ style="display: contents;"
167
+ >
168
+ <div
169
+ 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"
170
+ >
171
+ <div
172
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--li196729422"
173
+ data-disable-theme="true"
174
+ >
175
+ <span
176
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--li196729426 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
177
+ >
178
+ Enabled
179
+ </span>
180
+ </div>
181
+ <div
182
+ aria-disabled="true"
183
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-bg--disable93739269"
184
+ data-disable-theme="true"
185
+ >
186
+ <span
187
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-content--di396036745 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
188
+ >
189
+ Disabled
190
+ </span>
191
+ </div>
192
+ </div>
193
+ </span>
194
+ </span>
195
+ </span>
196
+ </div>
197
+ </DocumentFragment>
198
+ `;
199
+
200
+ exports[`Bumper/Data Displays/Sticker/Features LongLabel 1`] = `
201
+ <DocumentFragment>
202
+ <div
203
+ class="css-view-g5y9jx r-flex-13awgt0"
204
+ >
205
+ <span
206
+ class=""
207
+ style="display: contents;"
208
+ >
209
+ <span
210
+ class=" "
211
+ style="display: contents;"
212
+ >
213
+ <span
214
+ class=" t_light is_Theme"
215
+ style="display: contents;"
216
+ >
217
+ <div
218
+ class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-200px"
219
+ >
220
+ <div
221
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--be1190730196"
222
+ data-disable-theme="true"
223
+ >
224
+ <span
225
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--de1049763599 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
226
+ >
227
+ A very long label that should be truncated with an ellipsis
228
+ </span>
229
+ </div>
230
+ </div>
231
+ </span>
232
+ </span>
233
+ </span>
234
+ </div>
235
+ </DocumentFragment>
236
+ `;
237
+
238
+ exports[`Bumper/Data Displays/Sticker/Features Sizes 1`] = `
239
+ <DocumentFragment>
240
+ <div
241
+ class="css-view-g5y9jx r-flex-13awgt0"
242
+ >
243
+ <span
244
+ class=""
245
+ style="display: contents;"
246
+ >
247
+ <span
248
+ class=" "
249
+ style="display: contents;"
250
+ >
251
+ <span
252
+ class=" t_light is_Theme"
253
+ style="display: contents;"
254
+ >
255
+ <div
256
+ 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"
257
+ >
258
+ <div
259
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _backgroundColor-palette--ra391064167 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416"
260
+ data-disable-theme="true"
261
+ >
262
+ <span
263
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--ra385477643 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
264
+ >
265
+ Small
266
+ </span>
267
+ </div>
268
+ <div
269
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _backgroundColor-palette--ra391064167 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410"
270
+ data-disable-theme="true"
271
+ >
272
+ <span
273
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-cont593321891 _lh-f-lineHeigh1366135090 _ls-f-letterSpa199301955 _fw-f-weight-bo3448 _textAlign-left _tt-uppercase _col-palette--ra385477643 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
274
+ >
275
+ Medium
276
+ </span>
277
+ </div>
278
+ <div
279
+ class="is_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _backgroundColor-palette--ra391064167 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410"
280
+ data-disable-theme="true"
281
+ >
282
+ <span
283
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-cont593321890 _lh-f-lineHeigh1366135091 _ls-f-letterSpa199301954 _fw-f-weight-bo3448 _textAlign-left _tt-uppercase _col-palette--ra385477643 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
284
+ >
285
+ Large
286
+ </span>
287
+ </div>
288
+ </div>
289
+ </span>
290
+ </span>
291
+ </span>
292
+ </div>
293
+ </DocumentFragment>
294
+ `;
@@ -0,0 +1,35 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`Bumper/Data Displays/Sticker Default 1`] = `
4
+ <DocumentFragment>
5
+ <div
6
+ class="css-view-g5y9jx 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_Sticker _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-flex-start _maxWidth-10037 _paddingTop-t-space-spa94482162 _paddingRight-t-space-spa94482162 _paddingBottom-t-space-spa94482162 _paddingLeft-t-space-spa94482162 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-palette--ra391064167"
22
+ data-disable-theme="true"
23
+ >
24
+ <span
25
+ class="font_GTStandardNarrow _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-nowrap _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 _textAlign-left _tt-uppercase _col-palette--ra385477643 _maxWidth-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis"
26
+ >
27
+ Label
28
+ </span>
29
+ </div>
30
+ </span>
31
+ </span>
32
+ </span>
33
+ </div>
34
+ </DocumentFragment>
35
+ `;
@@ -0,0 +1,33 @@
1
+ import type { ReactNode } from 'react';
2
+ import { InternalTypography } from '../../../content/typography/Typography';
3
+ import type { ContentCapsVariants } from '../../../core/tokens/GTStandardNarrowFont';
4
+ import { context } from '../context';
5
+ import type { StickerSize } from '../types';
6
+ import { STICKER_COLORS } from '../types';
7
+
8
+ interface InternalStickerLabelProps {
9
+ children: ReactNode;
10
+ }
11
+
12
+ const TYPOGRAPHY_VARIANT_BY_SIZE: Record<StickerSize, ContentCapsVariants> = {
13
+ small: 'content-caps-xs',
14
+ medium: 'content-caps-m',
15
+ large: 'content-caps-l',
16
+ };
17
+
18
+ export function InternalStickerLabel({ children }: InternalStickerLabelProps): ReactNode {
19
+ const { color, size, disabled } = context.useStyledContext();
20
+
21
+ const textColor = STICKER_COLORS[disabled ? 'disabled' : color].text;
22
+
23
+ return (
24
+ <InternalTypography
25
+ variant={TYPOGRAPHY_VARIANT_BY_SIZE[size]}
26
+ color={textColor}
27
+ numberOfLines={1}
28
+ ellipsizeMode="tail"
29
+ >
30
+ {children}
31
+ </InternalTypography>
32
+ );
33
+ }
@@ -0,0 +1,10 @@
1
+ import { createStyledContext } from '@tamagui/core';
2
+ import type { InternalStickerWithoutMediaProps } from './types';
3
+
4
+ type StickerContextProps = Required<Pick<InternalStickerWithoutMediaProps, 'color' | 'size' | 'disabled'>>;
5
+
6
+ export const context = createStyledContext<StickerContextProps>({
7
+ color: 'green',
8
+ size: 'small',
9
+ disabled: false,
10
+ });
@@ -0,0 +1,61 @@
1
+ /* eslint-disable @ornikar/kitt/prefer-semantic-tokens --
2
+ * Sticker intentionally exposes 12 palette-level decorative colors agreed with design.
3
+ */
4
+ import type { ColorTokens } from '@tamagui/core';
5
+ import type { ReactNode } from 'react';
6
+ import type { TamaguiMediaProps } from '../../types';
7
+
8
+ export const STICKER_COLORS_LIST = [
9
+ 'green',
10
+ 'greenDark',
11
+ 'blue',
12
+ 'blueDark',
13
+ 'red',
14
+ 'orange',
15
+ 'pink',
16
+ 'gold',
17
+ 'cream',
18
+ 'linen',
19
+ 'lightning',
20
+ 'lightningDark',
21
+ ] as const;
22
+
23
+ export type StickerColor = (typeof STICKER_COLORS_LIST)[number];
24
+
25
+ export const STICKER_SIZES_LIST = ['small', 'medium', 'large'] as const;
26
+
27
+ export type StickerSize = (typeof STICKER_SIZES_LIST)[number];
28
+
29
+ interface StickerColorStyle {
30
+ background: ColorTokens;
31
+ text: ColorTokens;
32
+ }
33
+
34
+ type InternalStickerColor = StickerColor | 'disabled';
35
+
36
+ export const STICKER_COLORS: Record<InternalStickerColor, StickerColorStyle> = {
37
+ green: { background: '$palette.rainbow.green-grass', text: '$palette.rainbow.green-apple' },
38
+ greenDark: { background: '$palette.rainbow.green-pine', text: '$palette.rainbow.blue-sky' },
39
+ blue: { background: '$palette.rainbow.blue-sky', text: '$palette.rainbow.green-pine' },
40
+ blueDark: { background: '$palette.rainbow.blue-electric', text: '$palette.beige.3' },
41
+ red: { background: '$palette.rainbow.brick', text: '$palette.rainbow.sun' },
42
+ orange: { background: '$palette.rainbow.orange', text: '$palette.beige.2' },
43
+ pink: { background: '$palette.rainbow.pink', text: '$palette.rainbow.brick' },
44
+ gold: { background: '$palette.rainbow.gold', text: '$palette.beige.1' },
45
+ cream: { background: '$palette.beige.1', text: '$palette.rainbow.brick' },
46
+ linen: { background: '$palette.beige.3', text: '$palette.deepPurple.8' },
47
+ lightning: { background: '$palette.lightning.5', text: '$palette.lightning.9' },
48
+ lightningDark: { background: '$palette.lightning.9', text: '$palette.lightning.5' },
49
+ disabled: { background: '$bg.disabled.hi', text: '$content.disabled.onContrasted' },
50
+ };
51
+
52
+ export interface InternalStickerWithoutMediaProps {
53
+ label: ReactNode;
54
+ color?: StickerColor;
55
+ size?: StickerSize;
56
+ disabled?: boolean;
57
+ }
58
+
59
+ export interface InternalStickerLabelWithoutMediaProps extends InternalStickerWithoutMediaProps {}
60
+
61
+ export type StickerProps = TamaguiMediaProps<InternalStickerWithoutMediaProps>;
@@ -1,5 +1,6 @@
1
1
  import { styled } from '@tamagui/core';
2
2
  import type { ReactNode } from 'react';
3
+ import { useProps } from '../../core/hooks/useProps';
3
4
  import type { ViewProps } from '../../core/primitives/View';
4
5
  import { View } from '../../core/primitives/View';
5
6
  import type { PropsToTamaguiVariants, TamaguiMediaProps } from '../../types';
@@ -10,10 +11,9 @@ interface InternalDividerWithoutMediaProps {
10
11
  isOnContrasted?: boolean;
11
12
  }
12
13
 
13
- const InternalDivider = styled(View, {
14
+ const InternalDividerFrame = styled(View, {
14
15
  name: 'Divider',
15
16
  alignSelf: 'stretch',
16
-
17
17
  variants: {
18
18
  type: {
19
19
  subtle: {},
@@ -47,6 +47,11 @@ const InternalDivider = styled(View, {
47
47
 
48
48
  export type DividerProps = TamaguiMediaProps<InternalDividerWithoutMediaProps>;
49
49
 
50
+ const InternalDivider = InternalDividerFrame.styleable<DividerProps>((props, ref) => {
51
+ const flattenProps = useProps(props);
52
+ return <InternalDividerFrame ref={ref} {...flattenProps} />;
53
+ });
54
+
50
55
  export function Divider(props: DividerProps): ReactNode {
51
56
  return <InternalDivider {...props} />;
52
57
  }
@@ -34,6 +34,7 @@ exports[`Bumper/Layout/Divider/Features BetweenListItems 1`] = `
34
34
  </div>
35
35
  <div
36
36
  class="is_Divider _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-stretch _height-1px _backgroundColor-divider--bo1473130412"
37
+ data-disable-theme="true"
37
38
  />
38
39
  </div>
39
40
  <div
@@ -50,6 +51,7 @@ exports[`Bumper/Layout/Divider/Features BetweenListItems 1`] = `
50
51
  </div>
51
52
  <div
52
53
  class="is_Divider _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-stretch _height-1px _backgroundColor-divider--bo1473130412"
54
+ data-disable-theme="true"
53
55
  />
54
56
  </div>
55
57
  <div
@@ -103,6 +105,7 @@ exports[`Bumper/Layout/Divider/Features OnContrasted 1`] = `
103
105
  </span>
104
106
  <div
105
107
  class="is_Divider _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-stretch _height-1px _backgroundColor-divider--bo862343508"
108
+ data-disable-theme="true"
106
109
  />
107
110
  </div>
108
111
  <div
@@ -115,6 +118,7 @@ exports[`Bumper/Layout/Divider/Features OnContrasted 1`] = `
115
118
  </span>
116
119
  <div
117
120
  class="is_Divider _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-stretch _height-8px _backgroundColor-divider--bo731293974"
121
+ data-disable-theme="true"
118
122
  />
119
123
  </div>
120
124
  </div>
@@ -155,6 +159,7 @@ exports[`Bumper/Layout/Divider/Features Types 1`] = `
155
159
  </span>
156
160
  <div
157
161
  class="is_Divider _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-stretch _height-1px _backgroundColor-divider--bo1473130412"
162
+ data-disable-theme="true"
158
163
  />
159
164
  </div>
160
165
  <div
@@ -167,6 +172,7 @@ exports[`Bumper/Layout/Divider/Features Types 1`] = `
167
172
  </span>
168
173
  <div
169
174
  class="is_Divider _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-stretch _height-8px _backgroundColor-divider--bo1472678806"
175
+ data-disable-theme="true"
170
176
  />
171
177
  </div>
172
178
  </div>
@@ -208,6 +214,7 @@ exports[`Bumper/Layout/Divider/Features Vertical 1`] = `
208
214
  </div>
209
215
  <div
210
216
  class="is_Divider _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-stretch _backgroundColor-divider--bo1473130412 _width-1px"
217
+ data-disable-theme="true"
211
218
  />
212
219
  <div
213
220
  class="is_VStack _dsp-flex _alignItems-stretch _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-column _flexGrow-1 _justifyContent-center"
@@ -19,6 +19,7 @@ exports[`Bumper/Layout/Divider Default 1`] = `
19
19
  >
20
20
  <div
21
21
  class="is_Divider _dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _alignSelf-stretch _height-1px _backgroundColor-divider--bo1473130412"
22
+ data-disable-theme="true"
22
23
  />
23
24
  </span>
24
25
  </span>