@schukai/monster 5.1.0 → 5.1.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/CHANGELOG.md +20 -0
- package/package.json +1 -1
- package/source/components/datatable/stylesheet/datatable.mjs +1 -1
- package/source/components/datatable/stylesheet/filter-controls-defaults.mjs +1 -1
- package/source/components/form/control-bar.mjs +135 -9
- package/source/components/form/stylesheet/digits.mjs +1 -1
- package/source/components/form/stylesheet/field-layout.mjs +1 -1
- package/source/components/form/stylesheet/field-set.mjs +1 -1
- package/source/components/form/stylesheet/form.mjs +1 -1
- package/source/components/form/stylesheet/input-group.mjs +1 -1
- package/source/components/form/stylesheet/login.mjs +1 -1
- package/source/components/form/stylesheet/popper-button.mjs +1 -1
- package/source/components/form/stylesheet/register-wizard.mjs +1 -1
- package/source/components/host/stylesheet/host.mjs +1 -1
- package/source/components/layout/stylesheet/overlay.mjs +1 -1
- package/source/components/style/form.css +1 -1
- package/source/components/style/form.pcss +5 -0
- package/source/components/stylesheet/form.mjs +1 -1
- package/source/components/tree-menu/stylesheet/tree-menu.mjs +1 -1
- package/source/types/version.mjs +1 -1
- package/test/cases/components/form/button-bar.mjs +100 -0
- package/test/cases/components/form/control-bar.mjs +223 -0
- package/test/cases/components/style/form-controls.mjs +9 -0
- package/test/cases/dom/early-options-contract.mjs +2 -1
|
@@ -11,6 +11,15 @@ const generatedStyleSheet = readFileSync(
|
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
describe("Global form controls", () => {
|
|
14
|
+
it("gives native select options a complete theme color pair", () => {
|
|
15
|
+
expect(formSource).to.match(
|
|
16
|
+
/select option \{[^}]*color: var\(--monster-color-primary-1\);[^}]*background-color: var\(--monster-bg-color-primary-1\);/s,
|
|
17
|
+
);
|
|
18
|
+
expect(generatedStyleSheet).to.match(
|
|
19
|
+
/select option[^}]*\{color:var\(--monster-color-primary-1\);background-color:var\(--monster-bg-color-primary-1\)\}/u,
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
|
|
14
23
|
it("preserves native readonly styling across shadow tree scopes", () => {
|
|
15
24
|
expect(formSource).to.match(
|
|
16
25
|
/input\[readonly\]:not\(\[type="checkbox"\]\):not\(\[type="radio"\]\),\s*textarea\[readonly\] \{[^}]*background-color: var\(--monster-bg-color-primary-2\);[^}]*color: var\(--monster-color-primary-2\);[^}]*cursor: default;/s,
|
|
@@ -26,7 +26,8 @@ describe("Early options source contract (#596)", () => {
|
|
|
26
26
|
1,
|
|
27
27
|
);
|
|
28
28
|
});
|
|
29
|
-
it("has no statically resolved early options access in library getters", ()
|
|
29
|
+
it("has no statically resolved early options access in library getters", function () {
|
|
30
|
+
this.timeout(10_000);
|
|
30
31
|
const root = new URL("../../../", import.meta.url);
|
|
31
32
|
const files = globSync("source/**/*.mjs", { cwd: root }).sort();
|
|
32
33
|
assert.ok(files.length > 300);
|