react-native-tinyui 0.4.0 → 0.5.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 +32 -31
- package/ios/LiquidGlassText/TinyuiLiquidGlassTextProvider.swift +64 -79
- package/ios/LiquidGlassText/TinyuiLiquidGlassTextShadowNode.h +46 -0
- package/ios/LiquidGlassText/TinyuiLiquidGlassTextShadowNode.mm +159 -0
- package/ios/LiquidGlassText/TinyuiLiquidGlassTextView.mm +6 -27
- package/ios/LiquidGlassText/TinyuiTextOutlineShape.swift +5 -2
- package/ios/Menu/TinyuiMenuProvider.swift +2 -2
- package/ios/Menu/TinyuiMenuView.mm +2 -1
- package/ios/Menu/TinyuiMenuViewSwift.swift +42 -124
- package/lib/module/LiquidGlassText/LiquidGlassTextNativeComponent.ts +2 -12
- package/lib/module/LiquidGlassText/index.js +60 -35
- package/lib/module/LiquidGlassText/index.js.map +1 -1
- package/lib/module/Menu/MenuNativeComponent.ts +6 -2
- package/lib/module/Menu/options.js +2 -2
- package/lib/module/Menu/options.js.map +1 -1
- package/lib/typescript/src/LiquidGlassText/LiquidGlassTextNativeComponent.d.ts +2 -8
- package/lib/typescript/src/LiquidGlassText/LiquidGlassTextNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/LiquidGlassText/index.d.ts +1 -1
- package/lib/typescript/src/LiquidGlassText/index.d.ts.map +1 -1
- package/lib/typescript/src/LiquidGlassText/types.d.ts +13 -22
- package/lib/typescript/src/LiquidGlassText/types.d.ts.map +1 -1
- package/lib/typescript/src/Menu/MenuNativeComponent.d.ts +2 -2
- package/lib/typescript/src/Menu/MenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/Menu/options.d.ts +41 -1
- package/lib/typescript/src/Menu/options.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/LiquidGlassText/LiquidGlassTextNativeComponent.ts +2 -12
- package/src/LiquidGlassText/index.tsx +73 -39
- package/src/LiquidGlassText/types.ts +24 -50
- package/src/Menu/MenuNativeComponent.ts +6 -2
- package/src/Menu/options.ts +6 -2
- package/src/index.tsx +2 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React
|
|
1
2
|
import SwiftUI
|
|
2
3
|
import UIKit
|
|
3
4
|
|
|
@@ -6,7 +7,7 @@ import UIKit
|
|
|
6
7
|
* SwiftUI `Menu` implementation. Mirror of `TinyuiMenuProps` in codegen.
|
|
7
8
|
*/
|
|
8
9
|
class TinyuiMenuProps: ObservableObject {
|
|
9
|
-
@Published var menuConfig: String =
|
|
10
|
+
@Published var menuConfig: [String: Any] = [:]
|
|
10
11
|
@Published var title: String = ""
|
|
11
12
|
@Published var disabled: Bool = false
|
|
12
13
|
@Published var hasPrimaryAction: Bool = false
|
|
@@ -18,7 +19,7 @@ class TinyuiMenuProps: ObservableObject {
|
|
|
18
19
|
*
|
|
19
20
|
* The React Native trigger (a UIView) is embedded as the menu label through
|
|
20
21
|
* `RepresentableView`, so the tap target remains the native RN subtree while
|
|
21
|
-
* the menu content is built natively from the
|
|
22
|
+
* the menu content is built natively from the configuration object.
|
|
22
23
|
*
|
|
23
24
|
* Named distinctly from the Fabric component view `TinyuiMenuView`.
|
|
24
25
|
*/
|
|
@@ -74,13 +75,9 @@ struct TinyuiMenuSwiftUIView: View {
|
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
///
|
|
78
|
-
private func buildElements(from
|
|
79
|
-
guard
|
|
80
|
-
let data = json.data(using: .utf8),
|
|
81
|
-
let root = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
|
|
82
|
-
let items = root["items"] as? [[String: Any]]
|
|
83
|
-
else {
|
|
78
|
+
/// Converts the menu config into a list of SwiftUI element builders.
|
|
79
|
+
private func buildElements(from config: [String: Any]) -> [TinyuiMenuElement] {
|
|
80
|
+
guard let items = config["items"] as? [[String: Any]] else {
|
|
84
81
|
return []
|
|
85
82
|
}
|
|
86
83
|
return items.map { TinyuiMenuElement(dictionary: $0) }
|
|
@@ -88,8 +85,8 @@ struct TinyuiMenuSwiftUIView: View {
|
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
/**
|
|
91
|
-
* Lightweight representation of a single UIMenu element
|
|
92
|
-
*
|
|
88
|
+
* Lightweight representation of a single UIMenu element read from the config.
|
|
89
|
+
* Used to build SwiftUI menu content without resolving all elements
|
|
93
90
|
* eagerly. Returns `AnyView` to avoid recursive opaque return type errors.
|
|
94
91
|
*/
|
|
95
92
|
struct TinyuiMenuElement: Identifiable {
|
|
@@ -226,19 +223,41 @@ private struct TinyuiMenuLabel: View {
|
|
|
226
223
|
let destructive: Bool
|
|
227
224
|
let showsState: Bool
|
|
228
225
|
|
|
226
|
+
@ViewBuilder
|
|
229
227
|
var body: some View {
|
|
230
|
-
//
|
|
231
|
-
// the
|
|
232
|
-
//
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if showsState {
|
|
239
|
-
stateIndicator
|
|
228
|
+
// Menu controls interpret the first text as the title and the second as
|
|
229
|
+
// the subtitle. When an icon is present, `Label` replaces the first Text,
|
|
230
|
+
// matching SwiftUI's native menu-item representation.
|
|
231
|
+
if hasIcon {
|
|
232
|
+
Label {
|
|
233
|
+
title
|
|
234
|
+
} icon: {
|
|
235
|
+
menuIcon
|
|
240
236
|
}
|
|
237
|
+
} else {
|
|
238
|
+
title
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if let subtitle {
|
|
242
|
+
Text(subtitle)
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if showsState {
|
|
246
|
+
stateIndicator
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
private var subtitle: String? {
|
|
251
|
+
(dictionary["subtitle"] as? String).flatMap {
|
|
252
|
+
$0.isEmpty ? nil : $0
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
private var hasIcon: Bool {
|
|
257
|
+
if let icon = dictionary["icon"] as? String, !icon.isEmpty {
|
|
258
|
+
return UIImage(named: icon) != nil
|
|
241
259
|
}
|
|
260
|
+
return !(dictionary["systemImage"] as? String ?? "").isEmpty
|
|
242
261
|
}
|
|
243
262
|
|
|
244
263
|
private var stateIndicator: some View {
|
|
@@ -254,13 +273,7 @@ private struct TinyuiMenuLabel: View {
|
|
|
254
273
|
}
|
|
255
274
|
|
|
256
275
|
private var title: Text {
|
|
257
|
-
let
|
|
258
|
-
let subtitle = (dictionary["subtitle"] as? String).flatMap {
|
|
259
|
-
$0.isEmpty ? nil : $0
|
|
260
|
-
}
|
|
261
|
-
let text = subtitle.map { subtitle in
|
|
262
|
-
Text("\(title)\n\(subtitle)")
|
|
263
|
-
} ?? Text(title)
|
|
276
|
+
let text = Text(dictionary["title"] as? String ?? "")
|
|
264
277
|
|
|
265
278
|
if destructive {
|
|
266
279
|
return text.foregroundColor(.red)
|
|
@@ -303,102 +316,7 @@ private struct TinyuiMenuLabel: View {
|
|
|
303
316
|
/** Converts React Native's processed ColorValue JSON into a dynamic UIColor. */
|
|
304
317
|
private enum TinyuiMenuColor {
|
|
305
318
|
static func uiColor(from value: Any?) -> UIColor? {
|
|
306
|
-
|
|
307
|
-
let argb = number.uint32Value
|
|
308
|
-
return UIColor(
|
|
309
|
-
red: CGFloat((argb >> 16) & 0xff) / 255,
|
|
310
|
-
green: CGFloat((argb >> 8) & 0xff) / 255,
|
|
311
|
-
blue: CGFloat(argb & 0xff) / 255,
|
|
312
|
-
alpha: CGFloat((argb >> 24) & 0xff) / 255
|
|
313
|
-
)
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
guard let object = value as? [String: Any] else {
|
|
317
|
-
return nil
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
if let semanticNames = object["semantic"] as? [String] {
|
|
321
|
-
for name in semanticNames {
|
|
322
|
-
if let color = semanticColor(named: name) {
|
|
323
|
-
return color
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
if let dynamic = object["dynamic"] as? [String: Any] {
|
|
329
|
-
return UIColor { traits in
|
|
330
|
-
let highContrast = traits.accessibilityContrast == .high
|
|
331
|
-
let dark = traits.userInterfaceStyle == .dark
|
|
332
|
-
let preferredKey: String
|
|
333
|
-
|
|
334
|
-
switch (dark, highContrast) {
|
|
335
|
-
case (true, true):
|
|
336
|
-
preferredKey = "highContrastDark"
|
|
337
|
-
case (false, true):
|
|
338
|
-
preferredKey = "highContrastLight"
|
|
339
|
-
case (true, false):
|
|
340
|
-
preferredKey = "dark"
|
|
341
|
-
case (false, false):
|
|
342
|
-
preferredKey = "light"
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
return uiColor(from: dynamic[preferredKey])
|
|
346
|
-
?? uiColor(from: dynamic[dark ? "dark" : "light"])
|
|
347
|
-
?? UIColor.clear
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
return nil
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
private static func semanticColor(named name: String) -> UIColor? {
|
|
355
|
-
if let color = UIColor(named: name) {
|
|
356
|
-
return color
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
let normalizedName = name.hasSuffix("Color")
|
|
360
|
-
? String(name.dropLast("Color".count))
|
|
361
|
-
: name
|
|
362
|
-
|
|
363
|
-
switch normalizedName {
|
|
364
|
-
case "label": return .label
|
|
365
|
-
case "secondaryLabel": return .secondaryLabel
|
|
366
|
-
case "tertiaryLabel": return .tertiaryLabel
|
|
367
|
-
case "quaternaryLabel": return .quaternaryLabel
|
|
368
|
-
case "placeholderText": return .placeholderText
|
|
369
|
-
case "separator": return .separator
|
|
370
|
-
case "opaqueSeparator": return .opaqueSeparator
|
|
371
|
-
case "link": return .link
|
|
372
|
-
case "systemBackground": return .systemBackground
|
|
373
|
-
case "secondarySystemBackground": return .secondarySystemBackground
|
|
374
|
-
case "tertiarySystemBackground": return .tertiarySystemBackground
|
|
375
|
-
case "systemGroupedBackground": return .systemGroupedBackground
|
|
376
|
-
case "secondarySystemGroupedBackground": return .secondarySystemGroupedBackground
|
|
377
|
-
case "tertiarySystemGroupedBackground": return .tertiarySystemGroupedBackground
|
|
378
|
-
case "systemFill": return .systemFill
|
|
379
|
-
case "secondarySystemFill": return .secondarySystemFill
|
|
380
|
-
case "tertiarySystemFill": return .tertiarySystemFill
|
|
381
|
-
case "quaternarySystemFill": return .quaternarySystemFill
|
|
382
|
-
case "systemRed": return .systemRed
|
|
383
|
-
case "systemOrange": return .systemOrange
|
|
384
|
-
case "systemYellow": return .systemYellow
|
|
385
|
-
case "systemGreen": return .systemGreen
|
|
386
|
-
case "systemMint": return .systemMint
|
|
387
|
-
case "systemTeal": return .systemTeal
|
|
388
|
-
case "systemCyan": return .systemCyan
|
|
389
|
-
case "systemBlue": return .systemBlue
|
|
390
|
-
case "systemIndigo": return .systemIndigo
|
|
391
|
-
case "systemPurple": return .systemPurple
|
|
392
|
-
case "systemPink": return .systemPink
|
|
393
|
-
case "systemBrown": return .systemBrown
|
|
394
|
-
case "systemGray": return .systemGray
|
|
395
|
-
case "systemGray2": return .systemGray2
|
|
396
|
-
case "systemGray3": return .systemGray3
|
|
397
|
-
case "systemGray4": return .systemGray4
|
|
398
|
-
case "systemGray5": return .systemGray5
|
|
399
|
-
case "systemGray6": return .systemGray6
|
|
400
|
-
default: return nil
|
|
401
|
-
}
|
|
319
|
+
value.flatMap(RCTConvert.uiColor)
|
|
402
320
|
}
|
|
403
321
|
}
|
|
404
322
|
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
codegenNativeComponent,
|
|
3
|
+
type CodegenTypes,
|
|
3
4
|
type ColorValue,
|
|
4
5
|
type ViewProps,
|
|
5
6
|
} from 'react-native';
|
|
6
|
-
import type {
|
|
7
|
-
DirectEventHandler,
|
|
8
|
-
Double,
|
|
9
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
10
7
|
|
|
11
8
|
export interface NativeLiquidGlassTextProps extends ViewProps {
|
|
12
|
-
configuration:
|
|
9
|
+
configuration: CodegenTypes.UnsafeMixed;
|
|
13
10
|
tintColor?: ColorValue;
|
|
14
|
-
onContentSizeChange?: DirectEventHandler<
|
|
15
|
-
Readonly<{
|
|
16
|
-
width: Double;
|
|
17
|
-
height: Double;
|
|
18
|
-
configuration: string;
|
|
19
|
-
}>
|
|
20
|
-
>;
|
|
21
11
|
}
|
|
22
12
|
|
|
23
13
|
export default codegenNativeComponent<NativeLiquidGlassTextProps>(
|
|
@@ -1,16 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
4
5
|
import { assertComponentEnabled } from "../utils/index.js";
|
|
5
6
|
import NativeLiquidGlassTextView from './LiquidGlassTextNativeComponent';
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
function normalizeFontWeight(fontWeight) {
|
|
9
|
+
if (fontWeight == null) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
const value = String(fontWeight);
|
|
13
|
+
const aliases = {
|
|
14
|
+
'normal': 'regular',
|
|
15
|
+
'ultralight': 'ultraLight',
|
|
16
|
+
'condensed': 'regular',
|
|
17
|
+
'condensedBold': 'bold',
|
|
18
|
+
'100': 'ultraLight',
|
|
19
|
+
'200': 'thin',
|
|
20
|
+
'300': 'light',
|
|
21
|
+
'400': 'regular',
|
|
22
|
+
'500': 'medium',
|
|
23
|
+
'600': 'semibold',
|
|
24
|
+
'700': 'bold',
|
|
25
|
+
'800': 'heavy',
|
|
26
|
+
'900': 'black'
|
|
27
|
+
};
|
|
28
|
+
return aliases[value] ?? value;
|
|
29
|
+
}
|
|
30
|
+
function resolveAlignment(textAlign) {
|
|
31
|
+
switch (textAlign) {
|
|
32
|
+
case 'center':
|
|
33
|
+
return 'center';
|
|
34
|
+
case 'right':
|
|
35
|
+
return 'trailing';
|
|
36
|
+
case 'left':
|
|
37
|
+
return 'leading';
|
|
38
|
+
default:
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
7
42
|
export const LiquidGlassText = /*#__PURE__*/forwardRef(function LiquidGlassTextRoot({
|
|
8
43
|
text,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
44
|
+
effect = 'clear',
|
|
45
|
+
tint,
|
|
46
|
+
interactive = false,
|
|
12
47
|
fontDesign,
|
|
13
|
-
|
|
48
|
+
textStyle,
|
|
49
|
+
multilineTextAlignment,
|
|
14
50
|
style,
|
|
15
51
|
accessibilityLabel,
|
|
16
52
|
accessible = true,
|
|
@@ -18,21 +54,25 @@ export const LiquidGlassText = /*#__PURE__*/forwardRef(function LiquidGlassTextR
|
|
|
18
54
|
...viewProps
|
|
19
55
|
}, ref) {
|
|
20
56
|
assertComponentEnabled('LiquidGlassText');
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
57
|
+
const flattenedTextStyle = StyleSheet.flatten(textStyle);
|
|
58
|
+
const normalizedTextStyle = flattenedTextStyle ? {
|
|
59
|
+
fontSize: flattenedTextStyle.fontSize,
|
|
60
|
+
fontFamily: flattenedTextStyle.fontFamily,
|
|
61
|
+
fontWeight: normalizeFontWeight(flattenedTextStyle.fontWeight),
|
|
62
|
+
fontStyle: flattenedTextStyle.fontStyle,
|
|
63
|
+
letterSpacing: flattenedTextStyle.letterSpacing
|
|
64
|
+
} : undefined;
|
|
65
|
+
const resolvedAlignment = multilineTextAlignment ?? resolveAlignment(flattenedTextStyle?.textAlign) ?? 'leading';
|
|
66
|
+
const configuration = {
|
|
26
67
|
text,
|
|
27
|
-
|
|
28
|
-
interactive
|
|
29
|
-
font: typeof font === 'string' ? {
|
|
30
|
-
style: font
|
|
31
|
-
} : font,
|
|
32
|
-
fontWeight,
|
|
68
|
+
effect,
|
|
69
|
+
interactive,
|
|
33
70
|
fontDesign,
|
|
34
|
-
|
|
35
|
-
|
|
71
|
+
...(normalizedTextStyle ? {
|
|
72
|
+
textStyle: normalizedTextStyle
|
|
73
|
+
} : {}),
|
|
74
|
+
multilineTextAlignment: resolvedAlignment
|
|
75
|
+
};
|
|
36
76
|
return /*#__PURE__*/_jsx(NativeLiquidGlassTextView, {
|
|
37
77
|
...viewProps,
|
|
38
78
|
ref: ref,
|
|
@@ -40,23 +80,8 @@ export const LiquidGlassText = /*#__PURE__*/forwardRef(function LiquidGlassTextR
|
|
|
40
80
|
accessibilityRole: accessibilityRole,
|
|
41
81
|
accessibilityLabel: accessibilityLabel ?? text,
|
|
42
82
|
configuration: configuration,
|
|
43
|
-
tintColor:
|
|
44
|
-
style:
|
|
45
|
-
width: measurement.width,
|
|
46
|
-
height: measurement.height
|
|
47
|
-
}, style],
|
|
48
|
-
onContentSizeChange: ({
|
|
49
|
-
nativeEvent
|
|
50
|
-
}) => {
|
|
51
|
-
// Ignore measurements queued before a newer text/font update.
|
|
52
|
-
if (nativeEvent.configuration !== configuration) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
setMeasurement(previous => previous.width === nativeEvent.width && previous.height === nativeEvent.height ? previous : {
|
|
56
|
-
width: nativeEvent.width,
|
|
57
|
-
height: nativeEvent.height
|
|
58
|
-
});
|
|
59
|
-
}
|
|
83
|
+
tintColor: tint ?? flattenedTextStyle?.color,
|
|
84
|
+
style: style
|
|
60
85
|
});
|
|
61
86
|
});
|
|
62
87
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","
|
|
1
|
+
{"version":3,"names":["forwardRef","StyleSheet","assertComponentEnabled","NativeLiquidGlassTextView","jsx","_jsx","normalizeFontWeight","fontWeight","undefined","value","String","aliases","resolveAlignment","textAlign","LiquidGlassText","LiquidGlassTextRoot","text","effect","tint","interactive","fontDesign","textStyle","multilineTextAlignment","style","accessibilityLabel","accessible","accessibilityRole","viewProps","ref","flattenedTextStyle","flatten","normalizedTextStyle","fontSize","fontFamily","fontStyle","letterSpacing","resolvedAlignment","configuration","tintColor","color"],"sourceRoot":"../../../src","sources":["LiquidGlassText/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAA2B,OAAO;AACrD,SAASC,UAAU,QAAmC,cAAc;AAEpE,SAASC,sBAAsB,QAAQ,mBAAU;AAEjD,OAAOC,yBAAyB,MAAM,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzE,SAASC,mBAAmBA,CAC1BC,UAAmC,EACf;EACpB,IAAIA,UAAU,IAAI,IAAI,EAAE;IACtB,OAAOC,SAAS;EAClB;EAEA,MAAMC,KAAK,GAAGC,MAAM,CAACH,UAAU,CAAC;EAChC,MAAMI,OAAyC,GAAG;IAChD,QAAQ,EAAE,SAAS;IACnB,YAAY,EAAE,YAAY;IAC1B,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,MAAM;IACvB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;IACd,KAAK,EAAE;EACT,CAAC;EACD,OAAOA,OAAO,CAACF,KAAK,CAAC,IAAIA,KAAK;AAChC;AAEA,SAASG,gBAAgBA,CACvBC,SAAiC,EACc;EAC/C,QAAQA,SAAS;IACf,KAAK,QAAQ;MACX,OAAO,QAAQ;IACjB,KAAK,OAAO;MACV,OAAO,UAAU;IACnB,KAAK,MAAM;MACT,OAAO,SAAS;IAClB;MACE,OAAOL,SAAS;EACpB;AACF;AAEA,OAAO,MAAMM,eAAe,gBAAGd,UAAU,CAGvC,SAASe,mBAAmBA,CAC5B;EACEC,IAAI;EACJC,MAAM,GAAG,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ignoreList":[]}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type CodegenTypes,
|
|
4
|
+
type ViewProps,
|
|
5
|
+
} from 'react-native';
|
|
2
6
|
import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
7
|
|
|
4
8
|
export interface NativeMenuProps extends ViewProps {
|
|
5
|
-
menuConfig:
|
|
9
|
+
menuConfig: CodegenTypes.UnsafeMixed;
|
|
6
10
|
title?: string;
|
|
7
11
|
disabled?: boolean;
|
|
8
12
|
hasPrimaryAction?: boolean;
|
|
@@ -9,9 +9,9 @@ export function serializeMenuOptions(options) {
|
|
|
9
9
|
const items = serializeOptions(options, callbacks, new Set(), 'root');
|
|
10
10
|
return {
|
|
11
11
|
callbacks,
|
|
12
|
-
config:
|
|
12
|
+
config: {
|
|
13
13
|
items
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
function serializeOptions(options, callbacks, usedIds, path) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["processColor","serializeColor","color","undefined","serializeMenuOptions","options","callbacks","Map","items","serializeOptions","Set","config","
|
|
1
|
+
{"version":3,"names":["processColor","serializeColor","color","undefined","serializeMenuOptions","options","callbacks","Map","items","serializeOptions","Set","config","usedIds","path","map","option","index","optionPath","type","title","subtitle","systemImage","icon","iconColor","titleColor","destructive","disabled","hidden","displayInline","children","id","has","Error","add","onSelect","set","state","keepOpen"],"sourceRoot":"../../../src","sources":["Menu/options.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAyB,cAAc;AA2D5D,SAASC,cAAcA,CAACC,KAA6B,EAAmB;EACtE,OAAOA,KAAK,KAAKC,SAAS,GAAGA,SAAS,GAAGH,YAAY,CAACE,KAAK,CAAC;AAC9D;AAEA,OAAO,SAASE,oBAAoBA,CAClCC,OAA8B,EACP;EACvB,MAAMC,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|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { type ColorValue, type ViewProps } from 'react-native';
|
|
2
|
-
import type { DirectEventHandler, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
1
|
+
import { type CodegenTypes, type ColorValue, type ViewProps } from 'react-native';
|
|
3
2
|
export interface NativeLiquidGlassTextProps extends ViewProps {
|
|
4
|
-
configuration:
|
|
3
|
+
configuration: CodegenTypes.UnsafeMixed;
|
|
5
4
|
tintColor?: ColorValue;
|
|
6
|
-
onContentSizeChange?: DirectEventHandler<Readonly<{
|
|
7
|
-
width: Double;
|
|
8
|
-
height: Double;
|
|
9
|
-
configuration: string;
|
|
10
|
-
}>>;
|
|
11
5
|
}
|
|
12
6
|
declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeLiquidGlassTextProps>;
|
|
13
7
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidGlassTextNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/LiquidGlassTextNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"LiquidGlassTextNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/LiquidGlassTextNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,0BAA2B,SAAQ,SAAS;IAC3D,aAAa,EAAE,YAAY,CAAC,WAAW,CAAC;IACxC,SAAS,CAAC,EAAE,UAAU,CAAC;CACxB;;AAED,wBAGE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { LiquidGlassTextProps } from './types.js';
|
|
2
2
|
export declare const LiquidGlassText: import("react").ForwardRefExoticComponent<LiquidGlassTextProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
|
|
3
|
-
export type {
|
|
3
|
+
export type { LiquidGlassTextFontDesign, LiquidGlassTextEffect, LiquidGlassTextProps, LiquidGlassTextStyle, } from './types.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAS,CAAC;AA4CpD,eAAO,MAAM,eAAe,kMAyD1B,CAAC;AAEH,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,YAAS,CAAC"}
|
|
@@ -1,30 +1,21 @@
|
|
|
1
|
-
import type { ColorValue, ViewProps } from 'react-native';
|
|
1
|
+
import type { ColorValue, StyleProp, TextStyle, ViewProps } from 'react-native';
|
|
2
2
|
export type LiquidGlassTextFontDesign = 'default' | 'serif' | 'monospaced' | 'rounded';
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
export type
|
|
6
|
-
size: number;
|
|
7
|
-
weight?: LiquidGlassTextFontWeight;
|
|
8
|
-
design?: LiquidGlassTextFontDesign;
|
|
9
|
-
/** PostScript name of a font installed in the containing app. */
|
|
10
|
-
family?: string;
|
|
11
|
-
}>;
|
|
12
|
-
export type LiquidGlassTextGlass = 'clear' | 'regular' | 'identity' | Readonly<{
|
|
13
|
-
effect?: 'clear' | 'regular' | 'identity';
|
|
14
|
-
tint?: ColorValue;
|
|
15
|
-
interactive?: boolean;
|
|
16
|
-
}>;
|
|
3
|
+
export type LiquidGlassTextEffect = 'clear' | 'regular' | 'identity';
|
|
4
|
+
/** React Native text styles supported by the native glass renderer. */
|
|
5
|
+
export type LiquidGlassTextStyle = Readonly<Pick<TextStyle, 'color' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'textAlign'>>;
|
|
17
6
|
export interface LiquidGlassTextProps extends Omit<ViewProps, 'children'> {
|
|
18
7
|
/** Text to display. Pass translated strings from JavaScript if needed. */
|
|
19
8
|
text: string;
|
|
20
|
-
/** Defaults to clear. Native glass requires iOS 26+. */
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
/** Overrides the
|
|
9
|
+
/** Glass effect. Defaults to clear. Native glass requires iOS 26+. */
|
|
10
|
+
effect?: LiquidGlassTextEffect;
|
|
11
|
+
/** Glass tint and fallback text color. */
|
|
12
|
+
tint?: ColorValue;
|
|
13
|
+
/** Whether the glass responds to pointer and touch interaction. */
|
|
14
|
+
interactive?: boolean;
|
|
15
|
+
/** Overrides the system font design. */
|
|
27
16
|
fontDesign?: LiquidGlassTextFontDesign;
|
|
17
|
+
/** Familiar React Native text styles. Explicit alignment takes precedence. */
|
|
18
|
+
textStyle?: StyleProp<LiquidGlassTextStyle>;
|
|
28
19
|
/** Aligns explicit newline-separated lines. Defaults to leading. */
|
|
29
20
|
multilineTextAlignment?: 'leading' | 'center' | 'trailing';
|
|
30
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF,MAAM,MAAM,yBAAyB,GACnC,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAErE,uEAAuE;AACvE,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CACzC,IAAI,CACF,SAAS,EACP,OAAO,GACP,YAAY,GACZ,UAAU,GACV,WAAW,GACX,YAAY,GACZ,eAAe,GACf,WAAW,CACd,CACF,CAAC;AAEF,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACvE,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,0CAA0C;IAC1C,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,mEAAmE;IACnE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,8EAA8E;IAC9E,SAAS,CAAC,EAAE,SAAS,CAAC,oBAAoB,CAAC,CAAC;IAC5C,oEAAoE;IACpE,sBAAsB,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;CAC5D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ViewProps } from 'react-native';
|
|
1
|
+
import { type CodegenTypes, type ViewProps } from 'react-native';
|
|
2
2
|
import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
export interface NativeMenuProps extends ViewProps {
|
|
4
|
-
menuConfig:
|
|
4
|
+
menuConfig: CodegenTypes.UnsafeMixed;
|
|
5
5
|
title?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
hasPrimaryAction?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/Menu/MenuNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MenuNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/Menu/MenuNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,UAAU,EAAE,YAAY,CAAC,WAAW,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IAC3D,eAAe,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;CAC5C;;AAED,wBAEG"}
|
|
@@ -1,7 +1,47 @@
|
|
|
1
|
+
import { processColor } from 'react-native';
|
|
1
2
|
import type { MenuOption } from './types.js';
|
|
3
|
+
type NativeMenuColor = ReturnType<typeof processColor>;
|
|
4
|
+
interface NativeMenuLabel {
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
systemImage?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
iconColor?: NativeMenuColor;
|
|
10
|
+
titleColor?: NativeMenuColor;
|
|
11
|
+
}
|
|
12
|
+
interface NativeMenuAction extends NativeMenuLabel {
|
|
13
|
+
type: 'action';
|
|
14
|
+
id: string;
|
|
15
|
+
state: 'off' | 'on' | 'mixed';
|
|
16
|
+
destructive: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
hidden: boolean;
|
|
19
|
+
keepOpen: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface NativeMenuSubmenu extends NativeMenuLabel {
|
|
22
|
+
type: 'submenu';
|
|
23
|
+
destructive: boolean;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
hidden: boolean;
|
|
26
|
+
displayInline: boolean;
|
|
27
|
+
children: NativeMenuElement[];
|
|
28
|
+
}
|
|
29
|
+
interface NativeMenuSection {
|
|
30
|
+
type: 'section';
|
|
31
|
+
title?: string;
|
|
32
|
+
children: NativeMenuElement[];
|
|
33
|
+
}
|
|
34
|
+
interface NativeMenuSeparator {
|
|
35
|
+
type: 'separator';
|
|
36
|
+
}
|
|
37
|
+
type NativeMenuElement = NativeMenuAction | NativeMenuSubmenu | NativeMenuSection | NativeMenuSeparator;
|
|
38
|
+
interface NativeMenuConfiguration {
|
|
39
|
+
items: NativeMenuElement[];
|
|
40
|
+
}
|
|
2
41
|
export interface SerializedMenuOptions {
|
|
3
|
-
config:
|
|
42
|
+
config: NativeMenuConfiguration;
|
|
4
43
|
callbacks: Map<string, () => void>;
|
|
5
44
|
}
|
|
6
45
|
export declare function serializeMenuOptions(options: readonly MenuOption[]): SerializedMenuOptions;
|
|
46
|
+
export {};
|
|
7
47
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/Menu/options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/Menu/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAmB,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAS,CAAC;AAE1C,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM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|
export { getNativeTinyui, assertComponentEnabled } from './utils/index.js';
|
|
6
6
|
export type { TinyuiComponent } from './utils/index.js';
|
|
7
7
|
export { LiquidGlassText } from './LiquidGlassText/index.js';
|
|
8
|
-
export type {
|
|
8
|
+
export type { LiquidGlassTextFontDesign, LiquidGlassTextEffect, LiquidGlassTextProps, LiquidGlassTextStyle, } from './LiquidGlassText/index.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAQ,CAAC;AAC9B,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,iBAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAW,CAAC;AAClD,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,YAAY,GACb,MAAM,oBAAW,CAAC;AAEnB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,kBAAS,CAAC;AAClE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAS,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAAmB,CAAC;AACpD,YAAY,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAQ,CAAC;AAC9B,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,iBAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAW,CAAC;AAClD,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,YAAY,GACb,MAAM,oBAAW,CAAC;AAEnB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,kBAAS,CAAC;AAClE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAS,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAAmB,CAAC;AACpD,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,4BAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tinyui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Dependency-free native iOS Menu, Popover and LiquidGlassText components for React Native",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|