@kep-platform/basic-component 1.0.15 → 1.0.16

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.
@@ -6,7 +6,7 @@ export type ButtonProps = {
6
6
  children: ReactNode;
7
7
  } & HtmlHTMLAttributes<HTMLButtonElement>;
8
8
  declare const Button: React.ForwardRefExoticComponent<{
9
- type?: "default" | "primary" | "danger" | undefined;
9
+ type?: "danger" | "default" | "primary" | undefined;
10
10
  size?: SizeType | undefined;
11
11
  children: ReactNode;
12
12
  } & React.HtmlHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare const MainArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Flex").FlexItemProps | keyof React.HtmlHTMLAttributes<HTMLDivElement>> & import("../Flex").FlexItemProps & React.HtmlHTMLAttributes<HTMLDivElement>, "ref"> & {
2
+ export declare const MainArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HtmlHTMLAttributes<HTMLDivElement> | keyof import("../Flex").FlexItemProps> & import("../Flex").FlexItemProps & React.HtmlHTMLAttributes<HTMLDivElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
4
4
  }, never>> & string;
5
5
  type MainPropertyProps = {
@@ -9,7 +9,7 @@ import WindowController from "./WindowController";
9
9
  import WindowOption from "./WindowOption";
10
10
  var WindowContainer = styled.div.withConfig({
11
11
  shouldForwardProp: function shouldForwardProp(prop) {
12
- return !['isMinimize'].includes(prop);
12
+ return !['isMinimize', 'isFullscreen'].includes(prop);
13
13
  }
14
14
  })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tbox-shadow: ", ";\n\tposition: absolute;\n\tpadding: 0px;\n\tborder-radius: ", ";\n\tbackground-color: #fff;\n\toverflow: hidden;\n\tborder: 1px solid rgba(50, 58, 67, 0.15);\n"])), function (props) {
15
15
  return props.isFullscreen ? 'none' : 'var(--kep-platform-box-shadow)';
@@ -14,9 +14,9 @@ import React, { useState } from 'react';
14
14
  import styled from 'styled-components';
15
15
  var WindowOptionContainer = styled.span.withConfig({
16
16
  shouldForwardProp: function shouldForwardProp(prop) {
17
- return !['active'].includes(prop);
17
+ return !['active', 'danger'].includes(prop);
18
18
  }
19
- })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n padding: 0 16px;\n cursor: pointer;\n & svg {\n transition: transform 0.5s;\n }\n\n &:hover {\n & svg {\n color: ", ";\n }\n\n background-color: ", ";\n }\n"])), function (props) {
19
+ })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\theight: 100%;\n\tdisplay: flex;\n\tpadding: 0 16px;\n\tcursor: pointer;\n\t& svg {\n\t\ttransition: transform 0.5s;\n\t}\n\n\t&:hover {\n\t\t& svg {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\tbackground-color: ", ";\n\t}\n"])), function (props) {
20
20
  if (props.danger) {
21
21
  return '#fff';
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -86,5 +86,5 @@
86
86
  "authors": [
87
87
  "less-step-jss 1599925910@qq.com"
88
88
  ],
89
- "gitHead": "829935f9dddf81c80c3235da084268558e8c4193"
89
+ "gitHead": "4d69e95d349dad5a6bc640dfc7a655ac8f72b1ae"
90
90
  }