@kbach/react-native 1.0.0-beta.51 → 1.0.0-beta.53
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/AGENTS.md +103 -5
- package/README.md +16 -0
- package/android/src/main/jniLibs/arm64-v8a/libkbach_core_engine.so +0 -0
- package/android/src/main/jniLibs/x86_64/libkbach_core_engine.so +0 -0
- package/dist/{chunk-KHQ2BWYH.mjs → chunk-3JQAZNJK.mjs} +1 -1
- package/dist/{chunk-IJAXJVB4.mjs → chunk-P75PP2QR.mjs} +17 -8
- package/dist/{chunk-CD5WFFIQ.mjs → chunk-TC6VSV44.mjs} +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +54 -0
- package/dist/index.web.d.ts +2 -1
- package/dist/index.web.js +53 -1
- package/dist/index.web.mjs +36 -2
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/jsx-dev-runtime.js +2 -0
- package/dist/jsx-dev-runtime.web.d.ts +2 -2
- package/dist/jsx-dev-runtime.web.js +1 -1
- package/dist/jsx-dev-runtime.web.mjs +3 -3
- package/dist/jsx-runtime.d.ts +3 -3
- package/dist/jsx-runtime.js +2 -0
- package/dist/jsx-runtime.web.d.ts +3 -3
- package/dist/jsx-runtime.web.js +1 -1
- package/dist/jsx-runtime.web.mjs +2 -2
- package/dist/{clsx-BLLSnqAa.d.ts → semanticElements-Bk3TB-vt.d.ts} +60 -3
- package/dist/theme.js +16 -7
- package/package.json +1 -1
package/dist/index.web.mjs
CHANGED
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
subscribeDynamicTokens,
|
|
11
11
|
subscribeGlobalDarkMode,
|
|
12
12
|
toggleGlobalDarkMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3JQAZNJK.mjs";
|
|
14
14
|
import {
|
|
15
15
|
defaultTheme,
|
|
16
16
|
getTheme,
|
|
17
17
|
resolveClassName,
|
|
18
18
|
setTheme
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-P75PP2QR.mjs";
|
|
20
20
|
|
|
21
21
|
// src/config.ts
|
|
22
22
|
function parseHexRgb(hex) {
|
|
@@ -262,7 +262,41 @@ function resolveClassValue(value) {
|
|
|
262
262
|
}
|
|
263
263
|
return "";
|
|
264
264
|
}
|
|
265
|
+
|
|
266
|
+
// src/semanticElements.tsx
|
|
267
|
+
import * as React from "react";
|
|
268
|
+
import { Pressable, Text } from "react-native";
|
|
269
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
270
|
+
var Button = React.forwardRef(function Button2(props, ref) {
|
|
271
|
+
return /* @__PURE__ */ jsx2(Pressable, { ref, accessibilityRole: "button", ...props });
|
|
272
|
+
});
|
|
273
|
+
var PARAGRAPH_ROLE = "paragraph";
|
|
274
|
+
var Paragraph = React.forwardRef(function Paragraph2(props, ref) {
|
|
275
|
+
return /* @__PURE__ */ jsx2(Text, { ref, role: PARAGRAPH_ROLE, ...props });
|
|
276
|
+
});
|
|
277
|
+
function makeHeading(level) {
|
|
278
|
+
const extra = { "aria-level": level };
|
|
279
|
+
const Heading = React.forwardRef(function Heading2(props, ref) {
|
|
280
|
+
return /* @__PURE__ */ jsx2(Text, { ref, accessibilityRole: "header", ...extra, ...props });
|
|
281
|
+
});
|
|
282
|
+
Heading.displayName = `H${level}`;
|
|
283
|
+
return Heading;
|
|
284
|
+
}
|
|
285
|
+
var H1 = makeHeading(1);
|
|
286
|
+
var H2 = makeHeading(2);
|
|
287
|
+
var H3 = makeHeading(3);
|
|
288
|
+
var H4 = makeHeading(4);
|
|
289
|
+
var H5 = makeHeading(5);
|
|
290
|
+
var H6 = makeHeading(6);
|
|
265
291
|
export {
|
|
292
|
+
Button,
|
|
293
|
+
H1,
|
|
294
|
+
H2,
|
|
295
|
+
H3,
|
|
296
|
+
H4,
|
|
297
|
+
H5,
|
|
298
|
+
H6,
|
|
299
|
+
Paragraph,
|
|
266
300
|
ThemeProvider,
|
|
267
301
|
applyKbachConfig,
|
|
268
302
|
clsx,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export { Fragment } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const jsxDEV: (type: unknown, props: Record<string, unknown> | null, key?: string, isStaticChildren?: boolean, source?: {
|
|
5
5
|
fileName: string;
|
|
6
6
|
lineNumber: number;
|
|
7
7
|
columnNumber: number;
|
|
8
|
-
}, self?: unknown) =>
|
|
8
|
+
}, self?: unknown) => React.ReactElement;
|
|
9
9
|
|
|
10
10
|
export { jsxDEV };
|
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -2002,6 +2002,8 @@ function resolveTextNative(parsed, theme) {
|
|
|
2002
2002
|
if (size !== null) return [decl("font-size", size)];
|
|
2003
2003
|
const align = textAlign(parsed.value);
|
|
2004
2004
|
if (align !== null) return [decl("text-align", align)];
|
|
2005
|
+
} else if (parsed.isArbitrary && parsed.value !== null && looksLikeLength(parsed.value)) {
|
|
2006
|
+
return [decl("font-size", parsed.value)];
|
|
2005
2007
|
}
|
|
2006
2008
|
const hex = nativeHexColor(parsed, theme);
|
|
2007
2009
|
return hex === null ? null : [decl("color", hex)];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export { Fragment } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const jsxDEV: (type: unknown, props: Record<string, unknown> | null, key?: string, isStaticChildren?: boolean, source?: {
|
|
5
5
|
fileName: string;
|
|
6
6
|
lineNumber: number;
|
|
7
7
|
columnNumber: number;
|
|
8
|
-
}, self?: unknown) =>
|
|
8
|
+
}, self?: unknown) => React.ReactElement;
|
|
9
9
|
|
|
10
10
|
export { jsxDEV };
|