Skip to content

Commit fa881cb

Browse files
committed
(Temporarily) replaced @tailwind/vite with @tailwind/postcss to allow styling of components in vitepress documents
1 parent 817e799 commit fa881cb

27 files changed

+191
-137
lines changed

docs/.vitepress/config.js

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,35 @@ export default defineConfig({
1616
{
1717
text: 'Components',
1818
items: [
19-
{ text: 'Accordion', link: '/accordion' },
20-
{ text: 'Autocomplete', link: '/autocomplete' },
21-
{ text: 'Confirm', link: '/confirm' },
22-
{ text: 'DateInput', link: '/date-input' },
23-
{ text: 'Datepicker', link: '/datepicker' },
24-
{ text: 'FormFileButton', link: '/form-file-button' },
25-
{ text: 'FormSelect', link: '/form-select' },
26-
{ text: 'FormSwitch', link: '/form-switch' },
27-
{ text: 'MessageToast', link: '/message-toast' },
28-
{ text: 'Modal', link: '/modal' },
29-
{ text: 'Pagination', link: '/pagination' },
30-
{ text: 'PasswordInput', link: '/password-input' },
31-
{ text: 'SimpleTree', link: '/simple-tree' },
32-
{ text: 'Sizable', link: '/sizable' },
33-
{ text: 'Slider', link: '/slider' },
34-
{ text: 'Sortable', link: '/sortable' },
35-
{ text: 'SubmitButton', link: '/submit-button' },
36-
{ text: 'Tabs', link: '/tabs' },
19+
{ text: 'Accordion', link: '/components/accordion' },
20+
{ text: 'Autocomplete', link: '/components/autocomplete' },
21+
{ text: 'Confirm', link: '/components/confirm' },
22+
{ text: 'DateInput', link: '/components/date-input' },
23+
{ text: 'Datepicker', link: '/components/datepicker' },
24+
{ text: 'FormFileButton', link: '/components/form-file-button' },
25+
{ text: 'FormSelect', link: '/components/form-select' },
26+
{ text: 'FormSwitch', link: '/components/form-switch' },
27+
{ text: 'MessageToast', link: '/components/message-toast' },
28+
{ text: 'Modal', link: '/components/modal' },
29+
{ text: 'Pagination', link: '/components/pagination' },
30+
{ text: 'PasswordInput', link: '/components/password-input' },
31+
{ text: 'SimpleTree', link: '/components/simple-tree' },
32+
{ text: 'Sizable', link: '/components/sizable' },
33+
{ text: 'Slider', link: '/components/slider' },
34+
{ text: 'Sortable', link: '/components/sortable' },
35+
{ text: 'SubmitButton', link: '/components/submit-button' },
36+
{ text: 'Tabs', link: '/components/tabs' },
3737
]
38+
},
39+
{
40+
text: 'Directives',
41+
/*
42+
items: [
43+
{ text: 'v-focus', link: '/directives/focus' },
44+
{ text: 'v-floating-label', link: '/directives/floating-label' },
45+
]
46+
47+
*/
3848
}
3949
],
4050
socialLinks: [

docs/.vitepress/theme/custom.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
@import '../../../src/index.css';
12
:root {
23
--vp-nav-logo-height: 3rem;
34
--vp-c-brand-1: rgb(var(--vxvue-color));
45
--vp-c-brand-2: rgb(var(--vxvue-color-600));
56
--vp-c-brand-3: rgb(var(--vxvue-color-700));
6-
}
7+
}
8+

docs/.vitepress/theme/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
import DefaultTheme from 'vitepress/theme'
2-
import '../../../src/index.css'
32
import './custom.css'
43
export default DefaultTheme

docs/accordion.md renamed to docs/components/accordion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
2-
import Accordion from "../src/components/accordion.vue"
3-
import AccordionPanel from "../src/components/accordion-panel.vue"
2+
import Accordion from "../../src/components/accordion.vue"
3+
import AccordionPanel from "../../src/components/accordion-panel.vue"
44
import { ref } from "vue"
55

66
const accordionIndex = ref({ multiple: [1], single: 0 })

docs/autocomplete.md renamed to docs/components/autocomplete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import Autocomplete from "../src/components/autocomplete.vue"
2+
import Autocomplete from "../../src/components/autocomplete.vue"
33
import { ref } from "vue"
44
const pickedItem = ref(null)
55
const items = ["Afghanistan", "Åland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia, Plurinational State of", "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Côte d'Ivoire", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran, Islamic Republic of", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia, the Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestine, State of", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Réunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthélemy", "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin (French part)", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Sint Maarten (Dutch part)", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard and Jan Mayen", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela, Bolivarian Republic of", "Viet Nam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"]

docs/confirm.md renamed to docs/components/confirm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import Confirm from "../src/components/confirm.vue"
2+
import Confirm from "../../src/components/confirm.vue"
33
import { ref } from "vue"
44

55
const confirmDialog = ref(null)

docs/date-input.md renamed to docs/components/date-input.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import DateInput from "../src/components/date-input.vue"
2+
import DateInput from "../../src/components/date-input.vue"
33
import { ref } from "vue"
44
const pickedDate = ref(null)
55
</script>
@@ -53,7 +53,7 @@ Attributes are passed on the wrapped input element with the exception of the `cl
5353
| `modelValue` | `Date` | | The date displayed after applying the output format |
5454
| `inputFormat` | `String` | 'YYYY-MM-DD' | The required input format of a string to be interpreted as a date |
5555
| `outputFormat` | `String` | 'YYYY-MM-DD' | The output format of an accepted date |
56-
| `showToggle` | `Boolean` | false | When true a toggle is shown which allows a [datepicker](datepicker) behavior |
56+
| `showToggle` | `Boolean` | false | When true a toggle is shown which allows a [datepicker](datepicker.md) behavior |
5757

5858
## Events
5959
| Name | Arguments | Description |

docs/datepicker.md renamed to docs/components/datepicker.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import Datepicker from "../src/components/datepicker.vue"
2+
import Datepicker from "../../src/components/datepicker.vue"
33
import { ref } from "vue"
44
const from = (() => {
55
let date = new Date(), d = date.getDate()
@@ -18,7 +18,7 @@
1818

1919
# Datepicker
2020

21-
A date picker component which allows the selection of a single date. Wraps a [date-input](/date-input) component (unless the `has-input` property is set to `false`)
21+
A date picker component which allows the selection of a single date. Wraps a [date-input](date-input.md) component (unless the `has-input` property is set to `false`)
2222

2323
## Default Component
2424
```html
@@ -63,7 +63,7 @@ v-model="pickedDate"
6363
:::
6464

6565
## Date Format and Localization
66-
The `input-format` and `output-format` properties are passed on the [`date-input`](date-input) component and interpreted there.
66+
The `input-format` and `output-format` properties are passed on the [`date-input`](date-input.md) component and interpreted there.
6767

6868
```html
6969
<datepicker
@@ -136,7 +136,7 @@ v-model="dateRangeLarge"
136136
:::
137137

138138
## Properties
139-
Properties of the [dateInput](date-input) component and standard attributes (like `disabled`) component can be declared and are passed on.
139+
Properties of the [dateInput](date-input.md) component and standard attributes (like `disabled`) component can be declared and are passed on.
140140

141141
| Name | Type | Default | Description |
142142
|---------------------|-----------|------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
@@ -149,7 +149,7 @@ Properties of the [dateInput](date-input) component and standard attributes (lik
149149
| `dayNames` | `Array` | ['S', 'M', 'T', 'W', 'T', 'F', 'S', 'S'] | An array with day names used for labelling the dates grid |
150150
| `locale` | `String` | 'default' | The locale used for rendering month names |
151151
| `startOfWeekIndex` | `Number` | 0 | Accepts 0 for Sunday and 1 for Monday |
152-
| `hasInput` | `Boolean` | true | When true a [date-input](date-input) component with a toggle is rendered; when false the datepicker is always visible |
152+
| `hasInput` | `Boolean` | true | When true a [date-input](date-input.md) component with a toggle is rendered; when false the datepicker is always visible |
153153

154154
## Events
155155
| Name | Arguments | Description |

docs/form-file-button.md renamed to docs/components/form-file-button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import FormFileButton from "../src/components/form-file-button.vue"
2+
import FormFileButton from "../../src/components/form-file-button.vue"
33
import { ref } from "vue"
44

55
const files = ref([])

docs/form-select.md renamed to docs/components/form-select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import FormSelect from "../src/components/form-select.vue"
2+
import FormSelect from "../../src/components/form-select.vue"
33
import { ref } from "vue"
44
const options = []
55
const selection1 = ref(null)

0 commit comments

Comments
 (0)