@momentum-design/components 0.106.1 → 0.106.3
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/dist/browser/index.js +98 -79
- package/dist/browser/index.js.map +2 -2
- package/dist/components/buttongroup/buttongroup.styles.js +49 -30
- package/dist/components/text/text.component.d.ts +1 -1
- package/dist/components/text/text.component.js +1 -1
- package/dist/components/text/text.constants.d.ts +1 -1
- package/dist/components/text/text.constants.js +1 -1
- package/dist/components/typewriter/typewriter.constants.d.ts +1 -1
- package/dist/custom-elements.json +881 -881
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/package.json +1 -1
@@ -5,65 +5,84 @@ const styles = css `
|
|
5
5
|
--mdc-buttongroup-border-radius: 1.25rem;
|
6
6
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
7
7
|
--mdc-buttongroup-divider-color: var(--mds-color-theme-outline-secondary-normal);
|
8
|
+
--mdc-buttongroup-border-width: 1px;
|
8
9
|
}
|
9
10
|
|
10
11
|
:host::part(container) {
|
11
12
|
display: flex;
|
12
13
|
border-radius: var(--mdc-buttongroup-border-radius);
|
13
|
-
border: 1px solid var(--mdc-buttongroup-border-color);
|
14
14
|
}
|
15
15
|
|
16
16
|
:host([variant='primary'])::part(container) {
|
17
|
+
gap: 1px;
|
17
18
|
border: none;
|
18
19
|
background-color: var(--mds-color-theme-outline-primary-normal);
|
19
|
-
gap: 1px;
|
20
20
|
}
|
21
21
|
|
22
22
|
::slotted(mdc-button) {
|
23
23
|
width: inherit;
|
24
24
|
border-radius: 0;
|
25
25
|
border: none;
|
26
|
-
box-sizing:
|
26
|
+
box-sizing: border-box;
|
27
|
+
position: relative;
|
27
28
|
}
|
28
|
-
|
29
|
-
|
30
|
-
|
29
|
+
:host([orientation='horizontal'][variant='secondary']) ::slotted(mdc-button) {
|
30
|
+
border-block-start: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-border-color);
|
31
|
+
border-block-end: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-border-color);
|
32
|
+
}
|
33
|
+
:host([orientation='horizontal'][variant='secondary']) ::slotted(mdc-button:first-of-type) {
|
34
|
+
border-inline-start: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-border-color);
|
35
|
+
}
|
36
|
+
:host([orientation='horizontal'][variant='secondary']) ::slotted(mdc-button:last-of-type) {
|
37
|
+
border-inline-end: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-border-color);
|
31
38
|
}
|
32
39
|
|
33
|
-
:host([orientation='
|
34
|
-
border-
|
40
|
+
:host([orientation='vertical'][variant='secondary']) ::slotted(mdc-button) {
|
41
|
+
border-inline-start: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-border-color);
|
42
|
+
border-inline-end: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-border-color);
|
35
43
|
}
|
36
|
-
:host([orientation='
|
37
|
-
border-
|
44
|
+
:host([orientation='vertical'][variant='secondary']) ::slotted(mdc-button:first-of-type) {
|
45
|
+
border-block-start: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-border-color);
|
38
46
|
}
|
39
|
-
:host([orientation='vertical'][variant='secondary']) ::slotted(mdc-button:
|
40
|
-
border-
|
47
|
+
:host([orientation='vertical'][variant='secondary']) ::slotted(mdc-button:last-of-type) {
|
48
|
+
border-block-end: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-border-color);
|
41
49
|
}
|
42
50
|
|
43
|
-
:host([orientation='vertical'])
|
44
|
-
|
45
|
-
border-top-right-radius: var(--mdc-buttongroup-border-radius);
|
51
|
+
:host([orientation='vertical'])::part(container) {
|
52
|
+
flex-direction: column;
|
46
53
|
}
|
47
|
-
|
48
|
-
|
49
|
-
|
54
|
+
|
55
|
+
:host([variant='secondary'][orientation='horizontal']) ::slotted(mdc-button:not(:last-of-type))::after {
|
56
|
+
content: '';
|
57
|
+
position: absolute;
|
58
|
+
height: 100%;
|
59
|
+
border-inline-end: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-divider-color);
|
60
|
+
inset-inline-end: calc(var(--mdc-buttongroup-border-width) / 2);
|
61
|
+
}
|
62
|
+
:host([variant='secondary'][orientation='vertical']) ::slotted(mdc-button:not(:last-of-type))::after {
|
63
|
+
content: '';
|
64
|
+
position: absolute;
|
65
|
+
width: 100%;
|
66
|
+
border-block-end: var(--mdc-buttongroup-border-width) solid var(--mdc-buttongroup-divider-color);
|
67
|
+
inset-block-end: calc(var(--mdc-buttongroup-border-width) / 2);
|
50
68
|
}
|
51
69
|
|
52
|
-
:host([orientation='
|
53
|
-
border-
|
54
|
-
border-
|
70
|
+
:host([orientation='vertical']) ::slotted(mdc-button:first-of-type) {
|
71
|
+
border-start-start-radius: var(--mdc-buttongroup-border-radius);
|
72
|
+
border-start-end-radius: var(--mdc-buttongroup-border-radius);
|
55
73
|
}
|
56
|
-
:host([orientation='
|
57
|
-
border-
|
58
|
-
border-
|
74
|
+
:host([orientation='vertical']) ::slotted(mdc-button:last-of-type) {
|
75
|
+
border-end-start-radius: var(--mdc-buttongroup-border-radius);
|
76
|
+
border-end-end-radius: var(--mdc-buttongroup-border-radius);
|
59
77
|
}
|
60
|
-
|
61
|
-
|
62
|
-
border-
|
78
|
+
|
79
|
+
:host([orientation='horizontal']) ::slotted(mdc-button:first-of-type) {
|
80
|
+
border-start-start-radius: var(--mdc-buttongroup-border-radius);
|
81
|
+
border-end-start-radius: var(--mdc-buttongroup-border-radius);
|
63
82
|
}
|
64
|
-
:host([orientation='horizontal']
|
65
|
-
border-
|
66
|
-
border-
|
83
|
+
:host([orientation='horizontal']) ::slotted(mdc-button:last-of-type) {
|
84
|
+
border-start-end-radius: var(--mdc-buttongroup-border-radius);
|
85
|
+
border-end-end-radius: var(--mdc-buttongroup-border-radius);
|
67
86
|
}
|
68
87
|
|
69
88
|
:host([compact][orientation='horizontal']) ::slotted(mdc-button) {
|
@@ -43,7 +43,7 @@ declare const VALID_TEXT_TAGS: {
|
|
43
43
|
readonly DIV: "div";
|
44
44
|
};
|
45
45
|
declare const DEFAULTS: {
|
46
|
-
readonly TYPE: "body-
|
46
|
+
readonly TYPE: "body-midsize-medium";
|
47
47
|
readonly TEXT_ELEMENT_TAGNAME: "p";
|
48
48
|
readonly CSS_PART_TEXT: "text";
|
49
49
|
readonly CHILDREN: "The quick brown fox jumps over the lazy dog";
|
@@ -44,7 +44,7 @@ const VALID_TEXT_TAGS = {
|
|
44
44
|
DIV: 'div',
|
45
45
|
};
|
46
46
|
const DEFAULTS = {
|
47
|
-
TYPE: TYPE.
|
47
|
+
TYPE: TYPE.BODY_MIDSIZE_MEDIUM,
|
48
48
|
TEXT_ELEMENT_TAGNAME: VALID_TEXT_TAGS.P,
|
49
49
|
CSS_PART_TEXT: 'text',
|
50
50
|
CHILDREN: 'The quick brown fox jumps over the lazy dog',
|
@@ -7,7 +7,7 @@ declare const SPEED: {
|
|
7
7
|
readonly VERY_FAST: 1;
|
8
8
|
};
|
9
9
|
declare const DEFAULTS: {
|
10
|
-
readonly TYPE: "body-
|
10
|
+
readonly TYPE: "body-midsize-medium";
|
11
11
|
readonly TEXT_ELEMENT_TAGNAME: "p";
|
12
12
|
readonly CSS_PART_TEXT: "text";
|
13
13
|
readonly CSS_PART_CONTAINER: "container";
|