@ni/nimble-components 20.0.6 → 20.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.
Files changed (33) hide show
  1. package/dist/all-components-bundle.js +316 -300
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +2454 -2461
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/patterns/button/styles.js +237 -242
  6. package/dist/esm/patterns/button/styles.js.map +1 -1
  7. package/dist/esm/patterns/button/types.d.ts +1 -0
  8. package/dist/esm/patterns/button/types.js +2 -1
  9. package/dist/esm/patterns/button/types.js.map +1 -1
  10. package/dist/esm/src/patterns/button/types.d.ts +1 -0
  11. package/dist/esm/src/table/components/cell/index.d.ts +1 -0
  12. package/dist/esm/src/table/testing/table.pageobject.d.ts +3 -0
  13. package/dist/esm/src/theme-provider/design-tokens.d.ts +8 -0
  14. package/dist/esm/table/components/cell/index.d.ts +1 -0
  15. package/dist/esm/table/components/cell/index.js +3 -0
  16. package/dist/esm/table/components/cell/index.js.map +1 -1
  17. package/dist/esm/table/components/row/template.js +1 -0
  18. package/dist/esm/table/components/row/template.js.map +1 -1
  19. package/dist/esm/table/testing/table.pageobject.d.ts +3 -0
  20. package/dist/esm/table/testing/table.pageobject.js +23 -0
  21. package/dist/esm/table/testing/table.pageobject.js.map +1 -1
  22. package/dist/esm/theme-provider/design-token-comments.js +8 -0
  23. package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
  24. package/dist/esm/theme-provider/design-token-names.js +8 -0
  25. package/dist/esm/theme-provider/design-token-names.js.map +1 -1
  26. package/dist/esm/theme-provider/design-tokens.d.ts +8 -0
  27. package/dist/esm/theme-provider/design-tokens.js +9 -1
  28. package/dist/esm/theme-provider/design-tokens.js.map +1 -1
  29. package/dist/esm/toggle-button/styles.js +64 -65
  30. package/dist/esm/toggle-button/styles.js.map +1 -1
  31. package/dist/tokens-internal.scss +48 -0
  32. package/dist/tokens.scss +24 -0
  33. 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
- ${display('inline-flex')}
9
-
10
- :host {
11
- background-color: transparent;
12
- height: ${controlHeight};
13
- color: ${buttonLabelFontColor};
14
- font: ${buttonLabelFont};
15
- cursor: pointer;
16
- outline: none;
17
- border: none;
18
- box-sizing: border-box;
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
- vertical-align: middle;
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
- transition-duration: 0s;
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
- .control${focusVisible} {
77
- border-color: ${borderHoverColor};
78
- box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
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
- :host([disabled]) .control::before {
118
- box-shadow: none;
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
- .content {
122
- display: contents;
123
- }
76
+ .content {
77
+ display: contents;
78
+ }
124
79
 
125
- :host([content-hidden]) .content {
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
- display: inline-block;
134
- height: 1px;
135
- width: 1px;
136
- position: absolute;
137
- margin: -1px;
138
- clip: rect(1px, 1px, 1px, 1px);
139
- clip-path: inset(50%);
140
- overflow: hidden;
141
- padding: 0;
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
- [part='start'] {
145
- display: contents;
146
- ${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
147
- }
99
+ [part='start'] {
100
+ display: contents;
101
+ ${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
102
+ }
148
103
 
149
- :host([disabled]) slot[name='start']::slotted(*) {
150
- opacity: 0.3;
104
+ [part='end'] {
105
+ display: contents;
106
+ ${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
107
+ }
151
108
  }
152
109
 
153
- [part='end'] {
154
- display: contents;
155
- ${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
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
- :host([disabled]) slot[name='end']::slotted(*) {
159
- opacity: 0.3;
160
- }
117
+ @layer focusVisible {
118
+ .control${focusVisible} {
119
+ border-color: ${borderHoverColor};
120
+ box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
121
+ }
161
122
 
162
- :host([content-hidden]) [part='end'] {
163
- display: none;
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
- :host([disabled]) .control {
175
- border-color: rgba(${borderRgbPartialColor}, 0.3);
176
- }
177
- `), appearanceBehavior(ButtonAppearance.ghost, css `
178
- .control:hover {
179
- background-color: transparent;
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
- .control${focusVisible} {
183
- background-color: transparent;
184
- }
139
+ .control:active::before {
140
+ outline: none;
141
+ }
142
+ }
185
143
 
186
- :host([disabled]) .control {
187
- border-color: transparent;
188
- }
189
- `), appearanceBehavior(ButtonAppearance.block, css `
190
- .control {
191
- background-color: rgba(${borderRgbPartialColor}, 0.1);
192
- }
144
+ @layer disabled {
145
+ :host([disabled]) {
146
+ color: ${buttonLabelDisabledFontColor};
147
+ cursor: default;
148
+ }
193
149
 
194
- .control:hover {
195
- background-color: transparent;
196
- background-image: linear-gradient(
197
- rgba(${borderRgbPartialColor}, 0.1),
198
- rgba(${borderRgbPartialColor}, 0.1)
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
- .control${focusVisible} {
204
- background-color: transparent;
205
- background-image: linear-gradient(
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
- .control:active {
213
- background-image: linear-gradient(
214
- ${fillSelectedColor},
215
- ${fillSelectedColor}
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
- :host([disabled]) .control {
221
- background-color: rgba(${borderRgbPartialColor}, 0.1);
222
- border-color: transparent;
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
- :host([appearance-variant='primary']) .control:hover {
232
- box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
171
+ @layer top {
172
+ @media (prefers-reduced-motion) {
173
+ .control {
174
+ transition-duration: 0s;
233
175
  }
176
+ }
234
177
 
235
- :host([appearance-variant='primary']) .control${focusVisible} {
236
- box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
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
- :host([appearance-variant='primary']) .control:active {
240
- box-shadow: 0px 0px 0px ${borderWidth} ${fillSelectedColor}
241
- inset;
189
+ @layer disabled {
190
+ :host([disabled]) .control {
191
+ border-color: rgba(${borderRgbPartialColor}, 0.3);
192
+ }
242
193
  }
243
-
244
- :host([appearance-variant='primary'][disabled]) .control {
245
- box-shadow: none;
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
- :host([appearance-variant='primary']) .control {
249
- border-color: rgba(${actionRgbPartialColor}, 0.3);
250
- box-shadow: 0px 0px 0px ${borderWidth}
251
- rgba(${actionRgbPartialColor}, 0.3) inset;
252
- }
253
-
254
- :host([appearance-variant='primary'][content-hidden]) .control {
255
- padding: 0px;
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
- :host([appearance-variant='primary']) .control${focusVisible} {
264
- background-clip: border-box;
265
- border-color: ${borderHoverColor};
266
- border-width: ${borderWidth};
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
- :host([appearance-variant='primary'][content-hidden])
217
+ @layer focusVisible {
272
218
  .control${focusVisible} {
273
- padding: 0px;
219
+ background-size: calc(100% - 4px) calc(100% - 4px);
220
+ }
274
221
  }
275
222
 
276
- :host([appearance-variant='primary']) .control:active {
277
- box-shadow: none;
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
- :host([appearance-variant='primary'][content-hidden])
281
- .control:active {
282
- padding: 0px;
283
- }
284
-
285
- :host([appearance-variant='primary'][disabled]) .control {
286
- background-clip: border-box;
287
- border-color: transparent;
288
- border-width: ${borderWidth};
289
- box-shadow: none;
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
- :host([appearance-variant='primary'][disabled][content-hidden])
294
- .control {
295
- padding: 0px;
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
- :host([appearance-variant='primary']) .control:active::before {
299
- border-color: ${fillSelectedColor};
300
- border-width: ${borderWidth};
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,EAA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ejE,CAAC,aAAa,CACX,kBAAkB,CACd,gBAAgB,CAAC,OAAO,EACxB,GAAG,CAAA;;;yCAG8B,qBAAqB;;;;;;yCAMrB,qBAAqB;;;SAGrD,CACJ,EACD,kBAAkB,CACd,gBAAgB,CAAC,KAAK,EACtB,GAAG,CAAA;;;;;;SAMF,CACJ,EACD,kBAAkB,CACd,gBAAgB,CAAC,KAAK,EACtB,GAAG,CAAA;;;;+BAIoB,qBAAqB;+BACrB,qBAAqB;;yCAEX,qBAAqB;;;;;;;;;;;0BAWpC,YAAY;;;;;;;;+BAQP,qBAAqB;+BACrB,qBAAqB;;;yCAGX,qBAAqB;;;SAGrD,CACJ,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAA,EAAE,CAAC,aAAa,CAC5D,kBAAkB,CACd,gBAAgB,CAAC,OAAO,EACxB,GAAG,CAAA;;;oCAGyB,qBAAqB;;;;oCAIrB,8BAA8B;6BACrC,4BAA4B;;;SAGhD,CACJ,EACD,kBAAkB,CACd,gBAAgB,CAAC,KAAK,EACtB,GAAG,CAAA;;;sBAGW,SAAS,CAAC,iBAAiB;;;;;0BAKvB,sBAAsB;0BACtB,sBAAsB;;6BAEnB,sBAAsB;oCACf,sBAAsB;;;;sBAIpC,SAAS,CAAC,iBAAiB;;;;sBAI3B,SAAS,CAAC,iBAAiB;;;;;0BAKvB,qBAAqB;0BACrB,qBAAqB;;6BAElB,0BAA0B;oCACnB,qBAAqB;;;;sBAInC,SAAS,CAAC,iBAAiB;;;;;;;0BAOvB,4BAA4B;0BAC5B,4BAA4B;;;;;;0BAM5B,2BAA2B;0BAC3B,2BAA2B;;;;SAI5C,CACJ,CACJ,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];
@@ -13,6 +13,7 @@ export const ButtonAppearance = {
13
13
  */
14
14
  export const ButtonAppearanceVariant = {
15
15
  default: undefined,
16
- primary: 'primary'
16
+ primary: 'primary',
17
+ accent: 'accent'
17
18
  };
18
19
  //# sourceMappingURL=types.js.map
@@ -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;CACZ,CAAC"}
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];
@@ -17,6 +17,7 @@ export declare class TableCell<TCellRecord extends TableCellRecord = TableCellRe
17
17
  cellState?: TableCellState<TCellRecord>;
18
18
  column?: TableColumn;
19
19
  recordId?: string;
20
+ columnId?: string;
20
21
  hasActionMenu: boolean;
21
22
  menuOpen: boolean;
22
23
  actionMenuLabel?: string;
@@ -30,6 +30,7 @@ export declare class TablePageObject<T extends TableRecord> {
30
30
  getRenderedGroupRowCount(): number;
31
31
  getAllGroupRowsExpandedState(): boolean[];
32
32
  getRenderedCellView(rowIndex: number, columnIndex: number): TableCellView;
33
+ getRenderedCellViewById(recordId: string, columnId: string): TableCellView;
33
34
  getRenderedCellContent(rowIndex: number, columnIndex: number): string;
34
35
  getRenderedCellAnchor(rowIndex: number, columnIndex: number): Anchor;
35
36
  getRenderedGroupHeaderContent(groupRowIndex: number): string;
@@ -86,7 +87,9 @@ export declare class TablePageObject<T extends TableRecord> {
86
87
  getGroupedColumns(): string[];
87
88
  getChildRowCountForGroup(groupRowIndex: number): number;
88
89
  private getRow;
90
+ private getRowById;
89
91
  private getCell;
92
+ private getCellById;
90
93
  private getCollapseAllButton;
91
94
  private getSelectionCheckboxForRow;
92
95
  private getSelectionCheckboxForGroupRow;
@@ -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>;
@@ -17,6 +17,7 @@ export declare class TableCell<TCellRecord extends TableCellRecord = TableCellRe
17
17
  cellState?: TableCellState<TCellRecord>;
18
18
  column?: TableColumn;
19
19
  recordId?: string;
20
+ columnId?: string;
20
21
  hasActionMenu: boolean;
21
22
  menuOpen: boolean;
22
23
  actionMenuLabel?: string;
@@ -31,6 +31,9 @@ __decorate([
31
31
  __decorate([
32
32
  observable
33
33
  ], TableCell.prototype, "recordId", void 0);
34
+ __decorate([
35
+ attr({ attribute: 'column-id' })
36
+ ], TableCell.prototype, "columnId", void 0);
34
37
  __decorate([
35
38
  attr({ attribute: 'has-action-menu', mode: 'boolean' })
36
39
  ], TableCell.prototype, "hasActionMenu", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table/components/cell/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAgB,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAQ7E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC;;;GAGG;AACH,MAAM,OAAO,SAEX,SAAQ,iBAAiB;IAF3B;;QAaW,kBAAa,GAAG,KAAK,CAAC;QAGtB,aAAQ,GAAG,KAAK,CAAC;QASjB,iBAAY,GAAG,CAAC,CAAC;IAgB5B,CAAC;IAZU,wBAAwB,CAC3B,KAA+C;QAE/C,IAAI,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAEM,kBAAkB,CACrB,KAA+C;QAE/C,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,MAAM,CAAC,CAA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