diff --git a/README.md b/README.md index c86f450f..0e38d0c7 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Every day is being updated and working on **Vuesax 4**, we will announce each ne - [x] Checkbox - [ ] Chip - [ ] Collapse -- [ ] Dialogs +- [x] Dialogs - [ ] Divider - [ ] Dropdown - [ ] Images @@ -52,8 +52,8 @@ Every day is being updated and working on **Vuesax 4**, we will announce each ne - [ ] Navbar - [x] Notification - [ ] Number Input -- [ ] Pagination -- [ ] Popup +- [x] Pagination +- [x] Popup - [ ] Progress - [x] Radio - [x] Select diff --git a/packages/docs/.vuepress/components/Dialog/blur.vue b/packages/docs/.vuepress/components/Dialog/blur.vue new file mode 100644 index 00000000..7e30a0a3 --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/blur.vue @@ -0,0 +1,100 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/default.vue b/packages/docs/.vuepress/components/Dialog/default.vue new file mode 100644 index 00000000..e9e8b79d --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/default.vue @@ -0,0 +1,100 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/fullScreen.vue b/packages/docs/.vuepress/components/Dialog/fullScreen.vue new file mode 100644 index 00000000..7f4cca19 --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/fullScreen.vue @@ -0,0 +1,100 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/loading.vue b/packages/docs/.vuepress/components/Dialog/loading.vue new file mode 100644 index 00000000..286cad6a --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/loading.vue @@ -0,0 +1,100 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/nested.vue b/packages/docs/.vuepress/components/Dialog/nested.vue new file mode 100644 index 00000000..19069a1e --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/nested.vue @@ -0,0 +1,123 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/notClose.vue b/packages/docs/.vuepress/components/Dialog/notClose.vue new file mode 100644 index 00000000..1429986a --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/notClose.vue @@ -0,0 +1,100 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/notPadding.vue b/packages/docs/.vuepress/components/Dialog/notPadding.vue new file mode 100644 index 00000000..b94ad22f --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/notPadding.vue @@ -0,0 +1,28 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/overflowHidden.vue b/packages/docs/.vuepress/components/Dialog/overflowHidden.vue new file mode 100644 index 00000000..4c05f3b5 --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/overflowHidden.vue @@ -0,0 +1,100 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/preventClose.vue b/packages/docs/.vuepress/components/Dialog/preventClose.vue new file mode 100644 index 00000000..0c514cc5 --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/preventClose.vue @@ -0,0 +1,100 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/scroll.vue b/packages/docs/.vuepress/components/Dialog/scroll.vue new file mode 100644 index 00000000..930f54ac --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/scroll.vue @@ -0,0 +1,89 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/square.vue b/packages/docs/.vuepress/components/Dialog/square.vue new file mode 100644 index 00000000..5a795d6f --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/square.vue @@ -0,0 +1,100 @@ + + + diff --git a/packages/docs/.vuepress/components/Dialog/type.vue b/packages/docs/.vuepress/components/Dialog/type.vue new file mode 100644 index 00000000..fb906e6b --- /dev/null +++ b/packages/docs/.vuepress/components/Dialog/type.vue @@ -0,0 +1,146 @@ + + + diff --git a/packages/docs/.vuepress/components/Notification/duration.vue b/packages/docs/.vuepress/components/Notification/duration.vue index 70588867..475623b7 100644 --- a/packages/docs/.vuepress/components/Notification/duration.vue +++ b/packages/docs/.vuepress/components/Notification/duration.vue @@ -22,7 +22,7 @@ export default { duration, progress: 'auto', title: 'Documentation Vuesax 4.0+', - text: 'These documents refer to the latest version of vuesax (4.0+), to see the documents of the previous versions you can do it here 👉 Vuesax3.x' + text: 'These documents refer to the latest version of vuesax (4.0+), to see the documents of the previous versions you can do it here 👉 Vuesax3.x', }) } } diff --git a/packages/docs/.vuepress/components/Pagination/buttons-dotted.vue b/packages/docs/.vuepress/components/Pagination/buttons-dotted.vue new file mode 100644 index 00000000..ebc31d28 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/buttons-dotted.vue @@ -0,0 +1,20 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/circle.vue b/packages/docs/.vuepress/components/Pagination/circle.vue new file mode 100644 index 00000000..8046ceae --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/circle.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/color.vue b/packages/docs/.vuepress/components/Pagination/color.vue new file mode 100644 index 00000000..d9513182 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/color.vue @@ -0,0 +1,44 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/default.vue b/packages/docs/.vuepress/components/Pagination/default.vue new file mode 100644 index 00000000..cee3e7d1 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/default.vue @@ -0,0 +1,12 @@ + + diff --git a/packages/docs/.vuepress/components/Pagination/disabled.vue b/packages/docs/.vuepress/components/Pagination/disabled.vue new file mode 100644 index 00000000..72596cde --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/disabled.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/disabledItems.vue b/packages/docs/.vuepress/components/Pagination/disabledItems.vue new file mode 100644 index 00000000..aab8bb1a --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/disabledItems.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/dotted-number.vue b/packages/docs/.vuepress/components/Pagination/dotted-number.vue new file mode 100644 index 00000000..cf0d67d5 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/dotted-number.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/infinite.vue b/packages/docs/.vuepress/components/Pagination/infinite.vue new file mode 100644 index 00000000..5b332420 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/infinite.vue @@ -0,0 +1,12 @@ + + diff --git a/packages/docs/.vuepress/components/Pagination/loadingItems.vue b/packages/docs/.vuepress/components/Pagination/loadingItems.vue new file mode 100644 index 00000000..b16284d3 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/loadingItems.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/not-arrows.vue b/packages/docs/.vuepress/components/Pagination/not-arrows.vue new file mode 100644 index 00000000..a9e59a07 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/not-arrows.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/not-margin.vue b/packages/docs/.vuepress/components/Pagination/not-margin.vue new file mode 100644 index 00000000..81442427 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/not-margin.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/only-arrow.vue b/packages/docs/.vuepress/components/Pagination/only-arrow.vue new file mode 100644 index 00000000..5736ccdf --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/only-arrow.vue @@ -0,0 +1,22 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/progress.vue b/packages/docs/.vuepress/components/Pagination/progress.vue new file mode 100644 index 00000000..f1f60351 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/progress.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/slot.vue b/packages/docs/.vuepress/components/Pagination/slot.vue new file mode 100644 index 00000000..dac3bf79 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/slot.vue @@ -0,0 +1,29 @@ + + + diff --git a/packages/docs/.vuepress/components/Pagination/square.vue b/packages/docs/.vuepress/components/Pagination/square.vue new file mode 100644 index 00000000..d8ece253 --- /dev/null +++ b/packages/docs/.vuepress/components/Pagination/square.vue @@ -0,0 +1,17 @@ + + + diff --git a/packages/docs/.vuepress/components/Tooltip/border.vue b/packages/docs/.vuepress/components/Tooltip/border.vue index 5e9162e4..20d8ac6d 100644 --- a/packages/docs/.vuepress/components/Tooltip/border.vue +++ b/packages/docs/.vuepress/components/Tooltip/border.vue @@ -36,4 +36,6 @@ export default { diff --git a/packages/docs/.vuepress/components/Tooltip/color.vue b/packages/docs/.vuepress/components/Tooltip/color.vue index 7dc073a9..4363a9d8 100644 --- a/packages/docs/.vuepress/components/Tooltip/color.vue +++ b/packages/docs/.vuepress/components/Tooltip/color.vue @@ -77,5 +77,5 @@ export default { .vs-button margin 0px .vs-tooltip-content - margin 0px 10px + margin 5px diff --git a/packages/docs/.vuepress/components/Tooltip/notArrow.vue b/packages/docs/.vuepress/components/Tooltip/notArrow.vue index b2d422fa..3b318d34 100644 --- a/packages/docs/.vuepress/components/Tooltip/notArrow.vue +++ b/packages/docs/.vuepress/components/Tooltip/notArrow.vue @@ -45,5 +45,5 @@ export default { .vs-button margin 0px .vs-tooltip-content - margin 0px 5px + margin 5px diff --git a/packages/docs/.vuepress/config.js b/packages/docs/.vuepress/config.js index 864ea636..18a0e78a 100644 --- a/packages/docs/.vuepress/config.js +++ b/packages/docs/.vuepress/config.js @@ -98,6 +98,8 @@ function getNavbar (lang = '/') { { text: 'Notification', link: `${lang}docs/components/Notification` }, { text: 'Radio', link: `${lang}docs/components/Radio` }, { text: 'Tooltip', link: `${lang}docs/components/Tooltip` }, + { text: 'Dialog', link: `${lang}docs/components/Dialog` }, + { text: 'Pagination', link: `${lang}docs/components/Pagination` }, // new component slot 1 ] } @@ -188,6 +190,8 @@ function getSidebar (lang = '/') { `${lang}docs/components/Notification`, `${lang}docs/components/Radio`, `${lang}docs/components/Tooltip`, + `${lang}docs/components/Dialog`, + `${lang}docs/components/Pagination`, // new component slot 2 ] }, diff --git a/packages/docs/.vuepress/dist b/packages/docs/.vuepress/dist index fb434fee..4d03d1ec 160000 --- a/packages/docs/.vuepress/dist +++ b/packages/docs/.vuepress/dist @@ -1 +1 @@ -Subproject commit fb434fee4704f4ac83c9a212864f1bc1db48e5df +Subproject commit 4d03d1ecb1d586118d46a8608b5e1f127e67a2c4 diff --git a/packages/docs/docs/components/Dialog.md b/packages/docs/docs/components/Dialog.md new file mode 100644 index 00000000..a6c28930 --- /dev/null +++ b/packages/docs/docs/components/Dialog.md @@ -0,0 +1,1747 @@ +--- +PROPS: + - name: v-model + type: Boolean + values: true,false + description: Determine if the dialogue is visible or hidden. + default: false + link: null + usage: '#default' + code: > + + ... + + - name: not-center + type: boolean + values: true.false + description: By default the header centers the elements, with this property the centering is eliminated. + default: false + link: null + usage: '#type' + code: > + + ... + + - name: width + type: String + values: px + description: Determine the width of the dialog. + default: null + link: null + usage: '#type' + code: > + + ... + + - name: loading + type: Boolean + values: true,false + description: Add a loading animation to the dialog. + default: false + link: null + usage: '#loading' + code: > + + ... + + - name: not-close + type: Boolean + values: true,false + description: Remove the close button from the dialog. + default: false + link: null + usage: '#not-close' + code: > + + ... + + - name: scroll + type: Boolean + values: true,false + description: Makes the content a maximum high and gives the possibility to overflow the content add scroll. + default: false + link: null + usage: '#scroll' + code: > + + ... + + - name: overflow-hidden + type: Boolean + values: true,false + description: When the dialog is opened, the page scroll is deleted. + default: false + link: null + usage: '#overflow-hidden-body' + code: > + + ... + + - name: auto-width + type: Boolean + values: true,false + description: It makes the dialog have an automatic width to its content. + default: false + link: null + usage: '#scroll' + code: > + + ... + + - name: not-padding + type: Boolean + values: true,false + description: Eliminates the padding of the base elements of the dialog. + default: false + link: null + usage: '#not-padding' + code: > + + ... + + - name: full-screen + type: Boolean + values: true,false + description: Makes the dialog the size of the window. + default: false + link: null + usage: '#full-screen' + code: > + + ... + + - name: blur + type: Boolean + values: true,false + description: Makes all elements blur when the dialog opens. + default: false + link: null + usage: '#blur' + code: > + + ... + + - name: square + type: Boolean + values: true,false + description: Remove the border radius from the dialog. + default: false + link: null + usage: '#square' + code: > + + ... + + - name: prevent-close + type: Boolean + values: true,false + description: It makes the dialog cannot be closed by clicking outside or by pressing the esc key. + default: false + link: null + usage: null + code: > + + ... + + +SLOTS: + - name: slot name + type: slot + values: null + description: texto descriptivo. + default: null + link: null + usage: '#animated' + code: > + ... + +NEWS: + - name +--- + +# Dialog + + + +## Default + + + +It generates a Dialog with the `vs-dialog` component, this component is very customizable since it provides a slot to put and make any type of interface to the user's need + +
+ +
+ +
+ + ```html{6-42} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Type + +You can easily create the most common types of dialogs such as **Alert**, **Confirm** or **Prompt** using the different slots for the structure of the `header`,`default`, `footer` dialog + +
+ +
+ +
+ + ```html + + ``` + +
+ +
+ + ```html{4,5,6} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## loading + +Add a loading animation to the dialog with the `loading` property + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Not close + +You can remove the close button with the `not-close` property + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{3,4,5} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Scroll + +There are cases where you need a scroll because there is a lot of information within the dialog for this you can use the `scroll` property + +
+ +
+ +
+ + ```html + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Overflow Hidden Body + +If you need to remove the page scroll when opening the dialog you can do it with the `overflow-hidden` property + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Not Padding + +If you need to remove the padding from the dialog to make a more personalized interface you can do it with the `not-padding` property + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Nested Dialogs + +You can nest as many `vs-dialog` as you need without problem + +
+ +
+ +
+ + ```html + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## full Screen + +If you need the dialog to be the total window size you can do it with the `full-screen` property + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## blur + +You can add a blur style to all the elements behind the dialog with the `blur` property, this functionality depends on the css property [backdrop-filter](https://caniuse.com/#feat=css-backdrop-filter) + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Square + +Change the dialog style by removing the border radius and making it rectangular + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Prevent Close + +With the `prevent-close` property you do not close the dialog by clicking outside or pressing the **esc** key + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## API + + diff --git a/packages/docs/docs/components/Notification.md b/packages/docs/docs/components/Notification.md index d994a660..28995cb5 100644 --- a/packages/docs/docs/components/Notification.md +++ b/packages/docs/docs/components/Notification.md @@ -351,6 +351,59 @@ PROPS: } } + - name: instance.toggleClass(String) + type: function + values: String + description: Add or remove the last class as a parameter to the notification. + default: null + link: null + usage: null + code: > + + + - name: classNotification + type: String + values: String + description: Add a custom class to the notification. + default: null + link: null + usage: null + code: > + NEWS: - progress diff --git a/packages/docs/docs/components/Pagination.md b/packages/docs/docs/components/Pagination.md new file mode 100644 index 00000000..17cd8fa7 --- /dev/null +++ b/packages/docs/docs/components/Pagination.md @@ -0,0 +1,827 @@ +--- +PROPS: + - name: v-model + type: Number + values: Number + description: Determine the page where the user is. + default: 1 + link: null + usage: '#default' + code: > + + - name: length + type: Number + values: Number + description: It is the total number of pages that the component has. + default: null + link: null + usage: '#default' + code: > + + - name: color + type: Vuesax colors, RGB, HEX + values: String + description: Change the base color of the component. + default: primary + link: null + usage: '#color' + code: > + + - name: disabled + type: Boolean + values: true, false + description: Determine if the entire component is in the disabled state. + default: false + link: null + usage: '#disabled' + code: > + + - name: not-arrows + type: Boolean + values: true, false + description: Remove the arrows (next and back) of the component. + default: false + link: null + usage: '#not-arrows' + code: > + + - name: only-arrows + type: Boolean + values: true, false + description: Remove the items leaving only the arrows (next and back). + default: false + link: null + usage: '#only-arrows' + code: > + + - name: circle + type: Boolean + values: true, false + description: Change the style of the buttons making them completely round. + default: false + link: null + usage: '#circle' + code: > + + - name: square + type: Boolean + values: true, false + description: Change the style of the buttons making them totally square. + default: false + link: null + usage: '#square' + code: > + + - name: buttons-dotted + type: Boolean + values: true, false + description: Makes the buttons not have the internal number and changes its size. + default: false + link: null + usage: '#buttons-dotted' + code: > + + - name: disabled-items + type: Boolean + values: true, false + description: Determine which items are in the disabled state. + default: false + link: null + usage: '#disabled-items' + code: > + + - name: loading-items + type: Boolean + values: true, false + description: Determine which items are in the charging state. + default: false + link: null + usage: '#loading-items' + code: > + + - name: not-margin + type: Boolean + values: true, false + description: Change the margin between the items causing them to be fully glued and the radius is removed making them square. + default: false + link: null + usage: '#not-margin' + code: > + + - name: progress + type: Boolean + values: true, false + description: Add a progress bar to the component determined by the current page and the total (length) of pages. + default: false + link: null + usage: '#progress' + code: > + + - name: dotted-number + type: Number + values: Number + description: Change the total pages to be added or subtracted by clicking on the points. + default: false + link: null + usage: '#dotted-number' + code: > + + - name: infinite + type: Boolean + values: true,false + description: Determine if the pagination is infinite. + default: false + link: null + usage: '#infinite' + code: > + + +SLOTS: + - name: default + type: slot + values: null + description: Space between the two arrows (next and back). + default: null + link: null + usage: '#slot' + code: > + + + + {{ numberPage }} + + + + +NEWS: + - disabled + - not-arrows + - only-arrows + - circle + - square + - buttons-dotted + - disabled-items + - loading-items + - not-margin + - slot + - progress + - dotted-number + - infinite +--- + +# Pagination + + + +## Default + + + +Easily add a pagination with the `vs-pagination` component, the required properties are `length` and `v-model` + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Color + + + +
+ +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```html{4,5} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Disabled + +Change the disabled state of the component with the `disabled` property, this property is a boolean and you can add it without value + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Not Arrows + +You can remove the back and next arrows with the `not-arrows` property + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Only Arrows + +You may need in small spaces to remove the buttons and leave only the arrows for it we have the property `only-arrows` + +
+ +
+ +
+ + ```html{3,5} + + ``` + +
+ +
+ + ```html{3,4,5} + + ``` + +
+ +
+ + + +## Circle + +Change the radius of all the elements that make up the component by making them circular with the `circle` property, this property is a boolean so it does not need value + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Square + +Change the radius of all the elements that make up the component making them square with the `square` property, this property is a boolean so it does not need value + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Buttons Dotted + +Cambia por completo el estilo de el componente y elimina los números internos en cada botón con la propiedad `buttons-dotted` + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{3,4,5} + + ``` + +
+ +
+ + + +## Disabled Items + +You can put disabled buttons specific to the pagination component with the `disabled-items` property, this property is an array with the number of the button you want to put in disabled status + +:::tip +The buttons that are in disabled will skip when changing the value for example on the next or back buttons +::: + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Loading Items + +You can make a button inside the pagination be in the state of loading with the `loading-items` property, this property is an array with the number of the button that you want to put in the disabled state + +:::tip +The buttons that are in loading will skip when changing the value for example in the next or back buttons +::: + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Not Margin + +Change the style of the entire component by removing the margin between the buttons and changing the radius with the `not-margin` property + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Slot + +You may need to customize your pagination and for this you can use the `default` slot between the arrows and replace the items on the pages + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Progress + +Add a progress bar to the pagination by referencing where you find the last page with the `progress` property + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Dotted Number + +You can change the number of pages that are added when the user clicks on the points to advance more pages quickly, this can be done with the `dotted-number` property and the value would be the number of pages that are added or subtracted ( default is **5**) + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Infinite + +You can make the pagination infinite with the `infinite` property, this means that the arrow buttons are no longer in the disabled state + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## API + + diff --git a/packages/docs/docs/components/Tooltip.md b/packages/docs/docs/components/Tooltip.md index 8682647a..2b6d806f 100644 --- a/packages/docs/docs/components/Tooltip.md +++ b/packages/docs/docs/components/Tooltip.md @@ -285,7 +285,13 @@ SLOTS: NEWS: - - name + - border + - square + - circle + - shadow + - not-arrow + - loading + - content --- # Tooltip diff --git a/packages/docs/es/docs/components/Dialog.md b/packages/docs/es/docs/components/Dialog.md new file mode 100644 index 00000000..3ba7a686 --- /dev/null +++ b/packages/docs/es/docs/components/Dialog.md @@ -0,0 +1,1747 @@ +--- +PROPS: + - name: v-model + type: Boolean + values: true,false + description: Determina si el dialog es visible o esta oculto. + default: false + link: null + usage: '#default' + code: > + + ... + + - name: not-center + type: boolean + values: true.false + description: Por defecto el header centra los elementos, con esta propiedad se elimina el centrado. + default: false + link: null + usage: '#type' + code: > + + ... + + - name: width + type: String + values: px + description: Determina el ancho de el dialog. + default: null + link: null + usage: '#type' + code: > + + ... + + - name: loading + type: Boolean + values: true,false + description: Agrega una animación de cargando al dialog. + default: false + link: null + usage: '#loading' + code: > + + ... + + - name: not-close + type: Boolean + values: true,false + description: Elimina el botón de close de el dialog. + default: false + link: null + usage: '#not-close' + code: > + + ... + + - name: scroll + type: Boolean + values: true,false + description: Hace que el contenido tenga un máximo de alto y da posibilidad a si se desborda el contenido agregar scroll. + default: false + link: null + usage: '#scroll' + code: > + + ... + + - name: overflow-hidden + type: Boolean + values: true,false + description: Al abrirse el dialog se elimina el scroll de la pagina. + default: false + link: null + usage: '#overflow-hidden-body' + code: > + + ... + + - name: auto-width + type: Boolean + values: true,false + description: Hace que el dialog tenga un ancho automático a su contenido. + default: false + link: null + usage: '#scroll' + code: > + + ... + + - name: not-padding + type: Boolean + values: true,false + description: Elimina el padding de los elementos base de el dialog. + default: false + link: null + usage: '#not-padding' + code: > + + ... + + - name: full-screen + type: Boolean + values: true,false + description: Hace que el dialog tenga el tamaño de la ventana. + default: false + link: null + usage: '#full-screen' + code: > + + ... + + - name: blur + type: Boolean + values: true,false + description: Hace que todos los elementos tengan blur al abrirse el dialog. + default: false + link: null + usage: '#blur' + code: > + + ... + + - name: square + type: Boolean + values: true,false + description: Elimina el border radius de el dialog. + default: false + link: null + usage: '#square' + code: > + + ... + + - name: prevent-close + type: Boolean + values: true,false + description: Hace que el dialog no se pueda cerrar dando click afuera o pulsando la tecla esc. + default: false + link: null + usage: null + code: > + + ... + + +SLOTS: + - name: slot name + type: slot + values: null + description: texto descriptivo. + default: null + link: null + usage: '#animated' + code: > + ... + +NEWS: + - name +--- + +# Dialog + + + +## Default + + + +Genera un Dialog con el componente `vs-dialog`, este componente es muy personalizable ya que proporciona un slot para poner y hacer cualquier tipo de interfaz a la necesidad de el usuario + +
+ +
+ +
+ + ```html{6-42} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Type + +Puedes fácilmente crear los distintos tipos de dialogs mas comunes como **Alert**, **Confirm** o **Prompt** usando los diferentes slots para la estructura de el dialog `header`, `default`, `footer` + +
+ +
+ +
+ + ```html + + ``` + +
+ +
+ + ```html{4,5,6} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## loading + +Agrega una animación de cargando al dialog con la propiedad `loading` + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Not close + +Puedes quitar el botón de close con la propiedad `not-close` + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{3,4,5} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Scroll + +Hay casos en que necesitas un scroll porque hay mucha información dentro de el dialog para ello puedes usar la propiedad `scroll` + +
+ +
+ +
+ + ```html + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Overflow Hidden Body + +Si necesitas remover el scroll de la pagina al abrir el dialog puedes hacerlo con la propiedad `overflow-hidden` + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Not Padding + +Si necesitas remover el padding de el dialog para hacer una interfaz mas personalizada puedes hacerlo con la propiedad `not-padding` + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Nested Dialogs + +Puedes anidar cuantos `vs-dialog` necesites sin problema + +
+ +
+ +
+ + ```html + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## full Screen + +Si necesitas que el dialog sea de el tamaño total de la ventana puedes hacerlo con la propiedad `full-screen` + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## blur + +Puedes agregar un estilo de blur a todos los elementos detrás de el dialog con la propiedad `blur`, esta funcionalidad depende de la propiedad css [backdrop-filter](https://caniuse.com/#feat=css-backdrop-filter) + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Square + +Cambia el estilo de el dialog eliminando el border-radius y haciendo que sea rectangular + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Prevent Close + +Con la propiedad `prevent-close` haces que el dialog no se cierre al hacer click afuera o al pulsar la tecla **esc** + +
+ +
+ +
+ + ```html{6} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## API + + diff --git a/packages/docs/es/docs/components/Notification.md b/packages/docs/es/docs/components/Notification.md index a4bb3bf0..a2a02eab 100644 --- a/packages/docs/es/docs/components/Notification.md +++ b/packages/docs/es/docs/components/Notification.md @@ -352,6 +352,60 @@ PROPS: } + - name: instance.toggleClass(String) + type: function + values: String + description: Agrega o elimina la clase pasada como parámetro a la notificación. + default: null + link: null + usage: null + code: > + + + - name: classNotification + type: String + values: String + description: Agrega una clase personalizada a la notificación. + default: null + link: null + usage: null + code: > + + NEWS: - progress - duration diff --git a/packages/docs/es/docs/components/Pagination.md b/packages/docs/es/docs/components/Pagination.md new file mode 100644 index 00000000..873c312e --- /dev/null +++ b/packages/docs/es/docs/components/Pagination.md @@ -0,0 +1,827 @@ +--- +PROPS: + - name: v-model + type: Number + values: Number + description: Determina la pagina en la que se encuentra el usuario. + default: 1 + link: null + usage: '#default' + code: > + + - name: length + type: Number + values: Number + description: Es el numero total de paginas que tiene el componente. + default: null + link: null + usage: '#default' + code: > + + - name: color + type: Vuesax colors, RGB, HEX + values: String + description: Cambia el color base de el componente. + default: primary + link: null + usage: '#color' + code: > + + - name: disabled + type: Boolean + values: true, false + description: Determina si todo el componente se encuentra en estado de disabled. + default: false + link: null + usage: '#disabled' + code: > + + - name: not-arrows + type: Boolean + values: true, false + description: Remueve las flechas (siguiente y atrás) de el componente. + default: false + link: null + usage: '#not-arrows' + code: > + + - name: only-arrows + type: Boolean + values: true, false + description: Remueve los items dejando solo las flechas (siguiente y atrás). + default: false + link: null + usage: '#only-arrows' + code: > + + - name: circle + type: Boolean + values: true, false + description: Cambia el estilo de los botones haciéndolos totalmente redondos. + default: false + link: null + usage: '#circle' + code: > + + - name: square + type: Boolean + values: true, false + description: Cambia el estilo de los botones haciéndolos totalmente cuadrados. + default: false + link: null + usage: '#square' + code: > + + - name: buttons-dotted + type: Boolean + values: true, false + description: Hace que los botones no tengan el numero interno y cambia su tamaño. + default: false + link: null + usage: '#buttons-dotted' + code: > + + - name: disabled-items + type: Boolean + values: true, false + description: Determina cuales elementos se encuentran en estado de disabled. + default: false + link: null + usage: '#disabled-items' + code: > + + - name: loading-items + type: Boolean + values: true, false + description: Determina cuales elementos se encuentran en estado de cargando. + default: false + link: null + usage: '#loading-items' + code: > + + - name: not-margin + type: Boolean + values: true, false + description: Cambia el margin entre los items haciendo que estén totalmente pegados y se elimina el radius haciéndolos cuadrados. + default: false + link: null + usage: '#not-margin' + code: > + + - name: progress + type: Boolean + values: true, false + description: Agrega una barra de progreso al componente determinada por la pagina actual y el total (length) de paginas. + default: false + link: null + usage: '#progress' + code: > + + - name: dotted-number + type: Number + values: Number + description: Cambia el total de paginas que se van a agregar o restar al darle click a los puntos. + default: false + link: null + usage: '#dotted-number' + code: > + + - name: infinite + type: Boolean + values: true,false + description: Determina si la pagination es infinita. + default: false + link: null + usage: '#infinite' + code: > + + +SLOTS: + - name: default + type: slot + values: null + description: Espacio entre las dos flechas (siguiente y atrás). + default: null + link: null + usage: '#slot' + code: > + + + + {{ numberPage }} + + + + +NEWS: + - disabled + - not-arrows + - only-arrows + - circle + - square + - buttons-dotted + - disabled-items + - loading-items + - not-margin + - slot + - progress + - dotted-number + - infinite +--- + +# Pagination + + + +## Default + + + +Agrega una pagination fácilmente con el componente `vs-pagination`, las propiedaes requeridas son `length` y `v-model` + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Color + + + +
+ +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```html{4,5} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Disabled + +Cambia el estado disabled de el componente con la propiedad `disabled`, esta propiedad es un boolean y puedes agregarla sin valor + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Not Arrows + +Puedes eliminar las flechas de atrás y siguiente con la propiedad `not-arrows` + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Only Arrows + +Puedes necesitar en espacios reducidos eliminar los botones y dejar solo las flechas para ello tenemos la propiedad `only-arrows` + +
+ +
+ +
+ + ```html{3,5} + + ``` + +
+ +
+ + ```html{3,4,5} + + ``` + +
+ +
+ + + +## Circle + +Cambia el radius de todos los elementos que componen al componente haciendo que sean circulares con la propiedad `circle`, esta propiedad es un boolean por lo cual no necesita valor + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Square + +Cambia el radius de todos los elementos que componen al componente haciendo que sean cuadrados con la propiedad `square`, esta propiedad es un boolean por lo cual no necesita valor + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Buttons Dotted + +Cambia por completo el estilo de el componente y elimina los números internos en cada botón con la propiedad `buttons-dotted` + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{3,4,5} + + ``` + +
+ +
+ + + +## Disabled Items + +Puedes poner en estado de disabled botones específicos de el componente pagination con la propiedad `disabled-items`, esta propiedad es un array con el numero de el botón que se desea poner en estado de disabled + +:::tip +Los botones que se encuentran en disabled se van a saltar al cambiar el valor por ejemplo en los botones de siguiente o atrás +::: + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Loading Items + +Puedes hacer que un botón dentro de la pagination este en estado de loading con la propiedad `loading-items`, esta propiedad es un array con el numero de el botón que se desea poner en estado de disabled + +:::tip +Los botones que se encuentran en loading se van a saltar al cambiar el valor por ejemplo en los botones de siguiente o atrás +::: + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Not Margin + +Cambia el estilo de todo el componente eliminando el margin entre los botones y cambiando el radius con la propiedad `not-margin` + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Slot + +Puedes necesitar personalizar tu pagination y para ello puedes usar el slot `default` que se encuentra entre las flechas y sustituye los items de las paginas + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + ```stylus + + ``` + +
+ +
+ + + +## Progress + +Agrega una barra de progreso a la pagination haciendo referencia en donde se encuentra a la ultima pagina con la propiedad `progress` + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Dotted Number + +Puedes cambiar el numero de paginas que se suman cuando el usuario hace click en los puntos para avanzar mas paginas rápidamente, esto lo puedes hacer con la propiedad `dotted-number` y el valor seria el numero de paginas que se suman o se restan (por defecto es **5**) + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## Infinite + +Puedes hacer que la pagination sea infinita con la propiedad `infinite`, esto genera que ya los botones de flecha no se encuentren en estado disabled + +
+ +
+ +
+ + ```html{3} + + ``` + +
+ +
+ + ```html{4} + + ``` + +
+ +
+ + + +## API + + diff --git a/packages/docs/es/docs/components/Tooltip.md b/packages/docs/es/docs/components/Tooltip.md index 5e6e251e..c53af364 100644 --- a/packages/docs/es/docs/components/Tooltip.md +++ b/packages/docs/es/docs/components/Tooltip.md @@ -285,7 +285,13 @@ SLOTS: NEWS: - - name + - border + - square + - circle + - shadow + - not-arrow + - loading + - content --- # Tooltip diff --git a/packages/vuepress-theme-vuesax/components/Carbon.vue b/packages/vuepress-theme-vuesax/components/Carbon.vue index 0403a67e..117c9c28 100644 --- a/packages/vuepress-theme-vuesax/components/Carbon.vue +++ b/packages/vuepress-theme-vuesax/components/Carbon.vue @@ -10,7 +10,9 @@ export default { s.id = '_carbonads_js' s.async = true s.src = `//cdn.carbonads.com/carbon.js?serve=CE7DEKQN&placement=vuesaxcom` - this.$el.appendChild(s) + this.$nextTick(() => { + this.$el.appendChild(s) + }) }, clean() { this.$el.innerHTML = '' @@ -36,13 +38,16 @@ getVar(var) .carbon-ads &:empty opacity 0 + pointer-events none @media (max-width: 600px) .carbon-ads + position absolute !important width 100% !important min-height auto !important padding 0px 30px !important - bottom 0px !important + top 62px !important + bottom auto !important z-index 1000 !important border-radius 0px !important &:hover diff --git a/packages/vuepress-theme-vuesax/components/Codefund.vue b/packages/vuepress-theme-vuesax/components/Codefund.vue index 7e912b05..f84d3c70 100644 --- a/packages/vuepress-theme-vuesax/components/Codefund.vue +++ b/packages/vuepress-theme-vuesax/components/Codefund.vue @@ -19,7 +19,7 @@ getVar(var) bottom 0px width 145px background getVar('theme-layout') - z-index 100003 + z-index 90000 // padding 8px border-radius 25px 0px 0px 0px transition all .25s ease @@ -64,8 +64,19 @@ getVar(var) padding 0px 30px min-height 48px border-radius 0px + bottom: auto + position absolute + top 62px + z-index 100 + background transparent + &:hover + transform translate(0) !important + img + border-radius 0px 0px 10px 10px !important .cf-text text-align left + span + font-size .6rem .cf-sponsored-by display flex align-items center @@ -73,7 +84,7 @@ getVar(var) .cf-powered-by display none img - height 44px + height 46px width auto margin 0px border-radius 7px diff --git a/packages/vuepress-theme-vuesax/components/Config.vue b/packages/vuepress-theme-vuesax/components/Config.vue index 9428de09..76b1e34f 100644 --- a/packages/vuepress-theme-vuesax/components/Config.vue +++ b/packages/vuepress-theme-vuesax/components/Config.vue @@ -156,8 +156,14 @@ export default { this.$vsTheme.openCode = false - localStorage.theme = 'darken' - this.ChangeTheme() + localStorage.theme = 'dark' + const returnTheme = this.$vs.setTheme() + this.$vsTheme.themeDarken = returnTheme == 'dark' + if (returnTheme == 'dark') { + document.body.classList.add('darken') + } else { + document.body.classList.remove('darken') + } }, ChangeSidebar() { if (document.body.classList.contains('hidden-sidebar')) { @@ -240,57 +246,23 @@ export default { this.$vsTheme.openCode = !this.$vsTheme.openCode }, ChangeTheme() { - this.$vs.darken() - document.body.classList.add('all-transition') - const isDarken = localStorage.theme === 'darken' - document.body.classList.remove(!isDarken ? 'lighten' : 'darken') - document.body.classList.add(isDarken ? 'lighten' : 'darken') - if (isDarken) { - document.body.style.setProperty(`--vs-theme-bg`, '#f4f7f8') - document.body.style.setProperty(`--vs-theme-color`, '#2c3e50') - document.body.style.setProperty(`--vs-theme-layout`, '#fff') - document.body.style.setProperty(`--vs-theme-bg2`, '#eef2f5') - document.body.style.setProperty(`--vs-theme-code`, '#363449') - document.body.style.setProperty(`--vs-theme-code2`, '#3f3d56') - localStorage.theme = 'lighten' - this.$vsTheme.themeDarken = false + const returnTheme = this.$vs.toggleTheme() + this.$vsTheme.themeDarken = returnTheme == 'dark' + if (returnTheme == 'dark') { + document.body.classList.add('darken') } else { - localStorage.theme = 'darken' - this.$vsTheme.themeDarken = true - document.body.style.setProperty(`--vs-theme-bg`, '#18191c') - document.body.style.setProperty(`--vs-theme-color`, '#fff') - document.body.style.setProperty(`--vs-theme-layout`, '#1e2023') - document.body.style.setProperty(`--vs-theme-bg2`, '#141417') - document.body.style.setProperty(`--vs-theme-code`, '#141417') - document.body.style.setProperty(`--vs-theme-code2`, '#161619') + document.body.classList.remove('darken') } - - setTimeout(() => { - document.body.classList.remove('all-transition') - }, 100); } }, mounted() { - const isDarken = localStorage.theme === 'darken' - this.$vs.darken(isDarken ? 'darken' : 'lighten') - if (!isDarken) { - document.body.style.setProperty(`--vs-theme-bg`, '#f4f7f8') - document.body.style.setProperty(`--vs-theme-color`, '#2c3e50') - document.body.style.setProperty(`--vs-theme-layout`, '#fff') - document.body.style.setProperty(`--vs-theme-bg2`, '#eef2f5') - document.body.style.setProperty(`--vs-theme-code`, '#363449') - document.body.style.setProperty(`--vs-theme-code`, '#3f3d56') + const returnTheme = this.$vs.setTheme() + this.$vsTheme.themeDarken = returnTheme == 'dark' + if (returnTheme == 'dark') { + document.body.classList.add('darken') } else { - document.body.style.setProperty(`--vs-theme-bg`, '#18191c') - document.body.style.setProperty(`--vs-theme-color`, '#fff') - document.body.style.setProperty(`--vs-theme-layout`, '#1e2023') - document.body.style.setProperty(`--vs-theme-bg2`, '#141417') - document.body.style.setProperty(`--vs-theme-code`, '#141417') - document.body.style.setProperty(`--vs-theme-code2`, '#161619') + document.body.classList.remove('darken') } - - document.body.classList.remove(isDarken ? 'lighten' : 'darken') - document.body.classList.add(!isDarken ? 'lighten' : 'darken') }, created() { Vue.prototype.$mobile = { active: (localStorage.mobile != 'true') || false } @@ -308,6 +280,14 @@ getColor(vsColor, alpha = 1) getVar(var) unquote("var(--vs-"+var+")") +[vs-theme="dark"] + --vs-theme-bg: #18191c + --vs-theme-color: #fff + --vs-theme-layout: #1e2023 + --vs-theme-bg2: #141417 + --vs-theme-code: #141417 + --vs-theme-code2: #161619 + .switch-dark position relative width auto !important @@ -529,5 +509,18 @@ getVar(var) .config // display none left 0px - bottom 48px + bottom 0px + z-index 2000 + .config-btn + .effect1config + display none + ul.options + transform: translate(-100%, calc(-100% - 45px)) + li + padding: 6px + &:hover + ul.options + transform: translate(0px, calc(-100% - 45px)) + >.effect1config + left 37px diff --git a/packages/vuepress-theme-vuesax/components/DropdownLink.vue b/packages/vuepress-theme-vuesax/components/DropdownLink.vue index 44b61c8c..0da663ca 100644 --- a/packages/vuepress-theme-vuesax/components/DropdownLink.vue +++ b/packages/vuepress-theme-vuesax/components/DropdownLink.vue @@ -191,9 +191,20 @@ getVar(var) @media (min-width: $MQMobile) .dropdown-wrapper + position relative + &:after + content '' + position absolute + bottom -12px + width 100% + height 20px + background transparent + display none &:hover // override the inline style. display block !important + &:after + display block .nav-dropdown transform translate(0, calc(100% + 10px)) !important visibility visible !important @@ -219,13 +230,14 @@ getVar(var) transform translate(0, 100%) left 0 background-color getVar(theme-layout) - padding 0.6rem 0 + padding 0.5rem 0 // border 1px solid #ddd // border-bottom-color #ccc text-align left border-radius 7px 20px 20px 20px white-space nowrap margin 0 + margin-top -10px transition all .25s ease box-shadow 0px 10px 20px -10px rgba(0,0,0,.1) diff --git a/packages/vuepress-theme-vuesax/components/HeaderNotification.vue b/packages/vuepress-theme-vuesax/components/HeaderNotification.vue index 46d0fea4..5291311f 100644 --- a/packages/vuepress-theme-vuesax/components/HeaderNotification.vue +++ b/packages/vuepress-theme-vuesax/components/HeaderNotification.vue @@ -10,7 +10,7 @@

- New component Tooltip 🎉 + New component Pagination 🎉

See the examples and the new documentation @@ -36,11 +36,11 @@ export default { data:() => ({ active: 0, - number: 6 + number: 8 }), methods: { handleClick() { - this.$router.push('/docs/components/tooltip') + this.$router.push('/docs/components/Pagination') this.active = 0 localStorage.notificationHidden = this.number diff --git a/packages/vuepress-theme-vuesax/components/Home.vue b/packages/vuepress-theme-vuesax/components/Home.vue index 1e8b89dd..96647889 100644 --- a/packages/vuepress-theme-vuesax/components/Home.vue +++ b/packages/vuepress-theme-vuesax/components/Home.vue @@ -565,6 +565,10 @@ getVar(var) order: -1 top 0px padding 10px !important +@media (max-width: 600px) + .home + .hero + margin-top 60px @media (max-width: 550px) .init height 1000px diff --git a/packages/vuepress-theme-vuesax/components/HomeTwiter.vue b/packages/vuepress-theme-vuesax/components/HomeTwiter.vue index f42fb63b..18b8009c 100644 --- a/packages/vuepress-theme-vuesax/components/HomeTwiter.vue +++ b/packages/vuepress-theme-vuesax/components/HomeTwiter.vue @@ -55,6 +55,13 @@ export default { text: 'I have to say, Vuesax 4 is 😍', img: 'https://pbs.twimg.com/profile_images/1042510623962275840/1Iw_Mvud_400x400.jpg' }, + { + name: 'Paurakh Sharma', + user: '@PaurakhSharma', + link: 'https://twitter.com/PaurakhSharma', + text: 'Awesome news 🎉 Best looking Vue component library 🔥', + img: 'https://pbs.twimg.com/profile_images/1160037349037768704/dtk4DCfv_400x400.jpg' + }, { name: 'illy', user: '@__illy___', @@ -62,6 +69,13 @@ export default { text: 'Create a serverless mobile web application with Vue (ts), Vuesax and Firebase', img: 'https://pbs.twimg.com/profile_images/1184434161873870848/9e37ffmP_400x400.jpg' }, + { + name: 'lvzy', + user: '@lvzy12', + link: 'https://twitter.com/lvzy12', + text: 'Vuesax 4.0 UI components are very beautiful, look forward to your continuous updates 😻😻😻', + img: 'https://pbs.twimg.com/profile_images/1210388192207097857/Xj8nbZKE_400x400.jpg' + }, { name: 'Gusto', user: '@gustojs', diff --git a/packages/vuepress-theme-vuesax/components/Page.vue b/packages/vuepress-theme-vuesax/components/Page.vue index 2f7c0ba4..7720b500 100644 --- a/packages/vuepress-theme-vuesax/components/Page.vue +++ b/packages/vuepress-theme-vuesax/components/Page.vue @@ -130,14 +130,16 @@ - - {{ prev.title || prev.path }} + + + {{ prev.title || prev.path }} + @@ -149,9 +151,11 @@ v-if="next" :to="next.path" > - {{ next.title || next.path }} + + {{ next.title || next.path }} + + -

@@ -212,12 +216,16 @@ export default { next () { const next = this.$page.frontmatter.next + const obj = { + path: '/docs/guide/', + title: 'introduction' + } if (next === false) { - return + return obj } else if (next) { - return resolvePage(this.$site.pages, next, this.$route.path) + return resolvePage(this.$site.pages, next, this.$route.path) || obj } else { - return resolveNext(this.$page, this.sidebarItems) + return resolveNext(this.$page, this.sidebarItems) || obj } }, @@ -467,7 +475,7 @@ getVar(var) background getVar(theme-bg2) height auto border-radius 0px 0px 0px 30px - transition background .25s ease, border-radius .25s ease !important + transition background .25s ease, border-radius .25s ease top 0px // overflow hidden &:before @@ -480,7 +488,7 @@ getVar(var) height 60px &.fixed position fixed - top 60px + top 57px z-index 9999 border-radius 0px background getVar(theme-bg) @@ -581,6 +589,7 @@ getVar(var) align-items center justify-content center transition all .25s ease + color getVar(theme-color) &:hover ul opacity 1 @@ -760,7 +769,6 @@ getVar(var) padding-left 5px border-radius 12px transition all .25s ease - transform translate(10px) &:hover background getVar(theme-layout) transform translate(0px) @@ -772,12 +780,19 @@ getVar(var) margin-top 0 // border-top 1px solid $borderColor padding-top 1rem - overflow auto // clear float - .next - float right - transform translate(-10px) - padding-right 5px - padding-left 10px + overflow hidden // clear float + a + display flex + align-items center + justify-content space-between + span + display block + padding 0px + .prev + ~ .next + float right + padding-right 5px + padding-left 10px @media (max-width: 1300px) .page .sidebar @@ -791,11 +806,11 @@ getVar(var) float none text-align left @media (max-width: 600px) - .page-nav + .page-nav .inner position fixed right 0px - bottom: 90px + bottom: 34px z-index 1000 padding 0px margin 0px @@ -808,9 +823,27 @@ getVar(var) border-radius 0px 10px 10px 0px box-shadow 0px 0px 10px 0px rgba(0,0,0,.05) transform translate(0) !important + span + display none &.next - border-radius 10px 0px 0px 10px - transform translate(0) !important + padding 0px + font-size 1.5rem + width 40px + height 40px + border-radius 0px 10px 0px 0px + &.prev + padding 0px + font-size 1.5rem + width 40px + height 40px + border-radius 0px 10px 0px 0px + ~ .next + border-radius 10px 0px 0px 10px + transform translate(0) !important + width 40px + height 40px + font-size 1.5rem + padding 0px .page .content__default padding 10px @@ -841,6 +874,16 @@ getVar(var) .flex-header #header-title font-size 1.2rem !important +@media (max-width: 600px) + .page + ~ .carbon-ads + background transparent + #carbonads + background transparent + border-radius 0px + margin-top 0px + img + border-radius 0px 0px 10px 10px !important @media (max-width: 500px) .page padding-top 140px !important diff --git a/packages/vuepress-theme-vuesax/components/SidebarButton.vue b/packages/vuepress-theme-vuesax/components/SidebarButton.vue index 6e92546c..f5ab6eb6 100644 --- a/packages/vuepress-theme-vuesax/components/SidebarButton.vue +++ b/packages/vuepress-theme-vuesax/components/SidebarButton.vue @@ -1,8 +1,6 @@ @@ -18,6 +16,10 @@ export default {