@sebgroup/green-core 1.76.2 → 1.76.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/components/badge/badge.style.js +3 -3
- package/components/button/button.style.css.js +1 -1
- package/components/calendar/calendar.styles.js +20 -19
- package/components/card/card.component.js +4 -4
- package/components/datepicker/datepicker.styles.js +9 -9
- package/components/datepicker/datepicker.trans.styles.scss.js +1 -1
- package/components/details/details.styles.js +24 -24
- package/components/div/div.component.js +4 -4
- package/components/div/div.style.js +3 -3
- package/components/divider/divider.component.js +1 -1
- package/components/dropdown/dropdown.styles.js +10 -10
- package/components/fab/fab.styles.js +2 -2
- package/components/flex/flex.styles.js +1 -1
- package/components/img/img.component.js +1 -1
- package/components/link/link.styles.js +1 -1
- package/components/menu-button/menu-button.styles.js +10 -10
- package/components/radio/radio-group/radio-group.styles.js +35 -35
- package/components/radio/radio.styles.js +2 -2
- package/components/rich-text/rich-text.styles.js +31 -30
- package/components/segmented-control/segment/segment.style.css.js +1 -1
- package/components/segmented-control/segmented-control.style.css.js +1 -1
- package/components/signal/signal.style.js +1 -1
- package/components/spacer/spacer.component.js +1 -1
- package/components/spinner/spinner.styles.js +4 -4
- package/components/text/default-typography.styles.js +22 -22
- package/components/text/text.component.js +3 -3
- package/components/textarea/textarea.styles.js +3 -1
- package/components/theme/chlorophyll-tokens.scss.js +1 -1
- package/components/video/video.component.js +1 -1
- package/generated/react/index.d.ts +6 -6
- package/generated/react/index.js +6 -6
- package/package.json +1 -1
- package/primitives/field-base/field-base.styles.js +36 -35
- package/primitives/field-base/field-base.trans.styles.scss.js +1 -1
- package/primitives/form-control-footer/form-control-footer.styles.js +9 -9
- package/primitives/form-control-header/form-control-header.styles.js +13 -12
- package/primitives/listbox/option.styles.js +18 -18
- package/primitives/menu/menu-heading.styles.js +6 -6
- package/primitives/ripple/ripple.styles.scss.js +1 -1
- package/primitives/selection-controls/selection-field-label.styles.js +3 -3
- package/shared-styles/form-control-host.style.js +11 -11
- package/tokens/variables.css.js +2 -0
- package/tokens/variables.dark.css.js +2 -0
- package/tokens/variables.light.css.js +2 -0
- package/tokens.style.d.ts +2 -2
- package/tokens.style.js +5 -12
- package/utils/decorators/style-expression-property.d.ts +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
- package/utils/helpers/style-expression-helpers.js +4 -4
- package/tokens/dark.css.js +0 -2
- package/tokens/light.css.js +0 -2
- package/tokens/motion.css.js +0 -2
- package/tokens/shadow.css.js +0 -2
- package/tokens/size.css.js +0 -2
- package/tokens/text.css.js +0 -2
|
@@ -6,15 +6,15 @@ const style = css`
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
slot[name='lead']::slotted(*) {
|
|
9
|
-
line-height: var(--gds-space-m);
|
|
9
|
+
line-height: var(--gds-sys-space-m);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
:host([notification]) slot[name='trail']::slotted(*) {
|
|
13
|
-
line-height: var(--gds-space-s);
|
|
13
|
+
line-height: var(--gds-sys-space-s);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
:host([notification]) slot[name='lead']::slotted(*) {
|
|
17
|
-
line-height: var(--gds-space-s);
|
|
17
|
+
line-height: var(--gds-sys-space-s);
|
|
18
18
|
}
|
|
19
19
|
`;
|
|
20
20
|
var badge_style_default = style;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "@layer tokens, core, a11y, ranks, sizes, variants, disabled;\n\n@layer a11y {\n @media (prefers-reduced-motion: reduce) {\n .button {\n transition: none;\n }\n }\n}\n\n@layer core {\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n\n .button {\n --_block-size: var(--gds-space-3xl);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n border: none;\n cursor: pointer;\n block-size: var(--_block-size);\n background-color: var(--gds-color-l3-background-primary);\n color: var(--gds-color-l3-content-primary);\n border-radius: var(--gds-space-max);\n font-family: inherit;\n font-size: var(--gds-text-size-detail-m);\n line-height: var(--gds-text-line-height-detail-m);\n font-weight: var(--gds-text-weight-book);\n gap: var(--gds-space-s);\n outline-color: transparent;\n outline-offset: var(--gds-space-3xs);\n outline-style: solid;\n outline-width: var(--gds-space-3xs);\n padding-block: var(--gds-space-s);\n padding-inline: var(--gds-space-l);\n position: relative;\n text-decoration: none;\n transition-property: color, border-colorm, background;\n transition-duration: 0.2s;\n flex: 1;\n\n &:focus {\n outline-color: var(--gds-color-l3-content-tertiary);\n\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-primary),\n var(--gds-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-primary),\n var(--gds-color-l3-states-dark-pressed)\n );\n }\n\n &:not(.circle) slot:not([name]) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n}\n\n.button.circle {\n aspect-ratio: 1 / 1;\n padding: 0;\n min-block-size: var(--_block-size);\n min-inline-size: var(--_block-size);\n}\n\n.button:disabled {\n pointer-events: none;\n background-color: var(--gds-color-l3-background-disabled);\n color: var(--gds-color-l3-content-disabled);\n}\n\n@layer ranks {\n :host([rank*='secondary']) .button {\n background-color: var(--gds-color-l3-background-secondary);\n color: var(--gds-color-l3-content-tertiary);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-secondary),\n var(--gds-color-l3-states-light-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-secondary),\n var(--gds-color-l3-states-light-pressed)\n );\n }\n }\n\n :host([rank*='tertiary']) .button {\n background-color: transparent;\n color: var(--gds-color-l3-content-tertiary);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-light-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-light-pressed)\n );\n }\n }\n}\n\n@layer sizes {\n :host([size='xs']) .button {\n --_block-size: var(--gds-space-l);\n font-size: var(--gds-text-size-detail-s);\n line-height: var(--gds-text-line-height-detail-s);\n padding-inline: var(--gds-space-m);\n }\n\n :host([size='small']) .button {\n --_block-size: var(--gds-space-xl);\n font-size: var(--gds-text-size-detail-s);\n line-height: var(--gds-text-line-height-detail-s);\n padding-inline: var(--gds-space-m);\n }\n\n :host([size='medium']) .button {\n --_block-size: var(--gds-space-2xl);\n font-size: var(--gds-text-size-detail-m);\n line-height: var(--gds-text-line-height-detail-m);\n }\n}\n\n@layer variants {\n .positive {\n background-color: var(--gds-color-l3-background-positive);\n\n &:focus {\n outline-color: var(--gds-color-l3-content-positive);\n\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-positive),\n var(--gds-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-positive),\n var(--gds-color-l3-states-dark-pressed)\n );\n }\n\n &.secondary {\n background-color: var(--gds-color-l3-background-positive-secondary);\n color: var(--gds-color-l3-content-positive);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-positive-secondary),\n var(--gds-color-l3-states-positive-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-positive-secondary),\n var(--gds-color-l3-states-positive-pressed)\n );\n }\n }\n\n &.tertiary {\n background-color: transparent;\n color: var(--gds-color-l3-content-positive);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-positive-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-positive-pressed)\n );\n }\n }\n }\n\n .negative {\n background-color: var(--gds-color-l3-background-negative);\n\n &:focus {\n outline-color: var(--gds-color-l3-content-negative);\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-negative),\n var(--gds-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-negative),\n var(--gds-color-l3-states-dark-pressed)\n );\n }\n\n &.secondary {\n background-color: var(--gds-color-l3-background-negative-secondary);\n color: var(--gds-color-l3-content-negative);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-negative-secondary),\n var(--gds-color-l3-states-negative-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-negative-secondary),\n var(--gds-color-l3-states-negative-pressed)\n );\n }\n }\n\n &.tertiary {\n background-color: transparent;\n color: var(--gds-color-l3-content-negative);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-negative-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-negative-pressed)\n );\n }\n }\n }\n}\n";
|
|
1
|
+
const styles = "@layer tokens, core, a11y, ranks, sizes, variants, disabled;\n\n@layer a11y {\n @media (prefers-reduced-motion: reduce) {\n .button {\n transition: none;\n }\n }\n}\n\n@layer core {\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n\n .button {\n --_block-size: var(--gds-sys-space-3xl);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n border: none;\n cursor: pointer;\n block-size: var(--_block-size);\n background-color: var(--gds-sys-color-l3-background-primary);\n color: var(--gds-sys-color-l3-content-primary);\n border-radius: var(--gds-sys-space-max);\n font-family: inherit;\n font-size: var(--gds-sys-text-size-detail-m);\n line-height: var(--gds-sys-text-line-height-detail-m);\n font-weight: var(--gds-sys-text-weight-book);\n gap: var(--gds-sys-space-s);\n outline-color: transparent;\n outline-offset: var(--gds-sys-space-3xs);\n outline-style: solid;\n outline-width: var(--gds-sys-space-3xs);\n padding-block: var(--gds-sys-space-s);\n padding-inline: var(--gds-sys-space-l);\n position: relative;\n text-decoration: none;\n transition-property: color, border-colorm, background;\n transition-duration: 0.2s;\n flex: 1;\n\n &:focus {\n outline-color: var(--gds-sys-color-l3-content-tertiary);\n\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-primary),\n var(--gds-sys-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-primary),\n var(--gds-sys-color-l3-states-dark-pressed)\n );\n }\n\n &:not(.circle) slot:not([name]) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n}\n\n.button.circle {\n aspect-ratio: 1 / 1;\n padding: 0;\n min-block-size: var(--_block-size);\n min-inline-size: var(--_block-size);\n}\n\n.button:disabled {\n pointer-events: none;\n background-color: var(--gds-sys-color-l3-background-disabled);\n color: var(--gds-sys-color-l3-content-disabled);\n}\n\n@layer ranks {\n :host([rank*='secondary']) .button {\n background-color: var(--gds-sys-color-l3-background-secondary);\n color: var(--gds-sys-color-l3-content-tertiary);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-secondary),\n var(--gds-sys-color-l3-states-light-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-secondary),\n var(--gds-sys-color-l3-states-light-pressed)\n );\n }\n }\n\n :host([rank*='tertiary']) .button {\n background-color: transparent;\n color: var(--gds-sys-color-l3-content-tertiary);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-sys-color-l3-states-light-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-sys-color-l3-states-light-pressed)\n );\n }\n }\n}\n\n@layer sizes {\n :host([size='xs']) .button {\n --_block-size: var(--gds-sys-space-l);\n font-size: var(--gds-sys-text-size-detail-s);\n line-height: var(--gds-sys-text-line-height-detail-s);\n padding-inline: var(--gds-sys-space-m);\n }\n\n :host([size='small']) .button {\n --_block-size: var(--gds-sys-space-xl);\n font-size: var(--gds-sys-text-size-detail-s);\n line-height: var(--gds-sys-text-line-height-detail-s);\n padding-inline: var(--gds-sys-space-m);\n }\n\n :host([size='medium']) .button {\n --_block-size: var(--gds-sys-space-2xl);\n font-size: var(--gds-sys-text-size-detail-m);\n line-height: var(--gds-sys-text-line-height-detail-m);\n }\n}\n\n@layer variants {\n .positive {\n background-color: var(--gds-sys-color-l3-background-positive);\n\n &:focus {\n outline-color: var(--gds-sys-color-l3-content-positive);\n\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-positive),\n var(--gds-sys-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-positive),\n var(--gds-sys-color-l3-states-dark-pressed)\n );\n }\n\n &.secondary {\n background-color: var(--gds-sys-color-l3-background-positive-secondary);\n color: var(--gds-sys-color-l3-content-positive);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-positive-secondary),\n var(--gds-sys-color-l3-states-positive-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-positive-secondary),\n var(--gds-sys-color-l3-states-positive-pressed)\n );\n }\n }\n\n &.tertiary {\n background-color: transparent;\n color: var(--gds-sys-color-l3-content-positive);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-sys-color-l3-states-positive-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-sys-color-l3-states-positive-pressed)\n );\n }\n }\n }\n\n .negative {\n background-color: var(--gds-sys-color-l3-background-negative);\n\n &:focus {\n outline-color: var(--gds-sys-color-l3-content-negative);\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-negative),\n var(--gds-sys-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-negative),\n var(--gds-sys-color-l3-states-dark-pressed)\n );\n }\n\n &.secondary {\n background-color: var(--gds-sys-color-l3-background-negative-secondary);\n color: var(--gds-sys-color-l3-content-negative);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-negative-secondary),\n var(--gds-sys-color-l3-states-negative-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-sys-color-l3-background-negative-secondary),\n var(--gds-sys-color-l3-states-negative-pressed)\n );\n }\n }\n\n &.tertiary {\n background-color: transparent;\n color: var(--gds-sys-color-l3-content-negative);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-sys-color-l3-states-negative-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-sys-color-l3-states-negative-pressed)\n );\n }\n }\n }\n}\n";
|
|
2
2
|
export default styles;
|
|
@@ -10,17 +10,18 @@ const style = css`
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
:host table {
|
|
13
|
-
border-spacing: var(--gds-space-2xs);
|
|
13
|
+
border-spacing: var(--gds-sys-space-2xs);
|
|
14
14
|
flex-grow: 1;
|
|
15
15
|
width: 100%;
|
|
16
16
|
padding: 1ch;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
thead {
|
|
20
|
-
box-shadow: 0 var(--gds-space-4xs) 0 0
|
|
20
|
+
box-shadow: 0 var(--gds-sys-space-4xs) 0 0
|
|
21
|
+
var(--gds-sys-color-l2-border-primary);
|
|
21
22
|
th {
|
|
22
|
-
height: var(--gds-space-2xl);
|
|
23
|
-
width: var(--gds-space-2xl);
|
|
23
|
+
height: var(--gds-sys-space-2xl);
|
|
24
|
+
width: var(--gds-sys-space-2xl);
|
|
24
25
|
box-sizing: border-box;
|
|
25
26
|
text-align: center;
|
|
26
27
|
font-weight: normal;
|
|
@@ -30,34 +31,34 @@ const style = css`
|
|
|
30
31
|
tbody {
|
|
31
32
|
td {
|
|
32
33
|
position: relative;
|
|
33
|
-
height: var(--gds-space-3xl);
|
|
34
|
-
width: var(--gds-space-3xl);
|
|
34
|
+
height: var(--gds-sys-space-3xl);
|
|
35
|
+
width: var(--gds-sys-space-3xl);
|
|
35
36
|
box-sizing: border-box;
|
|
36
37
|
text-align: center;
|
|
37
38
|
user-select: none;
|
|
38
|
-
border-width: var(--gds-space-3xs);
|
|
39
|
+
border-width: var(--gds-sys-space-3xs);
|
|
39
40
|
border-style: solid;
|
|
40
41
|
border-color: transparent;
|
|
41
|
-
border-radius: var(--gds-space-2xs);
|
|
42
|
+
border-radius: var(--gds-sys-space-2xs);
|
|
42
43
|
transition: background 0.2s;
|
|
43
44
|
outline-style: solid;
|
|
44
45
|
outline-color: transparent;
|
|
45
46
|
outline-width: 0px;
|
|
46
|
-
outline-offset: var(--gds-space-3xs);
|
|
47
|
+
outline-offset: var(--gds-sys-space-3xs);
|
|
47
48
|
|
|
48
49
|
&:not(.disabled):hover,
|
|
49
50
|
&[aria-selected='true'] {
|
|
50
|
-
background: var(--gds-color-l2-background-tertiary);
|
|
51
|
+
background: var(--gds-sys-color-l2-background-tertiary);
|
|
51
52
|
cursor: pointer;
|
|
52
|
-
color: var(--gds-color-l2-content-tertiary);
|
|
53
|
+
color: var(--gds-sys-color-l2-content-tertiary);
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
&.today {
|
|
56
|
-
border-color: var(--gds-color-l2-background-tertiary);
|
|
57
|
+
border-color: var(--gds-sys-color-l2-background-tertiary);
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
&.disabled {
|
|
60
|
-
color: var(--gds-color-l3-content-disabled);
|
|
61
|
+
color: var(--gds-sys-color-l3-content-disabled);
|
|
61
62
|
cursor: not-allowed;
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -66,19 +67,19 @@ const style = css`
|
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
&:focus-visible {
|
|
69
|
-
outline-color: var(--gds-color-l2-content-primary);
|
|
70
|
-
outline-width: var(--gds-space-3xs);
|
|
70
|
+
outline-color: var(--gds-sys-color-l2-content-primary);
|
|
71
|
+
outline-width: var(--gds-sys-space-3xs);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.indicator-dot {
|
|
75
76
|
display: flex;
|
|
76
77
|
position: absolute;
|
|
77
|
-
width: var(--gds-space-2xs);
|
|
78
|
-
height: var(--gds-space-2xs);
|
|
79
|
-
border-radius: var(--gds-space-max);
|
|
78
|
+
width: var(--gds-sys-space-2xs);
|
|
79
|
+
height: var(--gds-sys-space-2xs);
|
|
80
|
+
border-radius: var(--gds-sys-space-max);
|
|
80
81
|
background-color: var(--_color, currentColor);
|
|
81
|
-
inset: var(--gds-space-2xs) var(--gds-space-2xs) auto auto;
|
|
82
|
+
inset: var(--gds-sys-space-2xs) var(--gds-sys-space-2xs) auto auto;
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -30,7 +30,7 @@ GdsCard.styles = [
|
|
|
30
30
|
border-color: var(--_border-color);
|
|
31
31
|
background-color: var(--_background-color);
|
|
32
32
|
color: var(--_color);
|
|
33
|
-
border-width: var(--gds-space-4xs);
|
|
33
|
+
border-width: var(--gds-sys-space-4xs);
|
|
34
34
|
border-style: solid;
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
@@ -47,9 +47,9 @@ __decorateClass([
|
|
|
47
47
|
styleExpressionProperty({
|
|
48
48
|
styleTemplate: function(_prop, v) {
|
|
49
49
|
return `
|
|
50
|
-
--_border-color: var(--gds-color-l${this.level}-background-${v});
|
|
51
|
-
--_background-color: var(--gds-color-l${this.level}-background-${v});
|
|
52
|
-
--_color: var(--gds-color-l${this.level}-content-${v});
|
|
50
|
+
--_border-color: var(--gds-sys-color-l${this.level}-background-${v});
|
|
51
|
+
--_background-color: var(--gds-sys-color-l${this.level}-background-${v});
|
|
52
|
+
--_color: var(--gds-sys-color-l${this.level}-content-${v});
|
|
53
53
|
`;
|
|
54
54
|
}
|
|
55
55
|
})
|
|
@@ -13,14 +13,14 @@ const styles = css`
|
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: flex-start;
|
|
15
15
|
inline-size: 11ch;
|
|
16
|
-
gap: var(--gds-space-4xs);
|
|
17
|
-
font-size: var(--gds-text-size-detail-s);
|
|
18
|
-
font-weight: var(--gds-text-weight-regular);
|
|
16
|
+
gap: var(--gds-sys-space-4xs);
|
|
17
|
+
font-size: var(--gds-sys-text-size-detail-s);
|
|
18
|
+
font-weight: var(--gds-sys-text-weight-regular);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
:host([size='small']) .spinners {
|
|
22
|
-
font-size: var(--gds-text-size-detail-s);
|
|
23
|
-
line-height: var(--gds-text-line-height-detail-s);
|
|
22
|
+
font-size: var(--gds-sys-text-size-detail-s);
|
|
23
|
+
line-height: var(--gds-sys-text-line-height-detail-s);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.spinner {
|
|
@@ -30,16 +30,16 @@ const styles = css`
|
|
|
30
30
|
text-align: center;
|
|
31
31
|
height: 100%;
|
|
32
32
|
box-sizing: border-box;
|
|
33
|
-
/* border-radius: var(--gds-space-2xs); */
|
|
33
|
+
/* border-radius: var(--gds-sys-space-2xs); */
|
|
34
34
|
outline: none;
|
|
35
|
-
padding-block: var(--gds-space-3xs);
|
|
35
|
+
padding-block: var(--gds-sys-space-3xs);
|
|
36
36
|
text-transform: uppercase;
|
|
37
37
|
line-height: 1;
|
|
38
38
|
text-align: center;
|
|
39
39
|
|
|
40
40
|
&:focus {
|
|
41
|
-
background-color: var(--gds-color-
|
|
42
|
-
color: var(--gds-color-
|
|
41
|
+
background-color: var(--gds-color-l2-background-tertiary);
|
|
42
|
+
color: var(--gds-color-l2-content-tertiary);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/* stylelint-disable max-nesting-depth */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/**\n * Calculate the contrast ratio between two colors.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/* stylelint-disable */\n/* stylelint-enable */\n/* stylelint-disable */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n contain: layout;\n isolation: isolate;\n gap: var(--gds-space-xs);\n }\n [role=spinbutton] {\n display: inline-block;\n }\n [role=spinbutton]:focus {\n background: color-mix(in srgb, var(--gds-sys-color-blue) 50%, transparent);\n outline: none;\n }\n [role=spinbutton]::-moz-selection {\n background: transparent;\n }\n [role=spinbutton]::selection {\n background: transparent;\n }\n}";
|
|
1
|
+
const styles = "/* stylelint-disable max-nesting-depth */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/**\n * Calculate the contrast ratio between two colors.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/* stylelint-disable */\n/* stylelint-enable */\n/* stylelint-disable */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n contain: layout;\n isolation: isolate;\n gap: var(--gds-sys-space-xs);\n }\n [role=spinbutton] {\n display: inline-block;\n }\n [role=spinbutton]:focus {\n background: color-mix(in srgb, var(--gds-sys-color-blue) 50%, transparent);\n outline: none;\n }\n [role=spinbutton]::-moz-selection {\n background: transparent;\n }\n [role=spinbutton]::selection {\n background: transparent;\n }\n}";
|
|
2
2
|
export default styles;
|
|
@@ -4,11 +4,11 @@ const styles = css`
|
|
|
4
4
|
@layer base, reset;
|
|
5
5
|
@layer base {
|
|
6
6
|
.details {
|
|
7
|
-
border-bottom: solid var(--gds-space-4xs)
|
|
8
|
-
var(--gds-color-l2-border-primary);
|
|
9
|
-
font-size: var(--gds-text-size-body-m);
|
|
10
|
-
line-height: var(--gds-text-line-height-body-m);
|
|
11
|
-
color: var(--gds-color-l2-content-secondary);
|
|
7
|
+
border-bottom: solid var(--gds-sys-space-4xs)
|
|
8
|
+
var(--gds-sys-color-l2-border-primary);
|
|
9
|
+
font-size: var(--gds-sys-text-size-body-m);
|
|
10
|
+
line-height: var(--gds-sys-text-line-height-body-m);
|
|
11
|
+
color: var(--gds-sys-color-l2-content-secondary);
|
|
12
12
|
transition: border-color 240ms linear;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -18,14 +18,14 @@ const styles = css`
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
list-style: none;
|
|
20
20
|
user-select: none;
|
|
21
|
-
outline-offset: var(--gds-space-2xs);
|
|
21
|
+
outline-offset: var(--gds-sys-space-2xs);
|
|
22
22
|
outline-color: currentColor;
|
|
23
23
|
transition: all 120ms;
|
|
24
|
-
color: var(--gds-color-l2-content-primary);
|
|
24
|
+
color: var(--gds-sys-color-l2-content-primary);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.summary-icon {
|
|
28
|
-
border-radius: var(--gds-space-max);
|
|
28
|
+
border-radius: var(--gds-sys-space-max);
|
|
29
29
|
background-color: transparent;
|
|
30
30
|
transition: all 280ms;
|
|
31
31
|
aspect-ratio: 1;
|
|
@@ -38,7 +38,7 @@ const styles = css`
|
|
|
38
38
|
.summary-icon::after {
|
|
39
39
|
content: '';
|
|
40
40
|
position: absolute;
|
|
41
|
-
border-radius: var(--gds-space-max);
|
|
41
|
+
border-radius: var(--gds-sys-space-max);
|
|
42
42
|
transition: all 280ms;
|
|
43
43
|
inset: 0;
|
|
44
44
|
scale: 0.9;
|
|
@@ -47,12 +47,12 @@ const styles = css`
|
|
|
47
47
|
background-color: color-mix(
|
|
48
48
|
in srgb,
|
|
49
49
|
transparent,
|
|
50
|
-
var(--gds-color-l3-states-light-hover)
|
|
50
|
+
var(--gds-sys-color-l3-states-light-hover)
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.summary:focus {
|
|
55
|
-
outline-color: var(--gds-color-l3-content-tertiary);
|
|
55
|
+
outline-color: var(--gds-sys-color-l3-content-tertiary);
|
|
56
56
|
|
|
57
57
|
&:not(:focus-visible) {
|
|
58
58
|
outline-color: transparent;
|
|
@@ -73,41 +73,41 @@ const styles = css`
|
|
|
73
73
|
|
|
74
74
|
.details:hover,
|
|
75
75
|
.details:focus-within {
|
|
76
|
-
border-color: var(--gds-color-l2-border-quaternary);
|
|
76
|
+
border-color: var(--gds-sys-color-l2-border-quaternary);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.summary-label {
|
|
81
|
-
font-size: var(--gds-text-size-heading-xs);
|
|
82
|
-
line-height: var(--gds-text-line-height-heading-xs);
|
|
83
|
-
font-weight: var(--gds-text-weight-regular);
|
|
84
|
-
padding-block: var(--gds-space-m);
|
|
81
|
+
font-size: var(--gds-sys-text-size-heading-xs);
|
|
82
|
+
line-height: var(--gds-sys-text-line-height-heading-xs);
|
|
83
|
+
font-weight: var(--gds-sys-text-weight-regular);
|
|
84
|
+
padding-block: var(--gds-sys-space-m);
|
|
85
85
|
cursor: pointer;
|
|
86
86
|
flex: 1;
|
|
87
87
|
outline: none;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.details.small .summary-label {
|
|
91
|
-
font-size: var(--gds-text-size-heading-2xs);
|
|
92
|
-
line-height: var(--gds-text-line-height-heading-2xs);
|
|
93
|
-
padding-block: var(--gds-space-s);
|
|
91
|
+
font-size: var(--gds-sys-text-size-heading-2xs);
|
|
92
|
+
line-height: var(--gds-sys-text-line-height-heading-2xs);
|
|
93
|
+
padding-block: var(--gds-sys-space-s);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.details.small .content {
|
|
97
|
-
font-size: var(--gds-text-size-heading-2xs);
|
|
98
|
-
line-height: var(--gds-text-line-height-heading-2xs);
|
|
97
|
+
font-size: var(--gds-sys-text-size-heading-2xs);
|
|
98
|
+
line-height: var(--gds-sys-text-line-height-heading-2xs);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.details:focus-visible {
|
|
102
|
-
border-radius: var(--gds-space-2xs);
|
|
102
|
+
border-radius: var(--gds-sys-space-2xs);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.details.open .content {
|
|
106
|
-
padding-block-end: var(--gds-space-l);
|
|
106
|
+
padding-block-end: var(--gds-sys-space-l);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.details.small.open .content {
|
|
110
|
-
padding-block-end: var(--gds-space-s);
|
|
110
|
+
padding-block-end: var(--gds-sys-space-s);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.content {
|
|
@@ -60,7 +60,7 @@ __decorateClass([
|
|
|
60
60
|
style2 = this_["border-style"] || "solid",
|
|
61
61
|
color = this_["border-color"] || "primary"
|
|
62
62
|
] = values;
|
|
63
|
-
const sizeCss = `var(--gds-space-${size})`;
|
|
63
|
+
const sizeCss = `var(--gds-sys-space-${size})`;
|
|
64
64
|
const colorCss = parseColorValue(color, "border", this_.level);
|
|
65
65
|
return `border: ${sizeCss} ${style2} ${colorCss};`;
|
|
66
66
|
}
|
|
@@ -99,15 +99,15 @@ __decorateClass([
|
|
|
99
99
|
styleExpressionProperty({
|
|
100
100
|
styleTemplate: (_prop, values) => {
|
|
101
101
|
const size = values[0];
|
|
102
|
-
const styleSize = `font-size: var(--gds-text-size-${size});`;
|
|
103
|
-
const styleLine = `line-height: var(--gds-text-line-height-${size});`;
|
|
102
|
+
const styleSize = `font-size: var(--gds-sys-text-size-${size});`;
|
|
103
|
+
const styleLine = `line-height: var(--gds-sys-text-line-height-${size});`;
|
|
104
104
|
return styleSize + styleLine;
|
|
105
105
|
}
|
|
106
106
|
})
|
|
107
107
|
], GdsDiv.prototype, "font-size", 2);
|
|
108
108
|
__decorateClass([
|
|
109
109
|
styleExpressionProperty({
|
|
110
|
-
valueTemplate: (v) => `var(--gds-text-weight-${v})`
|
|
110
|
+
valueTemplate: (v) => `var(--gds-sys-text-weight-${v})`
|
|
111
111
|
})
|
|
112
112
|
], GdsDiv.prototype, "font-weight", 2);
|
|
113
113
|
__decorateClass([
|
|
@@ -6,13 +6,13 @@ const style = css`
|
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
border-style: solid;
|
|
8
8
|
border-width: 0;
|
|
9
|
-
border-color: var(--gds-color-l2-border-primary);
|
|
9
|
+
border-color: var(--gds-sys-color-l2-border-primary);
|
|
10
10
|
}
|
|
11
11
|
:host(:focus-visible) {
|
|
12
12
|
outline-color: color-mix(in srgb, currentcolor, #000 100%);
|
|
13
|
-
outline-offset: var(--gds-space-3xs);
|
|
13
|
+
outline-offset: var(--gds-sys-space-3xs);
|
|
14
14
|
outline-style: solid;
|
|
15
|
-
outline-width: var(--gds-space-3xs);
|
|
15
|
+
outline-width: var(--gds-sys-space-3xs);
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
18
18
|
var div_style_default = style;
|
|
@@ -32,7 +32,7 @@ __decorateClass([
|
|
|
32
32
|
__decorateClass([
|
|
33
33
|
styleExpressionProperty({
|
|
34
34
|
property: "--_size",
|
|
35
|
-
valueTemplate: (v) => `var(--gds-space-${v})`
|
|
35
|
+
valueTemplate: (v) => `var(--gds-sys-space-${v})`
|
|
36
36
|
})
|
|
37
37
|
], GdsDivider.prototype, "size", 2);
|
|
38
38
|
__decorateClass([
|
|
@@ -33,33 +33,33 @@ const style = css`
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
input[type='text'] {
|
|
36
|
-
border-radius: var(--gds-space-xs);
|
|
36
|
+
border-radius: var(--gds-sys-space-xs);
|
|
37
37
|
border-bottom-left-radius: 0;
|
|
38
38
|
border-bottom-right-radius: 0;
|
|
39
39
|
font-size: inherit;
|
|
40
40
|
line-height: inherit;
|
|
41
41
|
border: none;
|
|
42
42
|
outline: none;
|
|
43
|
-
color: var(--gds-color-l3-content-disabled);
|
|
44
|
-
border-color: var(--gds-color-l3-border-tertiary);
|
|
45
|
-
border-width: 0 0 var(--gds-space-4xs) 0;
|
|
43
|
+
color: var(--gds-sys-color-l3-content-disabled);
|
|
44
|
+
border-color: var(--gds-sys-color-l3-border-tertiary);
|
|
45
|
+
border-width: 0 0 var(--gds-sys-space-4xs) 0;
|
|
46
46
|
border-style: solid;
|
|
47
47
|
width: 100%;
|
|
48
|
-
padding: var(--gds-space-m);
|
|
49
|
-
font-weight: var(--gds-text-weight-regular);
|
|
48
|
+
padding: var(--gds-sys-space-m);
|
|
49
|
+
font-weight: var(--gds-sys-text-weight-regular);
|
|
50
50
|
flex: 1;
|
|
51
51
|
box-sizing: border-box;
|
|
52
52
|
font-family: inherit;
|
|
53
53
|
|
|
54
54
|
&:focus {
|
|
55
|
-
border-color: var(--gds-color-l3-border-secondary);
|
|
56
|
-
color: var(--gds-color-l3-content-tertiary);
|
|
55
|
+
border-color: var(--gds-sys-color-l3-border-secondary);
|
|
56
|
+
color: var(--gds-sys-color-l3-content-tertiary);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&::placeholder {
|
|
60
60
|
font-family: inherit;
|
|
61
|
-
font-weight: var(--gds-text-weight-book);
|
|
62
|
-
color: var(--gds-color-l3-content-disabled);
|
|
61
|
+
font-weight: var(--gds-sys-text-weight-book);
|
|
62
|
+
color: var(--gds-sys-color-l3-content-disabled);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -5,11 +5,11 @@ const style = css`
|
|
|
5
5
|
display: flex;
|
|
6
6
|
z-index: 1050;
|
|
7
7
|
position: fixed;
|
|
8
|
-
inset: auto var(--gds-space-3xl) var(--gds-space-3xl) auto;
|
|
8
|
+
inset: auto var(--gds-sys-space-3xl) var(--gds-sys-space-3xl) auto;
|
|
9
9
|
}
|
|
10
10
|
.button {
|
|
11
11
|
box-shadow: var(--gds-shadow-m);
|
|
12
|
-
block-size: calc(var(--_block-size) + var(--gds-space-xs));
|
|
12
|
+
block-size: calc(var(--_block-size) + var(--gds-sys-space-xs));
|
|
13
13
|
width: max-content;
|
|
14
14
|
}
|
|
15
15
|
`;
|
|
@@ -29,7 +29,7 @@ __decorateClass([
|
|
|
29
29
|
__decorateClass([
|
|
30
30
|
styleExpressionProperty({
|
|
31
31
|
property: "border-radius",
|
|
32
|
-
valueTemplate: (v) => `var(--gds-space-${v})`
|
|
32
|
+
valueTemplate: (v) => `var(--gds-sys-space-${v})`
|
|
33
33
|
})
|
|
34
34
|
], GdsImg.prototype, "border-radius", 2);
|
|
35
35
|
__decorateClass([
|
|
@@ -5,13 +5,13 @@ const style = css`
|
|
|
5
5
|
|
|
6
6
|
@layer tokens {
|
|
7
7
|
:host {
|
|
8
|
-
--_gap: var(--gds-space-xs);
|
|
8
|
+
--_gap: var(--gds-sys-space-xs);
|
|
9
9
|
|
|
10
|
-
--_padding-inline: var(--gds-space-m);
|
|
11
|
-
--_padding-block: var(--gds-space-xs);
|
|
10
|
+
--_padding-inline: var(--gds-sys-space-m);
|
|
11
|
+
--_padding-block: var(--gds-sys-space-xs);
|
|
12
12
|
|
|
13
13
|
--_color-bg: transparent;
|
|
14
|
-
--_color-text: var(--gds-color-l3-content-tertiary);
|
|
14
|
+
--_color-text: var(--gds-sys-color-l3-content-tertiary);
|
|
15
15
|
--_color-border: transparent;
|
|
16
16
|
|
|
17
17
|
--_font-size: 1rem;
|
|
@@ -75,18 +75,18 @@ const style = css`
|
|
|
75
75
|
background-color: color-mix(
|
|
76
76
|
in srgb,
|
|
77
77
|
transparent,
|
|
78
|
-
var(--gds-color-l3-states-light-hover)
|
|
78
|
+
var(--gds-sys-color-l3-states-light-hover)
|
|
79
79
|
);
|
|
80
|
-
--_color-border: var(--gds-color-l3-border-secondary);
|
|
80
|
+
--_color-border: var(--gds-sys-color-l3-border-secondary);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&.selected {
|
|
84
84
|
background-color: color-mix(
|
|
85
85
|
in srgb,
|
|
86
86
|
transparent,
|
|
87
|
-
var(--gds-color-l3-states-light-hover)
|
|
87
|
+
var(--gds-sys-color-l3-states-light-hover)
|
|
88
88
|
);
|
|
89
|
-
--_color-border: var(--gds-color-l3-border-primary);
|
|
89
|
+
--_color-border: var(--gds-sys-color-l3-border-primary);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
slot:not([name]) {
|
|
@@ -99,7 +99,7 @@ const style = css`
|
|
|
99
99
|
.compact {
|
|
100
100
|
display: flex;
|
|
101
101
|
flex-direction: column;
|
|
102
|
-
--_padding-inline: var(--gds-space-s);
|
|
102
|
+
--_padding-inline: var(--gds-sys-space-s);
|
|
103
103
|
--_gap: 1px;
|
|
104
104
|
font-size: 0.875rem;
|
|
105
105
|
height: 56px;
|
|
@@ -120,7 +120,7 @@ const style = css`
|
|
|
120
120
|
|
|
121
121
|
:disabled {
|
|
122
122
|
border-color: var(--_color-bg);
|
|
123
|
-
color: var(--gds-color-l3-content-disabled);
|
|
123
|
+
color: var(--gds-sys-color-l3-content-disabled);
|
|
124
124
|
pointer-events: none;
|
|
125
125
|
}
|
|
126
126
|
|