@limetry/ui 1.2.49 → 1.2.58
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 +3 -0
- package/package.json +4 -4
- package/src/components/drawer-menu.tsx +3 -3
package/README.md
CHANGED
|
@@ -8,6 +8,9 @@ Shared React Native and web UI for Limetry: buttons, form controls, page chrome,
|
|
|
8
8
|
npm install @limetry/ui react react-native react-native-svg
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
Use the package manager you prefer; the equivalent Yarn or pnpm command works
|
|
12
|
+
the same way.
|
|
13
|
+
|
|
11
14
|
Peers are `react` 18 or newer, `react-native` 0.73 or newer, and `react-native-svg` 15 or newer. Styles use NativeWind.
|
|
12
15
|
|
|
13
16
|
## Use a component
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetry/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.58",
|
|
4
4
|
"description": "Shared design system for Limetry — components, icons, and design tokens.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean --out-dir dist",
|
|
34
|
-
"typecheck": "tsgo -p tsconfig.json --noEmit",
|
|
34
|
+
"typecheck": "yarn run -T tsgo -p tsconfig.json --noEmit",
|
|
35
35
|
"test": "vitest run",
|
|
36
36
|
"prepack": "node ../../scripts/rewrite-workspace-protocol.mjs prepare",
|
|
37
|
-
"postpack": "node ../../scripts/rewrite-workspace-protocol.mjs restore",
|
|
38
|
-
"
|
|
37
|
+
"postpack": "node ../../scripts/rewrite-workspace-protocol.mjs restore-after-pack",
|
|
38
|
+
"postpublish": "node ../../scripts/rewrite-workspace-protocol.mjs restore"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public",
|
|
@@ -94,7 +94,7 @@ function DrawerNavItem({
|
|
|
94
94
|
<LinkComponent href={item.href} onPress={onNavigate}>
|
|
95
95
|
<View
|
|
96
96
|
className={cn(
|
|
97
|
-
"relative mb-1 flex-1 flex-row items-center justify-start gap-3 rounded-xl px-3 py-2.5",
|
|
97
|
+
"relative mb-1 min-h-11 flex-1 flex-row items-center justify-start gap-3 rounded-xl px-3 py-2.5",
|
|
98
98
|
highlighted
|
|
99
99
|
? "bg-emerald-500/15"
|
|
100
100
|
: ancestorActive
|
|
@@ -129,7 +129,7 @@ function DrawerNavItem({
|
|
|
129
129
|
onPress={() => {
|
|
130
130
|
setExpanded((value) => !value)
|
|
131
131
|
}}
|
|
132
|
-
className="items-center justify-center rounded-xl px-2.5 active:bg-slate-100 dark:active:bg-slate-800"
|
|
132
|
+
className="min-h-11 min-w-11 items-center justify-center rounded-xl px-2.5 active:bg-slate-100 dark:active:bg-slate-800"
|
|
133
133
|
>
|
|
134
134
|
<Text className={cn("text-slate-500", (ancestorActive || highlighted) && "text-emerald-500")}>
|
|
135
135
|
{open ? "▾" : "▸"}
|
|
@@ -160,7 +160,7 @@ function DrawerNavItem({
|
|
|
160
160
|
<LinkComponent href={item.href} onPress={onNavigate}>
|
|
161
161
|
<View
|
|
162
162
|
className={cn(
|
|
163
|
-
"relative mb-1 flex-row items-center justify-start gap-3 rounded-xl px-3 py-2.5",
|
|
163
|
+
"relative mb-1 min-h-11 flex-row items-center justify-start gap-3 rounded-xl px-3 py-2.5",
|
|
164
164
|
highlighted ? "bg-emerald-500/15" : "active:bg-slate-100 dark:active:bg-slate-800",
|
|
165
165
|
)}
|
|
166
166
|
>
|