zkit-ui 2.0.15 → 2.0.16
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionDialog.d.ts","sourceRoot":"","sources":["../../../src/services/ActionDialogService/ActionDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyC/B,OAAO,KAAK,EAIV,iBAAiB,EACjB,eAAe,EAGhB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionDialog.d.ts","sourceRoot":"","sources":["../../../src/services/ActionDialogService/ActionDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyC/B,OAAO,KAAK,EAIV,iBAAiB,EACjB,eAAe,EAGhB,MAAM,SAAS,CAAC;AA4oBjB,eAAO,MAAM,YAAY,sFAA+B,CAAC"}
|
|
@@ -392,11 +392,11 @@ const ActionDialogRoot = React.forwardRef(function ActionDialog({ accessibilityL
|
|
|
392
392
|
return ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: [
|
|
393
393
|
styles.barActionCell,
|
|
394
394
|
index > 0 ? [styles.barActionDivider, { borderLeftColor: resolvedColors.border }] : null,
|
|
395
|
-
], children: (0, jsx_runtime_1.jsx)(index_1.Button, { accessibilityLabel: action.accessibilityLabel, block: true, disabled: actionDisabled, loading: actionLoading, onPress: () => void pressAction(action.key),
|
|
395
|
+
], children: (0, jsx_runtime_1.jsx)(index_1.Button, { accessibilityLabel: action.accessibilityLabel, block: true, disabled: actionDisabled, loading: actionLoading, onPress: () => void pressAction(action.key), shape: "square", size: "md", layout: BAR_ACTION_BUTTON_LAYOUT, testID: action.testID, tone: action.tone === 'danger' ? 'danger' : action.tone, variant: "ghost", children: action.label }) }, action.key));
|
|
396
396
|
}
|
|
397
397
|
return ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: resolvedFooterLayout === 'row' ? styles.rowActionCell : null, children: (0, jsx_runtime_1.jsx)(index_1.Button, { accessibilityLabel: action.accessibilityLabel, block: true, disabled: actionDisabled, layout: resolvedFooterLayout === 'row' && resolvedActions.length > 2
|
|
398
398
|
? COMPACT_ROW_ACTION_BUTTON_LAYOUT
|
|
399
|
-
: undefined, loading: actionLoading, onPress: () => void pressAction(action.key),
|
|
399
|
+
: undefined, loading: actionLoading, onPress: () => void pressAction(action.key), shape: "rounded", size: "md", testID: action.testID, tone: action.tone === 'danger' ? 'danger' : action.tone, variant: action.variant, children: action.label }) }, action.key));
|
|
400
400
|
}, [
|
|
401
401
|
disabled,
|
|
402
402
|
pressAction,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zkit-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -197,14 +197,6 @@
|
|
|
197
197
|
"publishConfig": {
|
|
198
198
|
"registry": "https://registry.npmjs.org/"
|
|
199
199
|
},
|
|
200
|
-
"scripts": {
|
|
201
|
-
"build": "node scripts/build.cjs",
|
|
202
|
-
"verify:entrypoints": "node scripts/verify-entrypoints.cjs",
|
|
203
|
-
"verify": "pnpm run build && pnpm run verify:entrypoints",
|
|
204
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
205
|
-
"prepack": "pnpm run build",
|
|
206
|
-
"prepublishOnly": "pnpm run build"
|
|
207
|
-
},
|
|
208
200
|
"dependencies": {
|
|
209
201
|
"@vant/area-data": "^2.1.0",
|
|
210
202
|
"dayjs": "^1.11.13",
|
|
@@ -231,7 +223,6 @@
|
|
|
231
223
|
},
|
|
232
224
|
"devDependencies": {
|
|
233
225
|
"@expo/vector-icons": "^15.1.1",
|
|
234
|
-
"@lodev09/react-native-true-sheet": "workspace:*",
|
|
235
226
|
"@shopify/flash-list": "^2.3.1",
|
|
236
227
|
"@types/react": "~19.1.17",
|
|
237
228
|
"dayjs": "^1.11.13",
|
|
@@ -248,6 +239,13 @@
|
|
|
248
239
|
"react-native-svg": "^15.12.1",
|
|
249
240
|
"react-native-worklets": "0.5.1",
|
|
250
241
|
"sonner-native": "^0.22.2",
|
|
251
|
-
"typescript": "~5.9.3"
|
|
242
|
+
"typescript": "~5.9.3",
|
|
243
|
+
"@lodev09/react-native-true-sheet": "3.10.0"
|
|
244
|
+
},
|
|
245
|
+
"scripts": {
|
|
246
|
+
"build": "node scripts/build.cjs",
|
|
247
|
+
"verify:entrypoints": "node scripts/verify-entrypoints.cjs",
|
|
248
|
+
"verify": "pnpm run build && pnpm run verify:entrypoints",
|
|
249
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
252
250
|
}
|
|
253
|
-
}
|
|
251
|
+
}
|
|
@@ -483,7 +483,6 @@ const ActionDialogRoot = React.forwardRef<ActionDialogRef, ActionDialogProps>(fu
|
|
|
483
483
|
disabled={actionDisabled}
|
|
484
484
|
loading={actionLoading}
|
|
485
485
|
onPress={() => void pressAction(action.key)}
|
|
486
|
-
pressEffect="highlight"
|
|
487
486
|
shape="square"
|
|
488
487
|
size="md"
|
|
489
488
|
layout={BAR_ACTION_BUTTON_LAYOUT}
|
|
@@ -510,7 +509,6 @@ const ActionDialogRoot = React.forwardRef<ActionDialogRef, ActionDialogProps>(fu
|
|
|
510
509
|
}
|
|
511
510
|
loading={actionLoading}
|
|
512
511
|
onPress={() => void pressAction(action.key)}
|
|
513
|
-
pressEffect="highlight"
|
|
514
512
|
shape="rounded"
|
|
515
513
|
size="md"
|
|
516
514
|
testID={action.testID}
|