@aurora-ds/components 1.7.6 → 1.7.8
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/cjs/index.js +12 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +12 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -352,7 +352,7 @@ const buildActionButtonRootStyle = (theme, variant, color, focusOptions) => {
|
|
|
352
352
|
on: c.errorOn, subtle: c.errorSubtle, subtleHover: c.errorSubtleHover, subtleActive: c.errorSubtleActive,
|
|
353
353
|
fg: c.errorMain, fgHover: c.errorHover, border: c.errorMain,
|
|
354
354
|
},
|
|
355
|
-
textPrimary: {
|
|
355
|
+
'textPrimary': {
|
|
356
356
|
main: c.primaryMain, hover: c.primaryHover, active: c.primaryActive,
|
|
357
357
|
on: c.primaryOn, subtle: c.primarySubtle, subtleHover: c.primarySubtleHover, subtleActive: c.primarySubtleActive,
|
|
358
358
|
fg: c.textPrimary, fgHover: c.textPrimary, border: c.primaryMain,
|
|
@@ -743,6 +743,7 @@ const FAB_STYLES = createStyles((theme) => ({
|
|
|
743
743
|
success: { bg: c.successMain, bgHover: c.successHover, bgActive: c.successActive, fg: c.successOn },
|
|
744
744
|
warning: { bg: c.warningMain, bgHover: c.warningHover, bgActive: c.warningActive, fg: c.warningOn },
|
|
745
745
|
error: { bg: c.errorMain, bgHover: c.errorHover, bgActive: c.errorActive, fg: c.errorOn },
|
|
746
|
+
'textPrimary': { bg: c.primaryMain, bgHover: c.primaryHover, bgActive: c.primaryActive, fg: c.primaryOn },
|
|
746
747
|
};
|
|
747
748
|
const { bg, bgHover, bgActive, fg } = colorMap[color];
|
|
748
749
|
const dim = SIZE_MAP[size];
|
|
@@ -799,7 +800,7 @@ const FAB_STYLES = createStyles((theme) => ({
|
|
|
799
800
|
},
|
|
800
801
|
}), { id: 'fab' });
|
|
801
802
|
// Pre-generate CSS for all color/size/extended combinations.
|
|
802
|
-
const FAB_COLOR_VALUES = ['primary', 'secondary', 'neutral', 'info', 'success', 'warning', 'error'];
|
|
803
|
+
const FAB_COLOR_VALUES = ['primary', 'secondary', 'neutral', 'info', 'success', 'warning', 'error', 'textPrimary'];
|
|
803
804
|
const FAB_SIZE_VALUES = ['sm', 'md', 'lg'];
|
|
804
805
|
FAB_COLOR_VALUES.forEach(color => FAB_SIZE_VALUES.forEach(size => {
|
|
805
806
|
FAB_STYLES.root({ color, size, extended: false });
|
|
@@ -1045,6 +1046,11 @@ const buildToggleIntents = (c) => ({
|
|
|
1045
1046
|
on: c.errorOn, subtle: c.errorSubtle, subtleHover: c.errorSubtleHover, subtleActive: c.errorSubtleActive,
|
|
1046
1047
|
fg: c.errorMain, fgHover: c.errorHover, border: c.errorMain,
|
|
1047
1048
|
},
|
|
1049
|
+
textPrimary: {
|
|
1050
|
+
main: c.primaryMain, hover: c.primaryHover, active: c.primaryActive,
|
|
1051
|
+
on: c.primaryOn, subtle: c.primarySubtle, subtleHover: c.primarySubtleHover, subtleActive: c.primarySubtleActive,
|
|
1052
|
+
fg: c.textPrimary, fgHover: c.textPrimary, border: c.primaryMain,
|
|
1053
|
+
},
|
|
1048
1054
|
});
|
|
1049
1055
|
|
|
1050
1056
|
/**
|
|
@@ -5826,10 +5832,10 @@ const DRAWER_ITEM_STYLES = createStyles((theme) => ({
|
|
|
5826
5832
|
height: DEFAULT_DRAWER_ITEM_SIZE,
|
|
5827
5833
|
...(selected
|
|
5828
5834
|
? {
|
|
5829
|
-
backgroundColor: theme.colors.
|
|
5830
|
-
color: theme.colors.
|
|
5831
|
-
':hover': { backgroundColor: theme.colors.
|
|
5832
|
-
':active': { backgroundColor: theme.colors.
|
|
5835
|
+
backgroundColor: theme.colors.primaryMain,
|
|
5836
|
+
color: theme.colors.primaryOn,
|
|
5837
|
+
':hover': { backgroundColor: theme.colors.primaryHover, color: theme.colors.primaryOn },
|
|
5838
|
+
':active': { backgroundColor: theme.colors.primaryActive, color: theme.colors.primaryOn },
|
|
5833
5839
|
}
|
|
5834
5840
|
: {
|
|
5835
5841
|
backgroundColor: 'transparent',
|