@jobber/components-native 0.113.4 → 0.113.5
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/dist/package.json +2 -2
- package/dist/src/ActivityIndicator/ActivityIndicator.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/ActivityIndicator/ActivityIndicator.stories.tsx +2 -2
- package/src/ActivityIndicator/ActivityIndicator.tsx +2 -2
- package/src/ActivityIndicator/guide.md +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.113.
|
|
3
|
+
"version": "0.113.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"react-native-screens": ">=4.18.0",
|
|
125
125
|
"react-native-svg": ">=12.0.0"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "a39de5621289f06a4d21d021130ff191937cd851"
|
|
128
128
|
}
|
|
@@ -84,8 +84,8 @@ function OnSurfacesExample() {
|
|
|
84
84
|
* Rendering pane → "Emulate CSS media feature prefers-reduced-motion"
|
|
85
85
|
*
|
|
86
86
|
* The component will hide the rocking arcs and render a single static
|
|
87
|
-
* ring in `color-
|
|
88
|
-
* 2-second alternate cycle.
|
|
87
|
+
* ring in `color-text--secondary` whose opacity pulses between 1.0 and 0.35
|
|
88
|
+
* over a 2-second alternate cycle.
|
|
89
89
|
*/
|
|
90
90
|
export const ReducedMotion: Story = {
|
|
91
91
|
render: () => <ActivityIndicator />,
|
|
@@ -160,7 +160,7 @@ export function ActivityIndicator({
|
|
|
160
160
|
<ReducedMotionRing
|
|
161
161
|
pixelSize={pixelSize}
|
|
162
162
|
strokeWidth={strokeWidth}
|
|
163
|
-
ringColor={themeTokens["color-
|
|
163
|
+
ringColor={themeTokens["color-text--secondary"]}
|
|
164
164
|
style={style}
|
|
165
165
|
testID={testID}
|
|
166
166
|
a11yProps={a11yProps}
|
|
@@ -173,7 +173,7 @@ export function ActivityIndicator({
|
|
|
173
173
|
size={resolvedSize}
|
|
174
174
|
pixelSize={pixelSize}
|
|
175
175
|
strokeWidth={strokeWidth}
|
|
176
|
-
arcColor={themeTokens["color-
|
|
176
|
+
arcColor={themeTokens["color-text--secondary"]}
|
|
177
177
|
trackColor={themeTokens["color-surface--active"]}
|
|
178
178
|
style={style}
|
|
179
179
|
testID={testID}
|
|
@@ -49,8 +49,8 @@ interface ActivityIndicatorProps {
|
|
|
49
49
|
The previous wrapper accepted React Native's full `ActivityIndicatorProps` via
|
|
50
50
|
spread. The new public API drops the following intentionally:
|
|
51
51
|
|
|
52
|
-
- `color` — replaced by semantic theme tokens (`color-
|
|
53
|
-
`color-surface--active` for the track). The single known consumer of
|
|
52
|
+
- `color` — replaced by semantic theme tokens (`color-text--secondary` for the
|
|
53
|
+
arcs, `color-surface--active` for the track). The single known consumer of
|
|
54
54
|
`color="white"` (`jobber-mobile/GalleryHeader`) is migrated as part of the
|
|
55
55
|
`migrate-activityindicator` change in the jobber-mobile repository.
|
|
56
56
|
- numeric `size` — sizing is constrained to the two design-system sizes (28px /
|
|
@@ -161,7 +161,9 @@ duration is a CSS literal on web and a matching constant on native (`1000ms`).
|
|
|
161
161
|
When the operating system reports reduce-motion is enabled, the component:
|
|
162
162
|
|
|
163
163
|
- Skips rendering the rotating layers and rocking arcs.
|
|
164
|
-
- Renders a single static `<Circle>` ring in `tokens["color-
|
|
164
|
+
- Renders a single static `<Circle>` ring in `tokens["color-text--secondary"]`.
|
|
165
|
+
The ring stands in for the hidden arcs, so it deliberately tracks the arc
|
|
166
|
+
colour.
|
|
165
167
|
- Animates the ring's opacity between 1.0 and 0.35 over a 4-second ease-in-out
|
|
166
168
|
alternate cycle (2s down, 2s up) so the indicator still reads as "busy"
|
|
167
169
|
without rotational motion.
|
|
@@ -203,8 +205,8 @@ Both components share:
|
|
|
203
205
|
- Sizes (28 px small, 44 px base)
|
|
204
206
|
- Motion durations (`timing-indicator-arc`, `timing-indicator-cycle`,
|
|
205
207
|
`timing-indicator-linear-rotate`) from the same `@jobber/design` source
|
|
206
|
-
- Color tokens (`color-
|
|
207
|
-
the same `@jobber/design` source
|
|
208
|
+
- Color tokens (`color-text--secondary` for arcs, `color-surface--active` for
|
|
209
|
+
track) from the same `@jobber/design` source
|
|
208
210
|
- Reduced-motion fallback (opacity 1.0 ↔ 0.35, 2 s ease-in-out alternate)
|
|
209
211
|
|
|
210
212
|
Documented divergences:
|