@wpmoo/ui 1.1.0 → 1.2.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.
@@ -37,6 +37,7 @@
37
37
  @import "components/button_group";
38
38
  @import "components/toggle_group";
39
39
  @import "components/card";
40
+ @import "components/empty";
40
41
  @import "components/table";
41
42
  @import "components/dropdown";
42
43
  @import "components/menubar";
@@ -51,6 +51,11 @@ $moo-alert-dismissible-close-space: $btn-close-width + ($btn-close-padding-x * 2
51
51
  --bs-alert-color: var(--moo-info);
52
52
  }
53
53
 
54
+ .alert .form-check:not(.form-switch) >
55
+ .form-check-input[type="checkbox"]:not(:checked):not(:indeterminate):not(.is-invalid):not(:invalid) {
56
+ border-color: var(--bs-alert-color);
57
+ }
58
+
54
59
  .alert-icon {
55
60
  display: flex;
56
61
  flex: 0 0 auto;
@@ -0,0 +1,60 @@
1
+ /* Empty */
2
+ .empty-state {
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: center;
6
+ justify-content: center;
7
+ width: 100%;
8
+ min-width: 0;
9
+ gap: $spacer * 1.5;
10
+ padding: $spacer * 1.5;
11
+ text-align: center;
12
+ border-width: var(--bs-border-width);
13
+ border-style: $moo-empty-border-style;
14
+ border-color: var(--bs-border-color);
15
+ border-radius: var(--bs-border-radius-lg);
16
+ }
17
+
18
+ .empty-state-header {
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: inherit;
22
+ gap: $spacer * 0.5;
23
+ }
24
+
25
+ .empty-state-icon {
26
+ display: inline-flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ padding: $spacer * 0.75;
30
+ font-size: $h3-font-size;
31
+ line-height: 1;
32
+ color: var(--bs-secondary-color);
33
+ background-color: var(--bs-tertiary-bg);
34
+ border-radius: var(--bs-border-radius-lg);
35
+ }
36
+
37
+ .empty-state-icon > [data-icon] {
38
+ width: $spacer * 1.5;
39
+ height: $spacer * 1.5;
40
+ }
41
+
42
+ .empty-state-title {
43
+ margin: 0;
44
+ font-size: $h5-font-size;
45
+ font-weight: $headings-font-weight;
46
+ line-height: $headings-line-height;
47
+ }
48
+
49
+ .empty-state-description {
50
+ margin: 0;
51
+ font-size: $font-size-base;
52
+ color: var(--bs-secondary-color);
53
+ }
54
+
55
+ .empty-state-actions {
56
+ display: flex;
57
+ flex-wrap: wrap;
58
+ justify-content: inherit;
59
+ gap: $spacer * 0.5;
60
+ }
@@ -114,3 +114,11 @@
114
114
  pointer-events: auto;
115
115
  transition-delay: 0s;
116
116
  }
117
+
118
+ .tabs--content-height > .tab-content {
119
+ display: block;
120
+ }
121
+
122
+ .tabs--content-height > .tab-content > .tab-pane:not(.active) {
123
+ display: none;
124
+ }
@@ -34,6 +34,39 @@
34
34
  flex: 0 0 auto;
35
35
  }
36
36
 
37
+ @supports (container-type: inline-size) {
38
+ .wrapper[data-layout="app"] > [data-slot="page"] {
39
+ container: moo-shell / inline-size;
40
+ }
41
+
42
+ .wrapper[data-layout="app"] > [data-slot="page"] > :is(header, main, footer) > :is(
43
+ .container,
44
+ .container-sm,
45
+ .container-md,
46
+ .container-lg,
47
+ .container-xl,
48
+ .container-xxl
49
+ ) {
50
+ max-width: none;
51
+ }
52
+
53
+ @each $breakpoint, $container-max-width in $container-max-widths {
54
+ @container moo-shell (min-width: #{map-get($grid-breakpoints, $breakpoint)}) {
55
+ $extend-breakpoint: true;
56
+ @each $name, $width in $grid-breakpoints {
57
+ @if $extend-breakpoint {
58
+ .wrapper[data-layout="app"] > [data-slot="page"] > :is(header, main, footer) > .container#{breakpoint-infix($name, $grid-breakpoints)} {
59
+ max-width: $container-max-width;
60
+ }
61
+ }
62
+ @if $breakpoint == $name {
63
+ $extend-breakpoint: false;
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+
37
70
  .wrapper[data-layout="app"] > [data-slot="page"] > main {
38
71
  display: flex;
39
72
  min-height: 0;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  *
@@ -8,6 +8,7 @@ $dropdown-item-padding-x: 0.375rem !default;
8
8
  $dropdown-header-padding-x: $dropdown-item-padding-x !default;
9
9
  $moo-small-font-size: 0.75rem !default;
10
10
  $moo-paragraph-margin-top: 0 !default;
11
+ $moo-empty-border-style: dashed !default;
11
12
  $moo-combobox-width: 12.5rem !default;
12
13
  $moo-combobox-multiple-width: $moo-combobox-width * 1.6 !default;
13
14
  $moo-combobox-menu-max-height: $input-height * 8 !default;