@mezzanine-ui/core 1.0.0-rc.2 → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type AutoCompleteInputSize =
|
|
1
|
+
import { GeneralSize } from '@mezzanine-ui/system/size';
|
|
2
|
+
export type AutoCompleteInputSize = GeneralSize;
|
|
3
3
|
export type AutoCompleteMode = 'single' | 'multiple';
|
|
4
4
|
export type AutoCompleteTriggerType = 'default' | 'error';
|
|
5
5
|
export type AutoCompleteSelector = 'input' | 'selection';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mezzanine-ui/core",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"description": "Core for mezzanine-ui",
|
|
5
5
|
"author": "Mezzanine",
|
|
6
6
|
"repository": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@mezzanine-ui/icons": "1.0.0-rc.
|
|
44
|
-
"@mezzanine-ui/system": "1.0.0-rc.
|
|
43
|
+
"@mezzanine-ui/icons": "1.0.0-rc.3",
|
|
44
|
+
"@mezzanine-ui/system": "1.0.0-rc.3",
|
|
45
45
|
"lodash": "^4.17.21",
|
|
46
46
|
"tslib": "^2.8.1"
|
|
47
47
|
},
|
package/table/_table-styles.scss
CHANGED
|
@@ -337,6 +337,24 @@ $z-index-config: (
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
+
&--state-added {
|
|
341
|
+
td {
|
|
342
|
+
background-color: palette.semantic-variable("background", brand-ghost);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
&--state-deleted {
|
|
347
|
+
td {
|
|
348
|
+
background-color: palette.semantic-variable("background", error-ghost);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
&--state-disabled {
|
|
353
|
+
td {
|
|
354
|
+
background-color: palette.semantic-variable("background", neutral-subtle);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
340
358
|
&--zebra {
|
|
341
359
|
td {
|
|
342
360
|
background-color: palette.semantic-variable("background", neutral-ghost);
|
package/table/table.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ export declare const tableClasses: {
|
|
|
21
21
|
readonly bodyRowSelected: "mzn-table__body__row--selected";
|
|
22
22
|
readonly bodyRowSeparator: "mzn-table__body__row--separator";
|
|
23
23
|
readonly bodyRowZebra: "mzn-table__body__row--zebra";
|
|
24
|
+
readonly bodyRowStateAdded: "mzn-table__body__row--state-added";
|
|
25
|
+
readonly bodyRowStateDeleted: "mzn-table__body__row--state-deleted";
|
|
26
|
+
readonly bodyRowStateDisabled: "mzn-table__body__row--state-disabled";
|
|
24
27
|
readonly bulkActions: "mzn-table__bulk-actions";
|
|
25
28
|
readonly bulkActionsFixed: "mzn-table__bulk-actions--fixed";
|
|
26
29
|
readonly bulkActionsSelectionSummary: "mzn-table__bulk-actions__selection-summary";
|
|
@@ -93,6 +96,8 @@ export type HighlightMode = 'cell' | 'column' | 'row' | 'cross';
|
|
|
93
96
|
export type FixedType = boolean | 'start' | 'end';
|
|
94
97
|
/** Table size type */
|
|
95
98
|
export type TableSize = 'main' | 'sub';
|
|
99
|
+
/** Row state for semantic background color overrides */
|
|
100
|
+
export type TableRowState = 'added' | 'deleted' | 'disabled';
|
|
96
101
|
/**
|
|
97
102
|
* Title menu configuration for table column header dropdown
|
|
98
103
|
*/
|
package/table/table.js
CHANGED
|
@@ -17,6 +17,9 @@ const tableClasses = {
|
|
|
17
17
|
bodyRowSelected: `${tableBodyPrefix}__row--selected`,
|
|
18
18
|
bodyRowSeparator: `${tableBodyPrefix}__row--separator`,
|
|
19
19
|
bodyRowZebra: `${tableBodyPrefix}__row--zebra`,
|
|
20
|
+
bodyRowStateAdded: `${tableBodyPrefix}__row--state-added`,
|
|
21
|
+
bodyRowStateDeleted: `${tableBodyPrefix}__row--state-deleted`,
|
|
22
|
+
bodyRowStateDisabled: `${tableBodyPrefix}__row--state-disabled`,
|
|
20
23
|
bulkActions: `${tablePrefix}__bulk-actions`,
|
|
21
24
|
bulkActionsFixed: `${tablePrefix}__bulk-actions--fixed`,
|
|
22
25
|
bulkActionsSelectionSummary: `${tablePrefix}__bulk-actions__selection-summary`,
|
|
@@ -323,6 +323,38 @@ $size-configs: (
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
&--clearing {
|
|
327
|
+
& > .#{$prefix}__clear-icon {
|
|
328
|
+
opacity: 1;
|
|
329
|
+
pointer-events: auto;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.#{$prefix}__suffix--overlay {
|
|
333
|
+
.#{$prefix}__suffix-content {
|
|
334
|
+
opacity: 0;
|
|
335
|
+
pointer-events: none;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.#{$prefix}__clear-icon {
|
|
339
|
+
opacity: 1;
|
|
340
|
+
pointer-events: auto;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&__suffix--overlay {
|
|
346
|
+
display: grid;
|
|
347
|
+
|
|
348
|
+
.#{$prefix}__suffix-content,
|
|
349
|
+
.#{$prefix}__clear-icon {
|
|
350
|
+
grid-area: 1 / 1;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&__suffix-content {
|
|
355
|
+
transition: transition.standard(opacity, fast);
|
|
356
|
+
}
|
|
357
|
+
|
|
326
358
|
&--disabled {
|
|
327
359
|
cursor: not-allowed;
|
|
328
360
|
pointer-events: none;
|
|
@@ -7,6 +7,9 @@ export declare const textFieldClasses: {
|
|
|
7
7
|
readonly active: "mzn-text-field--active";
|
|
8
8
|
readonly clearIcon: "mzn-text-field__clear-icon";
|
|
9
9
|
readonly clearable: "mzn-text-field--clearable";
|
|
10
|
+
readonly clearing: "mzn-text-field--clearing";
|
|
11
|
+
readonly suffixContent: "mzn-text-field__suffix-content";
|
|
12
|
+
readonly suffixOverlay: "mzn-text-field__suffix--overlay";
|
|
10
13
|
readonly disabled: "mzn-text-field--disabled";
|
|
11
14
|
readonly error: "mzn-text-field--error";
|
|
12
15
|
readonly fullWidth: "mzn-text-field--full-width";
|
package/text-field/textField.js
CHANGED
|
@@ -5,6 +5,9 @@ const textFieldClasses = {
|
|
|
5
5
|
active: `${textFieldPrefix}--active`,
|
|
6
6
|
clearIcon: `${textFieldPrefix}__clear-icon`,
|
|
7
7
|
clearable: `${textFieldPrefix}--clearable`,
|
|
8
|
+
clearing: `${textFieldPrefix}--clearing`,
|
|
9
|
+
suffixContent: `${textFieldPrefix}__suffix-content`,
|
|
10
|
+
suffixOverlay: `${textFieldPrefix}__suffix--overlay`,
|
|
8
11
|
disabled: `${textFieldPrefix}--disabled`,
|
|
9
12
|
error: `${textFieldPrefix}--error`,
|
|
10
13
|
fullWidth: `${textFieldPrefix}--full-width`,
|