@genexus/mercury 0.0.2 → 0.1.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/LICENSE +21 -0
- package/README.md +74 -0
- package/package.json +5 -2
- package/.editorconfig +0 -16
- package/.prettierrc.json +0 -13
- package/notes.md +0 -5
- package/src/_mixins.scss +0 -166
- package/src/assets/fonts/Inter_Black.woff2 +0 -0
- package/src/assets/fonts/Inter_Bold.woff2 +0 -0
- package/src/assets/fonts/Inter_ExtraBold.woff2 +0 -0
- package/src/assets/fonts/Inter_ExtraLight.woff2 +0 -0
- package/src/assets/fonts/Inter_Light.woff2 +0 -0
- package/src/assets/fonts/Inter_Medium.woff2 +0 -0
- package/src/assets/fonts/Inter_Regular.woff2 +0 -0
- package/src/assets/fonts/Inter_SemiBold.woff2 +0 -0
- package/src/assets/fonts/Inter_Thin.woff2 +0 -0
- package/src/assets/icons/objects/dark/api.svg +0 -1
- package/src/assets/icons/objects/dark/attribute.svg +0 -1
- package/src/assets/icons/objects/dark/bg-color.svg +0 -1
- package/src/assets/icons/objects/dark/business-process-diagram.svg +0 -1
- package/src/assets/icons/objects/dark/calendars.svg +0 -1
- package/src/assets/icons/objects/dark/category.svg +0 -1
- package/src/assets/icons/objects/dark/conversational-flows.svg +0 -1
- package/src/assets/icons/objects/dark/customization.svg +0 -1
- package/src/assets/icons/objects/dark/dashboard.svg +0 -1
- package/src/assets/icons/objects/dark/data-provider.svg +0 -1
- package/src/assets/icons/objects/dark/data-selector.svg +0 -1
- package/src/assets/icons/objects/dark/data-view.svg +0 -1
- package/src/assets/icons/objects/dark/datastore-category.svg +0 -1
- package/src/assets/icons/objects/dark/datastore.svg +0 -1
- package/src/assets/icons/objects/dark/dataview-index.svg +0 -1
- package/src/assets/icons/objects/dark/deployment-unit.svg +0 -1
- package/src/assets/icons/objects/dark/design.svg +0 -1
- package/src/assets/icons/objects/dark/diagram.svg +0 -1
- package/src/assets/icons/objects/dark/document-workflow.svg +0 -1
- package/src/assets/icons/objects/dark/document.svg +0 -1
- package/src/assets/icons/objects/dark/domain.svg +0 -1
- package/src/assets/icons/objects/dark/dso.svg +0 -1
- package/src/assets/icons/objects/dark/environment-no-select.svg +0 -1
- package/src/assets/icons/objects/dark/environment-select.svg +0 -1
- package/src/assets/icons/objects/dark/external-object.svg +0 -1
- package/src/assets/icons/objects/dark/file.svg +0 -1
- package/src/assets/icons/objects/dark/folder-open.svg +0 -1
- package/src/assets/icons/objects/dark/folder.svg +0 -1
- package/src/assets/icons/objects/dark/generator-category.svg +0 -1
- package/src/assets/icons/objects/dark/generator.svg +0 -1
- package/src/assets/icons/objects/dark/image.svg +0 -1
- package/src/assets/icons/objects/dark/knowledge-base.svg +0 -1
- package/src/assets/icons/objects/dark/lenguage.svg +0 -1
- package/src/assets/icons/objects/dark/main-object.svg +0 -1
- package/src/assets/icons/objects/dark/masterpage.svg +0 -1
- package/src/assets/icons/objects/dark/menu.svg +0 -1
- package/src/assets/icons/objects/dark/menubar.svg +0 -1
- package/src/assets/icons/objects/dark/mini-app.svg +0 -1
- package/src/assets/icons/objects/dark/module-open.svg +0 -1
- package/src/assets/icons/objects/dark/module.svg +0 -1
- package/src/assets/icons/objects/dark/notification-templates.svg +0 -1
- package/src/assets/icons/objects/dark/object.svg +0 -1
- package/src/assets/icons/objects/dark/offline-database.svg +0 -1
- package/src/assets/icons/objects/dark/orphant-document.svg +0 -1
- package/src/assets/icons/objects/dark/panel-for-sd.svg +0 -1
- package/src/assets/icons/objects/dark/patterns.svg +0 -1
- package/src/assets/icons/objects/dark/procedure.svg +0 -1
- package/src/assets/icons/objects/dark/query.svg +0 -1
- package/src/assets/icons/objects/dark/references.svg +0 -1
- package/src/assets/icons/objects/dark/report.svg +0 -1
- package/src/assets/icons/objects/dark/roles.svg +0 -1
- package/src/assets/icons/objects/dark/stencil.svg +0 -1
- package/src/assets/icons/objects/dark/structured-data-type.svg +0 -1
- package/src/assets/icons/objects/dark/subtype-group.svg +0 -1
- package/src/assets/icons/objects/dark/super-app.svg +0 -1
- package/src/assets/icons/objects/dark/table.svg +0 -1
- package/src/assets/icons/objects/dark/theme-for-sd.svg +0 -1
- package/src/assets/icons/objects/dark/theme-web.svg +0 -1
- package/src/assets/icons/objects/dark/theme.svg +0 -1
- package/src/assets/icons/objects/dark/to-be-defined.svg +0 -1
- package/src/assets/icons/objects/dark/transaction.svg +0 -1
- package/src/assets/icons/objects/dark/url-rewrite.svg +0 -1
- package/src/assets/icons/objects/dark/version.svg +0 -1
- package/src/assets/icons/objects/dark/web-component.svg +0 -1
- package/src/assets/icons/objects/dark/webpanel.svg +0 -1
- package/src/assets/icons/objects/dark/work-panel.svg +0 -1
- package/src/assets/icons/objects/dark/workflow.svg +0 -1
- package/src/assets/icons/objects/light/api.svg +0 -1
- package/src/assets/icons/objects/light/attribute.svg +0 -1
- package/src/assets/icons/objects/light/bg-color.svg +0 -1
- package/src/assets/icons/objects/light/business-process-diagram.svg +0 -1
- package/src/assets/icons/objects/light/calendars.svg +0 -1
- package/src/assets/icons/objects/light/category.svg +0 -1
- package/src/assets/icons/objects/light/conversational-flows.svg +0 -1
- package/src/assets/icons/objects/light/customization.svg +0 -1
- package/src/assets/icons/objects/light/dashboard.svg +0 -1
- package/src/assets/icons/objects/light/data-provider.svg +0 -1
- package/src/assets/icons/objects/light/data-selector.svg +0 -1
- package/src/assets/icons/objects/light/data-view.svg +0 -1
- package/src/assets/icons/objects/light/datastore-category.svg +0 -1
- package/src/assets/icons/objects/light/datastore.svg +0 -1
- package/src/assets/icons/objects/light/dataview-index.svg +0 -1
- package/src/assets/icons/objects/light/deployment-unit.svg +0 -1
- package/src/assets/icons/objects/light/design.svg +0 -1
- package/src/assets/icons/objects/light/diagram.svg +0 -1
- package/src/assets/icons/objects/light/document-workflow.svg +0 -1
- package/src/assets/icons/objects/light/document.svg +0 -1
- package/src/assets/icons/objects/light/domain.svg +0 -1
- package/src/assets/icons/objects/light/dso.svg +0 -1
- package/src/assets/icons/objects/light/environment-no-select.svg +0 -1
- package/src/assets/icons/objects/light/environment-select.svg +0 -1
- package/src/assets/icons/objects/light/external-object.svg +0 -1
- package/src/assets/icons/objects/light/file.svg +0 -1
- package/src/assets/icons/objects/light/folder-open.svg +0 -1
- package/src/assets/icons/objects/light/folder.svg +0 -1
- package/src/assets/icons/objects/light/generator-category.svg +0 -1
- package/src/assets/icons/objects/light/generator.svg +0 -1
- package/src/assets/icons/objects/light/image.svg +0 -1
- package/src/assets/icons/objects/light/knowledge-base.svg +0 -1
- package/src/assets/icons/objects/light/lenguage.svg +0 -1
- package/src/assets/icons/objects/light/main-object.svg +0 -1
- package/src/assets/icons/objects/light/masterpage.svg +0 -1
- package/src/assets/icons/objects/light/menu.svg +0 -1
- package/src/assets/icons/objects/light/menubar.svg +0 -1
- package/src/assets/icons/objects/light/mini-app.svg +0 -1
- package/src/assets/icons/objects/light/module-open.svg +0 -1
- package/src/assets/icons/objects/light/module.svg +0 -1
- package/src/assets/icons/objects/light/notification-templates.svg +0 -1
- package/src/assets/icons/objects/light/object.svg +0 -1
- package/src/assets/icons/objects/light/offline-database.svg +0 -1
- package/src/assets/icons/objects/light/orphant-document.svg +0 -1
- package/src/assets/icons/objects/light/panel-for-sd.svg +0 -1
- package/src/assets/icons/objects/light/patterns.svg +0 -1
- package/src/assets/icons/objects/light/procedure.svg +0 -1
- package/src/assets/icons/objects/light/query.svg +0 -1
- package/src/assets/icons/objects/light/references.svg +0 -1
- package/src/assets/icons/objects/light/report.svg +0 -1
- package/src/assets/icons/objects/light/roles.svg +0 -1
- package/src/assets/icons/objects/light/stencil.svg +0 -1
- package/src/assets/icons/objects/light/structured-data-type.svg +0 -1
- package/src/assets/icons/objects/light/subtype-group.svg +0 -1
- package/src/assets/icons/objects/light/super-app.svg +0 -1
- package/src/assets/icons/objects/light/table.svg +0 -1
- package/src/assets/icons/objects/light/theme-for-sd.svg +0 -1
- package/src/assets/icons/objects/light/theme-web.svg +0 -1
- package/src/assets/icons/objects/light/theme.svg +0 -1
- package/src/assets/icons/objects/light/to-be-defined.svg +0 -1
- package/src/assets/icons/objects/light/transaction.svg +0 -1
- package/src/assets/icons/objects/light/url-rewrite.svg +0 -1
- package/src/assets/icons/objects/light/version.svg +0 -1
- package/src/assets/icons/objects/light/web-component.svg +0 -1
- package/src/assets/icons/objects/light/webpanel.svg +0 -1
- package/src/assets/icons/objects/light/work-panel.svg +0 -1
- package/src/assets/icons/objects/light/workflow.svg +0 -1
- package/src/base/button/_icons.scss +0 -139
- package/src/base/button/_styles-2.scss +0 -275
- package/src/base/button/_styles.scss +0 -50
- package/src/base/button/_tokens.scss +0 -85
- package/src/base/icons/sass/icons-selectors.scss +0 -12
- package/src/base/icons/sass/multicolor/_objects.scss +0 -1948
- package/src/components/_template/_styles.scss +0 -4
- package/src/components/_template/_tokens.scss +0 -2
- package/src/components/checkbox/_styles.scss +0 -7
- package/src/components/checkbox/_tokens.scss +0 -14
- package/src/components/shortcuts/_styles.scss +0 -30
- package/src/components/shortcuts/_tokens.scss +0 -21
- package/src/components/tree-view/_styles.scss +0 -169
- package/src/components/tree-view/_tokens.scss +0 -60
- package/src/icons/_settings/monochrome.svg.template +0 -79
- package/src/icons/_settings/multicolor.svg.template +0 -126
- package/src/icons/_settings/states-monochrome.json +0 -18
- package/src/icons/objects/api.svg +0 -5
- package/src/icons/objects/attribute.svg +0 -6
- package/src/icons/objects/bg-color.svg +0 -6
- package/src/icons/objects/business-process-diagram.svg +0 -5
- package/src/icons/objects/calendars.svg +0 -5
- package/src/icons/objects/category.svg +0 -5
- package/src/icons/objects/conversational-flows.svg +0 -5
- package/src/icons/objects/customization.svg +0 -5
- package/src/icons/objects/dashboard.svg +0 -5
- package/src/icons/objects/data-provider.svg +0 -6
- package/src/icons/objects/data-selector.svg +0 -6
- package/src/icons/objects/data-view.svg +0 -6
- package/src/icons/objects/datastore-category.svg +0 -6
- package/src/icons/objects/datastore.svg +0 -6
- package/src/icons/objects/dataview-index.svg +0 -6
- package/src/icons/objects/deployment-unit.svg +0 -5
- package/src/icons/objects/design.svg +0 -6
- package/src/icons/objects/diagram.svg +0 -5
- package/src/icons/objects/document-workflow.svg +0 -5
- package/src/icons/objects/document.svg +0 -5
- package/src/icons/objects/domain.svg +0 -5
- package/src/icons/objects/dso.svg +0 -6
- package/src/icons/objects/environment-no-select.svg +0 -5
- package/src/icons/objects/environment-select.svg +0 -6
- package/src/icons/objects/external-object.svg +0 -5
- package/src/icons/objects/file.svg +0 -5
- package/src/icons/objects/folder-open.svg +0 -5
- package/src/icons/objects/folder.svg +0 -5
- package/src/icons/objects/generator-category.svg +0 -6
- package/src/icons/objects/generator.svg +0 -6
- package/src/icons/objects/image.svg +0 -5
- package/src/icons/objects/knowledge-base.svg +0 -7
- package/src/icons/objects/lenguage.svg +0 -5
- package/src/icons/objects/main-object.svg +0 -13
- package/src/icons/objects/masterpage.svg +0 -5
- package/src/icons/objects/menu.svg +0 -5
- package/src/icons/objects/menubar.svg +0 -6
- package/src/icons/objects/mini-app.svg +0 -8
- package/src/icons/objects/module-open.svg +0 -5
- package/src/icons/objects/module.svg +0 -5
- package/src/icons/objects/notification-templates.svg +0 -5
- package/src/icons/objects/object.svg +0 -5
- package/src/icons/objects/offline-database.svg +0 -6
- package/src/icons/objects/orphant-document.svg +0 -5
- package/src/icons/objects/panel-for-sd.svg +0 -6
- package/src/icons/objects/patterns.svg +0 -6
- package/src/icons/objects/procedure.svg +0 -5
- package/src/icons/objects/query.svg +0 -6
- package/src/icons/objects/references.svg +0 -5
- package/src/icons/objects/report.svg +0 -5
- package/src/icons/objects/roles.svg +0 -5
- package/src/icons/objects/stencil.svg +0 -10
- package/src/icons/objects/structured-data-type.svg +0 -7
- package/src/icons/objects/subtype-group.svg +0 -5
- package/src/icons/objects/super-app.svg +0 -8
- package/src/icons/objects/table.svg +0 -5
- package/src/icons/objects/theme-for-sd.svg +0 -6
- package/src/icons/objects/theme-web.svg +0 -9
- package/src/icons/objects/theme.svg +0 -6
- package/src/icons/objects/to-be-defined.svg +0 -5
- package/src/icons/objects/transaction.svg +0 -5
- package/src/icons/objects/url-rewrite.svg +0 -5
- package/src/icons/objects/version.svg +0 -8
- package/src/icons/objects/web-component.svg +0 -5
- package/src/icons/objects/webpanel.svg +0 -6
- package/src/icons/objects/work-panel.svg +0 -5
- package/src/icons/objects/workflow.svg +0 -5
- package/src/mercury.scss +0 -294
- package/src/tokens/primitive/_border.scss +0 -13
- package/src/tokens/primitive/_color.scss +0 -109
- package/src/tokens/primitive/_elevation.scss +0 -38
- package/src/tokens/primitive/_font.scss +0 -37
- package/src/tokens/primitive/_spacing.scss +0 -12
- package/src/tokens/primitive/_timing.scss +0 -6
- package/src/tokens/semantic/_accent.scss +0 -7
- package/src/tokens/semantic/_border.scss +0 -16
- package/src/tokens/semantic/_heading.scss +0 -3
- package/src/tokens/semantic/_icon.scss +0 -18
- package/src/tokens/semantic/_item.scss +0 -21
- package/src/tokens/semantic/_other.scss +0 -46
- package/src/tokens/semantic/_text.scss +0 -16
- package/src/tokens/semantic/_tokens.scss +0 -7
- package/svg-generator/processor-sass.js +0 -301
- package/svg-generator/processor-svg.js +0 -397
- package/svg-generator/processor-ts.js +0 -0
- package/temporary-tests/test-button-icons/index.html +0 -48
- package/temporary-tests/test-icons/index.html +0 -247
- package/test/test.scss +0 -3
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
//monochrome
|
|
2
|
-
@mixin button-icon-style-monochrome(
|
|
3
|
-
$input-selector,
|
|
4
|
-
$output-selector,
|
|
5
|
-
$light: true,
|
|
6
|
-
$dark: true,
|
|
7
|
-
$on-surface: true,
|
|
8
|
-
$on-primary: true,
|
|
9
|
-
$on-primary-active: true
|
|
10
|
-
) {
|
|
11
|
-
//light
|
|
12
|
-
@if $light {
|
|
13
|
-
#{$output-selector} {
|
|
14
|
-
@if $on-surface {
|
|
15
|
-
&--on-surface {
|
|
16
|
-
@extend #{$input-selector}--on-surface-light !optional;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
@if $on-primary {
|
|
20
|
-
&--on-primary {
|
|
21
|
-
@extend #{$input-selector}--on-primary-light !optional;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
@if $on-primary-active {
|
|
25
|
-
&--on-primary:active {
|
|
26
|
-
@extend #{$input-selector}--on-primary-active-light !optional;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
//dark
|
|
32
|
-
@if $dark {
|
|
33
|
-
html.dark #{$output-selector} {
|
|
34
|
-
@if $on-surface {
|
|
35
|
-
@if $dark {
|
|
36
|
-
&--on-surface {
|
|
37
|
-
@extend #{$input-selector}--on-surface-dark !optional;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
@if $on-primary {
|
|
42
|
-
@if $dark {
|
|
43
|
-
&--on-primary {
|
|
44
|
-
@extend #{$input-selector}--on-primary-dark !optional;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
@if $on-primary-active {
|
|
49
|
-
@if $dark {
|
|
50
|
-
&--on-primary:active {
|
|
51
|
-
@extend #{$input-selector}--on-primary-active-dark !optional;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
//multicolor
|
|
60
|
-
@mixin button-icon-style-multicolor(
|
|
61
|
-
$input-selector,
|
|
62
|
-
$output-selector,
|
|
63
|
-
$light: true,
|
|
64
|
-
$dark: true,
|
|
65
|
-
$enabled: true,
|
|
66
|
-
$hover: true,
|
|
67
|
-
$active: true,
|
|
68
|
-
$disabled: true
|
|
69
|
-
) {
|
|
70
|
-
// enabled
|
|
71
|
-
@if $enabled and $light {
|
|
72
|
-
#{$output-selector} {
|
|
73
|
-
@extend #{$input-selector}--enabled-light;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
@if $enabled and $dark {
|
|
77
|
-
html.dark #{$output-selector} {
|
|
78
|
-
@extend #{$input-selector}--enabled-dark;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// :hover
|
|
83
|
-
@if $hover and $light {
|
|
84
|
-
#{$output-selector}:hover {
|
|
85
|
-
@extend #{$input-selector}--hover-light;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
@if $hover and $dark {
|
|
89
|
-
html.dark #{$output-selector}:hover {
|
|
90
|
-
@extend #{$input-selector}--hover-dark;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// :active
|
|
95
|
-
@if $active and $light {
|
|
96
|
-
#{$output-selector}:active {
|
|
97
|
-
@extend #{$input-selector}--active-light;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
@if $active and $dark {
|
|
101
|
-
html.dark #{$output-selector}:active {
|
|
102
|
-
@extend #{$input-selector}--active-dark;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// :disabled
|
|
107
|
-
@if $disabled and $light {
|
|
108
|
-
#{$output-selector}:disabled {
|
|
109
|
-
@extend #{$input-selector}--disabled-light;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
@if $disabled and $dark {
|
|
113
|
-
html.dark #{$output-selector}:disabled {
|
|
114
|
-
@extend #{$input-selector}--disabled-dark;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@mixin icons-classes() {
|
|
120
|
-
// Generate monochrome icons (light and/or dark)
|
|
121
|
-
// @each $list-name, $list in $all-monochrome-lists {
|
|
122
|
-
// @each $icon in $list {
|
|
123
|
-
// @include button-icon-style-monochrome(
|
|
124
|
-
// $input-selector: "%icon__#{$list-name}-#{$icon}",
|
|
125
|
-
// $output-selector: ".icon__#{$list-name}-#{$icon}"
|
|
126
|
-
// );
|
|
127
|
-
// }
|
|
128
|
-
// }
|
|
129
|
-
|
|
130
|
-
//Generate multicolor icons (light and/or dark)
|
|
131
|
-
@each $list-name, $list in $all-multicolor-lists {
|
|
132
|
-
@each $icon in $list {
|
|
133
|
-
@include button-icon-style-multicolor(
|
|
134
|
-
$input-selector: "%icon__#{$list-name}-#{$icon}",
|
|
135
|
-
$output-selector: ".icon__#{$list-name}-#{$icon}"
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
%button-base {
|
|
2
|
-
display: inline-grid;
|
|
3
|
-
grid-auto-flow: column;
|
|
4
|
-
grid-auto-columns: max-content;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
gap: var(--spacing-un-spacing--s); // Used when the button has icons
|
|
7
|
-
min-block-size: var(--button__height);
|
|
8
|
-
font-family: var(--button__font-family);
|
|
9
|
-
font-size: var(--button__font-size);
|
|
10
|
-
line-height: 18px; // 128.571%
|
|
11
|
-
letter-spacing: 0.2px;
|
|
12
|
-
text-transform: uppercase;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
%button-primary {
|
|
16
|
-
@extend %button-base;
|
|
17
|
-
background-color: var(--accents-un-accent__primary);
|
|
18
|
-
border-radius: var(--border-radius-un-border__radius--s);
|
|
19
|
-
color: var(--text-un-text__on-primary);
|
|
20
|
-
padding-inline: var(--spacing-un-spacing--xl);
|
|
21
|
-
|
|
22
|
-
&--focus-visible {
|
|
23
|
-
@include focus-style();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&--hover {
|
|
27
|
-
background-color: var(--accents-un-accent__primary--hover);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--active {
|
|
31
|
-
background-color: var(--accents-un-accent__primary--active);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&--disabled {
|
|
35
|
-
background-color: var(--accents-un-accent__disabled);
|
|
36
|
-
color: var(--text-un-text__on-disabled);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&--error {
|
|
40
|
-
background: var(--accents-un-accent__destructive);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
%button-secondary {
|
|
45
|
-
@extend %button-base;
|
|
46
|
-
border: var(--border-radius-un-border__radius--xs) solid
|
|
47
|
-
var(--borders-un-border-color__primary);
|
|
48
|
-
border-radius: var(--border-radius-un-border__radius--s);
|
|
49
|
-
color: var(--text-un-text__primary);
|
|
50
|
-
padding-inline: var(--spacing-un-spacing--xl);
|
|
51
|
-
|
|
52
|
-
&--focus-visible {
|
|
53
|
-
@include focus-style();
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&--hover {
|
|
57
|
-
background-color: var(--accents-un-accent__primary-dim--hover);
|
|
58
|
-
border-color: var(--borders-un-border-color__primary--hover);
|
|
59
|
-
color: var(--text-un-text__primary--hover);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&--active {
|
|
63
|
-
color: var(--text-un-text__primary--active);
|
|
64
|
-
border-color: var(--borders-un-border-color__primary--active);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&--disabled {
|
|
68
|
-
border-color: var(--borders-un-border-color__disabled);
|
|
69
|
-
color: var(--text-un-text__on-disabled);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&--error {
|
|
73
|
-
border-color: var(--borders-un-border-color__destructive);
|
|
74
|
-
color: var(--text-un-text__destructive);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
%button-tertiary {
|
|
79
|
-
@extend %button-base;
|
|
80
|
-
color: var(--text-un-text__primary);
|
|
81
|
-
padding-inline: var(--spacing-un-spacing--l);
|
|
82
|
-
|
|
83
|
-
&--focus-visible {
|
|
84
|
-
@include focus-style($outline: true);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&--hover {
|
|
88
|
-
background-color: var(--accents-un-accent__primary-dim--hover);
|
|
89
|
-
color: var(--text-un-text__primary--hover);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&--active {
|
|
93
|
-
color: var(--text-un-text__primary--active);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&--disabled {
|
|
97
|
-
color: var(--text-un-text__on-disabled);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&--error {
|
|
101
|
-
color: var(--text-un-text__destructive);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
%button-icon {
|
|
106
|
-
content: "";
|
|
107
|
-
display: block;
|
|
108
|
-
inline-size: var(--spacing-un-spacing--xl);
|
|
109
|
-
block-size: var(--spacing-un-spacing--xl);
|
|
110
|
-
-webkit-mask: var(--ch-button-icon) 50% 50% / 100% 100% no-repeat;
|
|
111
|
-
background-color: currentColor;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
%button-icon-only {
|
|
115
|
-
padding-inline: var(--spacing-un-spacing--s);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
%button-icon-and-text,
|
|
119
|
-
%button-icon-after-and-text {
|
|
120
|
-
padding-inline: var(--spacing-un-spacing--l);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
%button-icon-after-and-text--before {
|
|
124
|
-
order: 1;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
%text-link {
|
|
128
|
-
color: var(--link-un-link__font-color);
|
|
129
|
-
font-size: 14px;
|
|
130
|
-
line-height: 18px; // 128.571%
|
|
131
|
-
letter-spacing: 0.4px;
|
|
132
|
-
text-decoration-line: underline;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@mixin button-primary(
|
|
136
|
-
$selector: ".button-primary",
|
|
137
|
-
$add--disabled: true,
|
|
138
|
-
$add--error: true
|
|
139
|
-
) {
|
|
140
|
-
#{$selector} {
|
|
141
|
-
@extend %button-primary;
|
|
142
|
-
|
|
143
|
-
&:focus-visible {
|
|
144
|
-
@extend %button-primary--focus-visible;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&:hover {
|
|
148
|
-
@extend %button-primary--hover;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&:active {
|
|
152
|
-
@extend %button-primary--active;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@if $add--disabled == true {
|
|
156
|
-
&:disabled,
|
|
157
|
-
&--disabled {
|
|
158
|
-
@extend %button-primary--disabled;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@if $add--error == true {
|
|
163
|
-
&--error {
|
|
164
|
-
@extend %button-primary--error;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
@mixin button-secondary(
|
|
171
|
-
$selector: ".button-secondary",
|
|
172
|
-
$add--disabled: true,
|
|
173
|
-
$add--error: true
|
|
174
|
-
) {
|
|
175
|
-
#{$selector} {
|
|
176
|
-
@extend %button-secondary;
|
|
177
|
-
|
|
178
|
-
&:focus-visible {
|
|
179
|
-
@extend %button-secondary--focus-visible;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&:hover {
|
|
183
|
-
@extend %button-secondary--hover;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&:active {
|
|
187
|
-
@extend %button-secondary--active;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
@if $add--disabled == true {
|
|
191
|
-
&:disabled,
|
|
192
|
-
&--disabled {
|
|
193
|
-
@extend %button-secondary--disabled;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@if $add--error == true {
|
|
198
|
-
&--error {
|
|
199
|
-
@extend %button-secondary--error;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
@mixin button-tertiary(
|
|
206
|
-
$selector: ".button-tertiary",
|
|
207
|
-
$add--disabled: true,
|
|
208
|
-
$add--error: true
|
|
209
|
-
) {
|
|
210
|
-
#{$selector} {
|
|
211
|
-
@extend %button-tertiary;
|
|
212
|
-
|
|
213
|
-
&:focus-visible {
|
|
214
|
-
@extend %button-tertiary--focus-visible;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&:hover {
|
|
218
|
-
@extend %button-tertiary--hover;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&:active {
|
|
222
|
-
@extend %button-tertiary--active;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
@if $add--disabled == true {
|
|
226
|
-
&:disabled,
|
|
227
|
-
&--disabled {
|
|
228
|
-
@extend %button-tertiary--disabled;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
@if $add--error == true {
|
|
233
|
-
&--error {
|
|
234
|
-
@extend %button-tertiary--error;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
@mixin button-classes() {
|
|
241
|
-
// Button primary
|
|
242
|
-
@include button-primary();
|
|
243
|
-
|
|
244
|
-
// Button secondary
|
|
245
|
-
@include button-secondary();
|
|
246
|
-
|
|
247
|
-
// Button tertiary
|
|
248
|
-
@include button-tertiary();
|
|
249
|
-
|
|
250
|
-
// Button with icon
|
|
251
|
-
.button-icon-only::before,
|
|
252
|
-
.button-icon-and-text::before,
|
|
253
|
-
.button-icon-after-and-text::before {
|
|
254
|
-
@extend %button-icon;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.button-icon-only {
|
|
258
|
-
@extend %button-icon-only;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.button-icon-and-text,
|
|
262
|
-
.button-icon-after-and-text {
|
|
263
|
-
@extend %button-icon-and-text;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.button-icon-after-and-text::before {
|
|
267
|
-
@extend %button-icon-after-and-text--before;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
@mixin hyperlink() {
|
|
272
|
-
.text-link {
|
|
273
|
-
@extend %text-link;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
@import "tokens";
|
|
2
|
-
@import "icons";
|
|
3
|
-
|
|
4
|
-
@mixin button($with-icons) {
|
|
5
|
-
:root {
|
|
6
|
-
@include button-tokens();
|
|
7
|
-
}
|
|
8
|
-
/*----------------------
|
|
9
|
-
General button styles
|
|
10
|
-
----------------------*/
|
|
11
|
-
.button {
|
|
12
|
-
font-family: var(--button__font-family);
|
|
13
|
-
padding-block-start: var(--button__padding-block);
|
|
14
|
-
padding-block-end: var(--button__padding-block);
|
|
15
|
-
padding-inline-start: var(--button__padding-inline);
|
|
16
|
-
padding-inline-end: var(--button__padding-inline);
|
|
17
|
-
height: var(--button__height);
|
|
18
|
-
font-weight: var(--button__font-weight);
|
|
19
|
-
color: var(--button__color);
|
|
20
|
-
border-radius: var(--button__border-radius);
|
|
21
|
-
border-width: var(--button__border-width);
|
|
22
|
-
border-style: var(--button__border-style);
|
|
23
|
-
border-color: var(--button-primary__border-color);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/*----------------------
|
|
27
|
-
Button primary
|
|
28
|
-
----------------------*/
|
|
29
|
-
.button--primary {
|
|
30
|
-
background-color: var(--button-primary__background-color);
|
|
31
|
-
|
|
32
|
-
// hover
|
|
33
|
-
&:hover {
|
|
34
|
-
color: var(--button-primary__color--hover);
|
|
35
|
-
background-color: var(--button-primary__background-color--hover);
|
|
36
|
-
border-color: var(--button-primary__border-color--hover);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// active
|
|
40
|
-
&:active {
|
|
41
|
-
color: var(--button-primary__color--active);
|
|
42
|
-
background-color: var(--button-primary__background-color--active);
|
|
43
|
-
border-color: var(--button-primary__border-color--active);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// hover
|
|
47
|
-
&:disabled {
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
@mixin button-tokens() {
|
|
2
|
-
/*----------------------
|
|
3
|
-
General
|
|
4
|
-
----------------------*/
|
|
5
|
-
//padding
|
|
6
|
-
--button__padding-block: 0;
|
|
7
|
-
--button__padding-inline: var(--mer-spacing--sm);
|
|
8
|
-
//border
|
|
9
|
-
--button__border-width: 1px;
|
|
10
|
-
--button__border-style: solid;
|
|
11
|
-
--button__border-color: transparent;
|
|
12
|
-
--button__border-radius: var(--mer-border__radius--sm);
|
|
13
|
-
//font
|
|
14
|
-
--button__font-family: inherit;
|
|
15
|
-
--button__font-size: inherit;
|
|
16
|
-
--button__font-weight: var(--mer-font__weight--semi-bold);
|
|
17
|
-
--button__letter-spacing: inherit;
|
|
18
|
-
--button__line-height: inherit;
|
|
19
|
-
--button__color: var(--mer-text__on-primary);
|
|
20
|
-
//other
|
|
21
|
-
--button__height: var(--spacing-comp-05);
|
|
22
|
-
|
|
23
|
-
/*----------------------
|
|
24
|
-
Primary
|
|
25
|
-
----------------------*/
|
|
26
|
-
--button-primary__color: inherit;
|
|
27
|
-
--button-primary__background-color: var(--mer-accent__primary);
|
|
28
|
-
--button-primary__border-color: var(--button-primary__background-color);
|
|
29
|
-
//hover
|
|
30
|
-
--button-primary__color--hover: var(--mer-text__on-primary);
|
|
31
|
-
--button-primary__background-color--hover: var(--mer-accent__primary--hover);
|
|
32
|
-
--button-primary__border-color--hover: var(
|
|
33
|
-
--button-primary__background-color--hover
|
|
34
|
-
);
|
|
35
|
-
//active
|
|
36
|
-
--button-primary__color--active: var(--mer-text__on-primary--active);
|
|
37
|
-
--button-primary__background-color--active: var(
|
|
38
|
-
--mer-accent__primary--active
|
|
39
|
-
);
|
|
40
|
-
--button-primary__border-color--active: var(
|
|
41
|
-
--button-primary__background-color--active
|
|
42
|
-
);
|
|
43
|
-
//disabled
|
|
44
|
-
--button-primary__color--disabled: inherit;
|
|
45
|
-
--button-primary__background-color--disabled: inherit;
|
|
46
|
-
--button-primary__border-color--disabled: inherit;
|
|
47
|
-
|
|
48
|
-
/*----------------------
|
|
49
|
-
Secondary
|
|
50
|
-
----------------------*/
|
|
51
|
-
--button-secondary__color: inherit;
|
|
52
|
-
--button-secondary__background-color: inherit;
|
|
53
|
-
--button-secondary__border-color: inherit;
|
|
54
|
-
//hover
|
|
55
|
-
--button-secondary__color--hover: inherit;
|
|
56
|
-
--button-secondary__background-color--hover: inherit;
|
|
57
|
-
--button-secondary__border-color--hover: inherit;
|
|
58
|
-
//active
|
|
59
|
-
--button-secondary__color--active: inherit;
|
|
60
|
-
--button-secondary__background-color--active: inherit;
|
|
61
|
-
--button-secondary__border-color--active: inherit;
|
|
62
|
-
//disabled
|
|
63
|
-
--button-secondary__color--disabled: inherit;
|
|
64
|
-
--button-secondary__background-color--disabled: inherit;
|
|
65
|
-
--button-secondary__border-color--disabled: inherit;
|
|
66
|
-
|
|
67
|
-
/*----------------------
|
|
68
|
-
Outlined
|
|
69
|
-
----------------------*/
|
|
70
|
-
--button-outlined__color: inherit;
|
|
71
|
-
--button-outlined__background-color: inherit;
|
|
72
|
-
--button-outlined__border-color: inherit;
|
|
73
|
-
//hover
|
|
74
|
-
--button-outlined__color--hover: inherit;
|
|
75
|
-
--button-outlined__background-color--hover: inherit;
|
|
76
|
-
--button-outlined__border-color--hover: inherit;
|
|
77
|
-
//active
|
|
78
|
-
--button-outlined__color--active: inherit;
|
|
79
|
-
--button-outlined__background-color--active: inherit;
|
|
80
|
-
--button-outlined__border-color--active: inherit;
|
|
81
|
-
//disabled
|
|
82
|
-
--button-outlined__color--disabled: inherit;
|
|
83
|
-
--button-outlined__background-color--disabled: inherit;
|
|
84
|
-
--button-outlined__border-color--disabled: inherit;
|
|
85
|
-
}
|