fixed-vuesax 3.14.1 → 3.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +187 -187
- package/dist/style/colors.styl +30 -30
- package/dist/style/components/vsAlert.styl +66 -66
- package/dist/style/components/vsAvatar.styl +64 -64
- package/dist/style/components/vsBreadcrumb.styl +50 -50
- package/dist/style/components/vsButton.styl +181 -181
- package/dist/style/components/vsCard.styl +64 -64
- package/dist/style/components/vsCheckBox.styl +111 -111
- package/dist/style/components/vsChip.styl +122 -122
- package/dist/style/components/vsCollapse.styl +109 -109
- package/dist/style/components/vsDivider.styl +34 -34
- package/dist/style/components/vsDropDown.styl +231 -231
- package/dist/style/components/vsIcon.styl +47 -47
- package/dist/style/components/vsImages.styl +166 -166
- package/dist/style/components/vsInput.styl +219 -219
- package/dist/style/components/vsInputNumber.styl +170 -170
- package/dist/style/components/vsList.styl +49 -49
- package/dist/style/components/vsLoading.styl +397 -397
- package/dist/style/components/vsNavbar.styl +286 -286
- package/dist/style/components/vsNotifications.styl +92 -92
- package/dist/style/components/vsPagination.styl +143 -143
- package/dist/style/components/vsPopup.styl +159 -159
- package/dist/style/components/vsProgress.styl +45 -45
- package/dist/style/components/vsRadio.styl +93 -93
- package/dist/style/components/vsSelect.styl +219 -219
- package/dist/style/components/vsSideBar.styl +267 -267
- package/dist/style/components/vsSlider.styl +196 -196
- package/dist/style/components/vsSpacer.styl +5 -5
- package/dist/style/components/vsSwitch.styl +93 -93
- package/dist/style/components/vsTable.styl +408 -408
- package/dist/style/components/vsTabs.styl +280 -280
- package/dist/style/components/vsTextarea.styl +82 -82
- package/dist/style/components/vsTimePicker.styl +42 -42
- package/dist/style/components/vsTooltip.styl +85 -85
- package/dist/style/components/vsUpload.styl +460 -460
- package/dist/style/mixins.styl +133 -133
- package/dist/style/root.styl +9 -9
- package/dist/style/vars.styl +45 -45
- package/dist/style/vuesax.styl +25 -25
- package/dist/vuesax.common.js +1 -1
- package/dist/vuesax.common.js.map +1 -1
- package/dist/vuesax.umd.js +1 -1
- package/dist/vuesax.umd.js.map +1 -1
- package/dist/vuesax.umd.min.js +1 -1
- package/dist/vuesax.umd.min.js.map +1 -1
- package/package.json +8 -8
package/dist/style/mixins.styl
CHANGED
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
// get color ver css
|
|
2
|
-
getColor(colorx, alpha = 1)
|
|
3
|
-
unquote("rgba(var(--vs-" + colorx + "), " +alpha + ")")
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
getVar(var)
|
|
7
|
-
unquote("var(--vs-" + var + ")")
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* dirValue
|
|
11
|
-
* this mixin is for the properties that take "right" or "left" as value
|
|
12
|
-
* it will automatically create two classes:
|
|
13
|
-
* vuesax-app-is-rtl forwared with class in RTL case
|
|
14
|
-
* vuesax-app-is-ltr forwared with class in LTR case
|
|
15
|
-
* the value passed will be used in LTR case and the opposite will be assigned automatically
|
|
16
|
-
* for the RTL
|
|
17
|
-
* example:
|
|
18
|
-
.someClass
|
|
19
|
-
dirValue(float, left)
|
|
20
|
-
|
|
21
|
-
[Compiled]
|
|
22
|
-
|
|
23
|
-
.vuesax-app-is-rtl
|
|
24
|
-
.someClass
|
|
25
|
-
float: right
|
|
26
|
-
|
|
27
|
-
.vuesax-app-is-ltr
|
|
28
|
-
.someClass
|
|
29
|
-
float: left
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
dirValue(prop, value)
|
|
33
|
-
rtDir = right
|
|
34
|
-
if value == right
|
|
35
|
-
rtDir = left
|
|
36
|
-
.vuesax-app-is-rtl &
|
|
37
|
-
{prop}: rtDir
|
|
38
|
-
.vuesax-app-is-ltr &
|
|
39
|
-
{prop}: value
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* propWithDir
|
|
44
|
-
* this mixin is for the properties that have direction like "margin-left" or "padding-left"
|
|
45
|
-
* as explained above it will automatically create two classes
|
|
46
|
-
* @params:
|
|
47
|
-
* - prop ==> is the property name [eg: 'margin']
|
|
48
|
-
* - dir ==> is the direction of the property [eg: 'left' or 'right']
|
|
49
|
-
* - value ==> is the value (value will be assigned to LTR class) [eg: '10px']
|
|
50
|
-
* - otherValues ==> any others value you want to pass [eg: '!important',
|
|
51
|
-
if the propery is transform you may pass some thing like 'rotate(20deg) skew(10deg)'
|
|
52
|
-
]
|
|
53
|
-
* if you want to use the mixin with transform, the mixin work with translate by default
|
|
54
|
-
* when using transform you should pass:
|
|
55
|
-
* transform as your first parameter
|
|
56
|
-
* null as your second parameter (since transform dose not take direction in its definiton)
|
|
57
|
-
* the value you want to pass in the third parameter, but you must pass it as array [eg: (10px 10px)]
|
|
58
|
-
* the mixin will convert the first value (x-asis) to negative [eg: (10px 10px) ==> (-10px 10px)]
|
|
59
|
-
* example using the mixin with transform:
|
|
60
|
-
.someClass
|
|
61
|
-
propWithDir(transform, null, (10px))
|
|
62
|
-
|
|
63
|
-
[Compiled]
|
|
64
|
-
|
|
65
|
-
.vuesax-app-is-rtl
|
|
66
|
-
.someClass
|
|
67
|
-
transform: translate(-10px, 10px)
|
|
68
|
-
|
|
69
|
-
.vuesax-app-is-ltr
|
|
70
|
-
.someClass
|
|
71
|
-
transform: translate(10px, 10px)
|
|
72
|
-
|
|
73
|
-
* in case of using the mixin with justify-content
|
|
74
|
-
* a class with the opposite value will be assigned to RTL
|
|
75
|
-
* in case of using the mixin with right or left property
|
|
76
|
-
* a class with the oppoiste property will be assigned to RTL
|
|
77
|
-
* eg:
|
|
78
|
-
.someClass
|
|
79
|
-
propWithValue(right, null, 0px)
|
|
80
|
-
|
|
81
|
-
[Compiled]
|
|
82
|
-
|
|
83
|
-
.vuesax-app-is-rtl
|
|
84
|
-
.someClass
|
|
85
|
-
left: 0px
|
|
86
|
-
|
|
87
|
-
.vuesax-app-is-ltr
|
|
88
|
-
.someClass
|
|
89
|
-
right: 0px
|
|
90
|
-
|
|
91
|
-
*/
|
|
92
|
-
propWithDir(prop, dir = null, value = null, otherValues = null)
|
|
93
|
-
if prop == transform
|
|
94
|
-
rtlTransDir = (0px 0px)
|
|
95
|
-
rtlTransDir[1] = value[1] || rtlTransDir[1]
|
|
96
|
-
rtlTransDir[0] = value[0] * -1
|
|
97
|
-
.vuesax-app-is-rtl &
|
|
98
|
-
transform: translate(rtlTransDir[0], rtlTransDir[1]) otherValues
|
|
99
|
-
.vuesax-app-is-ltr &
|
|
100
|
-
transform: translate(value[0], value[1] || rtlTransDir[1]) otherValues
|
|
101
|
-
// justify-content case
|
|
102
|
-
else if prop == justify-content
|
|
103
|
-
rtlVal = ''
|
|
104
|
-
if value == flex-start
|
|
105
|
-
rtlVal = flex-end
|
|
106
|
-
else
|
|
107
|
-
rtlVal = flex-start
|
|
108
|
-
.vuesax-app-is-rtl &
|
|
109
|
-
justify-content: rtlVal otherValues
|
|
110
|
-
.vuesax-app-is-ltr &
|
|
111
|
-
justify-content: value otherValues
|
|
112
|
-
|
|
113
|
-
// right or left properties case
|
|
114
|
-
else if prop == right || prop == left
|
|
115
|
-
rtlProp = ''
|
|
116
|
-
if prop == right
|
|
117
|
-
rtlProp = left
|
|
118
|
-
else
|
|
119
|
-
rtlProp = right
|
|
120
|
-
.vuesax-app-is-rtl &
|
|
121
|
-
{rtlProp}: value otherValues
|
|
122
|
-
.vuesax-app-is-ltr &
|
|
123
|
-
{prop}: value otherValues
|
|
124
|
-
|
|
125
|
-
// default case
|
|
126
|
-
else
|
|
127
|
-
rtlDir = right
|
|
128
|
-
if dir == right
|
|
129
|
-
rtlDir = left
|
|
130
|
-
.vuesax-app-is-rtl &
|
|
131
|
-
{prop}-{rtlDir}: value otherValues
|
|
132
|
-
.vuesax-app-is-ltr &
|
|
133
|
-
{prop}-{dir}: value otherValues
|
|
1
|
+
// get color ver css
|
|
2
|
+
getColor(colorx, alpha = 1)
|
|
3
|
+
unquote("rgba(var(--vs-" + colorx + "), " +alpha + ")")
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
getVar(var)
|
|
7
|
+
unquote("var(--vs-" + var + ")")
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* dirValue
|
|
11
|
+
* this mixin is for the properties that take "right" or "left" as value
|
|
12
|
+
* it will automatically create two classes:
|
|
13
|
+
* vuesax-app-is-rtl forwared with class in RTL case
|
|
14
|
+
* vuesax-app-is-ltr forwared with class in LTR case
|
|
15
|
+
* the value passed will be used in LTR case and the opposite will be assigned automatically
|
|
16
|
+
* for the RTL
|
|
17
|
+
* example:
|
|
18
|
+
.someClass
|
|
19
|
+
dirValue(float, left)
|
|
20
|
+
|
|
21
|
+
[Compiled]
|
|
22
|
+
|
|
23
|
+
.vuesax-app-is-rtl
|
|
24
|
+
.someClass
|
|
25
|
+
float: right
|
|
26
|
+
|
|
27
|
+
.vuesax-app-is-ltr
|
|
28
|
+
.someClass
|
|
29
|
+
float: left
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
dirValue(prop, value)
|
|
33
|
+
rtDir = right
|
|
34
|
+
if value == right
|
|
35
|
+
rtDir = left
|
|
36
|
+
.vuesax-app-is-rtl &
|
|
37
|
+
{prop}: rtDir
|
|
38
|
+
.vuesax-app-is-ltr &
|
|
39
|
+
{prop}: value
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* propWithDir
|
|
44
|
+
* this mixin is for the properties that have direction like "margin-left" or "padding-left"
|
|
45
|
+
* as explained above it will automatically create two classes
|
|
46
|
+
* @params:
|
|
47
|
+
* - prop ==> is the property name [eg: 'margin']
|
|
48
|
+
* - dir ==> is the direction of the property [eg: 'left' or 'right']
|
|
49
|
+
* - value ==> is the value (value will be assigned to LTR class) [eg: '10px']
|
|
50
|
+
* - otherValues ==> any others value you want to pass [eg: '!important',
|
|
51
|
+
if the propery is transform you may pass some thing like 'rotate(20deg) skew(10deg)'
|
|
52
|
+
]
|
|
53
|
+
* if you want to use the mixin with transform, the mixin work with translate by default
|
|
54
|
+
* when using transform you should pass:
|
|
55
|
+
* transform as your first parameter
|
|
56
|
+
* null as your second parameter (since transform dose not take direction in its definiton)
|
|
57
|
+
* the value you want to pass in the third parameter, but you must pass it as array [eg: (10px 10px)]
|
|
58
|
+
* the mixin will convert the first value (x-asis) to negative [eg: (10px 10px) ==> (-10px 10px)]
|
|
59
|
+
* example using the mixin with transform:
|
|
60
|
+
.someClass
|
|
61
|
+
propWithDir(transform, null, (10px))
|
|
62
|
+
|
|
63
|
+
[Compiled]
|
|
64
|
+
|
|
65
|
+
.vuesax-app-is-rtl
|
|
66
|
+
.someClass
|
|
67
|
+
transform: translate(-10px, 10px)
|
|
68
|
+
|
|
69
|
+
.vuesax-app-is-ltr
|
|
70
|
+
.someClass
|
|
71
|
+
transform: translate(10px, 10px)
|
|
72
|
+
|
|
73
|
+
* in case of using the mixin with justify-content
|
|
74
|
+
* a class with the opposite value will be assigned to RTL
|
|
75
|
+
* in case of using the mixin with right or left property
|
|
76
|
+
* a class with the oppoiste property will be assigned to RTL
|
|
77
|
+
* eg:
|
|
78
|
+
.someClass
|
|
79
|
+
propWithValue(right, null, 0px)
|
|
80
|
+
|
|
81
|
+
[Compiled]
|
|
82
|
+
|
|
83
|
+
.vuesax-app-is-rtl
|
|
84
|
+
.someClass
|
|
85
|
+
left: 0px
|
|
86
|
+
|
|
87
|
+
.vuesax-app-is-ltr
|
|
88
|
+
.someClass
|
|
89
|
+
right: 0px
|
|
90
|
+
|
|
91
|
+
*/
|
|
92
|
+
propWithDir(prop, dir = null, value = null, otherValues = null)
|
|
93
|
+
if prop == transform
|
|
94
|
+
rtlTransDir = (0px 0px)
|
|
95
|
+
rtlTransDir[1] = value[1] || rtlTransDir[1]
|
|
96
|
+
rtlTransDir[0] = value[0] * -1
|
|
97
|
+
.vuesax-app-is-rtl &
|
|
98
|
+
transform: translate(rtlTransDir[0], rtlTransDir[1]) otherValues
|
|
99
|
+
.vuesax-app-is-ltr &
|
|
100
|
+
transform: translate(value[0], value[1] || rtlTransDir[1]) otherValues
|
|
101
|
+
// justify-content case
|
|
102
|
+
else if prop == justify-content
|
|
103
|
+
rtlVal = ''
|
|
104
|
+
if value == flex-start
|
|
105
|
+
rtlVal = flex-end
|
|
106
|
+
else
|
|
107
|
+
rtlVal = flex-start
|
|
108
|
+
.vuesax-app-is-rtl &
|
|
109
|
+
justify-content: rtlVal otherValues
|
|
110
|
+
.vuesax-app-is-ltr &
|
|
111
|
+
justify-content: value otherValues
|
|
112
|
+
|
|
113
|
+
// right or left properties case
|
|
114
|
+
else if prop == right || prop == left
|
|
115
|
+
rtlProp = ''
|
|
116
|
+
if prop == right
|
|
117
|
+
rtlProp = left
|
|
118
|
+
else
|
|
119
|
+
rtlProp = right
|
|
120
|
+
.vuesax-app-is-rtl &
|
|
121
|
+
{rtlProp}: value otherValues
|
|
122
|
+
.vuesax-app-is-ltr &
|
|
123
|
+
{prop}: value otherValues
|
|
124
|
+
|
|
125
|
+
// default case
|
|
126
|
+
else
|
|
127
|
+
rtlDir = right
|
|
128
|
+
if dir == right
|
|
129
|
+
rtlDir = left
|
|
130
|
+
.vuesax-app-is-rtl &
|
|
131
|
+
{prop}-{rtlDir}: value otherValues
|
|
132
|
+
.vuesax-app-is-ltr &
|
|
133
|
+
{prop}-{dir}: value otherValues
|
package/dist/style/root.styl
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
:root {
|
|
3
|
-
--vs-primary: $vs-colors['primary']
|
|
4
|
-
--vs-danger: $vs-colors['danger']
|
|
5
|
-
--vs-success: $vs-colors['success']
|
|
6
|
-
--vs-dark: $vs-colors['dark']
|
|
7
|
-
--vs-warning: $vs-colors['warning']
|
|
8
|
-
--vs-light: $vs-colors['light']
|
|
9
|
-
}
|
|
1
|
+
|
|
2
|
+
:root {
|
|
3
|
+
--vs-primary: $vs-colors['primary']
|
|
4
|
+
--vs-danger: $vs-colors['danger']
|
|
5
|
+
--vs-success: $vs-colors['success']
|
|
6
|
+
--vs-dark: $vs-colors['dark']
|
|
7
|
+
--vs-warning: $vs-colors['warning']
|
|
8
|
+
--vs-light: $vs-colors['light']
|
|
9
|
+
}
|
package/dist/style/vars.styl
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
/*-----------------
|
|
2
|
-
Global Vars
|
|
3
|
-
------------------*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/* fonts */
|
|
7
|
-
|
|
8
|
-
$vs-font-family := arial
|
|
9
|
-
$vs-font-size := 1rem
|
|
10
|
-
$vs-color := 0, 0, 200
|
|
11
|
-
|
|
12
|
-
/* disabled */
|
|
13
|
-
|
|
14
|
-
$vs-disabled-opacity := .5
|
|
15
|
-
$vs-disabled-pointer := default
|
|
16
|
-
|
|
17
|
-
/* transition */
|
|
18
|
-
|
|
19
|
-
$vs-transition-duration := .25s
|
|
20
|
-
$vs-transition-delay := 0s
|
|
21
|
-
$vs-transition-timing := ease
|
|
22
|
-
|
|
23
|
-
/*----------------
|
|
24
|
-
COMPONENTS
|
|
25
|
-
-----------------*/
|
|
26
|
-
|
|
27
|
-
/*vs-button*/
|
|
28
|
-
|
|
29
|
-
$vs-button--padding-x := 10px
|
|
30
|
-
$vs-button--padding-y := 20px
|
|
31
|
-
$vs-button--border-radius := 5px
|
|
32
|
-
|
|
33
|
-
// global vars --- old
|
|
34
|
-
|
|
35
|
-
$vs-radio := 6px
|
|
36
|
-
$vs-disabled-opacity := .5
|
|
37
|
-
$vs-transition := all .25s ease
|
|
38
|
-
$vs-border := 1px solid rgba(0, 0, 0, 0.1)
|
|
39
|
-
$vs-label-color := rgba(0, 0, 0, .6)
|
|
40
|
-
$vs-box-shadow := 0px 5px 20px 0px rgba(0, 0, 0, 0.05)
|
|
41
|
-
$vs-background := rgb(255, 255, 255)
|
|
42
|
-
|
|
43
|
-
// select vars
|
|
44
|
-
|
|
45
|
-
$border-color := rgb(255, 255, 255)
|
|
1
|
+
/*-----------------
|
|
2
|
+
Global Vars
|
|
3
|
+
------------------*/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/* fonts */
|
|
7
|
+
|
|
8
|
+
$vs-font-family := arial
|
|
9
|
+
$vs-font-size := 1rem
|
|
10
|
+
$vs-color := 0, 0, 200
|
|
11
|
+
|
|
12
|
+
/* disabled */
|
|
13
|
+
|
|
14
|
+
$vs-disabled-opacity := .5
|
|
15
|
+
$vs-disabled-pointer := default
|
|
16
|
+
|
|
17
|
+
/* transition */
|
|
18
|
+
|
|
19
|
+
$vs-transition-duration := .25s
|
|
20
|
+
$vs-transition-delay := 0s
|
|
21
|
+
$vs-transition-timing := ease
|
|
22
|
+
|
|
23
|
+
/*----------------
|
|
24
|
+
COMPONENTS
|
|
25
|
+
-----------------*/
|
|
26
|
+
|
|
27
|
+
/*vs-button*/
|
|
28
|
+
|
|
29
|
+
$vs-button--padding-x := 10px
|
|
30
|
+
$vs-button--padding-y := 20px
|
|
31
|
+
$vs-button--border-radius := 5px
|
|
32
|
+
|
|
33
|
+
// global vars --- old
|
|
34
|
+
|
|
35
|
+
$vs-radio := 6px
|
|
36
|
+
$vs-disabled-opacity := .5
|
|
37
|
+
$vs-transition := all .25s ease
|
|
38
|
+
$vs-border := 1px solid rgba(0, 0, 0, 0.1)
|
|
39
|
+
$vs-label-color := rgba(0, 0, 0, .6)
|
|
40
|
+
$vs-box-shadow := 0px 5px 20px 0px rgba(0, 0, 0, 0.05)
|
|
41
|
+
$vs-background := rgb(255, 255, 255)
|
|
42
|
+
|
|
43
|
+
// select vars
|
|
44
|
+
|
|
45
|
+
$border-color := rgb(255, 255, 255)
|
package/dist/style/vuesax.styl
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
* {
|
|
3
|
-
margin: 0;
|
|
4
|
-
padding: 0;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
/* list-style: none; */
|
|
7
|
-
outline: none;
|
|
8
|
-
text-transform: none;
|
|
9
|
-
text-decoration: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
.vuesax-app-is-rtl
|
|
14
|
-
direction: rtl;
|
|
15
|
-
|
|
16
|
-
.vuesax-app-is-ltr
|
|
17
|
-
direction: ltr;
|
|
18
|
-
|
|
19
|
-
@import './colors'
|
|
20
|
-
@import './mixins'
|
|
21
|
-
@import './vars'
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
@import './root'
|
|
25
|
-
@import './components/**'
|
|
1
|
+
|
|
2
|
+
* {
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
/* list-style: none; */
|
|
7
|
+
outline: none;
|
|
8
|
+
text-transform: none;
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
.vuesax-app-is-rtl
|
|
14
|
+
direction: rtl;
|
|
15
|
+
|
|
16
|
+
.vuesax-app-is-ltr
|
|
17
|
+
direction: ltr;
|
|
18
|
+
|
|
19
|
+
@import './colors'
|
|
20
|
+
@import './mixins'
|
|
21
|
+
@import './vars'
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@import './root'
|
|
25
|
+
@import './components/**'
|