@wlydfe/pro-ui 0.2.14 → 0.2.15

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.
Files changed (70) hide show
  1. package/README.md +119 -119
  2. package/es/components/form-item/src/index.vue.d.ts +6 -2
  3. package/es/components/form-item/src/index.vue2.mjs +6 -6
  4. package/es/components/page/src/index.vue.d.ts +30 -54
  5. package/es/components/radio/src/index.vue2.mjs +1 -1
  6. package/es/components/render/src/index.vue2.mjs +1 -1
  7. package/es/directives/copy.d.ts +0 -0
  8. package/es/directives/copy.mjs +1 -0
  9. package/es/directives/longpress.d.ts +0 -0
  10. package/es/directives/longpress.mjs +1 -0
  11. package/es/directives/optimize.d.ts +0 -0
  12. package/es/directives/optimize.mjs +1 -0
  13. package/es/directives/tippy.d.ts +0 -0
  14. package/es/directives/tippy.mjs +1 -0
  15. package/es/index.css +14 -13
  16. package/global.d.ts +29 -29
  17. package/index.js +9 -9
  18. package/index.min.js +2 -2
  19. package/index.min.mjs +1 -1
  20. package/index.mjs +9 -9
  21. package/lib/components/form-item/src/index.vue.d.ts +6 -2
  22. package/lib/components/form-item/src/index.vue2.js +6 -6
  23. package/lib/components/page/src/index.vue.d.ts +30 -54
  24. package/lib/components/radio/src/index.vue2.js +1 -1
  25. package/lib/components/render/src/index.vue2.js +1 -1
  26. package/lib/directives/copy.d.ts +0 -0
  27. package/lib/directives/copy.js +2 -0
  28. package/lib/directives/longpress.d.ts +0 -0
  29. package/lib/directives/longpress.js +2 -0
  30. package/lib/directives/optimize.d.ts +0 -0
  31. package/lib/directives/optimize.js +2 -0
  32. package/lib/directives/tippy.d.ts +0 -0
  33. package/lib/directives/tippy.js +2 -0
  34. package/lib/{form.css → display-item.css} +11 -11
  35. package/locale/en.js +1 -1
  36. package/locale/en.min.js +1 -1
  37. package/locale/en.min.mjs +1 -1
  38. package/locale/en.mjs +1 -1
  39. package/locale/ja.js +1 -1
  40. package/locale/ja.min.js +1 -1
  41. package/locale/ja.min.mjs +1 -1
  42. package/locale/ja.mjs +1 -1
  43. package/locale/ko.js +1 -1
  44. package/locale/ko.min.js +1 -1
  45. package/locale/ko.min.mjs +1 -1
  46. package/locale/ko.mjs +1 -1
  47. package/locale/zh-cn.js +1 -1
  48. package/locale/zh-cn.min.js +1 -1
  49. package/locale/zh-cn.min.mjs +1 -1
  50. package/locale/zh-cn.mjs +1 -1
  51. package/locale/zh-tw.js +1 -1
  52. package/locale/zh-tw.min.js +1 -1
  53. package/locale/zh-tw.min.mjs +1 -1
  54. package/locale/zh-tw.mjs +1 -1
  55. package/package.json +2 -2
  56. package/theme-chalk/src/breadcrumb.scss +9 -9
  57. package/theme-chalk/src/date-picker.scss +96 -96
  58. package/theme-chalk/src/descriptions.scss +41 -41
  59. package/theme-chalk/src/display-item.scss +82 -82
  60. package/theme-chalk/src/drawer-form.scss +16 -16
  61. package/theme-chalk/src/form.scss +34 -34
  62. package/theme-chalk/src/input-tag.scss +91 -91
  63. package/theme-chalk/src/layout.scss +36 -36
  64. package/theme-chalk/src/mixins/function.scss +73 -73
  65. package/theme-chalk/src/search.scss +49 -49
  66. package/theme-chalk/src/sidebar.scss +93 -93
  67. package/theme-chalk/src/steps-form.scss +18 -18
  68. package/theme-chalk/src/table.scss +170 -170
  69. package/theme-chalk/src/var/index.scss +6 -6
  70. package/LICENSE +0 -21
@@ -1,96 +1,96 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'mixins/function' as *;
3
- @use 'mixins/config' as *;
4
-
5
- @include b(date-picker) {
6
- display: flex;
7
- flex-wrap: nowrap;
8
- width: fit-content;
9
- max-width: 100%;
10
- border-radius: getCssVar('border-radius-base');
11
- border: 1px solid getCssVar('border-color');
12
- align-items: center;
13
-
14
- &:hover {
15
- border-color: getCssVar('border-color-hover');
16
- }
17
-
18
- &.is-focus {
19
- border-color: getCssVar('color-primary');
20
- }
21
-
22
- &.is-disabled {
23
- background-color: getCssVar('disabled-bg-color');
24
- &:hover {
25
- border-color: getCssVar('border-color');
26
- }
27
- }
28
-
29
- @include e(middle) {
30
- color: getCssVar('text-color-placeholder');
31
- }
32
-
33
- @include e(start) {
34
- font-size: 14px;
35
- flex: 1;
36
-
37
- &.is-disabled {
38
- .#{$el-namespace + -input__wrapper } {
39
- box-shadow: none;
40
- }
41
- }
42
-
43
- @include elb(input__wrapper) {
44
- border: none;
45
- box-shadow: none;
46
- }
47
- }
48
-
49
- @include elb(input__wrapper) {
50
- width: 100%;
51
-
52
- &:hover {
53
- box-shadow: none;
54
- }
55
- &.is-focus {
56
- box-shadow: none;
57
- }
58
- }
59
- }
60
-
61
- @include b(date-picker) {
62
- @include e(end) {
63
- font-size: 14px;
64
- flex: 1;
65
-
66
- &.is-disabled {
67
- .#{$el-namespace + -input__wrapper } {
68
- box-shadow: none;
69
- }
70
- }
71
-
72
- @include elb(input__wrapper) {
73
- border: none;
74
- box-shadow: none;
75
- }
76
- }
77
- }
78
-
79
- @include elb(form-item) {
80
- &.is-error {
81
- .#{$plus-namespace + -date-picker} {
82
- border-color: getCssVar('color-danger');
83
-
84
- .#{$el-namespace + -input__wrapper } {
85
- box-shadow: none;
86
-
87
- &.is-focus {
88
- box-shadow: none !important;
89
- }
90
- &:hover {
91
- box-shadow: none;
92
- }
93
- }
94
- }
95
- }
96
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/function' as *;
3
+ @use 'mixins/config' as *;
4
+
5
+ @include b(date-picker) {
6
+ display: flex;
7
+ flex-wrap: nowrap;
8
+ width: fit-content;
9
+ max-width: 100%;
10
+ border-radius: getCssVar('border-radius-base');
11
+ border: 1px solid getCssVar('border-color');
12
+ align-items: center;
13
+
14
+ &:hover {
15
+ border-color: getCssVar('border-color-hover');
16
+ }
17
+
18
+ &.is-focus {
19
+ border-color: getCssVar('color-primary');
20
+ }
21
+
22
+ &.is-disabled {
23
+ background-color: getCssVar('disabled-bg-color');
24
+ &:hover {
25
+ border-color: getCssVar('border-color');
26
+ }
27
+ }
28
+
29
+ @include e(middle) {
30
+ color: getCssVar('text-color-placeholder');
31
+ }
32
+
33
+ @include e(start) {
34
+ font-size: 14px;
35
+ flex: 1;
36
+
37
+ &.is-disabled {
38
+ .#{$el-namespace + -input__wrapper } {
39
+ box-shadow: none;
40
+ }
41
+ }
42
+
43
+ @include elb(input__wrapper) {
44
+ border: none;
45
+ box-shadow: none;
46
+ }
47
+ }
48
+
49
+ @include elb(input__wrapper) {
50
+ width: 100%;
51
+
52
+ &:hover {
53
+ box-shadow: none;
54
+ }
55
+ &.is-focus {
56
+ box-shadow: none;
57
+ }
58
+ }
59
+ }
60
+
61
+ @include b(date-picker) {
62
+ @include e(end) {
63
+ font-size: 14px;
64
+ flex: 1;
65
+
66
+ &.is-disabled {
67
+ .#{$el-namespace + -input__wrapper } {
68
+ box-shadow: none;
69
+ }
70
+ }
71
+
72
+ @include elb(input__wrapper) {
73
+ border: none;
74
+ box-shadow: none;
75
+ }
76
+ }
77
+ }
78
+
79
+ @include elb(form-item) {
80
+ &.is-error {
81
+ .#{$plus-namespace + -date-picker} {
82
+ border-color: getCssVar('color-danger');
83
+
84
+ .#{$el-namespace + -input__wrapper } {
85
+ box-shadow: none;
86
+
87
+ &.is-focus {
88
+ box-shadow: none !important;
89
+ }
90
+ &:hover {
91
+ box-shadow: none;
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
@@ -1,41 +1,41 @@
1
- @use 'mixins/config' as *;
2
- @use 'mixins/mixins' as *;
3
- @use 'mixins/function' as *;
4
-
5
- @include b(description) {
6
- @include e(name) {
7
- max-width: 200px;
8
- word-wrap: break-word;
9
- }
10
- @include e(label) {
11
- min-width: 80px;
12
-
13
- &.is-required {
14
- &::before {
15
- content: '*';
16
- color: getCssVar('color-danger');
17
- margin-right: 4px;
18
- }
19
- }
20
- }
21
-
22
- &.no-border {
23
- .#{$el-namespace + -descriptions__body} {
24
- .#{$el-namespace + -descriptions__table} {
25
- &.is-bordered {
26
- .#{$el-namespace + -descriptions__cell} {
27
- border: 0;
28
- }
29
- }
30
- }
31
-
32
- .#{$el-namespace + -descriptions__label} {
33
- &.#{$el-namespace + -descriptions__cell} {
34
- &.is-bordered-label {
35
- background-color: getCssVar('fill-color-blank');
36
- }
37
- }
38
- }
39
- }
40
- }
41
- }
1
+ @use 'mixins/config' as *;
2
+ @use 'mixins/mixins' as *;
3
+ @use 'mixins/function' as *;
4
+
5
+ @include b(description) {
6
+ @include e(name) {
7
+ max-width: 200px;
8
+ word-wrap: break-word;
9
+ }
10
+ @include e(label) {
11
+ min-width: 80px;
12
+
13
+ &.is-required {
14
+ &::before {
15
+ content: '*';
16
+ color: getCssVar('color-danger');
17
+ margin-right: 4px;
18
+ }
19
+ }
20
+ }
21
+
22
+ &.no-border {
23
+ .#{$el-namespace + -descriptions__body} {
24
+ .#{$el-namespace + -descriptions__table} {
25
+ &.is-bordered {
26
+ .#{$el-namespace + -descriptions__cell} {
27
+ border: 0;
28
+ }
29
+ }
30
+ }
31
+
32
+ .#{$el-namespace + -descriptions__label} {
33
+ &.#{$el-namespace + -descriptions__cell} {
34
+ &.is-bordered-label {
35
+ background-color: getCssVar('fill-color-blank');
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
@@ -1,82 +1,82 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'mixins/function' as *;
3
- @use 'mixins/config' as *;
4
-
5
- @include b(display-item) {
6
- @include e(edit-icon, true) {
7
- margin-left: 8px;
8
- }
9
- @include e(image, true) {
10
- cursor: pointer;
11
- object-fit: cover;
12
- overflow: hidden;
13
- width: 30px;
14
- }
15
- @include e(icon__copy, true) {
16
- cursor: pointer;
17
- color: getCssVar('color-primary');
18
- text-decoration: none;
19
- outline: none;
20
- transition: color 0.3s;
21
- margin-inline-start: 4px;
22
- vertical-align: sub;
23
- }
24
- @include e(pre, true) {
25
- padding: 0;
26
- overflow: auto;
27
- font-size: 85%;
28
- line-height: 1.45;
29
- background-color: getCssVar('color-primary-light-9');
30
- border-radius: 3px;
31
- width: unset;
32
- }
33
- @include e(badge, true) {
34
- &.is-list {
35
- .#{$plus-namespace
36
- + -display-item__badge__item}
37
- + .#{$plus-namespace
38
- + -display-item__badge__item} {
39
- padding-left: 8px;
40
- }
41
- }
42
-
43
- @include e(badge__dot) {
44
- position: relative;
45
- top: -1px;
46
- display: inline-block;
47
- width: 6px;
48
- height: 6px;
49
- vertical-align: middle;
50
- border-radius: 50%;
51
-
52
- &--primary {
53
- background-color: getCssVar('color-primary');
54
- }
55
- &--success {
56
- background-color: getCssVar('color-success');
57
- }
58
- &--info {
59
- background-color: getCssVar('color-info');
60
- }
61
- &--warning {
62
- background-color: getCssVar('color-warning');
63
- }
64
- &--danger {
65
- background-color: getCssVar('color-danger');
66
- }
67
- }
68
- }
69
- @include e(form, true) {
70
- .#{$plus-namespace + -form-item} {
71
- margin-bottom: 0;
72
- }
73
- }
74
-
75
- @include e(link, true) {
76
- max-width: 100%;
77
- @include elb(link__inner) {
78
- width: 100%;
79
- display: inline-block;
80
- }
81
- }
82
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/function' as *;
3
+ @use 'mixins/config' as *;
4
+
5
+ @include b(display-item) {
6
+ @include e(edit-icon, true) {
7
+ margin-left: 8px;
8
+ }
9
+ @include e(image, true) {
10
+ cursor: pointer;
11
+ object-fit: cover;
12
+ overflow: hidden;
13
+ width: 30px;
14
+ }
15
+ @include e(icon__copy, true) {
16
+ cursor: pointer;
17
+ color: getCssVar('color-primary');
18
+ text-decoration: none;
19
+ outline: none;
20
+ transition: color 0.3s;
21
+ margin-inline-start: 4px;
22
+ vertical-align: sub;
23
+ }
24
+ @include e(pre, true) {
25
+ padding: 0;
26
+ overflow: auto;
27
+ font-size: 85%;
28
+ line-height: 1.45;
29
+ background-color: getCssVar('color-primary-light-9');
30
+ border-radius: 3px;
31
+ width: unset;
32
+ }
33
+ @include e(badge, true) {
34
+ &.is-list {
35
+ .#{$plus-namespace
36
+ + -display-item__badge__item}
37
+ + .#{$plus-namespace
38
+ + -display-item__badge__item} {
39
+ padding-left: 8px;
40
+ }
41
+ }
42
+
43
+ @include e(badge__dot) {
44
+ position: relative;
45
+ top: -1px;
46
+ display: inline-block;
47
+ width: 6px;
48
+ height: 6px;
49
+ vertical-align: middle;
50
+ border-radius: 50%;
51
+
52
+ &--primary {
53
+ background-color: getCssVar('color-primary');
54
+ }
55
+ &--success {
56
+ background-color: getCssVar('color-success');
57
+ }
58
+ &--info {
59
+ background-color: getCssVar('color-info');
60
+ }
61
+ &--warning {
62
+ background-color: getCssVar('color-warning');
63
+ }
64
+ &--danger {
65
+ background-color: getCssVar('color-danger');
66
+ }
67
+ }
68
+ }
69
+ @include e(form, true) {
70
+ .#{$plus-namespace + -form-item} {
71
+ margin-bottom: 0;
72
+ }
73
+ }
74
+
75
+ @include e(link, true) {
76
+ max-width: 100%;
77
+ @include elb(link__inner) {
78
+ width: 100%;
79
+ display: inline-block;
80
+ }
81
+ }
82
+ }
@@ -1,16 +1,16 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'mixins/config' as *;
3
- @use 'mixins/function' as *;
4
-
5
- @include b(drawer-form) {
6
- .#{$el-namespace + -drawer__header } {
7
- border-bottom: 1px solid getCssVar('border-color');
8
- padding-top: calc(#{getCssVar('drawer-padding-primary')} / 2);
9
- padding-bottom: calc(#{getCssVar('drawer-padding-primary')} / 2);
10
- margin-bottom: 0;
11
- }
12
- .#{$el-namespace + -drawer__footer } {
13
- border-top: 1px solid getCssVar('border-color');
14
- padding-bottom: calc(#{getCssVar('drawer-padding-primary')} / 2);
15
- }
16
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/config' as *;
3
+ @use 'mixins/function' as *;
4
+
5
+ @include b(drawer-form) {
6
+ .#{$el-namespace + -drawer__header } {
7
+ border-bottom: 1px solid getCssVar('border-color');
8
+ padding-top: calc(#{getCssVar('drawer-padding-primary')} / 2);
9
+ padding-bottom: calc(#{getCssVar('drawer-padding-primary')} / 2);
10
+ margin-bottom: 0;
11
+ }
12
+ .#{$el-namespace + -drawer__footer } {
13
+ border-top: 1px solid getCssVar('border-color');
14
+ padding-bottom: calc(#{getCssVar('drawer-padding-primary')} / 2);
15
+ }
16
+ }
@@ -1,34 +1,34 @@
1
- @use 'mixins/config' as *;
2
- @use 'mixins/mixins' as *;
3
- @use 'mixins/function' as *;
4
-
5
- @include b(form) {
6
- &.no-has-label {
7
- & + .#{$el-namespace + -form-item__label} {
8
- width: 0;
9
- padding: 0;
10
- }
11
- }
12
-
13
- @include e(footer) {
14
- display: flex;
15
- justify-content: flex-end;
16
- }
17
- @include e(group__item) {
18
- margin-bottom: 20px;
19
- @include e(group__item__icon) {
20
- display: flex;
21
- align-items: center;
22
-
23
- @include elb(icon) {
24
- margin-right: 5px;
25
- }
26
- }
27
- }
28
-
29
- .#{$plus-namespace + -form-item-extra} {
30
- color: getCssVar('text-color-placeholder');
31
- font-size: getCssVar('font-size-base');
32
- margin-bottom: 18px;
33
- }
34
- }
1
+ @use 'mixins/config' as *;
2
+ @use 'mixins/mixins' as *;
3
+ @use 'mixins/function' as *;
4
+
5
+ @include b(form) {
6
+ &.no-has-label {
7
+ & + .#{$el-namespace + -form-item__label} {
8
+ width: 0;
9
+ padding: 0;
10
+ }
11
+ }
12
+
13
+ @include e(footer) {
14
+ display: flex;
15
+ justify-content: flex-end;
16
+ }
17
+ @include e(group__item) {
18
+ margin-bottom: 20px;
19
+ @include e(group__item__icon) {
20
+ display: flex;
21
+ align-items: center;
22
+
23
+ @include elb(icon) {
24
+ margin-right: 5px;
25
+ }
26
+ }
27
+ }
28
+
29
+ .#{$plus-namespace + -form-item-extra} {
30
+ color: getCssVar('text-color-placeholder');
31
+ font-size: getCssVar('font-size-base');
32
+ margin-bottom: 18px;
33
+ }
34
+ }