Skip to content

Commit

Permalink
feat(tables): adding new api tables
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopalopes24 committed May 23, 2024
1 parent ca4b01a commit 56bf6f5
Show file tree
Hide file tree
Showing 16 changed files with 1,080 additions and 36 deletions.
1,000 changes: 976 additions & 24 deletions src/Support/ComponentAPI.php

Large diffs are not rendered by default.

32 changes: 22 additions & 10 deletions src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@

'card' => ComponentAPI::card(),

'dropdown' => ComponentAPI::dropdown(),

'icon' => ComponentAPI::icon(),

'link' => ComponentAPI::link(),

'modal' => ComponentAPI::modal(),

'checkbox' => ComponentAPI::checkbox(),

'color-picker' => ComponentAPI::colorPicker(),
Expand All @@ -129,24 +121,44 @@

'datetime-picker' => ComponentAPI::datetimePicker(),

// 'dialog' => ComponentAPI::dialog(),

'dropdown' => ComponentAPI::dropdown(),

'dropdown-item' => ComponentAPI::dropdownItem(),

'dropdown-header' => ComponentAPI::dropdownHeader(),

'errors' => ComponentAPI::errors(),

'icon' => ComponentAPI::icon(),

'input' => ComponentAPI::input(),

'link' => ComponentAPI::link(),

'maskable' => ComponentAPI::maskable(),

'modal' => ComponentAPI::modal(),

'modal-card' => ComponentAPI::modalCard(),

'native-select' => ComponentAPI::nativeSelect(),

'number' => ComponentAPI::number(),
// 'notifications' => ComponentAPI::notifications(),

'password' => ComponentAPI::password(),
'number' => ComponentAPI::number(),

'phone' => ComponentAPI::phone(),

'radio' => ComponentAPI::radio(),

'select' => ComponentAPI::select(),

'select-option' => ComponentAPI::selectOption(),

'select-user-option' => ComponentAPI::selectUserOption(),

'textarea' => ComponentAPI::textarea(),

'time-picker' => ComponentAPI::timePicker(),
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/sections/components/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
<x-docs::subtitle id="button-api" title="Button API" />

<x-alert title="Attention!" class="my-4" warning>
The props [full, right-icon] and slot [prepend, append] are not supported in <b>mini-button</b> component.
The props [full, right-icon] and slots [prepend, append] are not supported in <b>mini-button</b> component.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('button')])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,11 @@

<x-docs::subtitle id="color-picker-api" title="Color Picker API" />

<x-alert title="Attention!" class="my-4" warning>
The Color Picker component receives all options from
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>,
except the props [icon, prefix] and slots [prepend and append].
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('color-picker')])
</div>
5 changes: 5 additions & 0 deletions src/resources/views/sections/components/currency.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,10 @@

<x-docs::subtitle id="currency-api" title="Currency API" />

<x-alert title="Attention!" class="my-4" warning>
The Currency component receives all options from
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('currency')])
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,10 @@

<x-docs::subtitle id="datetime-picker-api" title="Datetime Picker API" />

<x-alert title="Attention!" class="my-4" warning>
The Datetime Picker component receives all options from
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('datetime-picker')])
</div>
12 changes: 12 additions & 0 deletions src/resources/views/sections/components/dropdown.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<x-docs::summary.header href="#item-slot" label="Item Slot" />

<x-docs::summary.header href="#dropdown-api" label="Dropdown API" />

<x-docs::summary.header href="#dropdown-item-api" label="Dropdown Item API" />

<x-docs::summary.header href="#dropdown-header-api" label="Dropdown Header API" />
</x-docs::summary>
</x-slot>

Expand Down Expand Up @@ -520,4 +524,12 @@ interfaces.
<x-docs::subtitle id="dropdown-api" title="Dropdown API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('dropdown')])

<x-docs::subtitle id="dropdown-item-api" title="Dropdown Item API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('dropdown-item')])

<x-docs::subtitle id="dropdown-header-api" title="Dropdown Header API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('dropdown-header')])
</div>
5 changes: 5 additions & 0 deletions src/resources/views/sections/components/errors.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,10 @@ functionality. In summary, the errors component is a flexible tool for managing

<x-docs::subtitle id="errors-api" title="Errors API" />

<x-alert title="Attention!" class="my-4" warning>
The Errors component receives all options from
<x-link href="/components/alert#alert-api" warning sm>Alert Component</x-link>.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('errors')])
</div>
5 changes: 5 additions & 0 deletions src/resources/views/sections/components/maskable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,10 @@ protected function getInputMask(): array

<x-docs::subtitle id="maskable-api" title="Maskable API" />

<x-alert title="Attention!" class="my-4" warning>
The Maskable component receives all options from
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('maskable')])
</div>
6 changes: 6 additions & 0 deletions src/resources/views/sections/components/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
<x-docs::summary.header href="#modal-events" label="Modal Events" />

<x-docs::summary.header href="#modal-api" label="Modal API" />

<x-docs::summary.header href="#modal-card-api" label="Modal Card API" />
</x-docs::summary>
</x-slot>

Expand Down Expand Up @@ -272,4 +274,8 @@ class="flex items-center justify-center col-span-1 bg-gray-100 shadow-md cursor-
<x-docs::subtitle id="modal-api" title="Modal API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('modal')])

<x-docs::subtitle id="modal-card-api" title="Modal Card API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('modal-card')])
</div>
5 changes: 5 additions & 0 deletions src/resources/views/sections/components/number.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,10 @@

<x-docs::subtitle id="number-api" title="Number API" />

<x-alert title="Attention!" class="my-4" warning>
The Number component receives all options from
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('number')])
</div>
6 changes: 5 additions & 1 deletion src/resources/views/sections/components/password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@

<x-docs::subtitle id="password-api" title="Password API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('password')])
<x-alert title="Attention!" class="my-4" warning>
The Maskable component receives all options from
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>,
except the slot [append].
</x-alert>
</div>
5 changes: 5 additions & 0 deletions src/resources/views/sections/components/phone.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,10 @@ protected function getInputMask(): array

<x-docs::subtitle id="phone-api" title="Phone API" />

<x-alert title="Attention!" class="my-4" warning>
The Phone component receives all options from
<x-link href="/components/maskable#maskable-api" warning sm>Maskable Component</x-link>.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('phone')])
</div>
12 changes: 12 additions & 0 deletions src/resources/views/sections/components/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<x-docs::summary.header href="#after-options-slot" label="After Options Slot" />

<x-docs::summary.header href="#select-api" label="Select API" />

<x-docs::summary.header href="#select-option-api" label="Select Option API" />

<x-docs::summary.header href="#select-user-option-api" label="Select User Option API" />
</x-docs::summary>
</x-slot>

Expand Down Expand Up @@ -348,4 +352,12 @@
<x-docs::subtitle id="select-api" title="Select API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('select')])

<x-docs::subtitle id="select-option-api" title="Select Option API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('select-option')])

<x-docs::subtitle id="select-user-option-api" title="Select User Option API" />

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('select-user-option')])
</div>
5 changes: 5 additions & 0 deletions src/resources/views/sections/components/textarea.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@

<x-docs::subtitle id="textarea-api" title="Textarea API" />

<x-alert title="Attention!" class="my-4" warning>
The Textarea component receives all options from
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('textarea')])
</div>
5 changes: 5 additions & 0 deletions src/resources/views/sections/components/time-picker.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,10 @@

<x-docs::subtitle id="time-picker-api" title="Time Picker API" />

<x-alert title="Attention!" class="my-4" warning>
The Time Picker component receives all options from
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
</x-alert>

@livewire("component-api", ['items' => WireUiDocs::getComponentApi('time-picker')])
</div>

0 comments on commit 56bf6f5

Please sign in to comment.