@splunk/themes 0.16.1 → 0.16.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.
- package/CHANGELOG.md +13 -0
- package/mixins/typography.js +13 -13
- package/package.json +9 -10
- package/storybook-addon-splunk-themes/ThemedDocsContainer.js +1 -1
- package/stubs-dependencies.d.ts +8 -0
- package/types.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
0.16.3 - October 11, 2023
|
|
5
|
+
----------
|
|
6
|
+
Bug Fixes:
|
|
7
|
+
* This package should now load correctly in Webpack 4 environments (SUI-5802).
|
|
8
|
+
|
|
9
|
+
0.16.2 - October 4, 2023
|
|
10
|
+
----------
|
|
11
|
+
Bug Fixes:
|
|
12
|
+
* `typography` mixin's `title4`, `title5`, and `title6` should now correctly follow the font hierarchy (SUI-5668).
|
|
13
|
+
* `title5` is now larger and bolder than `title6` in Prisma themes.
|
|
14
|
+
* `title4` it now larger than `title6` in the Enterprise compact theme.
|
|
15
|
+
* `typography`'s mixin's `title5` color has been changed to `active` in prisma theme to match the Splunk Design System.
|
|
16
|
+
|
|
4
17
|
0.16.1 - June 6, 2023
|
|
5
18
|
----------
|
|
6
19
|
API Changes:
|
package/mixins/typography.js
CHANGED
|
@@ -120,35 +120,35 @@ function getStylesForVariant(variant) {
|
|
|
120
120
|
prisma: '24px'
|
|
121
121
|
});
|
|
122
122
|
size = (0, _pick["default"])({
|
|
123
|
-
enterprise:
|
|
123
|
+
enterprise: _variables["default"].fontSize,
|
|
124
124
|
prisma: '16px'
|
|
125
125
|
});
|
|
126
126
|
weight = _variables["default"].fontWeightBold;
|
|
127
127
|
break;
|
|
128
128
|
|
|
129
129
|
case 'title5':
|
|
130
|
-
color =
|
|
131
|
-
|
|
132
|
-
prisma: 'default'
|
|
133
|
-
});
|
|
134
|
-
lineHeight = (0, _pick["default"])({
|
|
135
|
-
enterprise: _variables["default"].lineHeight,
|
|
136
|
-
prisma: '16px'
|
|
137
|
-
});
|
|
130
|
+
color = _variables["default"].contentColorActive;
|
|
131
|
+
lineHeight = _variables["default"].lineHeight;
|
|
138
132
|
size = (0, _pick["default"])({
|
|
139
133
|
enterprise: '12px',
|
|
140
|
-
prisma:
|
|
134
|
+
prisma: _variables["default"].fontSize
|
|
141
135
|
});
|
|
142
136
|
weight = (0, _pick["default"])({
|
|
143
|
-
enterprise:
|
|
137
|
+
enterprise: _variables["default"].fontWeightSemiBold,
|
|
144
138
|
prisma: _variables["default"].fontWeightBold
|
|
145
139
|
});
|
|
146
140
|
break;
|
|
147
141
|
|
|
148
142
|
case 'title6':
|
|
149
143
|
color = _variables["default"].contentColorActive;
|
|
150
|
-
lineHeight =
|
|
151
|
-
|
|
144
|
+
lineHeight = (0, _pick["default"])({
|
|
145
|
+
enterprise: _variables["default"].lineHeight,
|
|
146
|
+
prisma: '16px'
|
|
147
|
+
});
|
|
148
|
+
size = (0, _pick["default"])({
|
|
149
|
+
enterprise: '12px',
|
|
150
|
+
prisma: '13px'
|
|
151
|
+
});
|
|
152
152
|
weight = _variables["default"].fontWeightSemiBold;
|
|
153
153
|
break;
|
|
154
154
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/themes",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "Theme variables and mixins for the Splunk design language",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"babel": "babel src -d . --ignore src/babel-plugin-base64-png,src/tests --ignore \"**/docs\" --extensions .js,.ts,.tsx",
|
|
7
7
|
"build": "cross-env NODE_ENV=production yarn babel && yarn types:build",
|
|
8
8
|
"docs": "NODE_ENV=production webpack --config docs.gen.webpack.config.js",
|
|
9
|
-
"docs:publish": "
|
|
10
|
-
"docs:publish:external": "
|
|
9
|
+
"docs:publish": "eval $(splunk-docs-package docs) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH",
|
|
10
|
+
"docs:publish:external": "eval $(splunk-docs-package docs-external --suffix=public) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH",
|
|
11
11
|
"docs:start": "INTERNAL=true webpack serve --config docs.gen.webpack.config.js",
|
|
12
12
|
"docs:start:external": "webpack serve --config docs.gen.webpack.config.js",
|
|
13
13
|
"lint": "eslint src --ext \".ts,.tsx,.js,.jsx\"",
|
|
@@ -66,8 +66,7 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@babel/cli": "^7.2.0",
|
|
68
68
|
"@babel/core": "^7.2.0",
|
|
69
|
-
"@splunk/babel-preset": "^
|
|
70
|
-
"@splunk/cicd-tools": "^0.5.0",
|
|
69
|
+
"@splunk/babel-preset": "^4.0.0",
|
|
71
70
|
"@splunk/eslint-config": "^4.0.0",
|
|
72
71
|
"@storybook/addon-docs": "^6.5.9",
|
|
73
72
|
"@storybook/addons": "^6.5.9",
|
|
@@ -89,15 +88,15 @@
|
|
|
89
88
|
"eslint-plugin-jsx-a11y": "^6.3.1",
|
|
90
89
|
"eslint-plugin-react": "^7.20.3",
|
|
91
90
|
"eslint-plugin-react-hooks": "^4.0.5",
|
|
92
|
-
"jest": "^
|
|
91
|
+
"jest": "^26.6.3",
|
|
93
92
|
"jest-styled-components": "^7.0.8",
|
|
94
93
|
"react": "^16.12.0",
|
|
95
94
|
"styled-components": "^5.3.10",
|
|
96
95
|
"typescript": "^4.0.5",
|
|
97
|
-
"webpack": "^
|
|
98
|
-
"webpack-cli": "^
|
|
99
|
-
"webpack-dev-server": "^4.
|
|
100
|
-
"webpack-merge": "^
|
|
96
|
+
"webpack": "^5.88.2",
|
|
97
|
+
"webpack-cli": "^5.1.4",
|
|
98
|
+
"webpack-dev-server": "^4.15.1",
|
|
99
|
+
"webpack-merge": "^5.9.0"
|
|
101
100
|
},
|
|
102
101
|
"engines": {
|
|
103
102
|
"node": ">=6"
|
|
@@ -51,7 +51,7 @@ var ThemedDocsContainer = function ThemedDocsContainer(_ref) {
|
|
|
51
51
|
|
|
52
52
|
return /*#__PURE__*/_react["default"].createElement(_blocks.DocsContainer, {
|
|
53
53
|
context: themedContext
|
|
54
|
-
}, /*#__PURE__*/_react["default"].createElement(_themes.GlobalStyles, null), children);
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement(_themes.GlobalStyles, null), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, children));
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
exports.ThemedDocsContainer = ThemedDocsContainer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@storybook/addon-docs/blocks';
|
|
2
|
+
|
|
3
|
+
declare module '@storybook/addon-docs/blocks' {
|
|
4
|
+
declare interface DocsContainerPropsWithChildren extends DocsContainerProps {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const DocsContainer: FunctionComponent<DocsContainerPropsWithChildren>;
|
|
8
|
+
}
|
package/types.js
CHANGED