webcoreui 0.7.0 → 0.8.1

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 (54) hide show
  1. package/README.md +17 -7
  2. package/astro.d.ts +6 -0
  3. package/astro.js +4 -0
  4. package/components/AspectRatio/aspect-ratio.module.scss +10 -10
  5. package/components/Banner/banner.module.scss +57 -57
  6. package/components/Breadcrumb/breadcrumb.module.scss +26 -26
  7. package/components/Button/button.module.scss +4 -0
  8. package/components/Carousel/carousel.module.scss +1 -1
  9. package/components/Collapsible/collapsible.module.scss +29 -29
  10. package/components/ConditionalWrapper/conditionalwrapper.ts +1 -0
  11. package/components/DataTable/datatable.module.scss +102 -102
  12. package/components/Footer/footer.module.scss +61 -61
  13. package/components/Group/group.module.scss +43 -43
  14. package/components/Kbd/kbd.module.scss +8 -8
  15. package/components/List/list.module.scss +91 -91
  16. package/components/Masonry/masonry.module.scss +1 -1
  17. package/components/Modal/modal.module.scss +110 -110
  18. package/components/Pagination/pagination.module.scss +1 -1
  19. package/components/Popover/popover.module.scss +52 -52
  20. package/components/Ribbon/Ribbon.astro +28 -0
  21. package/components/Ribbon/Ribbon.svelte +26 -0
  22. package/components/Ribbon/Ribbon.tsx +33 -0
  23. package/components/Ribbon/ribbon.module.scss +84 -0
  24. package/components/Ribbon/ribbon.ts +16 -0
  25. package/components/Select/select.module.scss +25 -25
  26. package/components/Sheet/sheet.module.scss +68 -68
  27. package/components/Sidebar/sidebar.module.scss +43 -43
  28. package/components/Skeleton/Skeleton.astro +35 -0
  29. package/components/Skeleton/Skeleton.svelte +31 -0
  30. package/components/Skeleton/Skeleton.tsx +34 -0
  31. package/components/Skeleton/skeleton.module.scss +68 -0
  32. package/components/Skeleton/skeleton.ts +9 -0
  33. package/components/Slider/slider.module.scss +68 -68
  34. package/components/Spoiler/spoiler.module.scss +40 -40
  35. package/components/Stepper/stepper.module.scss +102 -102
  36. package/components/Table/Table.tsx +1 -1
  37. package/components/Textarea/textarea.module.scss +36 -36
  38. package/package.json +2 -2
  39. package/react.d.ts +6 -0
  40. package/react.js +4 -0
  41. package/scss/config/color-palette.scss +2 -0
  42. package/scss/config/css-values.scss +2 -0
  43. package/scss/config/layout.scss +2 -0
  44. package/scss/config/mixins.scss +7 -0
  45. package/scss/config/typography.scss +2 -0
  46. package/scss/config/variables.scss +2 -0
  47. package/scss/config.scss +7 -7
  48. package/scss/global.scss +4 -4
  49. package/scss/index.scss +3 -3
  50. package/scss/resets.scss +5 -5
  51. package/scss/setup.scss +7 -1
  52. package/scss/webcore.config.scss +0 -0
  53. package/svelte.d.ts +6 -0
  54. package/svelte.js +4 -0
@@ -1,61 +1,61 @@
1
- @import '../../scss/config.scss';
2
-
3
- .footer {
4
- @include border(top, primary-50);
5
-
6
- .column-title {
7
- @include spacing(mb-default);
8
-
9
- display: block;
10
- }
11
-
12
- .column {
13
- @include spacing(0);
14
-
15
- list-style-type: none;
16
-
17
- a {
18
- @include typography(primary-10, none);
19
-
20
- &:hover,
21
- &.active {
22
- @include typography(primary, underline);
23
- }
24
- }
25
- }
26
- }
27
-
28
- .container {
29
- @include spacing(auto-default, px-default);
30
-
31
- max-width: 1200px;
32
- }
33
-
34
- .wrapper {
35
- @include layout(flex, column, default, h-between);
36
- }
37
-
38
- .columns {
39
- @include layout(flex, column, default);
40
- }
41
-
42
- .subtext {
43
- @include border(top, primary-60);
44
- @include spacing(mt-default, py-default);
45
- @include layout(flex, column, default, h-between);
46
-
47
- span {
48
- @include typography(md, primary-20);
49
- }
50
- }
51
-
52
- @include media('sm') {
53
- .wrapper,
54
- .subtext {
55
- @include layout(row, none);
56
- }
57
-
58
- .columns {
59
- @include layout(row, '5xl');
60
- }
61
- }
1
+ @use '../../scss/config.scss' as *;
2
+
3
+ .footer {
4
+ @include border(top, primary-50);
5
+
6
+ .column-title {
7
+ @include spacing(mb-default);
8
+
9
+ display: block;
10
+ }
11
+
12
+ .column {
13
+ @include spacing(0);
14
+
15
+ list-style-type: none;
16
+
17
+ a {
18
+ @include typography(primary-10, none);
19
+
20
+ &:hover,
21
+ &.active {
22
+ @include typography(primary, underline);
23
+ }
24
+ }
25
+ }
26
+ }
27
+
28
+ .container {
29
+ @include spacing(auto-default, px-default);
30
+
31
+ max-width: 1200px;
32
+ }
33
+
34
+ .wrapper {
35
+ @include layout(flex, column, default, h-between);
36
+ }
37
+
38
+ .columns {
39
+ @include layout(flex, column, default);
40
+ }
41
+
42
+ .subtext {
43
+ @include border(top, primary-60);
44
+ @include spacing(mt-default, py-default);
45
+ @include layout(flex, column, default, h-between);
46
+
47
+ span {
48
+ @include typography(md, primary-20);
49
+ }
50
+ }
51
+
52
+ @include media('sm') {
53
+ .wrapper,
54
+ .subtext {
55
+ @include layout(row, none);
56
+ }
57
+
58
+ .columns {
59
+ @include layout(row, '5xl');
60
+ }
61
+ }
@@ -1,43 +1,43 @@
1
- @import '../../scss/config.scss';
2
-
3
- .group {
4
- @include layout(flex, none);
5
- @include visibility(auto);
6
-
7
- button,
8
- span {
9
- @include border-radius(none);
10
-
11
- &:first-child {
12
- @include border-radius(left, md);
13
- }
14
-
15
- &:last-child {
16
- @include border-radius(right, md);
17
- }
18
- }
19
-
20
- &.separator button:not(:last-child),
21
- &.separator span:not(:last-child) {
22
- @include border(1px, right, primary-70);
23
- }
24
-
25
- &.outline button
26
- &.outline span {
27
- @include border(1px, primary-20);
28
- box-shadow: none;
29
-
30
- &:hover {
31
- @include border(1px, primary);
32
- box-shadow: none;
33
- }
34
-
35
- &:first-child {
36
- @include border(right, 0);
37
- }
38
-
39
- &:last-child {
40
- @include border(left, 0);
41
- }
42
- }
43
- }
1
+ @use '../../scss/config.scss' as *;
2
+
3
+ .group {
4
+ @include layout(flex, none);
5
+ @include visibility(auto);
6
+
7
+ button,
8
+ span {
9
+ @include border-radius(none);
10
+
11
+ &:first-child {
12
+ @include border-radius(left, md);
13
+ }
14
+
15
+ &:last-child {
16
+ @include border-radius(right, md);
17
+ }
18
+ }
19
+
20
+ &.separator button:not(:last-child),
21
+ &.separator span:not(:last-child) {
22
+ @include border(1px, right, primary-70);
23
+ }
24
+
25
+ &.outline button
26
+ &.outline span {
27
+ @include border(1px, primary-20);
28
+ box-shadow: none;
29
+
30
+ &:hover {
31
+ @include border(1px, primary);
32
+ box-shadow: none;
33
+ }
34
+
35
+ &:first-child {
36
+ @include border(right, 0);
37
+ }
38
+
39
+ &:last-child {
40
+ @include border(left, 0);
41
+ }
42
+ }
43
+ }
@@ -1,8 +1,8 @@
1
- @import '../../scss/config.scss';
2
-
3
- .kbd {
4
- @include background(primary-50);
5
- @include border-radius(md);
6
- @include typography(md, regular);
7
- @include spacing(py-xs, px-xs);
8
- }
1
+ @use '../../scss/config.scss' as *;
2
+
3
+ .kbd {
4
+ @include background(primary-50);
5
+ @include border-radius(md);
6
+ @include typography(md, regular);
7
+ @include spacing(py-xs, px-xs);
8
+ }
@@ -1,91 +1,91 @@
1
- @import '../../scss/config.scss';
2
-
3
- .list {
4
- @include spacing(0);
5
-
6
- overflow-y: auto;
7
- list-style-type: none;
8
-
9
- &:hover li[data-selected] {
10
- @include background(transparent);
11
- }
12
-
13
- li {
14
- @include transition(background);
15
- @include spacing(px-sm, py-xs, m-xs);
16
- @include layout(flex, sm, v-center);
17
- @include border-radius(md);
18
-
19
- &:not(.title, [data-disabled]) {
20
- cursor: pointer;
21
- }
22
-
23
- &:not(.title, [data-disabled]):hover,
24
- &[data-selected] {
25
- @include background(primary-40);
26
- }
27
-
28
- &[data-disabled],
29
- &[data-disabled] span {
30
- @include typography(primary-30);
31
-
32
- cursor: default;
33
- }
34
-
35
- &[data-hidden] {
36
- @include visibility(none);
37
- }
38
-
39
- &[data-id="w-no-results"] {
40
- @include layout(h-center);
41
- cursor: default;
42
-
43
- &:hover {
44
- @include background(transparent);
45
- }
46
- }
47
-
48
- &.title {
49
- @include typography(md, primary-20);
50
- @include spacing(m0);
51
-
52
- padding-bottom: 0;
53
-
54
- &:not(:first-child) {
55
- @include border(top, primary-50);
56
- }
57
- }
58
-
59
- svg {
60
- @include size(18px);
61
- pointer-events: none;
62
- }
63
-
64
- a,
65
- div {
66
- @include layout(flex, sm, v-center);
67
- @include typography(none);
68
- flex: 1;
69
- }
70
-
71
- div {
72
- pointer-events: none;
73
- }
74
-
75
- span {
76
- @include typography(md, primary-20);
77
- pointer-events: none;
78
- }
79
- }
80
- }
81
-
82
- .container {
83
- @include border-radius(md);
84
- @include border(primary-50);
85
-
86
- input {
87
- @include border(top, 0);
88
- @include border(left, 0);
89
- @include border(right, 0);
90
- }
91
- }
1
+ @use '../../scss/config.scss' as *;
2
+
3
+ .list {
4
+ @include spacing(0);
5
+
6
+ overflow-y: auto;
7
+ list-style-type: none;
8
+
9
+ &:hover li[data-selected] {
10
+ @include background(transparent);
11
+ }
12
+
13
+ li {
14
+ @include transition(background);
15
+ @include spacing(px-sm, py-xs, m-xs);
16
+ @include layout(flex, sm, v-center);
17
+ @include border-radius(md);
18
+
19
+ &:not(.title, [data-disabled]) {
20
+ cursor: pointer;
21
+ }
22
+
23
+ &:not(.title, [data-disabled]):hover,
24
+ &[data-selected] {
25
+ @include background(primary-40);
26
+ }
27
+
28
+ &[data-disabled],
29
+ &[data-disabled] span {
30
+ @include typography(primary-30);
31
+
32
+ cursor: default;
33
+ }
34
+
35
+ &[data-hidden] {
36
+ @include visibility(none);
37
+ }
38
+
39
+ &[data-id="w-no-results"] {
40
+ @include layout(h-center);
41
+ cursor: default;
42
+
43
+ &:hover {
44
+ @include background(transparent);
45
+ }
46
+ }
47
+
48
+ &.title {
49
+ @include typography(md, primary-20);
50
+ @include spacing(m0);
51
+
52
+ padding-bottom: 0;
53
+
54
+ &:not(:first-child) {
55
+ @include border(top, primary-50);
56
+ }
57
+ }
58
+
59
+ svg {
60
+ @include size(18px);
61
+ pointer-events: none;
62
+ }
63
+
64
+ a,
65
+ div {
66
+ @include layout(flex, sm, v-center);
67
+ @include typography(none);
68
+ flex: 1;
69
+ }
70
+
71
+ div {
72
+ pointer-events: none;
73
+ }
74
+
75
+ span {
76
+ @include typography(md, primary-20);
77
+ pointer-events: none;
78
+ }
79
+ }
80
+ }
81
+
82
+ .container {
83
+ @include border-radius(md);
84
+ @include border(primary-50);
85
+
86
+ input {
87
+ @include border(top, 0);
88
+ @include border(left, 0);
89
+ @include border(right, 0);
90
+ }
91
+ }
@@ -1,4 +1,4 @@
1
- @import '../../scss/config.scss';
1
+ @use '../../scss/config.scss' as *;
2
2
 
3
3
  body {
4
4
  --w-masonry-gap: 5px;
@@ -1,110 +1,110 @@
1
- @import '../../scss/config.scss';
2
-
3
- .modal {
4
- @include transition();
5
- @include position(fixed, 't50%', 'l50%');
6
- @include spacing(m0, p-default);
7
- @include layer(modal);
8
- @include visibility(block, 0);
9
- @include border(primary-50);
10
- @include background(primary-70);
11
- @include typography(primary);
12
- @include border-radius(md);
13
- @include size('w90%');
14
-
15
- transform: translate(-50%, calc(-50% + 15px));
16
- max-width: 500px;
17
- pointer-events: none;
18
-
19
- &[data-show="true"] {
20
- @include visibility(1);
21
-
22
- transform: translate(-50%, -50%);
23
- pointer-events: all;
24
-
25
- + .overlay {
26
- @include visibility(1);
27
- pointer-events: all;
28
- }
29
- }
30
-
31
- &.transparent {
32
- @include border(0);
33
- @include spacing(p0);
34
- @include size('wfit-content');
35
- @include background(transparent);
36
- }
37
-
38
- &.info {
39
- @include border(info);
40
-
41
- .title {
42
- @include typography(info);
43
- }
44
- }
45
-
46
- &.success {
47
- @include border(success);
48
-
49
- .title {
50
- @include typography(success);
51
- }
52
- }
53
-
54
- &.warning {
55
- @include border(warning);
56
-
57
- .title {
58
- @include typography(warning);
59
- }
60
- }
61
-
62
- &.alert {
63
- @include border(alert);
64
-
65
- .title {
66
- @include typography(alert);
67
- }
68
- }
69
-
70
- .close {
71
- @include position(absolute, t10px, r10px);
72
- @include spacing(p-xs);
73
-
74
- svg {
75
- @include size(10px);
76
- }
77
- }
78
-
79
- .title {
80
- @include typography(lg);
81
- @include spacing(mb-xs);
82
- @include layout(flex, v-center, xs);
83
-
84
- svg {
85
- @include size(20px);
86
- }
87
- }
88
-
89
- .subTitle {
90
- @include typography(primary-20);
91
- @include spacing(mb-xs);
92
- }
93
- }
94
-
95
- .overlay {
96
- @include transition(opacity);
97
- @include position(fixed);
98
- @include background(overlay);
99
- @include layer(header);
100
- @include visibility(0);
101
-
102
- inset: 0;
103
- pointer-events: none;
104
- }
105
-
106
- @include media(xs) {
107
- .modal {
108
- @include size('wauto');
109
- }
110
- }
1
+ @use '../../scss/config.scss' as *;
2
+
3
+ .modal {
4
+ @include transition();
5
+ @include position(fixed, 't50%', 'l50%');
6
+ @include spacing(m0, p-default);
7
+ @include layer(modal);
8
+ @include visibility(block, 0);
9
+ @include border(primary-50);
10
+ @include background(primary-70);
11
+ @include typography(primary);
12
+ @include border-radius(md);
13
+ @include size('w90%');
14
+
15
+ transform: translate(-50%, calc(-50% + 15px));
16
+ max-width: 500px;
17
+ pointer-events: none;
18
+
19
+ &[data-show="true"] {
20
+ @include visibility(1);
21
+
22
+ transform: translate(-50%, -50%);
23
+ pointer-events: all;
24
+
25
+ + .overlay {
26
+ @include visibility(1);
27
+ pointer-events: all;
28
+ }
29
+ }
30
+
31
+ &.transparent {
32
+ @include border(0);
33
+ @include spacing(p0);
34
+ @include size('wfit-content');
35
+ @include background(transparent);
36
+ }
37
+
38
+ &.info {
39
+ @include border(info);
40
+
41
+ .title {
42
+ @include typography(info);
43
+ }
44
+ }
45
+
46
+ &.success {
47
+ @include border(success);
48
+
49
+ .title {
50
+ @include typography(success);
51
+ }
52
+ }
53
+
54
+ &.warning {
55
+ @include border(warning);
56
+
57
+ .title {
58
+ @include typography(warning);
59
+ }
60
+ }
61
+
62
+ &.alert {
63
+ @include border(alert);
64
+
65
+ .title {
66
+ @include typography(alert);
67
+ }
68
+ }
69
+
70
+ .close {
71
+ @include position(absolute, t10px, r10px);
72
+ @include spacing(p-xs);
73
+
74
+ svg {
75
+ @include size(10px);
76
+ }
77
+ }
78
+
79
+ .title {
80
+ @include typography(lg);
81
+ @include spacing(mb-xs);
82
+ @include layout(flex, v-center, xs);
83
+
84
+ svg {
85
+ @include size(20px);
86
+ }
87
+ }
88
+
89
+ .subTitle {
90
+ @include typography(primary-20);
91
+ @include spacing(mb-xs);
92
+ }
93
+ }
94
+
95
+ .overlay {
96
+ @include transition(opacity);
97
+ @include position(fixed);
98
+ @include background(overlay);
99
+ @include layer(header);
100
+ @include visibility(0);
101
+
102
+ inset: 0;
103
+ pointer-events: none;
104
+ }
105
+
106
+ @include media(xs) {
107
+ .modal {
108
+ @include size('wauto');
109
+ }
110
+ }
@@ -1,4 +1,4 @@
1
- @import '../../scss/config.scss';
1
+ @use '../../scss/config.scss' as *;
2
2
 
3
3
  .pagination {
4
4
  @include layout(flex, xs, wrap);