@sproutsocial/racine 11.7.1 → 11.9.0-useInteractiveColor.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.
Files changed (54) hide show
  1. package/__flow__/Checkbox/index.stories.js +73 -56
  2. package/__flow__/Checkbox/styles.js +75 -75
  3. package/__flow__/Collapsible/index.js +3 -2
  4. package/__flow__/Icon/index.stories.js +41 -36
  5. package/__flow__/Image/index.js +10 -2
  6. package/__flow__/Input/index.js +49 -25
  7. package/__flow__/Input/index.stories.js +59 -33
  8. package/__flow__/Input/index.test.js +20 -0
  9. package/__flow__/Input/styles.js +2 -2
  10. package/__flow__/Loader/index.stories.js +18 -14
  11. package/__flow__/Numeral/index.stories.js +109 -50
  12. package/__flow__/Radio/index.stories.js +41 -26
  13. package/__flow__/SegmentedControl/index.js +3 -2
  14. package/__flow__/Switch/index.stories.js +26 -18
  15. package/__flow__/TableCell/index.js +9 -2
  16. package/__flow__/ToggleHint/index.js +9 -2
  17. package/__flow__/Token/styles.js +13 -12
  18. package/__flow__/index.js +1 -0
  19. package/__flow__/systemProps/color.js +1 -2
  20. package/__flow__/themes/dark/theme.js +0 -5
  21. package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +9 -0
  22. package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +9 -0
  23. package/__flow__/themes/light/theme.js +0 -5
  24. package/__flow__/types/theme.flow.js +2 -2
  25. package/__flow__/utils/responsiveProps/index.test.js +10 -2
  26. package/__flow__/utils/useInteractiveColor.js +32 -0
  27. package/commonjs/Input/index.js +45 -23
  28. package/commonjs/Input/styles.js +2 -2
  29. package/commonjs/Token/styles.js +9 -7
  30. package/commonjs/index.js +6 -1
  31. package/commonjs/themes/dark/theme.js +0 -5
  32. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +11 -2
  33. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +11 -2
  34. package/commonjs/themes/light/theme.js +0 -5
  35. package/commonjs/utils/useInteractiveColor.js +33 -0
  36. package/dist/themes/dark/theme.scss +0 -3
  37. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +14 -3
  38. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +14 -3
  39. package/dist/themes/light/theme.scss +0 -3
  40. package/lib/Input/index.js +44 -23
  41. package/lib/Input/styles.js +2 -2
  42. package/lib/Token/styles.js +8 -7
  43. package/lib/index.js +1 -0
  44. package/lib/themes/dark/theme.js +0 -4
  45. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +9 -1
  46. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +9 -1
  47. package/lib/themes/light/theme.js +0 -4
  48. package/lib/types/theme.flow.js +1 -1
  49. package/lib/utils/useInteractiveColor.js +27 -0
  50. package/package.json +1 -1
  51. package/CHANGELOG.md +0 -3208
  52. package/__flow__/themes/utils/interact.js +0 -12
  53. package/commonjs/themes/utils/interact.js +0 -19
  54. package/lib/themes/utils/interact.js +0 -13
@@ -1,12 +0,0 @@
1
- //@flow strict-local
2
- import { darken, lighten } from "polished";
3
-
4
- const interact = (mode: string) => (themeValue: string) => {
5
- if (mode === "dark") {
6
- return lighten(0.2, themeValue);
7
- } else {
8
- return darken(0.2, themeValue);
9
- }
10
- };
11
-
12
- export default interact;
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
-
6
- var _polished = require("polished");
7
-
8
- var interact = function interact(mode) {
9
- return function (themeValue) {
10
- if (mode === "dark") {
11
- return (0, _polished.lighten)(0.2, themeValue);
12
- } else {
13
- return (0, _polished.darken)(0.2, themeValue);
14
- }
15
- };
16
- };
17
-
18
- var _default = interact;
19
- exports.default = _default;
@@ -1,13 +0,0 @@
1
- import { darken, lighten } from "polished";
2
-
3
- var interact = function interact(mode) {
4
- return function (themeValue) {
5
- if (mode === "dark") {
6
- return lighten(0.2, themeValue);
7
- } else {
8
- return darken(0.2, themeValue);
9
- }
10
- };
11
- };
12
-
13
- export default interact;