Skip to content

Commit 56bf6f5

Browse files
committed
feat(tables): adding new api tables
1 parent ca4b01a commit 56bf6f5

16 files changed

+1080
-36
lines changed

src/Support/ComponentAPI.php

Lines changed: 976 additions & 24 deletions
Large diffs are not rendered by default.

src/config.php

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,6 @@
113113

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

116-
'dropdown' => ComponentAPI::dropdown(),
117-
118-
'icon' => ComponentAPI::icon(),
119-
120-
'link' => ComponentAPI::link(),
121-
122-
'modal' => ComponentAPI::modal(),
123-
124116
'checkbox' => ComponentAPI::checkbox(),
125117

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

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

124+
// 'dialog' => ComponentAPI::dialog(),
125+
126+
'dropdown' => ComponentAPI::dropdown(),
127+
128+
'dropdown-item' => ComponentAPI::dropdownItem(),
129+
130+
'dropdown-header' => ComponentAPI::dropdownHeader(),
131+
132132
'errors' => ComponentAPI::errors(),
133133

134+
'icon' => ComponentAPI::icon(),
135+
134136
'input' => ComponentAPI::input(),
135137

138+
'link' => ComponentAPI::link(),
139+
136140
'maskable' => ComponentAPI::maskable(),
137141

142+
'modal' => ComponentAPI::modal(),
143+
144+
'modal-card' => ComponentAPI::modalCard(),
145+
138146
'native-select' => ComponentAPI::nativeSelect(),
139147

140-
'number' => ComponentAPI::number(),
148+
// 'notifications' => ComponentAPI::notifications(),
141149

142-
'password' => ComponentAPI::password(),
150+
'number' => ComponentAPI::number(),
143151

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

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

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

158+
'select-option' => ComponentAPI::selectOption(),
159+
160+
'select-user-option' => ComponentAPI::selectUserOption(),
161+
150162
'textarea' => ComponentAPI::textarea(),
151163

152164
'time-picker' => ComponentAPI::timePicker(),

src/resources/views/sections/components/button.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460
<x-docs::subtitle id="button-api" title="Button API" />
461461

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

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

src/resources/views/sections/components/color-picker.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,11 @@
208208

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

211+
<x-alert title="Attention!" class="my-4" warning>
212+
The Color Picker component receives all options from
213+
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>,
214+
except the props [icon, prefix] and slots [prepend and append].
215+
</x-alert>
216+
211217
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('color-picker')])
212218
</div>

src/resources/views/sections/components/currency.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,10 @@
9999

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

102+
<x-alert title="Attention!" class="my-4" warning>
103+
The Currency component receives all options from
104+
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
105+
</x-alert>
106+
102107
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('currency')])
103108
</div>

src/resources/views/sections/components/datetime-picker.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,10 @@
201201

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

204+
<x-alert title="Attention!" class="my-4" warning>
205+
The Datetime Picker component receives all options from
206+
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
207+
</x-alert>
208+
204209
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('datetime-picker')])
205210
</div>

src/resources/views/sections/components/dropdown.blade.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
<x-docs::summary.header href="#item-slot" label="Item Slot" />
2121

2222
<x-docs::summary.header href="#dropdown-api" label="Dropdown API" />
23+
24+
<x-docs::summary.header href="#dropdown-item-api" label="Dropdown Item API" />
25+
26+
<x-docs::summary.header href="#dropdown-header-api" label="Dropdown Header API" />
2327
</x-docs::summary>
2428
</x-slot>
2529

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

522526
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('dropdown')])
527+
528+
<x-docs::subtitle id="dropdown-item-api" title="Dropdown Item API" />
529+
530+
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('dropdown-item')])
531+
532+
<x-docs::subtitle id="dropdown-header-api" title="Dropdown Header API" />
533+
534+
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('dropdown-header')])
523535
</div>

src/resources/views/sections/components/errors.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,10 @@ functionality. In summary, the errors component is a flexible tool for managing
131131

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

134+
<x-alert title="Attention!" class="my-4" warning>
135+
The Errors component receives all options from
136+
<x-link href="/components/alert#alert-api" warning sm>Alert Component</x-link>.
137+
</x-alert>
138+
134139
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('errors')])
135140
</div>

src/resources/views/sections/components/maskable.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,10 @@ protected function getInputMask(): array
167167

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

170+
<x-alert title="Attention!" class="my-4" warning>
171+
The Maskable component receives all options from
172+
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
173+
</x-alert>
174+
170175
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('maskable')])
171176
</div>

src/resources/views/sections/components/modal.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
<x-docs::summary.header href="#modal-events" label="Modal Events" />
3636

3737
<x-docs::summary.header href="#modal-api" label="Modal API" />
38+
39+
<x-docs::summary.header href="#modal-card-api" label="Modal Card API" />
3840
</x-docs::summary>
3941
</x-slot>
4042

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

274276
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('modal')])
277+
278+
<x-docs::subtitle id="modal-card-api" title="Modal Card API" />
279+
280+
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('modal-card')])
275281
</div>

src/resources/views/sections/components/number.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,10 @@
5555

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

58+
<x-alert title="Attention!" class="my-4" warning>
59+
The Number component receives all options from
60+
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
61+
</x-alert>
62+
5863
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('number')])
5964
</div>

src/resources/views/sections/components/password.blade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@
3232

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

35-
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('password')])
35+
<x-alert title="Attention!" class="my-4" warning>
36+
The Maskable component receives all options from
37+
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>,
38+
except the slot [append].
39+
</x-alert>
3640
</div>

src/resources/views/sections/components/phone.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,10 @@ protected function getInputMask(): array
8282

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

85+
<x-alert title="Attention!" class="my-4" warning>
86+
The Phone component receives all options from
87+
<x-link href="/components/maskable#maskable-api" warning sm>Maskable Component</x-link>.
88+
</x-alert>
89+
8590
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('phone')])
8691
</div>

src/resources/views/sections/components/select.blade.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
<x-docs::summary.header href="#after-options-slot" label="After Options Slot" />
2323

2424
<x-docs::summary.header href="#select-api" label="Select API" />
25+
26+
<x-docs::summary.header href="#select-option-api" label="Select Option API" />
27+
28+
<x-docs::summary.header href="#select-user-option-api" label="Select User Option API" />
2529
</x-docs::summary>
2630
</x-slot>
2731

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

350354
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('select')])
355+
356+
<x-docs::subtitle id="select-option-api" title="Select Option API" />
357+
358+
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('select-option')])
359+
360+
<x-docs::subtitle id="select-user-option-api" title="Select User Option API" />
361+
362+
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('select-user-option')])
351363
</div>

src/resources/views/sections/components/textarea.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@
4040

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

43+
<x-alert title="Attention!" class="my-4" warning>
44+
The Textarea component receives all options from
45+
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
46+
</x-alert>
47+
4348
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('textarea')])
4449
</div>

src/resources/views/sections/components/time-picker.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,10 @@
105105

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

108+
<x-alert title="Attention!" class="my-4" warning>
109+
The Time Picker component receives all options from
110+
<x-link href="/components/input#input-api" warning sm>Input Component</x-link>.
111+
</x-alert>
112+
108113
@livewire("component-api", ['items' => WireUiDocs::getComponentApi('time-picker')])
109114
</div>

0 commit comments

Comments
 (0)