@mezzanine-ui/core 1.0.0-rc.8 → 1.0.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.
- package/accordion/_accordion-styles.scss +4 -0
- package/autocomplete/_autocomplete-styles.scss +1 -4
- package/autocomplete/autocomplete.d.ts +0 -1
- package/autocomplete/autocomplete.js +0 -1
- package/card/_card-styles.scss +1 -1
- package/cascader/_cascader-styles.scss +2 -3
- package/checkbox/_checkbox-styles.scss +1 -1
- package/input/_input-action-button-styles.scss +1 -1
- package/input/_input-select-button-styles.scss +5 -5
- package/llms.txt +15 -3
- package/navigation/_navigation-styles.scss +19 -2
- package/package.json +3 -3
- package/radio/_radio-styles.scss +5 -0
- package/stepper/_stepper-styles.scss +23 -0
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.#{$prefix} {
|
|
8
8
|
position: relative;
|
|
9
|
+
width: 100%;
|
|
9
10
|
|
|
10
11
|
&--single {
|
|
11
12
|
min-width: spacing.semantic-variable(size, container, concentrate-fixed);
|
|
@@ -23,10 +24,6 @@
|
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
&--full-width {
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
27
|
&--inside-closed {
|
|
31
28
|
.#{select.$trigger-prefix} {
|
|
32
29
|
opacity: 0;
|
|
@@ -21,7 +21,6 @@ export type AutoCompleteSelector = 'input' | 'selection';
|
|
|
21
21
|
export declare const autocompletePrefix = "mzn-autocomplete";
|
|
22
22
|
export declare const autocompleteClasses: {
|
|
23
23
|
readonly host: "mzn-autocomplete";
|
|
24
|
-
readonly hostFullWidth: "mzn-autocomplete--full-width";
|
|
25
24
|
readonly hostInsideClosed: "mzn-autocomplete--inside-closed";
|
|
26
25
|
readonly hostMode: (mode: AutoCompleteMode) => string;
|
|
27
26
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const autocompletePrefix = 'mzn-autocomplete';
|
|
2
2
|
const autocompleteClasses = {
|
|
3
3
|
host: autocompletePrefix,
|
|
4
|
-
hostFullWidth: `${autocompletePrefix}--full-width`,
|
|
5
4
|
hostInsideClosed: `${autocompletePrefix}--inside-closed`,
|
|
6
5
|
hostMode: (mode) => `${autocompletePrefix}--${mode}`,
|
|
7
6
|
};
|
package/card/_card-styles.scss
CHANGED
|
@@ -61,8 +61,7 @@
|
|
|
61
61
|
width: spacing.semantic-variable(size, container, tight);
|
|
62
62
|
max-height: spacing.semantic-variable(size, container, expanded);
|
|
63
63
|
overflow: hidden;
|
|
64
|
-
padding:
|
|
65
|
-
spacing.semantic-variable(padding, horizontal, tight);
|
|
64
|
+
padding: 0;
|
|
66
65
|
box-sizing: border-box;
|
|
67
66
|
animation: #{$prefix}-fade-in motion.duration(fast) motion.easing(standard) both;
|
|
68
67
|
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
ul {
|
|
74
73
|
list-style: none;
|
|
75
74
|
margin: 0;
|
|
76
|
-
padding:
|
|
75
|
+
padding: spacing.semantic-variable(padding, horizontal, tight);
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
|
@@ -668,7 +668,7 @@ $checked-disabled: (
|
|
|
668
668
|
|
|
669
669
|
&--nested {
|
|
670
670
|
.#{$group-prefix}--content-wrapper.#{$group-prefix}--vertical.#{$group-prefix}--chip {
|
|
671
|
-
.#{$prefix}.#{$prefix}--
|
|
671
|
+
.#{$prefix}.#{$prefix}--chip:first-child {
|
|
672
672
|
margin-bottom: spacing.semantic-variable(padding, vertical, tiny);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
@@ -60,7 +60,7 @@ $action-button-sizes: (
|
|
|
60
60
|
@mixin _apply-action-button-states($state) {
|
|
61
61
|
$config: map.get($action-button-states, $state);
|
|
62
62
|
|
|
63
|
-
--#{$prefix}-action-button-icon-color: map.get($config, icon);
|
|
63
|
+
--#{$prefix}-action-button-icon-color: #{map.get($config, icon)};
|
|
64
64
|
|
|
65
65
|
color: map.get($config, text);
|
|
66
66
|
background-color: map.get($config, background);
|
|
@@ -11,28 +11,28 @@
|
|
|
11
11
|
$select-button-states: (
|
|
12
12
|
enable: (
|
|
13
13
|
text: palette.semantic-variable(text, neutral-solid),
|
|
14
|
-
icon: palette.semantic-variable(icon, neutral
|
|
14
|
+
icon: palette.semantic-variable(icon, neutral),
|
|
15
15
|
background: palette.semantic-variable(background, neutral-faint),
|
|
16
16
|
border: palette.semantic-variable(border, neutral-light),
|
|
17
17
|
focus: none,
|
|
18
18
|
),
|
|
19
19
|
hover: (
|
|
20
20
|
text: palette.semantic-variable(text, neutral-solid),
|
|
21
|
-
icon: palette.semantic-variable(icon, neutral
|
|
21
|
+
icon: palette.semantic-variable(icon, neutral),
|
|
22
22
|
background: palette.semantic-variable(background, brand-ghost),
|
|
23
23
|
border: palette.semantic-variable(border, neutral-light),
|
|
24
24
|
focus: none,
|
|
25
25
|
),
|
|
26
26
|
active: (
|
|
27
27
|
text: palette.semantic-variable(text, neutral-solid),
|
|
28
|
-
icon: palette.semantic-variable(icon, neutral
|
|
28
|
+
icon: palette.semantic-variable(icon, neutral),
|
|
29
29
|
background: palette.semantic-variable(background, brand-faint),
|
|
30
30
|
border: palette.semantic-variable(border, neutral-light),
|
|
31
31
|
focus: none,
|
|
32
32
|
),
|
|
33
33
|
focus: (
|
|
34
34
|
text: palette.semantic-variable(text, neutral-solid),
|
|
35
|
-
icon: palette.semantic-variable(icon, neutral
|
|
35
|
+
icon: palette.semantic-variable(icon, neutral),
|
|
36
36
|
background: palette.semantic-variable(background, neutral-faint),
|
|
37
37
|
border: palette.semantic-variable(border, neutral-light),
|
|
38
38
|
focus: effect.variable(focus, primary),
|
|
@@ -60,7 +60,7 @@ $select-button-sizes: (
|
|
|
60
60
|
@mixin _apply-select-button-states($state) {
|
|
61
61
|
$config: map.get($select-button-states, $state);
|
|
62
62
|
|
|
63
|
-
--#{$prefix}-select-button-icon-color: map.get($config, icon);
|
|
63
|
+
--#{$prefix}-select-button-icon-color: #{map.get($config, icon)};
|
|
64
64
|
|
|
65
65
|
color: map.get($config, text);
|
|
66
66
|
background-color: map.get($config, background);
|
package/llms.txt
CHANGED
|
@@ -13,13 +13,25 @@ This package does **not** export React components. It is a styling and type laye
|
|
|
13
13
|
|
|
14
14
|
## Style Import Pattern
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
The recommended approach is to load all component styles at once via the SCSS barrel:
|
|
17
|
+
|
|
18
|
+
```scss
|
|
19
|
+
@use '@mezzanine-ui/system' as mzn-system;
|
|
20
|
+
@use '@mezzanine-ui/core' as mzn-core;
|
|
21
|
+
|
|
22
|
+
:root {
|
|
23
|
+
@include mzn-system.common-variables('default');
|
|
24
|
+
@include mzn-system.colors('light');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include mzn-core.styles();
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Per-component JS imports still work but are not the preferred approach:
|
|
17
31
|
|
|
18
32
|
```ts
|
|
19
33
|
import '@mezzanine-ui/core/button/styles';
|
|
20
34
|
import '@mezzanine-ui/core/input/styles';
|
|
21
|
-
import '@mezzanine-ui/core/select/styles';
|
|
22
|
-
import '@mezzanine-ui/core/modal/styles';
|
|
23
35
|
```
|
|
24
36
|
|
|
25
37
|
Available style directories mirror component names: `accordion`, `alert-banner`, `anchor`, `backdrop`, `badge`, `breadcrumb`, `button`, `calendar`, `checkbox`, `drawer`, `empty`, `form`, `icon`, `inline-message`, `input`, `message`, `modal`, `navigation`, `page-footer`, `page-header`, `pagination`, `picker`, `portal`, `progress`, `radio`, `result-state`, `select`, `skeleton`, `slider`, `spin`, `stepper`, `tag`, `text-field`, `textarea`, `time-panel`, `toggle`, `tooltip`, `typography`, `upload`.
|
|
@@ -29,14 +29,22 @@ $option-height: calc(spacing.semantic-variable(padding, vertical, tight) * 2 + #
|
|
|
29
29
|
flex-grow: 1;
|
|
30
30
|
gap: spacing.semantic-variable(gap, tight-fixed);
|
|
31
31
|
margin-right: -1px;
|
|
32
|
-
padding: spacing.semantic-variable(padding, vertical, base)
|
|
33
|
-
spacing.semantic-variable(padding, horizontal, comfort-fixed);
|
|
32
|
+
padding-block: spacing.semantic-variable(padding, vertical, base);
|
|
34
33
|
|
|
35
34
|
.#{$prefix}__list {
|
|
36
35
|
@include utils.reset();
|
|
37
36
|
|
|
38
37
|
display: grid;
|
|
39
38
|
gap: spacing.semantic-variable(gap, tight);
|
|
39
|
+
padding-inline: spacing.semantic-variable(padding, horizontal, comfort-fixed);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__search-input {
|
|
44
|
+
padding-inline: spacing.semantic-variable(padding, horizontal, comfort-fixed);
|
|
45
|
+
|
|
46
|
+
.mzn-text-field {
|
|
47
|
+
width: 100%;
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
50
|
|
|
@@ -479,6 +487,15 @@ $option-height: calc(spacing.semantic-variable(padding, vertical, tight) * 2 + #
|
|
|
479
487
|
.mzn-badge {
|
|
480
488
|
display: none;
|
|
481
489
|
}
|
|
490
|
+
|
|
491
|
+
&:not(:has(.#{$option-prefix}__icon)) {
|
|
492
|
+
justify-content: center;
|
|
493
|
+
padding-inline: 0;
|
|
494
|
+
|
|
495
|
+
.#{$option-prefix}__title-wrapper {
|
|
496
|
+
margin-right: 0;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
482
499
|
}
|
|
483
500
|
|
|
484
501
|
&.#{$option-prefix}--active.#{$option-prefix}--open {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mezzanine-ui/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Core for mezzanine-ui",
|
|
5
5
|
"author": "Mezzanine",
|
|
6
6
|
"repository": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@mezzanine-ui/icons": "1.0.
|
|
44
|
-
"@mezzanine-ui/system": "1.0.
|
|
43
|
+
"@mezzanine-ui/icons": "1.0.1",
|
|
44
|
+
"@mezzanine-ui/system": "1.0.1",
|
|
45
45
|
"lodash": "^4.17.21",
|
|
46
46
|
"tslib": "^2.8.1"
|
|
47
47
|
},
|
package/radio/_radio-styles.scss
CHANGED
|
@@ -114,6 +114,11 @@
|
|
|
114
114
|
&--checked & {
|
|
115
115
|
&__segmented-container {
|
|
116
116
|
background-color: var(--#{$prefix}-segmented-checked-color);
|
|
117
|
+
color: palette.semantic-variable(text, neutral-solid);
|
|
118
|
+
|
|
119
|
+
.mzn-icon {
|
|
120
|
+
color: palette.semantic-variable(icon, neutral-solid);
|
|
121
|
+
}
|
|
117
122
|
}
|
|
118
123
|
}
|
|
119
124
|
|
|
@@ -87,6 +87,20 @@ $dotBoxShadowMargin: #{spacing.semantic-variable(size, element, tiny)};
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
@keyframes stepper-dot-breath-error {
|
|
91
|
+
0% {
|
|
92
|
+
box-shadow: 0 0 0 0 transparent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
50% {
|
|
96
|
+
box-shadow: 0 0 0 #{$dotBoxShadowMargin} palette.semantic-variable(background, error-subtle);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
100% {
|
|
100
|
+
box-shadow: 0 0 0 #{$dotBoxShadowMargin} transparent;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
90
104
|
.#{$prefix-step} {
|
|
91
105
|
&--interactive {
|
|
92
106
|
border-radius: radius.variable(base);
|
|
@@ -285,6 +299,15 @@ $dotBoxShadowMargin: #{spacing.semantic-variable(size, element, tiny)};
|
|
|
285
299
|
animation-name: stepper-dot-breath;
|
|
286
300
|
}
|
|
287
301
|
}
|
|
302
|
+
|
|
303
|
+
&.#{$prefix-step}--processing-error {
|
|
304
|
+
.#{$prefix-step}__status-indicator-dot {
|
|
305
|
+
@include motion.pattern(breathe, animation);
|
|
306
|
+
|
|
307
|
+
animation-iteration-count: infinite;
|
|
308
|
+
animation-name: stepper-dot-breath-error;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
288
311
|
}
|
|
289
312
|
|
|
290
313
|
&__status-indicator {
|