td-stylekit 25.8.0 → 25.8.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.
@@ -20,5 +20,6 @@
20
20
  ],
21
21
  "scope-case": [2, "always", ["lower-case", "upper-case", "pascal-case"]],
22
22
  "subject-case": [2, "always", "sentence-case"]
23
- }
23
+ },
24
+ "defaultIgnores": false
24
25
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [25.8.3](https://github.com/treasure-data/td-stylekit/compare/v25.8.2...v25.8.3) (2022-03-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **CON-8373:** Display Dashboard or Toggle children on Plus Minus Button ([#1239](https://github.com/treasure-data/td-stylekit/issues/1239)) ([244c1c1](https://github.com/treasure-data/td-stylekit/commit/244c1c1))
7
+
8
+ ## [25.8.2](https://github.com/treasure-data/td-stylekit/compare/v25.8.1...v25.8.2) (2022-03-03)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **CON-9431:** Modal Header Grid ([#1243](https://github.com/treasure-data/td-stylekit/issues/1243)) ([610c668](https://github.com/treasure-data/td-stylekit/commit/610c668))
14
+
15
+ ## [25.8.1](https://github.com/treasure-data/td-stylekit/compare/v25.8.0...v25.8.1) (2022-03-01)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * Fail titles with "Revert " in commitlint ([#1242](https://github.com/treasure-data/td-stylekit/issues/1242)) ([1656471](https://github.com/treasure-data/td-stylekit/commit/1656471))
21
+
1
22
  # [25.8.0](https://github.com/treasure-data/td-stylekit/compare/v25.7.1...v25.8.0) (2022-03-01)
2
23
 
3
24
 
@@ -198,7 +198,7 @@ export declare const DateFormControl: import("@emotion/styled").StyledComponent<
198
198
  labelWidth?: string | number | undefined;
199
199
  inputCss?: import("@emotion/styled").Interpolation<any>;
200
200
  options?: any;
201
- } & Omit<import("../Input").InputProps<"number" | "password" | "textarea" | "text" | "url" | "email" | "datetime-local">, "label">, "max" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "pattern" | "color" | "multiple" | "inline" | "wrap" | "children" | "list" | "step" | "height" | "translate" | "width" | "readOnly" | "checked" | "onClick" | "onKeyPress" | "onMouseDown" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "min" | "crossOrigin" | "variant" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "src" | "cols" | "dirName" | "rows" | "inputRef"> & Partial<Pick<{
201
+ } & Omit<import("../Input").InputProps<"number" | "password" | "textarea" | "text" | "url" | "email" | "datetime-local">, "label">, "max" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "pattern" | "color" | "multiple" | "inline" | "wrap" | "children" | "list" | "step" | "height" | "translate" | "width" | "readOnly" | "checked" | "onClick" | "onKeyPress" | "onMouseDown" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "rows" | "min" | "crossOrigin" | "variant" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "src" | "cols" | "dirName" | "inputRef"> & Partial<Pick<{
202
202
  addOnClassName?: string | undefined;
203
203
  blockLabel?: boolean | undefined;
204
204
  'data-gs-c'?: Function | undefined;
@@ -13,6 +13,8 @@ var _Icon = _interopRequireDefault(require("../../Icon"));
13
13
 
14
14
  var _VisuallyHidden = _interopRequireDefault(require("../../VisuallyHidden"));
15
15
 
16
+ var _Grid = require("../../Grid");
17
+
16
18
  var _react2 = require("@emotion/react");
17
19
 
18
20
  var _excluded = ["closeTitle", "id", "title", "subtitle", "dynamite", "destructive", "onHide", "disableCancel", "children"];
@@ -45,8 +47,12 @@ var Header = function Header(_ref) {
45
47
  var titleId = id ? "".concat(id, "_title") : '';
46
48
  var subtitleId = id ? "".concat(id, "_subtitle") : '';
47
49
  return (0, _react2.jsx)(_elements.HeaderContainer, _extends({
48
- "data-gs-c": gsC("closeicon", title, subtitle),
50
+ "data-gs-c": gsC(title, subtitle),
49
51
  "data-gs": gs("src", "modal", "components", "header-container"),
52
+ as: "header",
53
+ columns: "minmax(auto, 90%) auto max-content",
54
+ columnGap: "0",
55
+ rows: 1,
50
56
  title: title,
51
57
  smallFont: !!subtitle,
52
58
  subtitle: subtitle,
@@ -54,29 +60,35 @@ var Header = function Header(_ref) {
54
60
  destructive: destructive,
55
61
  onHide: onHide,
56
62
  disableCancel: disableCancel
57
- }, props), (0, _react2.jsx)(_elements.TitleContainer, {
58
- "data-gs": gs("src", "modal", "components", "header-container", "title-container")
63
+ }, props), (0, _react2.jsx)(_Grid.GridItem, {
64
+ "data-gs": gs("src", "modal", "components", "header-container", "grid-item")
59
65
  }, (0, _react2.jsx)(_elements.ModalTitle, {
60
- "data-gs": gs("src", "modal", "components", "header-container", "title-container", "modal-title"),
66
+ "data-gs": gs("src", "modal", "components", "header-container", "grid-item", "modal-title"),
61
67
  text: title,
62
68
  smallFont: !!subtitle,
63
69
  id: titleId
64
70
  }), subtitle && (0, _react2.jsx)(_elements.ModalSubtitle, {
65
- "data-gs": gs("src", "modal", "components", "header-container", "title-container", "modal-subtitle"),
71
+ "data-gs": gs("src", "modal", "components", "header-container", "grid-item", "modal-subtitle"),
66
72
  text: subtitle,
67
73
  id: subtitleId
68
- })), children, (0, _react2.jsx)(_elements.CloseIcon, {
74
+ })), (0, _react2.jsx)(_Grid.GridItem, {
75
+ "data-gs-c": gsC(children),
76
+ "data-gs": gs("src", "modal", "components", "header-container", "grid-item")
77
+ }, children), (0, _react2.jsx)(_Grid.GridItem, {
78
+ "data-gs-c": gsC("closeicon"),
79
+ "data-gs": gs("src", "modal", "components", "header-container", "grid-item")
80
+ }, (0, _react2.jsx)(_elements.CloseIcon, {
69
81
  "data-gs-c": gsC("icon-medium-close"),
70
- "data-gs": gs("src", "modal", "components", "header-container", "close-icon"),
82
+ "data-gs": gs("src", "modal", "components", "header-container", "grid-item", "close-icon"),
71
83
  onClick: onHide,
72
84
  dynamite: dynamite,
73
85
  disabled: disableCancel
74
86
  }, (0, _react2.jsx)(_VisuallyHidden["default"], {
75
87
  "data-gs-c": gsC(closeTitle),
76
- "data-gs": gs("src", "modal", "components", "header-container", "close-icon", "visually-hidden")
88
+ "data-gs": gs("src", "modal", "components", "header-container", "grid-item", "close-icon", "visually-hidden")
77
89
  }, closeTitle), (0, _react2.jsx)(_Icon["default"].Medium.Close, {
78
- "data-gs": gs("src", "modal", "components", "header-container", "close-icon", "icon-medium-close")
79
- })));
90
+ "data-gs": gs("src", "modal", "components", "header-container", "grid-item", "close-icon", "icon-medium-close")
91
+ }))));
80
92
  };
81
93
 
82
94
  var _default = Header;
@@ -19,11 +19,11 @@ export declare const ConfirmationLabel: import("@emotion/styled").StyledComponen
19
19
  export declare const HeaderContainer: import("@emotion/styled").StyledComponent<{
20
20
  theme?: import("@emotion/react").Theme | undefined;
21
21
  as?: import("react").ElementType<any> | undefined;
22
- } & HeaderProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
23
- export declare const TitleContainer: import("@emotion/styled").StyledComponent<{
22
+ } & import("../../Grid/Grid").GridProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
23
+ children?: import("react").ReactNode;
24
+ } & {
24
25
  theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
26
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
26
+ } & HeaderProps, {}, {}>;
27
27
  export declare const ModalTitle: import("@emotion/styled").StyledComponent<import("../../RightTruncatedText").TruncatedTextProps & {
28
28
  theme?: import("@emotion/react").Theme | undefined;
29
29
  } & {