@madgex/design-system 12.0.0 → 12.0.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/README.md +7 -2
- package/dist/css/index.css +1 -1
- package/dist/js/components/mds-dropdown-nav.js +1 -0
- package/dist/js/index.js +1 -1
- package/package.json +4 -2
- package/src/components/_preview.njk +1 -1
- package/src/components/dropdown-nav/dropdown-nav.js +5 -13
- package/src/components/tabs/README.md +8 -9
- package/src/components/tabs/_template.njk +10 -33
- package/src/components/tabs/tab-id.njk +3 -4
- package/src/components/tabs/tabs.config.js +34 -59
- package/src/components/tabs/tabs.njk +0 -3
- package/src/components/tabs/tabs.scss +0 -21
- package/src/js/index.js +1 -2
- package/src/scss/constants/_vars.scss +8 -10
- package/tasks/vite-js-build.js +18 -0
|
@@ -4,23 +4,21 @@ $constant-size-half-gutter-width: $constant-size-gutter-width * 0.5;
|
|
|
4
4
|
$constant-size-quarter-gutter-width: $constant-size-gutter-width * 0.25;
|
|
5
5
|
$constant-size-one-and-half-gutter-width: $constant-size-gutter-width * 1.5;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
$input-border: var(--mds-size-border-width-base, 1px) solid
|
|
7
|
+
$regular-border: var(--mds-size-border-width-base, 1px) solid
|
|
8
|
+
var(--mds-color-border, #{$constant-color-neutral-lighter});
|
|
9
|
+
$input-border: var(--mds-size-border-width-base, 1px) solid
|
|
10
|
+
var(--mds-color-input-border, #{$constant-color-neutral-base});
|
|
10
11
|
$border-radius: var(--mds-size-border-radius-base, 4px);
|
|
11
12
|
$surface-background: var(--mds-color-background-surface, #fff);
|
|
12
|
-
$link-color: var(--mds-color-link-base, #
|
|
13
|
+
$link-color: var(--mds-color-link-base, #1b75bb);
|
|
13
14
|
$link-hover-color: var(--mds-color-link-hover, #15598e);
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
-
* This is due to style-dictionary forcing all `color` object to color, rather than the new v4 way of detection/type attributes
|
|
18
|
-
* https://styledictionary.com/version-4/migration/#cti-reliance
|
|
17
|
+
* we're not using `SelectedItem` as the fallback value, although this is the browser default, we have an a11y compatible color here
|
|
19
18
|
*/
|
|
20
19
|
$focus-color: var(--mds-color-input-focus, #0064e1);
|
|
21
20
|
$disabled-input-color: var(--mds-color-input-disabled-field, rgba(176, 176, 176, 0.5));
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
$link-underline-offset: .1500rem;
|
|
22
|
+
$link-underline-offset: 0.15rem;
|
|
25
23
|
$link-decoration-thickness: 1px;
|
|
26
|
-
$link-hover-decoration-thickness: max(2px, .12em);
|
|
24
|
+
$link-hover-decoration-thickness: max(2px, 0.12em);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const util = require('util');
|
|
2
|
+
const exec = util.promisify(require('child_process').exec);
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* we are still using gulp to trigger build, so hillariously lets run vite from gulp for now.
|
|
6
|
+
*
|
|
7
|
+
* TODO: remove gulp! https://jira.wiley.com/browse/FEDC-549
|
|
8
|
+
*/
|
|
9
|
+
async function buildViteJs() {
|
|
10
|
+
const { stdout, stderr } = await exec('npm run build:vite', {
|
|
11
|
+
cwd: __dirname,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
console.log('build:design-system-ce stdout:', stdout);
|
|
15
|
+
console.log('build:design-system-ce stdegrr:', stderr);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.buildViteJs = buildViteJs;
|