@sproutsocial/racine 11.2.0 → 11.2.2-beta.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.
- package/CHANGELOG.md +12 -0
- package/__flow__/Badge/index.js +1 -0
- package/__flow__/Box/index.stories.js +1 -1
- package/__flow__/Stack/index.js +1 -1
- package/__flow__/ThemeProvider/index.js +2 -2
- package/__flow__/index.js +1 -2
- package/__flow__/systemProps/typography.js +1 -1
- package/__flow__/themes/extendedThemes/README.md +6 -0
- package/__flow__/themes/{dark → racine/dark}/_themed.scss +1 -1
- package/__flow__/themes/{dark → racine/dark}/dataviz-palette.js +0 -0
- package/__flow__/themes/{dark → racine/dark}/decorative-palettes.js +0 -0
- package/__flow__/themes/{dark → racine/dark}/theme.js +1 -1
- package/__flow__/themes/racine/index.js +2 -0
- package/__flow__/themes/{light → racine/light}/_themed.scss +1 -1
- package/__flow__/themes/{light → racine/light}/dataviz-palette.js +0 -0
- package/__flow__/themes/{light → racine/light}/decorative-palettes.js +0 -0
- package/__flow__/themes/{light → racine/light}/literal-colors.js +0 -0
- package/__flow__/themes/{light → racine/light}/theme.js +1 -1
- package/__flow__/types/theme.colors.flow.js +2 -2
- package/__flow__/types/theme.flow.js +2 -2
- package/__flow__/utils/mixins.js +11 -7
- package/__flow__/utils/responsiveProps/index.js +1 -1
- package/commonjs/ThemeProvider/index.js +1 -1
- package/commonjs/index.js +8 -9
- package/commonjs/themes/{dark → racine/dark}/dataviz-palette.js +0 -0
- package/commonjs/themes/{dark → racine/dark}/decorative-palettes.js +0 -0
- package/commonjs/themes/{dark → racine/dark}/theme.js +1 -1
- package/commonjs/themes/racine/index.js +14 -0
- package/commonjs/themes/{light → racine/light}/dataviz-palette.js +0 -0
- package/commonjs/themes/{light → racine/light}/decorative-palettes.js +0 -0
- package/commonjs/themes/{light → racine/light}/literal-colors.js +0 -0
- package/commonjs/themes/{light → racine/light}/theme.js +1 -1
- package/commonjs/types/theme.colors.flow.js +2 -2
- package/commonjs/types/theme.flow.js +1 -1
- package/commonjs/utils/mixins.js +3 -5
- package/commonjs/utils/responsiveProps/index.js +1 -1
- package/dist/themes/{dark → racine/dark}/_themed.scss +1 -1
- package/dist/themes/{dark → racine/dark}/dark.scss +0 -0
- package/dist/themes/{light → racine/light}/_themed.scss +1 -1
- package/dist/themes/{light → racine/light}/light.scss +0 -0
- package/lib/ThemeProvider/index.js +1 -1
- package/lib/index.js +1 -2
- package/lib/themes/{dark → racine/dark}/dataviz-palette.js +0 -0
- package/lib/themes/{dark → racine/dark}/decorative-palettes.js +0 -0
- package/lib/themes/{dark → racine/dark}/theme.js +1 -1
- package/lib/themes/racine/index.js +2 -0
- package/lib/themes/{light → racine/light}/dataviz-palette.js +0 -0
- package/lib/themes/{light → racine/light}/decorative-palettes.js +0 -0
- package/lib/themes/{light → racine/light}/literal-colors.js +0 -0
- package/lib/themes/{light → racine/light}/theme.js +1 -1
- package/lib/types/theme.colors.flow.js +2 -2
- package/lib/types/theme.flow.js +1 -1
- package/lib/utils/mixins.js +3 -3
- package/lib/utils/responsiveProps/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 11.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9cc377e: Created extended theme directory
|
|
8
|
+
|
|
9
|
+
## 11.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6968733: adds deprecation messaging to typeProps to be displayed on seeds page
|
|
14
|
+
|
|
3
15
|
## 11.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/__flow__/Badge/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { css } from "styled-components";
|
|
|
3
3
|
import { text } from "@storybook/addon-knobs";
|
|
4
4
|
import Box from "./index";
|
|
5
5
|
import useMeasure from "use-measure";
|
|
6
|
-
import theme from "../themes/light/theme";
|
|
6
|
+
import theme from "../themes/racine/light/theme";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
title: "Box",
|
package/__flow__/Stack/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { Children } from "react";
|
|
4
4
|
import Box from "../Box";
|
|
5
5
|
import { normalizeResponsiveProp } from "../utils/responsiveProps";
|
|
6
|
-
import type { TypeSpaceLiterals } from "../themes/light/theme";
|
|
6
|
+
import type { TypeSpaceLiterals } from "../themes/racine/light/theme";
|
|
7
7
|
import type { TypeResponsive } from "../types/system-props.flow";
|
|
8
8
|
|
|
9
9
|
type TypeDirection = "vertical" | "horizontal";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { ThemeProvider as BaseThemeProvider } from "styled-components";
|
|
4
|
-
import theme from "../themes/light/theme";
|
|
4
|
+
import theme from "../themes/racine/light/theme";
|
|
5
5
|
|
|
6
|
-
import typeof { default as TypeTheme } from "../themes/light/theme";
|
|
6
|
+
import typeof { default as TypeTheme } from "../themes/racine/light/theme";
|
|
7
7
|
|
|
8
8
|
type TypeProps = $ReadOnly<{|
|
|
9
9
|
theme?: TypeTheme,
|
package/__flow__/index.js
CHANGED
|
@@ -4,8 +4,7 @@ export type { TypeTheme } from "./types/theme.flow";
|
|
|
4
4
|
export * from "./systemProps";
|
|
5
5
|
export { visuallyHidden, focusRing, disabled } from "./utils/mixins";
|
|
6
6
|
export { useSelect, useMultiselect, useTextContent } from "./utils/hooks";
|
|
7
|
-
export
|
|
8
|
-
export { default as darkTheme } from "./themes/dark/theme";
|
|
7
|
+
export * from "./themes/racine";
|
|
9
8
|
export { default as Icon } from "./Icon";
|
|
10
9
|
// DEPRECATED: Alert has been renamed to Banner
|
|
11
10
|
export { default as Alert } from "./Banner";
|
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
TextAlignProperty,
|
|
12
12
|
} from "csstype";
|
|
13
13
|
|
|
14
|
-
import typeof { fontWeights as TypeofFontWeights } from "../themes/light/theme";
|
|
14
|
+
import typeof { fontWeights as TypeofFontWeights } from "../themes/racine/light/theme";
|
|
15
15
|
import type {
|
|
16
16
|
StyledSystemStyleFn,
|
|
17
17
|
TypeResponsiveBaseSystemProp,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
## Extended Theme Directory
|
|
2
|
+
|
|
3
|
+
This directory serves as a shared environment for all extended themes. Each unique theme should have its own folder and theme.js file.
|
|
4
|
+
`src/themes/extendedThemes/customTheme/theme.js`
|
|
5
|
+
|
|
6
|
+
Check out our documentation for [How to extend the theme](https://seeds.sproutsocial.com/components/theme#extending-the-theme) on Seeds.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// SET-UP
|
|
5
5
|
// This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
|
|
6
|
-
@import "../../../dist/themes/dark/dark.scss";
|
|
6
|
+
@import "../../../dist/themes/racine/dark/dark.scss";
|
|
7
7
|
|
|
8
8
|
// In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
|
|
9
9
|
// so we need to map-get "default" to access it.
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// SET-UP
|
|
5
5
|
// This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
|
|
6
|
-
@import "../../../dist/themes/light/light.scss";
|
|
6
|
+
@import "../../../dist/themes/racine/light/light.scss";
|
|
7
7
|
|
|
8
8
|
// In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
|
|
9
9
|
// so we need to map-get "default" to access it.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -20,7 +20,7 @@ import MOTION from "@sproutsocial/seeds-motion";
|
|
|
20
20
|
import BORDER from "@sproutsocial/seeds-border";
|
|
21
21
|
import { transparentize } from "polished";
|
|
22
22
|
|
|
23
|
-
import interact from "
|
|
23
|
+
import interact from "../../utils/interact";
|
|
24
24
|
|
|
25
25
|
export const breakpoints = ["900px", "1200px", "1500px", "1800px"];
|
|
26
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
2
|
|
|
3
|
-
import literalColors from "../themes/light/literal-colors";
|
|
4
|
-
import { datavizPalette } from "../themes/light/dataviz-palette";
|
|
3
|
+
import literalColors from "../themes/racine/light/literal-colors";
|
|
4
|
+
import { datavizPalette } from "../themes/racine/light/dataviz-palette";
|
|
5
5
|
|
|
6
6
|
type TypeAppColors = {|
|
|
7
7
|
app: {
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
space,
|
|
11
11
|
easing,
|
|
12
12
|
duration,
|
|
13
|
-
} from "../themes/light/theme";
|
|
13
|
+
} from "../themes/racine/light/theme";
|
|
14
14
|
import type { TypeColors } from "./theme.colors.flow.js";
|
|
15
|
-
import type { TypeFontFamilyString } from "../themes/light/theme";
|
|
15
|
+
import type { TypeFontFamilyString } from "../themes/racine/light/theme";
|
|
16
16
|
|
|
17
17
|
export type TypeBreakpoint = typeof breakpoints;
|
|
18
18
|
export type TypeTypography = typeof typography;
|
package/__flow__/utils/mixins.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
2
|
import { css } from "styled-components";
|
|
3
|
-
import
|
|
3
|
+
import { racineLightTheme } from "../themes/racine";
|
|
4
4
|
import { transparentize } from "polished";
|
|
5
5
|
|
|
6
6
|
export const svgToDataURL = (svgStr: string) => {
|
|
@@ -26,9 +26,13 @@ export const visuallyHidden = css`
|
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
28
|
export const focusRing = css`
|
|
29
|
-
box-shadow: 0 0 0 1px
|
|
29
|
+
box-shadow: 0 0 0 1px
|
|
30
|
+
${racineLightTheme.colors.button.primary.background.base},
|
|
30
31
|
0 0px 0px 4px
|
|
31
|
-
${transparentize(
|
|
32
|
+
${transparentize(
|
|
33
|
+
0.7,
|
|
34
|
+
racineLightTheme.colors.button.primary.background.base
|
|
35
|
+
)};
|
|
32
36
|
outline: none;
|
|
33
37
|
|
|
34
38
|
&::-moz-focus-inner {
|
|
@@ -37,10 +41,10 @@ export const focusRing = css`
|
|
|
37
41
|
`;
|
|
38
42
|
|
|
39
43
|
export const pill = css`
|
|
40
|
-
min-width: ${
|
|
41
|
-
min-height: ${
|
|
42
|
-
padding: ${
|
|
43
|
-
border-radius: ${
|
|
44
|
+
min-width: ${racineLightTheme.space[600]};
|
|
45
|
+
min-height: ${racineLightTheme.space[600]};
|
|
46
|
+
padding: ${racineLightTheme.space[300]} ${racineLightTheme.space[350]};
|
|
47
|
+
border-radius: ${racineLightTheme.radii.pill};
|
|
44
48
|
`;
|
|
45
49
|
|
|
46
50
|
export const disabled = css`
|
|
@@ -7,7 +7,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = require("styled-components");
|
|
9
9
|
|
|
10
|
-
var _theme = _interopRequireDefault(require("../themes/light/theme"));
|
|
10
|
+
var _theme = _interopRequireDefault(require("../themes/racine/light/theme"));
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
package/commonjs/index.js
CHANGED
|
@@ -8,8 +8,6 @@ var _exportNames = {
|
|
|
8
8
|
useSelect: true,
|
|
9
9
|
useMultiselect: true,
|
|
10
10
|
useTextContent: true,
|
|
11
|
-
theme: true,
|
|
12
|
-
darkTheme: true,
|
|
13
11
|
Icon: true,
|
|
14
12
|
Alert: true,
|
|
15
13
|
Banner: true,
|
|
@@ -70,7 +68,7 @@ var _exportNames = {
|
|
|
70
68
|
DateRangePicker: true,
|
|
71
69
|
VisuallyHidden: true
|
|
72
70
|
};
|
|
73
|
-
exports.VisuallyHidden = exports.DateRangePicker = exports.SingleDatePicker = exports.ListboxButton = exports.MenuItemContainer = exports.MenuButtonContext = exports.MenuButton = exports.toast = exports.OverflowList = exports.Listbox = exports.Menu = exports.ToastContainer = exports.Skeleton = exports.Breadcrumb = exports.Avatar = exports.Stack = exports.Message = exports.Fieldset = exports.FormField = exports.EmptyState = exports.SegmentedControl = exports.Collapsible = exports.Numeral = exports.LoaderButton = exports.Drawer = exports.Tooltip = exports.ThemeProvider = exports.Popout = exports.Modal = exports.Tabs = exports.TokenInput = exports.Token = exports.Switch = exports.Link = exports.Button = exports.Select = exports.Input = exports.Label = exports.Box = exports.TableRowAccordion = exports.TableHeaderCell = exports.TableCell = exports.Table = exports.ChartLegend = exports.KeyboardKey = exports.Image = exports.Text = exports.Loader = exports.ToggleHint = exports.Textarea = exports.Radio = exports.Checkbox = exports.CharacterCounter = exports.Card = exports.Indicator = exports.Badge = exports.Banner = exports.Alert = exports.Icon = exports.
|
|
71
|
+
exports.VisuallyHidden = exports.DateRangePicker = exports.SingleDatePicker = exports.ListboxButton = exports.MenuItemContainer = exports.MenuButtonContext = exports.MenuButton = exports.toast = exports.OverflowList = exports.Listbox = exports.Menu = exports.ToastContainer = exports.Skeleton = exports.Breadcrumb = exports.Avatar = exports.Stack = exports.Message = exports.Fieldset = exports.FormField = exports.EmptyState = exports.SegmentedControl = exports.Collapsible = exports.Numeral = exports.LoaderButton = exports.Drawer = exports.Tooltip = exports.ThemeProvider = exports.Popout = exports.Modal = exports.Tabs = exports.TokenInput = exports.Token = exports.Switch = exports.Link = exports.Button = exports.Select = exports.Input = exports.Label = exports.Box = exports.TableRowAccordion = exports.TableHeaderCell = exports.TableCell = exports.Table = exports.ChartLegend = exports.KeyboardKey = exports.Image = exports.Text = exports.Loader = exports.ToggleHint = exports.Textarea = exports.Radio = exports.Checkbox = exports.CharacterCounter = exports.Card = exports.Indicator = exports.Badge = exports.Banner = exports.Alert = exports.Icon = exports.useTextContent = exports.useMultiselect = exports.useSelect = exports.disabled = exports.focusRing = exports.visuallyHidden = void 0;
|
|
74
72
|
|
|
75
73
|
var _systemProps = require("./systemProps");
|
|
76
74
|
|
|
@@ -93,13 +91,14 @@ exports.useSelect = _hooks.useSelect;
|
|
|
93
91
|
exports.useMultiselect = _hooks.useMultiselect;
|
|
94
92
|
exports.useTextContent = _hooks.useTextContent;
|
|
95
93
|
|
|
96
|
-
var
|
|
94
|
+
var _racine = require("./themes/racine");
|
|
97
95
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
exports
|
|
96
|
+
Object.keys(_racine).forEach(function (key) {
|
|
97
|
+
if (key === "default" || key === "__esModule") return;
|
|
98
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
99
|
+
if (key in exports && exports[key] === _racine[key]) return;
|
|
100
|
+
exports[key] = _racine[key];
|
|
101
|
+
});
|
|
103
102
|
|
|
104
103
|
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
105
104
|
|
|
File without changes
|
|
File without changes
|
|
@@ -15,7 +15,7 @@ var _decorativePalettes = require("./decorative-palettes");
|
|
|
15
15
|
|
|
16
16
|
var _polished = require("polished");
|
|
17
17
|
|
|
18
|
-
var _interact = _interopRequireDefault(require("
|
|
18
|
+
var _interact = _interopRequireDefault(require("../../utils/interact"));
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.racineDarkTheme = exports.racineLightTheme = void 0;
|
|
5
|
+
|
|
6
|
+
var _theme = _interopRequireDefault(require("./light/theme"));
|
|
7
|
+
|
|
8
|
+
exports.racineLightTheme = _theme.default;
|
|
9
|
+
|
|
10
|
+
var _theme2 = _interopRequireDefault(require("./dark/theme"));
|
|
11
|
+
|
|
12
|
+
exports.racineDarkTheme = _theme2.default;
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -25,7 +25,7 @@ var _seedsBorder = _interopRequireDefault(require("@sproutsocial/seeds-border"))
|
|
|
25
25
|
|
|
26
26
|
var _polished = require("polished");
|
|
27
27
|
|
|
28
|
-
var _interact = _interopRequireDefault(require("
|
|
28
|
+
var _interact = _interopRequireDefault(require("../../utils/interact"));
|
|
29
29
|
|
|
30
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _literalColors = _interopRequireDefault(require("../themes/light/literal-colors"));
|
|
3
|
+
var _literalColors = _interopRequireDefault(require("../themes/racine/light/literal-colors"));
|
|
4
4
|
|
|
5
|
-
var _datavizPalette = require("../themes/light/dataviz-palette");
|
|
5
|
+
var _datavizPalette = require("../themes/racine/light/dataviz-palette");
|
|
6
6
|
|
|
7
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/commonjs/utils/mixins.js
CHANGED
|
@@ -5,12 +5,10 @@ exports.disabled = exports.pill = exports.focusRing = exports.visuallyHidden = e
|
|
|
5
5
|
|
|
6
6
|
var _styledComponents = require("styled-components");
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _racine = require("../themes/racine");
|
|
9
9
|
|
|
10
10
|
var _polished = require("polished");
|
|
11
11
|
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
12
|
var svgToDataURL = function svgToDataURL(svgStr) {
|
|
15
13
|
var encoded = encodeURIComponent(svgStr).replace(/'/g, "%27").replace(/"/g, "%22");
|
|
16
14
|
var header = "data:image/svg+xml,";
|
|
@@ -21,9 +19,9 @@ var svgToDataURL = function svgToDataURL(svgStr) {
|
|
|
21
19
|
exports.svgToDataURL = svgToDataURL;
|
|
22
20
|
var visuallyHidden = (0, _styledComponents.css)(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;"]);
|
|
23
21
|
exports.visuallyHidden = visuallyHidden;
|
|
24
|
-
var focusRing = (0, _styledComponents.css)(["box-shadow:0 0 0 1px ", ",0 0px 0px 4px ", ";outline:none;&::-moz-focus-inner{border:0;}"],
|
|
22
|
+
var focusRing = (0, _styledComponents.css)(["box-shadow:0 0 0 1px ", ",0 0px 0px 4px ", ";outline:none;&::-moz-focus-inner{border:0;}"], _racine.racineLightTheme.colors.button.primary.background.base, (0, _polished.transparentize)(0.7, _racine.racineLightTheme.colors.button.primary.background.base));
|
|
25
23
|
exports.focusRing = focusRing;
|
|
26
|
-
var pill = (0, _styledComponents.css)(["min-width:", ";min-height:", ";padding:", " ", ";border-radius:", ";"],
|
|
24
|
+
var pill = (0, _styledComponents.css)(["min-width:", ";min-height:", ";padding:", " ", ";border-radius:", ";"], _racine.racineLightTheme.space[600], _racine.racineLightTheme.space[600], _racine.racineLightTheme.space[300], _racine.racineLightTheme.space[350], _racine.racineLightTheme.radii.pill);
|
|
27
25
|
exports.pill = pill;
|
|
28
26
|
var disabled = (0, _styledComponents.css)(["opacity:0.4;pointer-events:none;"]);
|
|
29
27
|
exports.disabled = disabled;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.normalizeResponsiveProp = void 0;
|
|
5
5
|
|
|
6
|
-
var _theme = _interopRequireDefault(require("../../themes/light/theme"));
|
|
6
|
+
var _theme = _interopRequireDefault(require("../../themes/racine/light/theme"));
|
|
7
7
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// SET-UP
|
|
5
5
|
// This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
|
|
6
|
-
@import "../../../dist/themes/dark/dark.scss";
|
|
6
|
+
@import "../../../dist/themes/racine/dark/dark.scss";
|
|
7
7
|
|
|
8
8
|
// In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
|
|
9
9
|
// so we need to map-get "default" to access it.
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// SET-UP
|
|
5
5
|
// This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
|
|
6
|
-
@import "../../../dist/themes/light/light.scss";
|
|
6
|
+
@import "../../../dist/themes/racine/light/light.scss";
|
|
7
7
|
|
|
8
8
|
// In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
|
|
9
9
|
// so we need to map-get "default" to access it.
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ThemeProvider as BaseThemeProvider } from "styled-components";
|
|
5
|
-
import theme from "../themes/light/theme";
|
|
5
|
+
import theme from "../themes/racine/light/theme";
|
|
6
6
|
|
|
7
7
|
var ThemeProvider = function ThemeProvider(props) {
|
|
8
8
|
return /*#__PURE__*/React.createElement(BaseThemeProvider, _extends({}, props, {
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export * from "./systemProps";
|
|
2
2
|
export { visuallyHidden, focusRing, disabled } from "./utils/mixins";
|
|
3
3
|
export { useSelect, useMultiselect, useTextContent } from "./utils/hooks";
|
|
4
|
-
export
|
|
5
|
-
export { default as darkTheme } from "./themes/dark/theme";
|
|
4
|
+
export * from "./themes/racine";
|
|
6
5
|
export { default as Icon } from "./Icon"; // DEPRECATED: Alert has been renamed to Banner
|
|
7
6
|
|
|
8
7
|
export { default as Alert } from "./Banner";
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ import lightTheme from "../light/theme";
|
|
|
6
6
|
import { datavizPalette } from "./dataviz-palette";
|
|
7
7
|
import { green, blue, purple, yellow, orange, red, neutral } from "./decorative-palettes";
|
|
8
8
|
import { transparentize } from "polished";
|
|
9
|
-
import interact from "
|
|
9
|
+
import interact from "../../utils/interact";
|
|
10
10
|
var MODE = "dark";
|
|
11
11
|
export var shadows = {
|
|
12
12
|
low: DEPTH.ELEVATION_LEVEL_100 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,7 +11,7 @@ import DEPTH from "@sproutsocial/seeds-depth";
|
|
|
11
11
|
import MOTION from "@sproutsocial/seeds-motion";
|
|
12
12
|
import BORDER from "@sproutsocial/seeds-border";
|
|
13
13
|
import { transparentize } from "polished";
|
|
14
|
-
import interact from "
|
|
14
|
+
import interact from "../../utils/interact";
|
|
15
15
|
export var breakpoints = ["900px", "1200px", "1500px", "1800px"];
|
|
16
16
|
var MODE = "light"; // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
|
|
17
17
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import literalColors from "../themes/light/literal-colors";
|
|
2
|
-
import { datavizPalette } from "../themes/light/dataviz-palette";
|
|
1
|
+
import literalColors from "../themes/racine/light/literal-colors";
|
|
2
|
+
import { datavizPalette } from "../themes/racine/light/dataviz-palette";
|
package/lib/types/theme.flow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows, space, easing, duration } from "../themes/light/theme";
|
|
1
|
+
import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows, space, easing, duration } from "../themes/racine/light/theme";
|
package/lib/utils/mixins.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
|
-
import
|
|
2
|
+
import { racineLightTheme } from "../themes/racine";
|
|
3
3
|
import { transparentize } from "polished";
|
|
4
4
|
export var svgToDataURL = function svgToDataURL(svgStr) {
|
|
5
5
|
var encoded = encodeURIComponent(svgStr).replace(/'/g, "%27").replace(/"/g, "%22");
|
|
@@ -8,6 +8,6 @@ export var svgToDataURL = function svgToDataURL(svgStr) {
|
|
|
8
8
|
return dataUrl;
|
|
9
9
|
};
|
|
10
10
|
export var visuallyHidden = css(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;"]);
|
|
11
|
-
export var focusRing = css(["box-shadow:0 0 0 1px ", ",0 0px 0px 4px ", ";outline:none;&::-moz-focus-inner{border:0;}"],
|
|
12
|
-
export var pill = css(["min-width:", ";min-height:", ";padding:", " ", ";border-radius:", ";"],
|
|
11
|
+
export var focusRing = css(["box-shadow:0 0 0 1px ", ",0 0px 0px 4px ", ";outline:none;&::-moz-focus-inner{border:0;}"], racineLightTheme.colors.button.primary.background.base, transparentize(0.7, racineLightTheme.colors.button.primary.background.base));
|
|
12
|
+
export var pill = css(["min-width:", ";min-height:", ";padding:", " ", ";border-radius:", ";"], racineLightTheme.space[600], racineLightTheme.space[600], racineLightTheme.space[300], racineLightTheme.space[350], racineLightTheme.radii.pill);
|
|
13
13
|
export var disabled = css(["opacity:0.4;pointer-events:none;"]);
|