feat: install and scaffold Tablar theme #6

Merged
rlong merged 139 commits from feature/tablar-theme into master 2026-05-02 16:01:21 -04:00
5 changed files with 5 additions and 28 deletions
Showing only changes of commit 1dbf0c51bb - Show all commits
+1
View File
@@ -50,5 +50,6 @@
</div>
</div>
@endsection
@include('components.tomselect')
@push('js')
@endpush
+1 -28
View File
@@ -1,34 +1,6 @@
@extends('tablar::page')
@section('content')
<script src="https://cdn.jsdelivr.net/npm/tom-select@2.4.3/dist/js/tom-select.complete.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/tom-select@2.4.3/dist/css/tom-select.bootstrap5.min.css" rel="stylesheet">
<style>
.ts-wrapper .ts-control, .ts-wrapper .ts-control input { background-color: #ffffff !important; border: 1px solid #ced4da !important; }
.ts-dropdown { background-color: #ffffff !important; }
</style>
<script>
document.addEventListener("DOMContentLoaded", () => {
document.querySelectorAll('select').forEach((el) => {
if (el.tomselect) return;
new TomSelect(el, {
copyClassesToDropdown: false,
dropdownParent: 'body',
controlInput: '<input>',
sortField: {
field: 'text',
direction: 'asc',
func: function(a, b) {
const numA = parseInt(a.text, 10);
const numB = parseInt(b.text, 10);
return numA - numB;
}
}
});
});
});
</script>
<div class="page-header d-print-none">
<div class="container-xl">
<div class="row g-2 align-items-center">
@@ -65,3 +37,4 @@
</div>
</div>
@endsection
@include('components.tomselect')
+1
View File
@@ -61,5 +61,6 @@
</div>
</div>
@endsection
@include('components.tomselect')
@push('js')
@endpush
+1
View File
@@ -42,5 +42,6 @@
</div>
</div>
@endsection
@include('components.tomselect')
@push('js')
@endpush
+1
View File
@@ -54,5 +54,6 @@
</div>
</div>
@endsection
@include('components.tomselect')
@push('js')
@endpush