2525 </div >
2626 </div >
2727
28- <div class =" container mb-5 text-center" >
29- <div aria-label =" Basic example" class =" btn-group mb-3" role =" group" >
30- <button
31- v-for =" theme in themes"
32- :key =" theme"
33- class =" btn btn-success"
34- :class =" {
35- active: selectedTheme === theme.value,
36- 'btn-success': selectedTheme !== theme.value,
37- }"
38- type =" button"
39- @click =" changeTheme(theme.value)"
40- >
41- {{ theme.label }}
42- </button >
28+ <div class =" container mb-5" >
29+ <div class =" row" >
30+ <div class =" col-12 col-md-3" >
31+ <label class =" form-label" for =" theme-selection-select" >Theme:</label >
32+
33+ <select
34+ id =" theme-selection-select"
35+ aria-label =" Theme Selection"
36+ class =" form-select"
37+ @change =" changeTheme($event.target.value)"
38+ >
39+ <option
40+ v-for =" theme in themes"
41+ :key =" theme"
42+ :selected =" selectedTheme === theme.value"
43+ :value =" theme.value"
44+ >
45+ {{ theme.label }}
46+ </option >
47+ </select >
48+ </div >
4349 </div >
4450 </div >
4551
46- <div class =" container" >
52+ <div v-if = " !demoTestPage " class =" container" >
4753 <!-- ============================================== Installation -->
4854 <InstallationSection id =" ul-installation" />
4955
5056 <!-- ============================================== Register -->
5157 <RegisterSection id =" ul-register-plugin" />
5258
59+ <!-- ============================================== Usage -->
60+ <UsageSection id =" ul-usage" />
61+
5362 <!-- ============================================== Props -->
5463 <PropsSection id =" ul-props" />
5564
7685
7786 <FooterSection />
7887 </div >
88+
89+ <div v-else class =" container" >
90+ <TestingExamples />
91+ </div >
7992</template >
8093
8194<script setup>
8295import {
8396 provide ,
8497 ref ,
8598} from ' vue' ;
86- import { name , version } from ' ../../package' ;
99+ import { version } from ' ../../package' ;
87100import {
88101 ChangeLogSection ,
89102 CssVariablesSection ,
@@ -96,9 +109,12 @@ import {
96109 PropsSection ,
97110 RegisterSection ,
98111 SlotsSection ,
112+ UsageSection ,
99113} from ' @/components/Sections/' ;
114+ import { TestingExamples } from ' @/components/Examples/' ;
100115
101116
117+ const demoTestPage = ref (false );
102118const selectedTheme = ref (' neon-bunny' );
103119const themes = [
104120 {
@@ -149,34 +165,6 @@ const themes = [
149165
150166provide (' selectedTheme' , selectedTheme);
151167
152- provide (' styleData' , {
153- h2ColClass: ' col-12 mb-4' ,
154- });
155-
156- const packageName = name;
157- const repoBaseUrl = ` https://github.com/webdevnerdstuff/${ packageName} ` ;
158-
159- const links = {
160- changeLog: ` ${ repoBaseUrl} /blob/main/CHANGELOG.md` ,
161- docs: ` https://webdevnerdstuff.github.io/${ packageName} /` ,
162- github: repoBaseUrl,
163- license: ` ${ repoBaseUrl} /blob/main/LICENSE.md` ,
164- neonBunnyTheme: ' https://marketplace.visualstudio.com/items?itemName=WebDevNerdStuff.neon-bunny' ,
165- npm: ` https://www.npmjs.com/package/${ packageName} ` ,
166- prism: ' https://prismjs.com/' ,
167- vueJs: ' https://vuejs.org/' ,
168- };
169-
170- provide (' links' , links);
171-
172-
173- const codeBlockOptions = ref ({
174- browserWindow: false ,
175- preHeight: ' 30em' ,
176- });
177-
178- provide (' codeBlockOptions' , codeBlockOptions);
179-
180168function changeTheme (val ) {
181169 selectedTheme .value = val;
182170}
@@ -185,7 +173,7 @@ function changeTheme(val) {
185173
186174<style lang="scss">
187175:root {
188- --v-cb-label-font : ' Encode Sans Expanded' , sans-serif ;
176+ --v-cb-label-font : ' Encode Sans Expanded' , sans-serif !important ;
189177}
190178
191179html {
@@ -214,10 +202,23 @@ h2 {
214202 padding-bottom : 0.5rem ;
215203}
216204
205+ h5 {
206+ font-weight : 600 ;
207+ }
208+
217209.vue-logo {
218210 width : 80px ;
219211}
220212
213+ .table-responsive {
214+ box-shadow : 0 3px 1px -2px hsla (0 , 0% , 0% , 0.2 ),
215+ 0 2px 2px 0 hsla (0 , 0% , 0% , 0.14 ), 0 1px 5px 0 hsla (0 , 0% , 0% , 0.12 );
216+
217+ .table {
218+ margin-bottom : 0 ;
219+ }
220+ }
221+
221222.boolean-style {
222223 color : hsl (240 , 100% , 50% ) !important ;
223224 font-weight : 500 ;
0 commit comments