td-stylekit 24.1.0 → 24.2.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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [24.2.0](https://github.com/treasure-data/td-stylekit/compare/v24.1.0...v24.2.0) (2021-10-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **Modal:** Render Header children ([#1200](https://github.com/treasure-data/td-stylekit/issues/1200)) ([64b3f95](https://github.com/treasure-data/td-stylekit/commit/64b3f95))
|
|
7
|
+
|
|
1
8
|
# [24.1.0](https://github.com/treasure-data/td-stylekit/compare/v24.0.3...v24.1.0) (2021-10-26)
|
|
2
9
|
|
|
3
10
|
|
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright 2021 Treasure Data inc, all rights reserved.
|
package/dist/es/Modal/Modal.d.ts
CHANGED
|
@@ -315,7 +315,7 @@ export declare class Modal extends Component<ModalProps, ModalState> {
|
|
|
315
315
|
icon?: React.ReactNode;
|
|
316
316
|
}) => JSX.Element;
|
|
317
317
|
};
|
|
318
|
-
static Header: ({ closeTitle, id, title, subtitle, dynamite, destructive, onHide, disableCancel, ...props }: import(".").HeaderProps) => JSX.Element;
|
|
318
|
+
static Header: ({ closeTitle, id, title, subtitle, dynamite, destructive, onHide, disableCancel, children, ...props }: import(".").HeaderProps) => JSX.Element;
|
|
319
319
|
static Message: typeof ModalMessage;
|
|
320
320
|
state: ModalState;
|
|
321
321
|
setPageInstrumentation: (page: string) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare type HeaderProps = {
|
|
3
3
|
id?: string;
|
|
4
4
|
title?: string;
|
|
@@ -9,7 +9,8 @@ export declare type HeaderProps = {
|
|
|
9
9
|
disableCancel?: boolean;
|
|
10
10
|
smallFont?: boolean;
|
|
11
11
|
closeTitle?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
12
13
|
};
|
|
13
|
-
declare const Header: ({ closeTitle, id, title, subtitle, dynamite, destructive, onHide, disableCancel, ...props }: HeaderProps) => JSX.Element;
|
|
14
|
+
declare const Header: ({ closeTitle, id, title, subtitle, dynamite, destructive, onHide, disableCancel, children, ...props }: HeaderProps) => JSX.Element;
|
|
14
15
|
export default Header;
|
|
15
16
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -22,7 +22,8 @@ var Header = function Header(_ref) {
|
|
|
22
22
|
onHide = _ref.onHide,
|
|
23
23
|
_ref$disableCancel = _ref.disableCancel,
|
|
24
24
|
disableCancel = _ref$disableCancel === void 0 ? false : _ref$disableCancel,
|
|
25
|
-
|
|
25
|
+
children = _ref.children,
|
|
26
|
+
props = _objectWithoutProperties(_ref, ["closeTitle", "id", "title", "subtitle", "dynamite", "destructive", "onHide", "disableCancel", "children"]);
|
|
26
27
|
|
|
27
28
|
var titleId = id ? "".concat(id, "_title") : '';
|
|
28
29
|
var subtitleId = id ? "".concat(id, "_subtitle") : '';
|
|
@@ -47,7 +48,7 @@ var Header = function Header(_ref) {
|
|
|
47
48
|
"data-gs": gs("src", "modal", "components", "header-container", "title-container", "modal-subtitle"),
|
|
48
49
|
text: subtitle,
|
|
49
50
|
id: subtitleId
|
|
50
|
-
})), ___EmotionJSX(CloseIcon, {
|
|
51
|
+
})), children, ___EmotionJSX(CloseIcon, {
|
|
51
52
|
"data-gs-c": gsC("icon-medium-close"),
|
|
52
53
|
"data-gs": gs("src", "modal", "components", "header-container", "close-icon"),
|
|
53
54
|
onClick: onHide,
|
|
@@ -5,8 +5,7 @@ if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
|
5
5
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
6
6
|
import { useTheme, withTheme } from 'emotion-theming';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { VictoryArea, VictoryAxis, VictoryChart, VictoryGroup, VictoryScatter
|
|
9
|
-
, VictoryVoronoiContainer } from 'victory';
|
|
8
|
+
import { VictoryArea, VictoryAxis, VictoryChart, VictoryGroup, VictoryScatter, VictoryVoronoiContainer } from 'victory';
|
|
10
9
|
import { chartUtils, Container, Defs, Noop, Tooltip } from '../ChartPrimitives';
|
|
11
10
|
|
|
12
11
|
function AreaChart(_ref) {
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "td-stylekit",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.2.0",
|
|
4
4
|
"main": "dist/es/index.js",
|
|
5
5
|
"module": "dist/es/index.js",
|
|
6
6
|
"types": "dist/es/index.d.ts",
|
|
7
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
8
|
"sideEffects": false,
|
|
8
9
|
"scripts": {
|
|
9
10
|
"prebuild": "rimraf dist",
|
|
@@ -15,20 +16,18 @@
|
|
|
15
16
|
"docs:start": "start-storybook --docs --port 9001 --config-dir .storybook --static-dir docs/assets",
|
|
16
17
|
"typescript": "tsc --noEmit -p .",
|
|
17
18
|
"format": "prettier --write --ignore-path .gitignore '**/*.{ts,tsx,js,json}'",
|
|
18
|
-
"build:icons": "
|
|
19
|
-
"build:icons:types": "
|
|
19
|
+
"build:icons": "node bin/icons/build.js > dist/es/Icon/types.js",
|
|
20
|
+
"build:icons:types": "bin/icons/build.js types > src/Icon/staticTypes.ts",
|
|
20
21
|
"build:types": "tsc --declaration --emitDeclarationOnly --declarationMap && cp -r dist/es/src/* dist/es/",
|
|
21
22
|
"lint": "eslint . --ext .js,.ts,.tsx",
|
|
22
23
|
"release": "semantic-release",
|
|
23
24
|
"start": "yarn docs:start",
|
|
24
25
|
"tdd": "yarn test --watch",
|
|
25
26
|
"test:dependencies": "depcruise --config .dependency-cruiser.js .",
|
|
26
|
-
"test:icons": "
|
|
27
|
-
"test:visual-
|
|
28
|
-
"test:visual": "./bin/visual-regression-test",
|
|
29
|
-
"test:visual-ci": "./bin/runVisualRegressionTest.sh",
|
|
27
|
+
"test:icons": "bin/icons/buildTest.ts",
|
|
28
|
+
"test:visual-regression": "bin/visual-regression/test.ts",
|
|
30
29
|
"test": "jest --env=jsdom",
|
|
31
|
-
"download:snapshots": "
|
|
30
|
+
"download:snapshots": "bin/visual-regression/downloadSnapshots.ts"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
33
|
"@babel/runtime": "^7.11.2",
|
|
@@ -41,7 +40,6 @@
|
|
|
41
40
|
"@types/color": "^3.0.1",
|
|
42
41
|
"classnames": "^2.2.6",
|
|
43
42
|
"color": "^3.1.2",
|
|
44
|
-
"commander": "^6.0.0",
|
|
45
43
|
"date-fns": "2.23.0",
|
|
46
44
|
"emotion-theming": "^10.0.27",
|
|
47
45
|
"framer-motion": "^1.7.0",
|
|
@@ -69,7 +67,6 @@
|
|
|
69
67
|
"react-middle-ellipsis": "^1.0.12",
|
|
70
68
|
"react-select": "^3.0.8",
|
|
71
69
|
"react-sortable-tree": "^2.7.1",
|
|
72
|
-
"ts-node": "^10.2.1",
|
|
73
70
|
"use-onclickoutside": "^0.3.1",
|
|
74
71
|
"victory": "^35.4.2"
|
|
75
72
|
},
|
|
@@ -109,6 +106,7 @@
|
|
|
109
106
|
"@testing-library/jest-dom": "^5.11.8",
|
|
110
107
|
"@testing-library/react": "^11.2.2",
|
|
111
108
|
"@testing-library/user-event": "^12.6.0",
|
|
109
|
+
"ts-node": "^10.2.1",
|
|
112
110
|
"@types/jest": "^25.1.3",
|
|
113
111
|
"@types/lodash.clamp": "^4.0.6",
|
|
114
112
|
"@types/lodash.curry": "^4.1.6",
|
|
@@ -142,6 +140,7 @@
|
|
|
142
140
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
143
141
|
"babel-preset-react-app": "^9.0.2",
|
|
144
142
|
"cheerio": "^1.0.0-rc.3",
|
|
143
|
+
"commander": "^6.0.0",
|
|
145
144
|
"core-js": "^3.2.1",
|
|
146
145
|
"cross-env": "^6.0.3",
|
|
147
146
|
"danger": "^9.2.1",
|