@wpmoo/ui 1.0.0-rc.3 → 1.0.0-rc.4
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/ASSET_LICENSE.md +3 -1
- package/README.md +51 -123
- package/certification.json +14 -2
- package/dist/assets/css/moo-ui.css +55 -15
- package/dist/assets/css/moo-ui.min.css +3 -3
- package/dist/assets/css/moo.css +49 -15
- package/dist/assets/css/moo.min.css +3 -3
- package/dist/js/chart.js +1 -1
- package/dist/js/chart.min.js +1 -1
- package/dist/js/combobox.js +71 -18
- package/dist/js/context-menu.js +1 -1
- package/dist/js/datatable.js +1 -1
- package/dist/js/datepicker.js +1 -1
- package/dist/js/datepicker.min.js +1 -1
- package/dist/js/moo-ui.js +18950 -0
- package/dist/js/moo-ui.min.js +27 -0
- package/dist/js/sidebar.js +1 -1
- package/dist/js/slider.js +1 -1
- package/package.json +12 -4
- package/scss/_components.scss +73 -0
- package/scss/_settings.scss +8 -0
- package/scss/components/_accordion.scss +59 -0
- package/scss/components/_alert.scss +94 -0
- package/scss/components/_avatar.scss +154 -0
- package/scss/components/_badge.scss +33 -0
- package/scss/components/_breadcrumb.scss +130 -0
- package/scss/components/_button.scss +228 -0
- package/scss/components/_button_group.scss +51 -0
- package/scss/components/_card.scss +142 -0
- package/scss/components/_checkbox.scss +115 -0
- package/scss/components/_close_button.scss +59 -0
- package/scss/components/_collapsible.scss +43 -0
- package/scss/components/_combobox.scss +258 -0
- package/scss/components/_context-menu.scss +28 -0
- package/scss/components/_datatable.scss +1082 -0
- package/scss/components/_datepicker.scss +236 -0
- package/scss/components/_dialog.scss +66 -0
- package/scss/components/_dropdown.scss +202 -0
- package/scss/components/_field.scss +125 -0
- package/scss/components/_input.scss +35 -0
- package/scss/components/_input_group.scss +201 -0
- package/scss/components/_kbd.scss +10 -0
- package/scss/components/_menubar.scss +16 -0
- package/scss/components/_navigation.scss +41 -0
- package/scss/components/_pagination.scss +70 -0
- package/scss/components/_popover.scss +47 -0
- package/scss/components/_progress.scss +7 -0
- package/scss/components/_radio_group.scss +9 -0
- package/scss/components/_select.scss +7 -0
- package/scss/components/_separator.scss +15 -0
- package/scss/components/_sheet.scss +32 -0
- package/scss/components/_sidebar.scss +7 -0
- package/scss/components/_skeleton.scss +17 -0
- package/scss/components/_slider.scss +214 -0
- package/scss/components/_spinner.scss +17 -0
- package/scss/components/_switch.scss +25 -0
- package/scss/components/_table.scss +7 -0
- package/scss/components/_tabs.scss +139 -0
- package/scss/components/_textarea.scss +7 -0
- package/scss/components/_toast.scss +119 -0
- package/scss/components/_toggle_group.scss +19 -0
- package/scss/components/_tooltip.scss +83 -0
- package/scss/components/sidebar/_collapsed.scss +187 -0
- package/scss/components/sidebar/_identity.scss +72 -0
- package/scss/components/sidebar/_inset.scss +59 -0
- package/scss/components/sidebar/_layout.scss +176 -0
- package/scss/components/sidebar/_menus.scss +236 -0
- package/scss/foundations/_core_global_primitives.scss +5 -0
- package/scss/foundations/_core_state_layer.scss +25 -0
- package/scss/foundations/_focus.scss +139 -0
- package/scss/foundations/_overlay_backdrop.scss +19 -0
- package/scss/moo-core.scss +47 -0
- package/scss/moo-ui.scss +50 -0
- package/scss/settings/_bootstrap_overrides.scss +11 -0
- package/scss/settings/_component_variables.scss +479 -0
- package/scss/settings/_forms.scss +65 -0
- package/scss/settings/_palette.scss +132 -0
- package/scss/themes/_scoped_core.scss +239 -0
- package/scss/themes/_standalone_root.scss +117 -0
- package/scss/utilities/_scroll_fade.scss +193 -0
- package/scss/utilities/_scroll_fade_primitives.scss +43 -0
- package/THIRD_PARTY_NOTICES.md +0 -53
package/dist/assets/css/moo.css
CHANGED
|
@@ -3858,6 +3858,10 @@
|
|
|
3858
3858
|
color: #fff !important;
|
|
3859
3859
|
background-color: RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
3860
3860
|
}
|
|
3861
|
+
.form-label,
|
|
3862
|
+
.form-check-label {
|
|
3863
|
+
user-select: none;
|
|
3864
|
+
}
|
|
3861
3865
|
:is(.btn, a, button, summary, [tabindex]):not(input, textarea, select):focus-visible,
|
|
3862
3866
|
:is(.form-control, .form-select, .form-check-input):focus-visible {
|
|
3863
3867
|
border-color: var(--moo-ring);
|
|
@@ -4108,6 +4112,21 @@
|
|
|
4108
4112
|
.form-control:not(textarea):not([type="file"]):not(.form-control-sm, .form-control-lg) {
|
|
4109
4113
|
min-height: calc(2rem + var(--bs-border-width) * 2);
|
|
4110
4114
|
}
|
|
4115
|
+
.form-control[type="file"]:not(.form-control-sm, .form-control-lg)::file-selector-button {
|
|
4116
|
+
min-height: calc(2rem - var(--bs-border-width) * 2);
|
|
4117
|
+
}
|
|
4118
|
+
.form-control[type="time"] {
|
|
4119
|
+
appearance: none;
|
|
4120
|
+
position: relative;
|
|
4121
|
+
}
|
|
4122
|
+
.form-control[type="time"]::-webkit-calendar-picker-indicator {
|
|
4123
|
+
position: absolute;
|
|
4124
|
+
inset: 0;
|
|
4125
|
+
width: 100%;
|
|
4126
|
+
height: 100%;
|
|
4127
|
+
opacity: 0;
|
|
4128
|
+
cursor: pointer;
|
|
4129
|
+
}
|
|
4111
4130
|
.form-control:disabled,
|
|
4112
4131
|
.form-select:disabled {
|
|
4113
4132
|
opacity: var(--moo-disabled-control-opacity);
|
|
@@ -4510,9 +4529,9 @@ label.btn {
|
|
|
4510
4529
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--moo-ring) 50%, transparent);
|
|
4511
4530
|
}
|
|
4512
4531
|
.card {
|
|
4513
|
-
--bs-card-bg: var(--
|
|
4532
|
+
--bs-card-bg: color-mix(in srgb, var(--bs-secondary-bg) 5%, var(--bs-body-bg));
|
|
4514
4533
|
--bs-card-color: var(--moo-foreground);
|
|
4515
|
-
--bs-card-border-color: var(--
|
|
4534
|
+
--bs-card-border-color: color-mix(in srgb, var(--bs-body-color) 10%, transparent);
|
|
4516
4535
|
--bs-card-border-radius: var(--bs-border-radius-xl);
|
|
4517
4536
|
--bs-card-inner-border-radius: calc(var(--bs-card-border-radius) - var(--bs-card-border-width));
|
|
4518
4537
|
--bs-card-box-shadow: var(--bs-box-shadow-sm);
|
|
@@ -4520,6 +4539,7 @@ label.btn {
|
|
|
4520
4539
|
--bs-card-cap-color: var(--moo-foreground);
|
|
4521
4540
|
--bs-card-title-color: var(--moo-foreground);
|
|
4522
4541
|
--bs-card-subtitle-color: var(--moo-muted-foreground);
|
|
4542
|
+
--moo-card-footer-bg: color-mix(in srgb, var(--bs-secondary-bg) 20%, var(--bs-body-bg));
|
|
4523
4543
|
--moo-card-spacing: 1rem;
|
|
4524
4544
|
gap: var(--moo-card-spacing);
|
|
4525
4545
|
padding-block: var(--moo-card-spacing);
|
|
@@ -4532,6 +4552,10 @@ label.btn {
|
|
|
4532
4552
|
.card:has(> .card-image) {
|
|
4533
4553
|
padding-block-start: 0;
|
|
4534
4554
|
}
|
|
4555
|
+
.card[data-bs-theme="dark"], :where([data-bs-theme="dark"]) .card:not([data-bs-theme="light"]):not([data-bs-theme="light"] *) {
|
|
4556
|
+
--bs-card-bg: color-mix(in srgb, var(--bs-secondary-bg) 30%, var(--bs-body-bg));
|
|
4557
|
+
--moo-card-footer-bg: color-mix(in srgb, var(--bs-secondary-bg) 50%, var(--bs-body-bg));
|
|
4558
|
+
}
|
|
4535
4559
|
.card--sm {
|
|
4536
4560
|
--moo-card-spacing: 0.75rem;
|
|
4537
4561
|
}
|
|
@@ -4568,7 +4592,7 @@ label.btn {
|
|
|
4568
4592
|
gap: 0.5rem;
|
|
4569
4593
|
padding: var(--moo-card-spacing);
|
|
4570
4594
|
border-top: var(--bs-card-border-width) solid var(--bs-card-border-color);
|
|
4571
|
-
background-color: var(--moo-
|
|
4595
|
+
background-color: var(--moo-card-footer-bg);
|
|
4572
4596
|
}
|
|
4573
4597
|
.card-img-top {
|
|
4574
4598
|
border-top-left-radius: var(--bs-card-border-radius);
|
|
@@ -5870,6 +5894,12 @@ label.btn {
|
|
|
5870
5894
|
.slider--vertical {
|
|
5871
5895
|
width: max-content;
|
|
5872
5896
|
}
|
|
5897
|
+
.slider--vertical [data-slider-output] {
|
|
5898
|
+
display: inline-block;
|
|
5899
|
+
min-width: 3ch;
|
|
5900
|
+
text-align: end;
|
|
5901
|
+
font-variant-numeric: tabular-nums;
|
|
5902
|
+
}
|
|
5873
5903
|
.slider--vertical .slider-track {
|
|
5874
5904
|
justify-content: center;
|
|
5875
5905
|
justify-self: center;
|
|
@@ -6503,9 +6533,8 @@ label.btn {
|
|
|
6503
6533
|
gap: 0.75rem;
|
|
6504
6534
|
width: 100%;
|
|
6505
6535
|
}
|
|
6506
|
-
.moo-datepicker-time-row
|
|
6507
|
-
|
|
6508
|
-
width: auto;
|
|
6536
|
+
.moo-datepicker-time-row > :first-child {
|
|
6537
|
+
min-width: 0;
|
|
6509
6538
|
}
|
|
6510
6539
|
.moo-datepicker-time {
|
|
6511
6540
|
flex: 0 0 auto;
|
|
@@ -6822,10 +6851,11 @@ label.btn {
|
|
|
6822
6851
|
display: none;
|
|
6823
6852
|
}
|
|
6824
6853
|
.combobox-option {
|
|
6825
|
-
display:
|
|
6854
|
+
display: grid;
|
|
6855
|
+
grid-template-columns: minmax(0, 1fr) 1rem;
|
|
6826
6856
|
align-items: center;
|
|
6827
6857
|
gap: 0.5rem;
|
|
6828
|
-
padding-inline-end:
|
|
6858
|
+
padding-inline-end: 0.375rem;
|
|
6829
6859
|
line-height: var(--moo-combobox-option-line-height);
|
|
6830
6860
|
}
|
|
6831
6861
|
.combobox-option__content {
|
|
@@ -6834,9 +6864,18 @@ label.btn {
|
|
|
6834
6864
|
flex: 1 1 auto;
|
|
6835
6865
|
flex-direction: column;
|
|
6836
6866
|
}
|
|
6837
|
-
.combobox-option[aria-
|
|
6867
|
+
.combobox:not(.combobox--multiple) .combobox-option[aria-selected="true"],
|
|
6868
|
+
.combobox-option[aria-current="true"] {
|
|
6838
6869
|
background-color: var(--bs-dropdown-link-hover-bg);
|
|
6839
6870
|
}
|
|
6871
|
+
.combobox:not(.combobox--multiple)
|
|
6872
|
+
.combobox-menu:has(.combobox-option:not([aria-selected="true"]):hover)
|
|
6873
|
+
.combobox-option[aria-selected="true"]:not(:hover):not([aria-current="true"]),
|
|
6874
|
+
.combobox:not(.combobox--multiple)
|
|
6875
|
+
.combobox-menu:has(.combobox-option[aria-current="true"]:not([aria-selected="true"]))
|
|
6876
|
+
.combobox-option[aria-selected="true"]:not([aria-current="true"]) {
|
|
6877
|
+
background-color: transparent;
|
|
6878
|
+
}
|
|
6840
6879
|
.combobox-option[aria-selected="true"] {
|
|
6841
6880
|
font-weight: 500;
|
|
6842
6881
|
}
|
|
@@ -6858,8 +6897,7 @@ label.btn {
|
|
|
6858
6897
|
}
|
|
6859
6898
|
.combobox-option__check {
|
|
6860
6899
|
display: inline-flex;
|
|
6861
|
-
|
|
6862
|
-
margin-inline-start: auto;
|
|
6900
|
+
justify-self: end;
|
|
6863
6901
|
visibility: hidden;
|
|
6864
6902
|
}
|
|
6865
6903
|
.combobox-option[aria-selected="true"] .combobox-option__check {
|
|
@@ -7746,10 +7784,6 @@ label.btn {
|
|
|
7746
7784
|
.datatable--release-review {
|
|
7747
7785
|
--moo-datatable-min-width: 64rem;
|
|
7748
7786
|
}
|
|
7749
|
-
.form-label,
|
|
7750
|
-
.form-check-label {
|
|
7751
|
-
user-select: none;
|
|
7752
|
-
}
|
|
7753
7787
|
}
|
|
7754
7788
|
|
|
7755
7789
|
:where(html, body)[data-bs-theme="dark"] .moo-ui:not([data-bs-theme]) .form-select,
|