@jobber/components-native 0.116.12 → 0.117.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/README.md CHANGED
@@ -32,6 +32,28 @@ export function MyComponent() {
32
32
  }
33
33
  ```
34
34
 
35
+ ## Unstyled primitives
36
+
37
+ For advanced/experimental use, Atlantis exposes selected
38
+ [RN Primitives](https://rnprimitives.com/toast/) through
39
+ `@jobber/components-native/unstyledPrimitives`. Prefer styled Atlantis
40
+ components when possible, and reach out to UXF for guidance and support.
41
+
42
+ ```tsx
43
+ import { Toast } from "@jobber/components-native/unstyledPrimitives";
44
+
45
+ <Toast.Root open={open} onOpenChange={setOpen}>
46
+ <Toast.Title>Saved</Toast.Title>
47
+ <Toast.Description>Your changes were saved.</Toast.Description>
48
+ </Toast.Root>;
49
+ ```
50
+
51
+ The `Toast` namespace exposes the upstream components and types, including
52
+ `Root`, `Title`, `Description`, `Action`, and `Close`. Atlantis manages the
53
+ dependency version, so product repos do not need to install
54
+ `@rn-primitives/toast` directly. Product teams own styling, positioning, timing,
55
+ and composition; this export does not provide a toast manager or queue.
56
+
35
57
  ## Setting up with Jest
36
58
 
37
59
  In order to make `@jobber/components-native` work with Jest, you may need to
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.116.12",
3
+ "version": "0.117.0",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "author": "The Frends",
@@ -17,6 +17,10 @@
17
17
  "types": "./dist/types/src/primitives/index.d.ts",
18
18
  "default": "./dist/src/primitives/index.js"
19
19
  },
20
+ "./unstyledPrimitives": {
21
+ "types": "./dist/types/src/unstyledPrimitives/index.d.ts",
22
+ "default": "./dist/src/unstyledPrimitives/index.js"
23
+ },
20
24
  "./meta.json": "./dist/src/utils/meta/meta.json",
21
25
  "./dist/src/utils/meta/meta.json": "./dist/src/utils/meta/meta.json",
22
26
  "./package.json": "./package.json"
@@ -53,6 +57,7 @@
53
57
  "@react-native-picker/picker": "^2.4.10",
54
58
  "@rn-primitives/portal": "^1.4.0",
55
59
  "@rn-primitives/select": "^1.4.0",
60
+ "@rn-primitives/toast": "^1.5.2",
56
61
  "autolinker": "^4.0.0",
57
62
  "deepmerge": "^4.2.2",
58
63
  "lodash": "^4.18.1",
@@ -118,5 +123,5 @@
118
123
  "react-native-screens": ">=4.18.0",
119
124
  "react-native-svg": ">=12.0.0"
120
125
  },
121
- "gitHead": "483fa16db4fa78cefddcade2c7181c3ade357c86"
126
+ "gitHead": "27ecbc65e3a2f1d43207a2e3fc0e754bac273be2"
122
127
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Unstyled RN Primitives for advanced/experimental use when Atlantis does not
3
+ * provide the component or API a product needs. Prefer styled Atlantis components
4
+ * when possible, and reach out to UXF for guidance and support.
5
+ *
6
+ * Atlantis manages the dependency version; consumers own styling, positioning,
7
+ * timing, and composition. These exports preserve the upstream API.
8
+ *
9
+ * RN Primitives docs: https://rnprimitives.com/toast/
10
+ */
11
+ export * as Toast from "@rn-primitives/toast";