Skip to content

Commit f8ffb2d

Browse files
committed
chore: Bump package version to 1.0.220 and update FormActions component
- Update package version in package.json to 1.0.220 - Add className prop to FormActions component for customizable styling - Refactor FormActions component to use className for the outer div - Update snapshot tests for FormActions component to reflect changes
1 parent eba3b84 commit f8ffb2d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@programmer_network/yail",
3-
"version": "1.0.219",
3+
"version": "1.0.220",
44
"description": "Programmer Network's official UI library for React",
55
"author": "Aleksandar Grbic - (https://programmer.network)",
66
"publishConfig": {

src/Components/FormActions/__snapshots__/FormActions.test.tsx.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
exports[`FormActions component > renders correctly - snapshot test 1`] = `
44
<DocumentFragment>
55
<div>
6-
<div
7-
class="yl:mt-14"
8-
>
6+
<div>
97
<div
108
class="yl:p-8 yl:!border-error/50 yl:!border-2 yl:max-w-[350px]"
119
data-testid="mock-dialog"

src/Components/FormActions/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const FormActions = ({
1212
onSave,
1313
onCancel,
1414
onDelete,
15-
dialogDeleteText = "Do you want to put an end to these bits and bytes?"
15+
dialogDeleteText = "Do you want to put an end to these bits and bytes?",
16+
className
1617
}: IFormActionsProps) => {
1718
const dialogRef = createRef<HTMLDialogElement>();
1819

@@ -44,8 +45,8 @@ const FormActions = ({
4445
};
4546

4647
return (
47-
<div>
48-
<div className='yl:mt-14'>
48+
<div className={className}>
49+
<div>
4950
{onDelete && (
5051
<Dialog
5152
ref={dialogRef}

src/Components/FormActions/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export interface IFormActionsProps {
33
onCancel: () => void;
44
onDelete?: () => void;
55
dialogDeleteText?: string;
6+
className?: string;
67
}

0 commit comments

Comments
 (0)