@aurora-ds/components 1.7.6 → 1.7.7
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 +8 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -372,7 +372,7 @@ const buildActionButtonRootStyle = (theme, variant, color, focusOptions) => {
|
|
|
372
372
|
on: c.errorOn, subtle: c.errorSubtle, subtleHover: c.errorSubtleHover, subtleActive: c.errorSubtleActive,
|
|
373
373
|
fg: c.errorMain, fgHover: c.errorHover, border: c.errorMain,
|
|
374
374
|
},
|
|
375
|
-
textPrimary: {
|
|
375
|
+
'textPrimary': {
|
|
376
376
|
main: c.primaryMain, hover: c.primaryHover, active: c.primaryActive,
|
|
377
377
|
on: c.primaryOn, subtle: c.primarySubtle, subtleHover: c.primarySubtleHover, subtleActive: c.primarySubtleActive,
|
|
378
378
|
fg: c.textPrimary, fgHover: c.textPrimary, border: c.primaryMain,
|
|
@@ -763,6 +763,7 @@ const FAB_STYLES = theme.createStyles((theme) => ({
|
|
|
763
763
|
success: { bg: c.successMain, bgHover: c.successHover, bgActive: c.successActive, fg: c.successOn },
|
|
764
764
|
warning: { bg: c.warningMain, bgHover: c.warningHover, bgActive: c.warningActive, fg: c.warningOn },
|
|
765
765
|
error: { bg: c.errorMain, bgHover: c.errorHover, bgActive: c.errorActive, fg: c.errorOn },
|
|
766
|
+
'textPrimary': { bg: c.primaryMain, bgHover: c.primaryHover, bgActive: c.primaryActive, fg: c.primaryOn },
|
|
766
767
|
};
|
|
767
768
|
const { bg, bgHover, bgActive, fg } = colorMap[color];
|
|
768
769
|
const dim = SIZE_MAP[size];
|
|
@@ -819,7 +820,7 @@ const FAB_STYLES = theme.createStyles((theme) => ({
|
|
|
819
820
|
},
|
|
820
821
|
}), { id: 'fab' });
|
|
821
822
|
// Pre-generate CSS for all color/size/extended combinations.
|
|
822
|
-
const FAB_COLOR_VALUES = ['primary', 'secondary', 'neutral', 'info', 'success', 'warning', 'error'];
|
|
823
|
+
const FAB_COLOR_VALUES = ['primary', 'secondary', 'neutral', 'info', 'success', 'warning', 'error', 'textPrimary'];
|
|
823
824
|
const FAB_SIZE_VALUES = ['sm', 'md', 'lg'];
|
|
824
825
|
FAB_COLOR_VALUES.forEach(color => FAB_SIZE_VALUES.forEach(size => {
|
|
825
826
|
FAB_STYLES.root({ color, size, extended: false });
|
|
@@ -1065,6 +1066,11 @@ const buildToggleIntents = (c) => ({
|
|
|
1065
1066
|
on: c.errorOn, subtle: c.errorSubtle, subtleHover: c.errorSubtleHover, subtleActive: c.errorSubtleActive,
|
|
1066
1067
|
fg: c.errorMain, fgHover: c.errorHover, border: c.errorMain,
|
|
1067
1068
|
},
|
|
1069
|
+
textPrimary: {
|
|
1070
|
+
main: c.primaryMain, hover: c.primaryHover, active: c.primaryActive,
|
|
1071
|
+
on: c.primaryOn, subtle: c.primarySubtle, subtleHover: c.primarySubtleHover, subtleActive: c.primarySubtleActive,
|
|
1072
|
+
fg: c.textPrimary, fgHover: c.textPrimary, border: c.primaryMain,
|
|
1073
|
+
},
|
|
1068
1074
|
});
|
|
1069
1075
|
|
|
1070
1076
|
/**
|