asheeui 2.2.1 → 2.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asheeui",
3
- "version": "2.2.1",
3
+ "version": "2.4.0",
4
4
  "description": "The AsheeUI umbrella package: the components of @asheeui/web and @asheeui/native behind one import, routed by the bundler instead of by a runtime check.",
5
5
  "author": "Ashee Softworks <asheesoftworks@gmail.com>",
6
6
  "homepage": "https://asheeui.com",
@@ -40,7 +40,9 @@
40
40
  "types": "./dist/index.d.ts",
41
41
  "import": "./dist/index.js",
42
42
  "default": "./dist/index.js"
43
- }
43
+ },
44
+ "./tailwind-preset": "./tailwind-preset.cjs",
45
+ "./package.json": "./package.json"
44
46
  },
45
47
  "publishConfig": {
46
48
  "provenance": true
@@ -49,13 +51,14 @@
49
51
  "dist",
50
52
  "src/index.ts",
51
53
  "src/index.native.ts",
54
+ "tailwind-preset.cjs",
52
55
  "LICENSE",
53
56
  "NOTICE"
54
57
  ],
55
58
  "dependencies": {
56
- "@asheeui/web": "^2.3.0",
57
- "@asheeui/core": "^2.2.0",
58
- "@asheeui/native": "^2.3.0"
59
+ "@asheeui/web": "^2.5.0",
60
+ "@asheeui/core": "^2.3.1",
61
+ "@asheeui/native": "^2.6.0"
59
62
  },
60
63
  "peerDependencies": {
61
64
  "nativewind": ">=4.2.0",
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The native Tailwind preset, reached through the umbrella package.
3
+ *
4
+ * `asheeui` routes an import to `@asheeui/native` on a React Native platform, so an
5
+ * application that installs the umbrella never imports the native package by name — and
6
+ * with pnpm, Bun's isolated installs or npm's nesting, it cannot reach a package that is
7
+ * only the umbrella's dependency. This subpath is the seam: the preset is the native
8
+ * package's own file, resolved from where the umbrella installed it, so an application
9
+ * states one setup for whichever entry point it uses.
10
+ *
11
+ * The whole configuration lives next door, in `@asheeui/native/tailwind-preset`; this file
12
+ * exists so a consumer of `asheeui` can name the preset without adding a second dependency
13
+ * to its manifest.
14
+ *
15
+ * ```js
16
+ * // tailwind.config.js
17
+ * const asheeui = require("asheeui/tailwind-preset");
18
+ *
19
+ * module.exports = {
20
+ * presets: [asheeui],
21
+ * content: [...APPLICATION_CONTENT, ...asheeui.content],
22
+ * };
23
+ * ```
24
+ */
25
+
26
+ module.exports = require("@asheeui/native/tailwind-preset");