neo.mjs 6.9.11 → 6.10.0

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.
Files changed (64) hide show
  1. package/BACKERS.md +0 -30
  2. package/apps/ServiceWorker.mjs +2 -2
  3. package/apps/learnneo/index.html +7 -2
  4. package/apps/learnneo/neo-config.json +1 -4
  5. package/apps/learnneo/view/LivePreview.mjs +171 -0
  6. package/apps/learnneo/view/Viewport.mjs +11 -4
  7. package/apps/learnneo/view/ViewportController.mjs +2 -2
  8. package/apps/learnneo/view/home/ContentTreeList.mjs +93 -5
  9. package/apps/learnneo/view/home/MainContainer.mjs +16 -16
  10. package/apps/learnneo/view/home/MainContainerController.mjs +5 -20
  11. package/apps/learnneo/view/home/MainContainerModel.mjs +3 -5
  12. package/apps/newwebsite/index.html +3 -0
  13. package/buildScripts/convertDesignTokens.mjs +173 -0
  14. package/examples/ServiceWorker.mjs +2 -2
  15. package/package.json +5 -8
  16. package/resources/data/deck/learnneo/p/2023-10-01T18-29-19-158Z.md +14 -16
  17. package/resources/data/deck/learnneo/p/2023-10-07T19-18-28-517Z.md +9 -17
  18. package/resources/data/deck/learnneo/p/2023-10-08T20-20-07-934Z.md +7 -5
  19. package/resources/data/deck/learnneo/p/2023-10-08T20-20-37-336Z.md +17 -10
  20. package/resources/data/deck/learnneo/p/2023-10-14T19-25-08-153Z.md +18 -22
  21. package/resources/data/deck/learnneo/p/2023-10-31T13-59-37-550Z.md +31 -0
  22. package/resources/data/deck/learnneo/p/MainThreadAddonExample.md +15 -0
  23. package/resources/data/deck/learnneo/p/MainThreadAddonIntro.md +46 -0
  24. package/resources/data/deck/learnneo/p/TestLivePreview.md +10 -0
  25. package/resources/data/deck/learnneo/p/stylesheet.md +22 -8
  26. package/resources/data/deck/learnneo/t.json +126 -56
  27. package/resources/data/deck/training/p/2023-01-10T02-21-54-303Z.md +1 -1
  28. package/resources/data/deck/training/t.json +1276 -1
  29. package/resources/design-tokens/json/component.json +288 -0
  30. package/resources/design-tokens/json/core.json +352 -0
  31. package/resources/design-tokens/json/semantic.json +231 -0
  32. package/resources/images/logos/Github-logo-black.svg +1 -0
  33. package/resources/images/logos/Slack-logo-black.svg +17 -0
  34. package/resources/scss/src/apps/learnneo/Viewport.scss +3 -0
  35. package/resources/scss/src/apps/learnneo/home/ContentTreeList.scss +60 -13
  36. package/resources/scss/src/apps/learnneo/home/ContentView.scss +11 -2
  37. package/resources/scss/src/apps/newwebsite/MainContainer.scss +14 -15
  38. package/resources/scss/src/list/Base.scss +4 -0
  39. package/resources/scss/theme-neo-light/Global.scss +36 -16
  40. package/resources/scss/theme-neo-light/button/Base.scss +46 -45
  41. package/resources/scss/theme-neo-light/design-tokens/Component.scss +66 -1
  42. package/resources/scss/theme-neo-light/design-tokens/Core.scss +66 -5
  43. package/resources/scss/theme-neo-light/design-tokens/Semantic.scss +64 -0
  44. package/resources/scss/theme-neo-light/list/Base.scss +27 -6
  45. package/resources/scss/theme-neo-light/tab/header/Button.scss +1 -1
  46. package/src/DefaultConfig.mjs +2 -2
  47. package/src/component/StatusBadge.mjs +194 -246
  48. package/src/component/Video.mjs +19 -25
  49. package/src/controller/Base.mjs +33 -26
  50. package/src/core/Base.mjs +2 -2
  51. package/src/data/connection/Xhr.mjs +1 -1
  52. package/src/form/field/TextArea.mjs +3 -3
  53. package/src/main/DomAccess.mjs +64 -70
  54. package/src/main/DomEvents.mjs +1 -1
  55. package/src/main/addon/HighlightJS.mjs +16 -1
  56. package/src/main/addon/Mwc.mjs +6 -1
  57. package/src/worker/Manager.mjs +8 -3
  58. package/examples/container/dialog/MainContainer.mjs +0 -68
  59. package/examples/container/dialog/MainContainerController.mjs +0 -84
  60. package/examples/container/dialog/app.mjs +0 -6
  61. package/examples/container/dialog/index.html +0 -11
  62. package/examples/container/dialog/neo-config.json +0 -7
  63. package/src/container/Dialog.mjs +0 -205
  64. package/src/main/addon/Dialog.mjs +0 -68
@@ -0,0 +1,231 @@
1
+ {
2
+ "sem": {
3
+ "color": {
4
+ "bg": {
5
+ "neutral": {
6
+ "default": {
7
+ "value": "{gray.50}",
8
+ "type": "color"
9
+ },
10
+ "highlighted": {
11
+ "value": "{white}",
12
+ "type": "color"
13
+ },
14
+ "hover": {
15
+ "value": "{gray.900}",
16
+ "type": "color",
17
+ "$extensions": {
18
+ "studio.tokens": {
19
+ "modify": {
20
+ "type": "alpha",
21
+ "value": "0.05",
22
+ "space": "hsl"
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "active": {
28
+ "value": "{gray.900}",
29
+ "type": "color",
30
+ "$extensions": {
31
+ "studio.tokens": {
32
+ "modify": {
33
+ "type": "alpha",
34
+ "value": "0.1",
35
+ "space": "lch"
36
+ }
37
+ }
38
+ }
39
+ },
40
+ "disabled": {
41
+ "value": "{gray.200}",
42
+ "type": "color"
43
+ }
44
+ },
45
+ "primary": {
46
+ "default": {
47
+ "value": "{green.400}",
48
+ "type": "color"
49
+ },
50
+ "hover": {
51
+ "value": "{green.500}",
52
+ "type": "color"
53
+ },
54
+ "active": {
55
+ "value": "{green.600}",
56
+ "type": "color"
57
+ },
58
+ "background": {
59
+ "value": "{green.100}",
60
+ "type": "color"
61
+ },
62
+ "disabled": {
63
+ "value": "{gray.200}",
64
+ "type": "color"
65
+ }
66
+ }
67
+ },
68
+ "fg": {
69
+ "neutral": {
70
+ "default": {
71
+ "value": "{gray.900}",
72
+ "type": "color"
73
+ },
74
+ "contrast": {
75
+ "value": "{black}",
76
+ "type": "color"
77
+ },
78
+ "subdued": {
79
+ "value": "{gray.700}",
80
+ "type": "color"
81
+ },
82
+ "disabled": {
83
+ "value": "{gray.300}",
84
+ "type": "color"
85
+ }
86
+ },
87
+ "primary": {
88
+ "highlighted": {
89
+ "value": "{green.400}",
90
+ "type": "color"
91
+ },
92
+ "base": {
93
+ "value": "{green.500}",
94
+ "type": "color"
95
+ },
96
+ "faded": {
97
+ "value": "{green.600}",
98
+ "type": "color"
99
+ }
100
+ }
101
+ },
102
+ "border": {
103
+ "subtle": {
104
+ "value": "{gray.100}",
105
+ "type": "color"
106
+ },
107
+ "default": {
108
+ "value": "{gray.200}",
109
+ "type": "color"
110
+ },
111
+ "contrast": {
112
+ "value": "{black}",
113
+ "type": "color"
114
+ }
115
+ }
116
+ },
117
+ "spacing": {
118
+ "xxxsmall": {
119
+ "value": "{spacing.2}",
120
+ "type": "spacing"
121
+ },
122
+ "xxsmall": {
123
+ "value": "{spacing.4}",
124
+ "type": "spacing"
125
+ },
126
+ "xsmall": {
127
+ "value": "{spacing.8}",
128
+ "type": "spacing"
129
+ },
130
+ "small": {
131
+ "value": "{spacing.12}",
132
+ "type": "spacing"
133
+ },
134
+ "medium": {
135
+ "value": "{spacing.16}",
136
+ "type": "spacing"
137
+ },
138
+ "large": {
139
+ "value": "{spacing.20}",
140
+ "type": "spacing"
141
+ },
142
+ "xlarge": {
143
+ "value": "{spacing.24}",
144
+ "type": "spacing"
145
+ },
146
+ "xxlarge": {
147
+ "value": "{spacing.32}",
148
+ "type": "spacing"
149
+ },
150
+ "xxxlarge": {
151
+ "value": "{spacing.40}",
152
+ "type": "spacing"
153
+ }
154
+ },
155
+ "height": {
156
+ "xxsmall": {
157
+ "value": "{height.2}",
158
+ "type": "sizing"
159
+ },
160
+ "xsmall": {
161
+ "value": "{height.4}",
162
+ "type": "sizing"
163
+ },
164
+ "small": {
165
+ "value": "{height.8}",
166
+ "type": "sizing"
167
+ },
168
+ "medium": {
169
+ "value": "{height.16}",
170
+ "type": "sizing"
171
+ },
172
+ "large": {
173
+ "value": "{height.32}",
174
+ "type": "sizing"
175
+ },
176
+ "xlarge": {
177
+ "value": "{height.48}",
178
+ "type": "sizing"
179
+ }
180
+ },
181
+ "borderradius": {
182
+ "none": {
183
+ "value": "{borderradius.0}",
184
+ "type": "borderRadius"
185
+ },
186
+ "medium": {
187
+ "value": "{borderradius.4}",
188
+ "type": "borderRadius"
189
+ },
190
+ "large": {
191
+ "value": "{borderradius.8}",
192
+ "type": "borderRadius"
193
+ }
194
+ },
195
+ "typo": {
196
+ "h1": {
197
+ "value": {
198
+ "fontFamily": "{core.fontfamily.sans}",
199
+ "fontSize": "{core.fontsize.h1}",
200
+ "fontWeight": "{core.fontweight.bold}",
201
+ "textDecoration": "none",
202
+ "letterSpacing": "-0.02em",
203
+ "lineHeight": "{core.lineheight.headline}"
204
+ },
205
+ "type": "typography"
206
+ },
207
+ "h2": {
208
+ "value": {
209
+ "fontFamily": "{core.fontfamily.sans}",
210
+ "fontSize": "{core.fontsize.h2}",
211
+ "lineHeight": "{core.lineheight.headline}",
212
+ "fontWeight": "{core.fontweight.semibold}"
213
+ },
214
+ "type": "typography"
215
+ },
216
+ "body": {
217
+ "value": {
218
+ "fontFamily": "{core.fontfamily.sans}",
219
+ "fontSize": "{core.fontsize.body}",
220
+ "fontWeight": "{core.fontweight.regular}",
221
+ "letterSpacing": "0",
222
+ "paragraphSpacing": "0",
223
+ "paragraphIndent": "0",
224
+ "textDecoration": "none",
225
+ "lineHeight": "{core.lineheight.paragraph}"
226
+ },
227
+ "type": "typography"
228
+ }
229
+ }
230
+ }
231
+ }
@@ -0,0 +1 @@
1
+ <svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>
@@ -0,0 +1,17 @@
1
+ <svg width="123" height="124" viewBox="0 0 123 124" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_460_4276)">
3
+ <path d="M25.8 78.1988C25.8 85.2988 20 91.0988 12.9 91.0988C5.8 91.0988 0 85.2988 0 78.1988C0 71.0988 5.8 65.2988 12.9 65.2988H25.8V78.1988Z" fill="black"/>
4
+ <path d="M32.3008 78.1988C32.3008 71.0988 38.1008 65.2988 45.2008 65.2988C52.3008 65.2988 58.1008 71.0988 58.1008 78.1988V110.499C58.1008 117.599 52.3008 123.399 45.2008 123.399C38.1008 123.399 32.3008 117.599 32.3008 110.499V78.1988Z" fill="black"/>
5
+ <path d="M45.2008 26.3996C38.1008 26.3996 32.3008 20.5996 32.3008 13.4996C32.3008 6.39961 38.1008 0.599609 45.2008 0.599609C52.3008 0.599609 58.1008 6.39961 58.1008 13.4996V26.3996H45.2008Z" fill="black"/>
6
+ <path d="M45.2 32.9004C52.3 32.9004 58.1 38.7004 58.1 45.8004C58.1 52.9004 52.3 58.7004 45.2 58.7004H12.9C5.8 58.7004 0 52.9004 0 45.8004C0 38.7004 5.8 32.9004 12.9 32.9004H45.2Z" fill="black"/>
7
+ <path d="M97 45.8004C97 38.7004 102.8 32.9004 109.9 32.9004C117 32.9004 122.8 38.7004 122.8 45.8004C122.8 52.9004 117 58.7004 109.9 58.7004H97V45.8004Z" fill="black"/>
8
+ <path d="M90.4992 45.7996C90.4992 52.8996 84.6992 58.6996 77.5992 58.6996C70.4992 58.6996 64.6992 52.8996 64.6992 45.7996V13.4996C64.6992 6.39961 70.4992 0.599609 77.5992 0.599609C84.6992 0.599609 90.4992 6.39961 90.4992 13.4996V45.7996Z" fill="black"/>
9
+ <path d="M77.5992 97.5996C84.6992 97.5996 90.4992 103.4 90.4992 110.5C90.4992 117.6 84.6992 123.4 77.5992 123.4C70.4992 123.4 64.6992 117.6 64.6992 110.5V97.5996H77.5992Z" fill="black"/>
10
+ <path d="M77.5992 91.0988C70.4992 91.0988 64.6992 85.2988 64.6992 78.1988C64.6992 71.0988 70.4992 65.2988 77.5992 65.2988H109.899C116.999 65.2988 122.799 71.0988 122.799 78.1988C122.799 85.2988 116.999 91.0988 109.899 91.0988H77.5992Z" fill="black"/>
11
+ </g>
12
+ <defs>
13
+ <clipPath id="clip0_460_4276">
14
+ <rect width="123" height="124" fill="white"/>
15
+ </clipPath>
16
+ </defs>
17
+ </svg>
@@ -0,0 +1,3 @@
1
+ .learnneo-maincontainer {
2
+ background-color: #f2f2f2;
3
+ }
@@ -1,33 +1,80 @@
1
+
2
+ .sidenav-container {
3
+ background-color: transparent;
4
+ margin: 8px 0 8px 8px;
5
+ }
6
+
1
7
  .topics-tree {
2
- &.neo-tree-list {
3
- .neo-treelist-collapse-all-icon {
4
- .neo-treelist-menu-item-content:before {
5
- content: "\f102" !important;
6
- }
8
+
9
+ background-color: white;
10
+ border-radius : 8px;
11
+ padding : 8px;
12
+
13
+ .neo-list-container>.neo-list-item {
14
+ font-size: 18px !important;
15
+ font-weight: 500;
16
+ }
17
+
18
+ .neo-list-item {
19
+ border-radius : 8px;
20
+ margin-right : 0 !important;
21
+ padding : 0 0 0 16px !important;
22
+ height : 48px;
23
+ display : flex;
24
+ align-items : center;
25
+ }
26
+
27
+ .neo-list-container ul {
28
+ padding: 0 !important;
29
+
30
+ .neo-list-item {
31
+ padding: 0 0 0 32px !important;
7
32
  }
8
33
 
9
- .neo-treelist-expand-all-icon {
10
- .neo-treelist-menu-item-content:before {
11
- content: "\f103" !important;
34
+ ul .neo-list-item {
35
+ padding: 0 0 0 48px !important;
36
+ }
37
+ }
38
+
39
+ .neo-list-folder {
40
+ .neo-list-item-content {
41
+ width : 100%;
42
+ display : flex;
43
+ justify-content : space-between;
44
+
45
+ &:after {
46
+ color : var(--list-item-glyph-color);
47
+ content : "\f0c8";
48
+ display : inline-block;
49
+ font-family : 'Material Icons';
50
+ font-size : 18px;
51
+ width : 25px;
52
+ padding-top : 4px;
53
+ }
54
+
55
+ &:before {
56
+ content: unset !important;
12
57
  }
13
58
  }
59
+ }
14
60
 
61
+ &.neo-tree-list {
15
62
  .neo-list-container {
16
63
  .neo-list-item {
17
64
  &.neo-list-item-leaf {
18
- .neo-list-item-content:before {
65
+ .neo-list-item-content:after {
19
66
  content: none !important;
20
67
  }
21
68
  }
22
69
 
23
70
  &.neo-list-folder {
24
- .neo-list-item-content:before {
25
- content: "\f107" !important;
71
+ .neo-list-item-content:after {
72
+ content: "\e5cc" !important;
26
73
  }
27
74
 
28
75
  &.neo-folder-open {
29
- .neo-list-item-content:before {
30
- content: "\f106" !important;
76
+ .neo-list-item-content:after {
77
+ content: "\e5cf" !important;
31
78
  }
32
79
  }
33
80
  }
@@ -1,10 +1,19 @@
1
1
  .learn-content {
2
- font-family: 'Open Sans';
3
- font-size: 13pt;
2
+
3
+ background-color: white;
4
+ border-radius : 8px;
5
+ margin : 8px 8px 8px 0 ;
6
+
4
7
  letter-spacing: 1px;
5
8
  overflow: scroll;
6
9
  padding: 1em;
7
10
 
11
+ pre[data-javascript]{
12
+ border-radius: 4px;
13
+ padding: 12px;
14
+ border: thin solid lightgray;
15
+ }
16
+
8
17
  em,
9
18
  i {
10
19
  font-family: Palatino, "Times New Roman", serif;
@@ -1,33 +1,32 @@
1
-
2
1
  .newwebsite-main-container {
3
- display: flex !important;
4
- align-items: center !important;
2
+ align-items : center !important;
3
+ display : flex !important;
4
+ gap : 48px;
5
5
  justify-content: center !important;
6
- gap: 48px;
7
- padding: 10% 15% 15% 15%;
6
+ padding : 10% 15% 15% 15%;
8
7
  }
9
8
 
10
9
  .button-group {
11
- display: flex !important;
10
+ display : flex !important;
12
11
  flex-direction: row-reverse !important;
13
- gap: 8px !important;
12
+ gap : 8px !important;
14
13
  }
15
14
 
16
15
  .neo-h1 {
17
- font-size: 48px;
16
+ font-size : 48px;
18
17
  font-weight: 600;
19
- text-align: center;
18
+ text-align : center;
20
19
  }
21
20
 
22
21
  .vector {
23
- background-image: url("../../../../images/Neo_Vector.svg");
24
- background-repeat: no-repeat;
25
- background-size: contain;
22
+ background-image : url("../../../../../../resources/images/Neo_Vector.svg");
26
23
  background-position: center center;
27
- width: 100%;
28
- height: 150px;
24
+ background-repeat : no-repeat;
25
+ background-size : contain;
26
+ height : 150px;
27
+ width : 100%;
29
28
  }
30
29
 
31
30
  .get-started-button {
32
31
  cursor: not-allowed !important;
33
- }
32
+ }
@@ -57,6 +57,10 @@
57
57
  background-color: var(--list-item-background-color-hover);
58
58
  color : var(--list-container-list-color);
59
59
  }
60
+ &:active {
61
+ background-color: var(--list-item-background-color-active);
62
+ color : var(--list-container-list-color);
63
+ }
60
64
  }
61
65
 
62
66
  &.neo-selected {
@@ -2,14 +2,14 @@
2
2
  --neo-background-color: #fafafa;
3
3
  --neo-color : #000;
4
4
  --neo-disabled-opacity: 0.5;
5
- --neo-font-family : "Helvetica Neue", "Helvetica", "Arial", "Lucida Grande", sans-serif;
5
+ --neo-font-family : 'Source Sans 3', sans-serif;
6
6
  --neo-font-smoothing : antialiased;
7
7
  }
8
8
 
9
9
  @import "../../../resources/scss/theme-neo-light/design-tokens/_all.scss";
10
10
 
11
11
  h1 {
12
- color : var(--semantic-color-fg-contrast);
12
+ color : var(--sem-color-fg-neutral-contrast);
13
13
  font-family : var(--core-fontfamily-sans);
14
14
  font-size : var(--core-fontsize-h1);
15
15
  font-weight : var(--core-fontweight-semibold);
@@ -17,9 +17,8 @@ h1 {
17
17
  line-height : var(--core-lineheight-headline);
18
18
  }
19
19
 
20
-
21
20
  h2 {
22
- color : var(--semantic-color-fg-contrast);
21
+ color : var(--sem-color-fg-neutral-contrast);
23
22
  font-family : var(--core-fontfamily-sans);
24
23
  font-size : var(--core-fontsize-h2);
25
24
  font-weight : var(--core-fontweight-semibold);
@@ -28,26 +27,47 @@ h2 {
28
27
  }
29
28
 
30
29
  p {
31
- color : var(--semantic-color-fg-default);
30
+ color : var(--sem-color-fg-neutral-contrast);
32
31
  font-family : var(--core-fontfamily-sans);
33
32
  font-size : var(--core-fontsize-body);
34
33
  font-weight : var(--core-fontweight-regular);
35
34
  line-height : var(--core-lineheight-paragraph);
36
35
  }
37
36
 
38
- // code {
39
- // background-color: #ededed;
40
- // border-radius : 2px;
41
- // color : var(--semantic-color-fg-contrast);
42
- // font-family : var(--core-fontfamily-mono);
43
- // font-size : var(--core-fontsize-body);
44
- // font-weight : var(--core-fontweight-regular);
45
- // line-height : var(--core-lineheight-headline);
46
- // padding : 2px 0.3em;
47
- // }
37
+ code {
38
+ background-color: #F0F2F0;
39
+ border : 1px solid var(--sem-color-border-subtle);
40
+ border-radius : 2px;
41
+ color : var(--sem-color-fg-neutral-contrast);
42
+ font-family : var(--core-fontfamily-mono);
43
+ font-size : var(--core-fontsize-body);
44
+ font-weight : var(--core-fontweight-regular);
45
+ line-height : var(--core-lineheight-headline);
46
+ padding : 2px 0.3em;
47
+ font-size : 16px;
48
+ }
48
49
 
49
50
  mark {
50
- background-color: #B8FCE3;
51
+ background-color: var(--green-50);
51
52
  color : black;
52
53
  padding : 0.1em 0.2em;
54
+ }
55
+
56
+
57
+
58
+ .neo-splitter {
59
+ opacity: 1;
60
+ margin: 8px 2px;
61
+ border-radius: 100px;
62
+ border: unset !important;
63
+
64
+ &:hover, &:active {
65
+ background-color: #5595F5 !important;
66
+ }
67
+ }
68
+
69
+ .neo-dragproxy {
70
+ &.neo-splitter {
71
+ background-color: #5595F5 !important;
72
+ }
53
73
  }
@@ -1,45 +1,46 @@
1
+ $text-color : #1c60a0;
1
2
  $background-color: #fff;
2
3
  $border-color : #ddd;
3
4
  $border-style : solid;
4
5
  $border-width : 1px;
5
- $text-color : #1c60a0;
6
+
6
7
 
7
8
  :root .neo-theme-neo-light { // .neo-button
8
- --button-background-color : #29F5AA;
9
- --button-background-color-active : #0AE192;
10
- --button-background-color-disabled : #{$background-color};
11
- --button-background-color-hover : #11F4A1;
9
+ --button-background-color : var(--cmp-button-primary-bg-default);
10
+ --button-background-color-active : var(--cmp-button-primary-bg-active);
11
+ --button-background-color-disabled : var(--cmp-button-primary-bg-disabled);
12
+ --button-background-color-hover : var(--cmp-button-primary-bg-hover);
12
13
  --button-background-image : none;
13
14
  --button-background-gradient-end : #323536;
14
15
  --button-background-gradient-start : #434749;
15
- --button-badge-background-color : #{$text-color};
16
- --button-badge-color : #{$background-color};
16
+ --button-badge-background-color : var(--sem-color-fg-neutral-contrast);
17
+ --button-badge-color : var(--sem-color-fg-neutral-contrast);
17
18
  --button-badge-margin-left : -10px;
18
19
  --button-badge-margin-top : -10px;
19
20
  --button-border : none;
20
21
  --button-border-active : none;
21
22
  --button-border-disabled : none;
22
23
  --button-border-hover : none;
23
- --button-border-pressed : #{$border-width} #{$border-style} #{$text-color};
24
- --button-border-radius : 8px;
25
- --button-glyph-color : #{$text-color};
26
- --button-glyph-color-active : #{$text-color};
27
- --button-glyph-color-disabled : #{$text-color};
28
- --button-glyph-color-hover : #{$text-color};
29
- --button-height : 48px;
30
- --button-margin : 2px;
31
- --button-opacity-disabled : var(--neo-disabled-opacity);
24
+ --button-border-pressed : none;
25
+ --button-border-radius : var(--cmp-button-borderradius);
26
+ --button-glyph-color : var(--sem-color-fg-neutral-contrast);
27
+ --button-glyph-color-active : var(--sem-color-fg-neutral-contrast);
28
+ --button-glyph-color-disabled : var(--sem-color-fg-neutral-contrast);
29
+ --button-glyph-color-hover : var(--sem-color-fg-neutral-contrast);
30
+ --button-height : var(--cmp-button-height);
31
+ --button-margin : var(--cmp-button-gap);
32
+ --button-opacity-disabled : inherit;
32
33
  --button-outline-active : none;
33
- --button-padding : 5px 16px 5px 16px;
34
- --button-ripple-background-color : #{lighten($text-color, 50%)};
35
- --button-text-color : black;
36
- --button-text-color-active : black;
37
- --button-text-color-disabled : black;
38
- --button-text-color-hover : black;
39
- --button-text-font-family : Source Sans Pro, sans-serif;
40
- --button-text-font-size : 14px;
41
- --button-text-font-weight : 600;
42
- --button-text-line-height : 11px;
34
+ --button-padding : 0 var(--cmp-button-spacinghorizontal);
35
+ --button-ripple-background-color : transparent;
36
+ --button-text-color : var(--sem-color-fg-neutral-contrast);
37
+ --button-text-color-active : var(--sem-color-fg-neutral-contrast);
38
+ --button-text-color-disabled : var(--sem-color-fg-neutral-disabled);
39
+ --button-text-color-hover : var(--sem-color-fg-neutral-contrast);
40
+ --button-text-font-family : var(--core-fontfamily-sans), sans-serif;
41
+ --button-text-font-size : var(--core-fontsize-label);
42
+ --button-text-font-weight : var(--core-fontweight-semibold);
43
+ --button-text-line-height : inherit;
43
44
  --button-text-transform : none;
44
45
  --button-use-gradients : false;
45
46
 
@@ -68,28 +69,28 @@ $text-color : #1c60a0;
68
69
  --button-ghost-text-color-hover : var(--button-background-color);
69
70
 
70
71
  // {module: Button; ui: --secondary}
71
- --button-secondary-background-color : transparent;
72
- --button-secondary-background-color-active : #E6E7E6;
72
+ --button-secondary-background-color : var(--cmp-button-secondary-bg-default);
73
+ --button-secondary-background-color-active : var(--cmp-button-secondary-bg-active);
73
74
  --button-secondary-background-color-disabled: inherit;
74
- --button-secondary-background-color-hover : #F3F3F3;
75
+ --button-secondary-background-color-hover : var(--cmp-button-secondary-bg-hover);
75
76
  --button-secondary-background-image : none;
76
- --button-secondary-badge-background-color : var(--button-badge-color);
77
- --button-secondary-badge-color : var(--button-badge-background-color);
78
- --button-secondary-border : 1px solid #D3D7D2;
79
- --button-secondary-border-active : 1px solid #D3D7D2;
80
- --button-secondary-border-disabled : inherit;
81
- --button-secondary-border-hover : 1px solid #D3D7D2;
82
- --button-secondary-border-pressed : 1px solid #D3D7D2;
83
- --button-secondary-glyph-color : var(--button-background-color);
84
- --button-secondary-glyph-color-active : var(--button-background-color);
85
- --button-secondary-glyph-color-disabled : inherit;
86
- --button-secondary-glyph-color-hover : var(--button-background-color);
87
- --button-secondary-opacity-disabled : var(--neo-disabled-opacity);
77
+ --button-secondary-badge-background-color : transparent;
78
+ --button-secondary-badge-color : transparent;
79
+ --button-secondary-border : var(--cmp-button-secondary-border-default-width) solid var(--cmp-button-secondary-border-default-color);
80
+ --button-secondary-border-active : inherit;
81
+ --button-secondary-border-disabled : var(--cmp-button-secondary-border-default-width) solid var(--cmp-button-secondary-border-disabled-color);
82
+ --button-secondary-border-hover : inherit
83
+ --button-secondary-border-pressed : inherit
84
+ --button-secondary-glyph-color : var(--sem-color-fg-neutral-contrast);
85
+ --button-secondary-glyph-color-active : var(--sem-color-fg-neutral-contrast);
86
+ --button-secondary-glyph-color-disabled : var(--sem-color-fg-neutral-disabled);
87
+ --button-secondary-glyph-color-hover : var(--sem-color-fg-neutral-contrast);
88
+ --button-secondary-opacity-disabled : none;
88
89
  --button-secondary-ripple-background-color : inherit;
89
- --button-secondary-text-color : black;
90
- --button-secondary-text-color-active : black;
91
- --button-secondary-text-color-disabled : inherit;
92
- --button-secondary-text-color-hover : black;
90
+ --button-secondary-text-color : var(--sem-color-fg-neutral-contrast);
91
+ --button-secondary-text-color-active : var(--sem-color-fg-neutral-contrast);
92
+ --button-secondary-text-color-disabled : var(--sem-color-fg-neutral-disabled);
93
+ --button-secondary-text-color-hover : var(--sem-color-fg-neutral-contrast);
93
94
 
94
95
  // {module: Button; ui: --tertiary}
95
96
  --button-tertiary-background-color : transparent;