Skip to content

Commit

Permalink
Extracted <x-confirm-modal /> component from elements attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
forxer committed Dec 4, 2024
1 parent b2cb0b7 commit ed93c56
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CHANGELOG
=========

0.24.3 (2024-12-04)
-------------------

- Extracted `<x-confirm-modal />` component from elements attributes


0.24.2 (2024-12-04)
-------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
@if ($confirm !== null)
data-buk-confirm="{!! $confirm !!}"
data-buk-confirm-modal="confirm-modal-{!! $confirmId !!}"
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
>
@include('blade-ui-kit-bootstrap::bootstrap-4.components.buttons.partials.content')
</button>

@if ($confirm !== null)
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
@push('blade-ui-kit-bs-scripts')
@once
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
@if ($confirm !== null)
data-buk-confirm="{!! $confirm !!}"
data-buk-confirm-modal="confirm-modal-{!! $confirmId !!}"
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
@disabled($disabled)
>
@include('blade-ui-kit-bootstrap::bootstrap-4.components.buttons.partials.content')
</button>

@if ($confirm !== null)
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
@push('blade-ui-kit-bs-html')
<form id="{{ $formId }}" method="{!! $formMethodValue() !!}" action="{{ $url }}" @if ($novalidate === true) novalidate="true" @endif>
@csrf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
@if ($confirm !== null)
data-buk-confirm="{!! $confirm !!}"
data-buk-confirm-modal="confirm-modal-{!! $confirmId !!}"
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
>
@include('blade-ui-kit-bootstrap::bootstrap-4.components.buttons.partials.content')
</a>
</a>
@if ($confirm !== null)
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
@if ($confirm !== null)
data-buk-confirm="{!! $confirm !!}"
data-buk-confirm-modal="confirm-modal-{!! $confirmId !!}"
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
@disabled($disabled)
>
@include('blade-ui-kit-bootstrap::bootstrap-4.components.buttons.partials.content')
</button>
</button>
@if ($confirm !== null)
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
@if ($confirm !== null)
data-buk-confirm="{!! $confirm !!}"
data-buk-confirm-modal="confirm-modal-{!! $confirmId !!}"
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
>
@include('blade-ui-kit-bootstrap::bootstrap-5.components.buttons.partials.content')
</button>

@if ($confirm !== null)
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
@push('blade-ui-kit-bs-scripts')
@once
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
@if ($confirm !== null)
data-buk-confirm="{!! $confirm !!}"
data-buk-confirm-modal="confirm-modal-{!! $confirmId !!}"
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
@disabled($disabled)
>
@include('blade-ui-kit-bootstrap::bootstrap-5.components.buttons.partials.content')
</button>

@if ($confirm !== null)
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
@push('blade-ui-kit-bs-html')
<form id="{{ $formId }}" method="{!! $formMethodValue() !!}" action="{{ $url }}" @if ($novalidate === true) novalidate="true" @endif>
@csrf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
@if ($confirm !== null)
data-buk-confirm="{!! $confirm !!}"
data-buk-confirm-modal="confirm-modal-{!! $confirmId !!}"
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
>
@include('blade-ui-kit-bootstrap::bootstrap-5.components.buttons.partials.content')
</a>
</a>
@if ($confirm !== null)
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
@if ($confirm !== null)
data-buk-confirm="{!! $confirm !!}"
data-buk-confirm-modal="confirm-modal-{!! $confirmId !!}"
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif
@disabled($disabled)
>
@include('blade-ui-kit-bootstrap::bootstrap-5.components.buttons.partials.content')
</button>
</button>
@if ($confirm !== null)
<x-confirm-modal :id="'confirm-modal-'.$confirmId" :title="$confirmTitle" :confirmVariant="$confirmVariant" />
@endif

0 comments on commit ed93c56

Please sign in to comment.