@pelatform/starter.shared 0.2.8 → 0.2.10
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/dist/index.d.ts +3 -1
- package/dist/index.js +18 -7
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -219,7 +219,9 @@ declare function CardHeaderComponent({ className, classNames, title, description
|
|
|
219
219
|
declare function CardFooterComponent({ className, classNames, instructions, actionLabel, action, disabled, isDestructive, isPending, isSubmitting, }: CardComponentProps): react_jsx_runtime.JSX.Element;
|
|
220
220
|
declare function CardActionComponent({ classNames, actionLabel, onClick, disabled, isDestructive, isSubmitting, ...props }: CardComponentProps & ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
221
221
|
|
|
222
|
-
declare function DialogComponent({ children, classNames, onOpenChange, title, description, disableFooter, cancelButton, cancelButtonDisabled, button, ...props }: DialogComponentProps
|
|
222
|
+
declare function DialogComponent({ children, classNames, onOpenChange, title, description, disableFooter, cancelButton, cancelButtonDisabled, button, showCloseButton, ...props }: DialogComponentProps & {
|
|
223
|
+
showCloseButton?: boolean;
|
|
224
|
+
}): react_jsx_runtime.JSX.Element;
|
|
223
225
|
declare function DialogFooterComponent({ className, classNames, onOpenChange, cancelButton, cancelButtonDisabled, button, }: DialogComponentProps): react_jsx_runtime.JSX.Element;
|
|
224
226
|
|
|
225
227
|
declare function SkeletonViewComponent({ classNames }: {
|
package/dist/index.js
CHANGED
|
@@ -1345,18 +1345,29 @@ function DialogComponent({
|
|
|
1345
1345
|
cancelButton,
|
|
1346
1346
|
cancelButtonDisabled,
|
|
1347
1347
|
button,
|
|
1348
|
+
showCloseButton = false,
|
|
1348
1349
|
...props
|
|
1349
1350
|
}) {
|
|
1350
1351
|
return /* @__PURE__ */ jsx19(Dialog, { onOpenChange, ...props, children: /* @__PURE__ */ jsxs15(
|
|
1351
1352
|
DialogContent,
|
|
1352
1353
|
{
|
|
1353
1354
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
1354
|
-
className: classNames?.dialog?.content,
|
|
1355
|
+
className: cn8("bg-muted sm:max-w-md", classNames?.dialog?.content),
|
|
1356
|
+
showCloseButton,
|
|
1355
1357
|
children: [
|
|
1356
|
-
/* @__PURE__ */ jsxs15(
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1358
|
+
/* @__PURE__ */ jsxs15(
|
|
1359
|
+
DialogHeader,
|
|
1360
|
+
{
|
|
1361
|
+
className: cn8(
|
|
1362
|
+
"-ms-6 -me-6 -mt-6 space-y-2 rounded-t-lg bg-background p-6",
|
|
1363
|
+
classNames?.header
|
|
1364
|
+
),
|
|
1365
|
+
children: [
|
|
1366
|
+
/* @__PURE__ */ jsx19(DialogTitle, { className: classNames?.title, children: title }),
|
|
1367
|
+
description && /* @__PURE__ */ jsx19(DialogDescription, { className: classNames?.description, children: description })
|
|
1368
|
+
]
|
|
1369
|
+
}
|
|
1370
|
+
),
|
|
1360
1371
|
children,
|
|
1361
1372
|
!disableFooter && /* @__PURE__ */ jsx19(
|
|
1362
1373
|
DialogFooterComponent,
|
|
@@ -1386,8 +1397,8 @@ function DialogFooterComponent({
|
|
|
1386
1397
|
Button6,
|
|
1387
1398
|
{
|
|
1388
1399
|
type: "button",
|
|
1389
|
-
variant: "
|
|
1390
|
-
className: cn8(classNames?.button
|
|
1400
|
+
variant: "ghost",
|
|
1401
|
+
className: cn8(classNames?.button),
|
|
1391
1402
|
onClick: () => onOpenChange?.(false),
|
|
1392
1403
|
disabled: cancelButtonDisabled,
|
|
1393
1404
|
children: t("common.actions.cancel")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pelatform/starter.shared",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "A part of SaaS starter kit for Pelatform applications.",
|
|
5
5
|
"author": "Pelatform",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"utilities"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tanstack/react-query-devtools": "^5.91.
|
|
35
|
+
"@tanstack/react-query-devtools": "^5.91.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@pelatform/starter.config": "0.2.
|
|
39
|
-
"@pelatform/starter.hook": "0.2.
|
|
40
|
-
"@pelatform/starter.utils": "0.2.
|
|
41
|
-
"@pelatform/tsconfig": "^0.1.
|
|
38
|
+
"@pelatform/starter.config": "0.2.2",
|
|
39
|
+
"@pelatform/starter.hook": "0.2.3",
|
|
40
|
+
"@pelatform/starter.utils": "0.2.5",
|
|
41
|
+
"@pelatform/tsconfig": "^0.1.4",
|
|
42
42
|
"@types/react": "^19.2.7",
|
|
43
43
|
"lucide-react": "^0.562.0",
|
|
44
|
-
"next": "^16.1.
|
|
44
|
+
"next": "^16.1.1",
|
|
45
45
|
"next-intl": "^4.6.1",
|
|
46
|
-
"pelatform-ui": "^1.1.
|
|
46
|
+
"pelatform-ui": "^1.1.10",
|
|
47
47
|
"react": "^19.2.3",
|
|
48
48
|
"tsup": "^8.5.1"
|
|
49
49
|
},
|