@ni/nimble-components 20.0.5 → 20.1.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.
- package/dist/all-components-bundle.js +315 -300
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2453 -2461
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/patterns/button/styles.js +237 -242
- package/dist/esm/patterns/button/styles.js.map +1 -1
- package/dist/esm/patterns/button/types.d.ts +1 -0
- package/dist/esm/patterns/button/types.js +2 -1
- package/dist/esm/patterns/button/types.js.map +1 -1
- package/dist/esm/src/patterns/button/types.d.ts +1 -0
- package/dist/esm/src/theme-provider/design-tokens.d.ts +8 -0
- package/dist/esm/table/index.js +3 -0
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.js +8 -0
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.js +8 -0
- package/dist/esm/theme-provider/design-token-names.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +8 -0
- package/dist/esm/theme-provider/design-tokens.js +9 -1
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/esm/toggle-button/styles.js +64 -65
- package/dist/esm/toggle-button/styles.js.map +1 -1
- package/dist/tokens-internal.scss +48 -0
- package/dist/tokens.scss +24 -0
- package/package.json +2 -2
|
@@ -1,303 +1,298 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
3
|
import { focusVisible } from '../../utilities/style/focus';
|
|
4
|
-
import { actionRgbPartialColor, borderHoverColor, borderRgbPartialColor, borderWidth, buttonLabelFont, buttonLabelFontColor, buttonLabelDisabledFontColor, controlHeight, fillSelectedColor, iconColor, smallDelay, standardPadding } from '../../theme-provider/design-tokens';
|
|
4
|
+
import { actionRgbPartialColor, borderHoverColor, borderRgbPartialColor, borderWidth, buttonLabelFont, buttonLabelFontColor, buttonLabelDisabledFontColor, controlHeight, fillSelectedColor, iconColor, smallDelay, standardPadding, buttonPrimaryFontColor, buttonFillPrimaryColor, buttonFillActivePrimaryColor, buttonFillAccentColor, buttonAccentBlockFontColor, buttonFillAccentActiveColor, buttonBorderAccentOutlineColor, buttonAccentOutlineFontColor } from '../../theme-provider/design-tokens';
|
|
5
5
|
import { appearanceBehavior } from '../../utilities/style/appearance';
|
|
6
6
|
import { ButtonAppearance } from './types';
|
|
7
7
|
export const styles = css `
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
@layer base, hover, focusVisible, active, disabled, top;
|
|
9
|
+
|
|
10
|
+
@layer base {
|
|
11
|
+
${display('inline-flex')}
|
|
12
|
+
|
|
13
|
+
:host {
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
height: ${controlHeight};
|
|
16
|
+
color: ${buttonLabelFontColor};
|
|
17
|
+
font: ${buttonLabelFont};
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
outline: none;
|
|
20
|
+
border: none;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
${
|
|
20
23
|
/*
|
|
21
24
|
Not sure why but this is needed to get buttons with icons and buttons
|
|
22
25
|
without icons to align on the same line when the button is inline-flex
|
|
23
26
|
See: https://github.com/microsoft/fast/issues/5414
|
|
24
27
|
*/ ''}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
:host([disabled]) {
|
|
29
|
-
color: ${buttonLabelDisabledFontColor};
|
|
30
|
-
cursor: default;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.control {
|
|
34
|
-
background-color: transparent;
|
|
35
|
-
height: 100%;
|
|
36
|
-
width: 100%;
|
|
37
|
-
border: ${borderWidth} solid transparent;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
color: inherit;
|
|
40
|
-
border-radius: inherit;
|
|
41
|
-
fill: inherit;
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
gap: 4px;
|
|
46
|
-
cursor: inherit;
|
|
47
|
-
font: inherit;
|
|
48
|
-
outline: none;
|
|
49
|
-
margin: 0;
|
|
50
|
-
padding: 0 ${standardPadding};
|
|
51
|
-
position: relative;
|
|
52
|
-
transition: box-shadow ${smallDelay} ease-in-out,
|
|
53
|
-
border-color ${smallDelay} ease-in-out,
|
|
54
|
-
background-size ${smallDelay} ease-in-out;
|
|
55
|
-
background-size: 100% 100%;
|
|
56
|
-
background-repeat: no-repeat;
|
|
57
|
-
background-position: center;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:host([content-hidden]) .control {
|
|
61
|
-
aspect-ratio: 1 / 1;
|
|
62
|
-
padding: 0px;
|
|
63
|
-
}
|
|
28
|
+
vertical-align: middle;
|
|
29
|
+
}
|
|
64
30
|
|
|
65
|
-
@media (prefers-reduced-motion) {
|
|
66
31
|
.control {
|
|
67
|
-
|
|
32
|
+
background-color: transparent;
|
|
33
|
+
height: 100%;
|
|
34
|
+
width: 100%;
|
|
35
|
+
border: ${borderWidth} solid transparent;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
color: inherit;
|
|
38
|
+
border-radius: inherit;
|
|
39
|
+
fill: inherit;
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
gap: 4px;
|
|
44
|
+
cursor: inherit;
|
|
45
|
+
font: inherit;
|
|
46
|
+
outline: none;
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: 0 ${standardPadding};
|
|
49
|
+
position: relative;
|
|
50
|
+
transition: box-shadow ${smallDelay} ease-in-out,
|
|
51
|
+
border-color ${smallDelay} ease-in-out,
|
|
52
|
+
background-size ${smallDelay} ease-in-out;
|
|
53
|
+
background-size: 100% 100%;
|
|
54
|
+
background-repeat: no-repeat;
|
|
55
|
+
background-position: center;
|
|
68
56
|
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.control:hover {
|
|
72
|
-
border-color: ${borderHoverColor};
|
|
73
|
-
box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
|
|
74
|
-
}
|
|
75
57
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.control:active {
|
|
82
|
-
box-shadow: none;
|
|
83
|
-
background-image: linear-gradient(
|
|
84
|
-
${fillSelectedColor},
|
|
85
|
-
${fillSelectedColor}
|
|
86
|
-
);
|
|
87
|
-
background-size: calc(100% - 2px) calc(100% - 2px);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
:host([disabled]) .control {
|
|
91
|
-
box-shadow: none;
|
|
92
|
-
background-image: none;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.control::before {
|
|
96
|
-
content: '';
|
|
97
|
-
position: absolute;
|
|
98
|
-
width: 100%;
|
|
99
|
-
height: 100%;
|
|
100
|
-
pointer-events: none;
|
|
101
|
-
box-sizing: border-box;
|
|
102
|
-
outline: 0px solid transparent;
|
|
103
|
-
color: transparent;
|
|
104
|
-
background-clip: content-box;
|
|
105
|
-
transition: outline ${smallDelay} ease-in-out;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.control${focusVisible}::before {
|
|
109
|
-
outline: ${borderWidth} solid ${borderHoverColor};
|
|
110
|
-
outline-offset: -3px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.control:active::before {
|
|
114
|
-
outline: none;
|
|
115
|
-
}
|
|
58
|
+
:host([content-hidden]) .control {
|
|
59
|
+
aspect-ratio: 1 / 1;
|
|
60
|
+
padding: 0px;
|
|
61
|
+
}
|
|
116
62
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
63
|
+
.control::before {
|
|
64
|
+
content: '';
|
|
65
|
+
position: absolute;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
outline: 0px solid transparent;
|
|
71
|
+
color: transparent;
|
|
72
|
+
background-clip: content-box;
|
|
73
|
+
transition: outline ${smallDelay} ease-in-out;
|
|
74
|
+
}
|
|
120
75
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
76
|
+
.content {
|
|
77
|
+
display: contents;
|
|
78
|
+
}
|
|
124
79
|
|
|
125
|
-
|
|
126
|
-
|
|
80
|
+
:host([content-hidden]) .content {
|
|
81
|
+
${
|
|
127
82
|
/**
|
|
128
83
|
* Hide content visually while keeping it screen reader-accessible.
|
|
129
84
|
* Source: https://webaim.org/techniques/css/invisiblecontent/#techniques
|
|
130
85
|
* See discussion here: https://github.com/microsoft/fast/issues/5740#issuecomment-1068195035
|
|
131
86
|
*/
|
|
132
87
|
''}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
88
|
+
display: inline-block;
|
|
89
|
+
height: 1px;
|
|
90
|
+
width: 1px;
|
|
91
|
+
position: absolute;
|
|
92
|
+
margin: -1px;
|
|
93
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
94
|
+
clip-path: inset(50%);
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
padding: 0;
|
|
97
|
+
}
|
|
143
98
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
99
|
+
[part='start'] {
|
|
100
|
+
display: contents;
|
|
101
|
+
${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
|
|
102
|
+
}
|
|
148
103
|
|
|
149
|
-
|
|
150
|
-
|
|
104
|
+
[part='end'] {
|
|
105
|
+
display: contents;
|
|
106
|
+
${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
|
|
107
|
+
}
|
|
151
108
|
}
|
|
152
109
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
110
|
+
@layer hover {
|
|
111
|
+
.control:hover {
|
|
112
|
+
border-color: ${borderHoverColor};
|
|
113
|
+
box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
|
|
114
|
+
}
|
|
156
115
|
}
|
|
157
116
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
117
|
+
@layer focusVisible {
|
|
118
|
+
.control${focusVisible} {
|
|
119
|
+
border-color: ${borderHoverColor};
|
|
120
|
+
box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
|
|
121
|
+
}
|
|
161
122
|
|
|
162
|
-
|
|
163
|
-
|
|
123
|
+
.control${focusVisible}::before {
|
|
124
|
+
outline: ${borderWidth} solid ${borderHoverColor};
|
|
125
|
+
outline-offset: -3px;
|
|
126
|
+
}
|
|
164
127
|
}
|
|
165
|
-
`.withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
|
|
166
|
-
.control {
|
|
167
|
-
border-color: rgba(${actionRgbPartialColor}, 0.3);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.control:hover {
|
|
171
|
-
background-color: transparent;
|
|
172
|
-
}
|
|
173
128
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
129
|
+
@layer active {
|
|
130
|
+
.control:active {
|
|
131
|
+
box-shadow: none;
|
|
132
|
+
background-image: linear-gradient(
|
|
133
|
+
${fillSelectedColor},
|
|
134
|
+
${fillSelectedColor}
|
|
135
|
+
);
|
|
136
|
+
background-size: calc(100% - 2px) calc(100% - 2px);
|
|
137
|
+
}
|
|
181
138
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
139
|
+
.control:active::before {
|
|
140
|
+
outline: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
185
143
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
192
|
-
}
|
|
144
|
+
@layer disabled {
|
|
145
|
+
:host([disabled]) {
|
|
146
|
+
color: ${buttonLabelDisabledFontColor};
|
|
147
|
+
cursor: default;
|
|
148
|
+
}
|
|
193
149
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
);
|
|
200
|
-
background-size: calc(100% - 4px) calc(100% - 4px);
|
|
201
|
-
}
|
|
150
|
+
:host([disabled]) .control {
|
|
151
|
+
box-shadow: none;
|
|
152
|
+
background-image: none;
|
|
153
|
+
color: rgba(${actionRgbPartialColor}, 0.3);
|
|
154
|
+
}
|
|
202
155
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
rgba(${borderRgbPartialColor}, 0.1),
|
|
207
|
-
rgba(${borderRgbPartialColor}, 0.1)
|
|
208
|
-
);
|
|
209
|
-
background-size: calc(100% - 4px) calc(100% - 4px);
|
|
210
|
-
}
|
|
156
|
+
:host([disabled]) .control::before {
|
|
157
|
+
box-shadow: none;
|
|
158
|
+
}
|
|
211
159
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
);
|
|
217
|
-
background-size: calc(100% - 2px) calc(100% - 2px);
|
|
218
|
-
}
|
|
160
|
+
:host([disabled]) slot[name='start']::slotted(*) {
|
|
161
|
+
opacity: 0.3;
|
|
162
|
+
${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
|
|
163
|
+
}
|
|
219
164
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
export const buttonAppearanceVariantStyles = css ``.withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
|
|
226
|
-
:host([appearance-variant='primary']) .control {
|
|
227
|
-
box-shadow: 0px 0px 0px ${borderWidth}
|
|
228
|
-
rgba(${actionRgbPartialColor}, 0.3) inset;
|
|
229
|
-
}
|
|
165
|
+
:host([disabled]) slot[name='end']::slotted(*) {
|
|
166
|
+
opacity: 0.3;
|
|
167
|
+
${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
230
170
|
|
|
231
|
-
|
|
232
|
-
|
|
171
|
+
@layer top {
|
|
172
|
+
@media (prefers-reduced-motion) {
|
|
173
|
+
.control {
|
|
174
|
+
transition-duration: 0s;
|
|
233
175
|
}
|
|
176
|
+
}
|
|
234
177
|
|
|
235
|
-
|
|
236
|
-
|
|
178
|
+
:host([content-hidden]) [part='end'] {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
`.withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
|
|
183
|
+
@layer base {
|
|
184
|
+
.control {
|
|
185
|
+
border-color: rgba(${actionRgbPartialColor}, 0.3);
|
|
186
|
+
}
|
|
237
187
|
}
|
|
238
188
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
189
|
+
@layer disabled {
|
|
190
|
+
:host([disabled]) .control {
|
|
191
|
+
border-color: rgba(${borderRgbPartialColor}, 0.3);
|
|
192
|
+
}
|
|
242
193
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
194
|
+
`), appearanceBehavior(ButtonAppearance.ghost, css `
|
|
195
|
+
@layer disabled {
|
|
196
|
+
:host([disabled]) .control {
|
|
197
|
+
border-color: transparent;
|
|
198
|
+
}
|
|
246
199
|
}
|
|
247
200
|
`), appearanceBehavior(ButtonAppearance.block, css `
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
:host([appearance-variant='primary']) .control:hover {
|
|
259
|
-
border-color: ${borderHoverColor};
|
|
260
|
-
box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
|
|
201
|
+
@layer base {
|
|
202
|
+
.control {
|
|
203
|
+
background-image: linear-gradient(
|
|
204
|
+
rgba(${borderRgbPartialColor}, 0.1),
|
|
205
|
+
rgba(${borderRgbPartialColor}, 0.1)
|
|
206
|
+
);
|
|
207
|
+
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
208
|
+
}
|
|
261
209
|
}
|
|
262
210
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
|
|
268
|
-
padding: 0 ${standardPadding};
|
|
211
|
+
@layer hover {
|
|
212
|
+
.control:hover {
|
|
213
|
+
background-size: calc(100% - 4px) calc(100% - 4px);
|
|
214
|
+
}
|
|
269
215
|
}
|
|
270
216
|
|
|
271
|
-
|
|
217
|
+
@layer focusVisible {
|
|
272
218
|
.control${focusVisible} {
|
|
273
|
-
|
|
219
|
+
background-size: calc(100% - 4px) calc(100% - 4px);
|
|
220
|
+
}
|
|
274
221
|
}
|
|
275
222
|
|
|
276
|
-
|
|
277
|
-
|
|
223
|
+
@layer disabled {
|
|
224
|
+
:host([disabled]) .control {
|
|
225
|
+
background-image: linear-gradient(
|
|
226
|
+
rgba(${borderRgbPartialColor}, 0.1),
|
|
227
|
+
rgba(${borderRgbPartialColor}, 0.1)
|
|
228
|
+
);
|
|
229
|
+
background-size: 100% 100%;
|
|
230
|
+
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
231
|
+
}
|
|
278
232
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
padding: 0 ${standardPadding};
|
|
233
|
+
`));
|
|
234
|
+
export const buttonAppearanceVariantStyles = css ``.withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
|
|
235
|
+
@layer base {
|
|
236
|
+
:host([appearance-variant='primary']) .control {
|
|
237
|
+
border-color: ${actionRgbPartialColor};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
:host([appearance-variant='accent']) .control {
|
|
241
|
+
border-color: ${buttonBorderAccentOutlineColor};
|
|
242
|
+
color: ${buttonAccentOutlineFontColor};
|
|
243
|
+
}
|
|
291
244
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
245
|
+
`), appearanceBehavior(ButtonAppearance.block, css `
|
|
246
|
+
@layer base {
|
|
247
|
+
:host([appearance-variant='primary']) [part='start'] {
|
|
248
|
+
${iconColor.cssCustomProperty}: white;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
:host([appearance-variant='primary']) .control {
|
|
252
|
+
background-image: linear-gradient(
|
|
253
|
+
${buttonFillPrimaryColor},
|
|
254
|
+
${buttonFillPrimaryColor}
|
|
255
|
+
);
|
|
256
|
+
color: ${buttonPrimaryFontColor};
|
|
257
|
+
border-color: ${buttonFillPrimaryColor};
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
:host([appearance-variant='primary']) [part='end'] {
|
|
261
|
+
${iconColor.cssCustomProperty}: white;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:host([appearance-variant='accent']) [part='start'] {
|
|
265
|
+
${iconColor.cssCustomProperty}: white;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:host([appearance-variant='accent']) .control {
|
|
269
|
+
background-image: linear-gradient(
|
|
270
|
+
${buttonFillAccentColor},
|
|
271
|
+
${buttonFillAccentColor}
|
|
272
|
+
);
|
|
273
|
+
color: ${buttonAccentBlockFontColor};
|
|
274
|
+
border-color: ${buttonFillAccentColor};
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
:host([appearance-variant='accent']) [part='end'] {
|
|
278
|
+
${iconColor.cssCustomProperty}: white;
|
|
279
|
+
}
|
|
296
280
|
}
|
|
297
281
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
282
|
+
@layer active {
|
|
283
|
+
:host([appearance-variant='primary']) .control:active {
|
|
284
|
+
background-image: linear-gradient(
|
|
285
|
+
${buttonFillActivePrimaryColor},
|
|
286
|
+
${buttonFillActivePrimaryColor}
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
:host([appearance-variant='accent']) .control:active {
|
|
291
|
+
background-image: linear-gradient(
|
|
292
|
+
${buttonFillAccentActiveColor},
|
|
293
|
+
${buttonFillAccentActiveColor}
|
|
294
|
+
);
|
|
295
|
+
}
|
|
301
296
|
}
|
|
302
297
|
`));
|
|
303
298
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/patterns/button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,eAAe,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/patterns/button/styles.ts"],"names":[],"mappings":"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"}
|
|
@@ -44,5 +44,6 @@ export declare type ButtonAppearance = (typeof ButtonAppearance)[keyof typeof Bu
|
|
|
44
44
|
export declare const ButtonAppearanceVariant: {
|
|
45
45
|
readonly default: undefined;
|
|
46
46
|
readonly primary: "primary";
|
|
47
|
+
readonly accent: "accent";
|
|
47
48
|
};
|
|
48
49
|
export declare type ButtonAppearanceVariant = (typeof ButtonAppearanceVariant)[keyof typeof ButtonAppearanceVariant];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/patterns/button/types.ts"],"names":[],"mappings":"AAiCA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/patterns/button/types.ts"],"names":[],"mappings":"AAiCA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC"}
|
|
@@ -44,5 +44,6 @@ export declare type ButtonAppearance = (typeof ButtonAppearance)[keyof typeof Bu
|
|
|
44
44
|
export declare const ButtonAppearanceVariant: {
|
|
45
45
|
readonly default: undefined;
|
|
46
46
|
readonly primary: "primary";
|
|
47
|
+
readonly accent: "accent";
|
|
47
48
|
};
|
|
48
49
|
export declare type ButtonAppearanceVariant = (typeof ButtonAppearanceVariant)[keyof typeof ButtonAppearanceVariant];
|
|
@@ -22,6 +22,14 @@ export declare const popupBorderColor: CSSDesignToken<string>;
|
|
|
22
22
|
export declare const graphGridlineColor: CSSDesignToken<string>;
|
|
23
23
|
export declare const tooltipBackgroundColor: CSSDesignToken<string>;
|
|
24
24
|
export declare const tableRowBorderColor: CSSDesignToken<string>;
|
|
25
|
+
export declare const buttonFillPrimaryColor: CSSDesignToken<string>;
|
|
26
|
+
export declare const buttonPrimaryFontColor: CSSDesignToken<string>;
|
|
27
|
+
export declare const buttonFillActivePrimaryColor: CSSDesignToken<string>;
|
|
28
|
+
export declare const buttonFillAccentColor: CSSDesignToken<string>;
|
|
29
|
+
export declare const buttonAccentBlockFontColor: CSSDesignToken<string>;
|
|
30
|
+
export declare const buttonAccentOutlineFontColor: CSSDesignToken<string>;
|
|
31
|
+
export declare const buttonBorderAccentOutlineColor: CSSDesignToken<string>;
|
|
32
|
+
export declare const buttonFillAccentActiveColor: CSSDesignToken<string>;
|
|
25
33
|
export declare const controlHeight: CSSDesignToken<string>;
|
|
26
34
|
export declare const controlSlimHeight: CSSDesignToken<string>;
|
|
27
35
|
export declare const smallPadding: CSSDesignToken<string>;
|
package/dist/esm/table/index.js
CHANGED
|
@@ -779,6 +779,9 @@ __decorate([
|
|
|
779
779
|
__decorate([
|
|
780
780
|
observable
|
|
781
781
|
], Table.prototype, "tableScrollableMinWidth", void 0);
|
|
782
|
+
__decorate([
|
|
783
|
+
observable
|
|
784
|
+
], Table.prototype, "documentShiftKeyDown", void 0);
|
|
782
785
|
const nimbleTable = Table.compose({
|
|
783
786
|
baseName: 'table',
|
|
784
787
|
template,
|