@synerise/ds-modal 0.17.5 → 0.17.7

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
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.17.7](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.6...@synerise/ds-modal@0.17.7) (2023-10-11)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-modal
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.17.6](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.5...@synerise/ds-modal@0.17.6) (2023-10-02)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-modal
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.17.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@0.17.4...@synerise/ds-modal@0.17.5) (2023-09-26)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-modal
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ModalProps } from '../../Modal.types';
3
- export declare type ModalFooterProps = Pick<ModalProps, 'prefix' | 'infix' | 'suffix' | 'okButton' | 'cancelButton' | 'CustomFooterButton' | 'DSButton' | 'texts' | 'onOk' | 'onCancel' | 'cancelText' | 'okText' | 'cancelButtonProps' | 'okType' | 'okButtonProps'>;
2
+ export type ModalFooterProps = Pick<ModalProps, 'prefix' | 'infix' | 'suffix' | 'okButton' | 'cancelButton' | 'CustomFooterButton' | 'DSButton' | 'texts' | 'onOk' | 'onCancel' | 'cancelText' | 'okText' | 'cancelButtonProps' | 'okType' | 'okButtonProps'>;
4
3
  export declare const ModalFooter: ({ CustomFooterButton, DSButton, prefix, infix, suffix, ...antModalProps }: ModalFooterProps) => JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  import { ModalProps } from '../../Modal.types';
3
- declare type ModalTitleProps = Pick<ModalProps, 'headerActions' | 'onCancel' | 'titleContainerStyle' | 'blank' | 'description' | 'title'>;
2
+ type ModalTitleProps = Pick<ModalProps, 'headerActions' | 'onCancel' | 'titleContainerStyle' | 'blank' | 'description' | 'title'>;
4
3
  export declare const ModalTitle: ({ headerActions, blank, titleContainerStyle, onCancel, title, description, }: ModalTitleProps) => JSX.Element;
5
4
  export {};
@@ -1,7 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const Title: import("styled-components").StyledComponent<import("react").FC<Pick<import("antd/lib/typography/Base").BlockProps & {
4
- level?: 3 | 1 | 5 | 2 | 4 | undefined;
5
- }, "type" | "className" | "id" | "style" | "title" | "aria-label" | "children" | "disabled" | "prefixCls" | "code" | "mark" | "keyboard" | "editable" | "copyable" | "ellipsis" | "underline" | "delete" | "level">>, any, {}, never>;
3
+ export declare const Title: import("styled-components").StyledComponent<import("react").FC<import("antd/lib/typography/Title").TitleProps>, any, {}, never>;
6
4
  export declare const ActionButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
7
5
  export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
package/dist/Modal.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '@synerise/ds-core/dist/js/style';
3
2
  import { ModalFooterProps } from './Elements/ModalFooter';
4
3
  import type { ModalProps } from './Modal.types';
@@ -1,8 +1,8 @@
1
1
  import type { CSSProperties, ComponentType, ReactNode } from 'react';
2
2
  import { ButtonProps } from '@synerise/ds-button';
3
3
  import { ModalProps as AntdModalProps } from 'antd/lib/modal';
4
- export declare type Props = ModalProps;
5
- export declare type ModalProps = {
4
+ export type Props = ModalProps;
5
+ export type ModalProps = {
6
6
  description?: string;
7
7
  headerActions?: ReactNode;
8
8
  size?: 'small' | 'medium' | 'large' | 'extraLarge' | 'fullSize';
@@ -16,7 +16,7 @@ export declare type ModalProps = {
16
16
  };
17
17
  children?: ReactNode;
18
18
  } & AntdModalProps & ModalFooterBuilder;
19
- export declare type ModalFooterBuilder = {
19
+ export type ModalFooterBuilder = {
20
20
  prefix?: ReactNode;
21
21
  infix?: ReactNode;
22
22
  suffix?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-modal",
3
- "version": "0.17.5",
3
+ "version": "0.17.7",
4
4
  "description": "Modal UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -21,6 +21,7 @@
21
21
  "build:js": "babel --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
22
  "build:watch": "npm run build:js -- --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
+ "pack:ci": "npm pack --pack-destination ../../portal/storybook-static/static",
24
25
  "prepublish": "npm run build",
25
26
  "test": "jest",
26
27
  "test:watch": "npm run test -- --watchAll",
@@ -32,10 +33,10 @@
32
33
  ],
33
34
  "types": "dist/index.d.ts",
34
35
  "dependencies": {
35
- "@synerise/ds-button": "^0.18.2",
36
- "@synerise/ds-icon": "^0.58.2",
37
- "@synerise/ds-typography": "^0.13.0",
38
- "classnames": "^2.2.6"
36
+ "@synerise/ds-button": "^0.18.4",
37
+ "@synerise/ds-icon": "^0.58.4",
38
+ "@synerise/ds-typography": "^0.13.2",
39
+ "classnames": "2.3.2"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "@synerise/ds-core": "*",
@@ -44,9 +45,9 @@
44
45
  "styled-components": "5.0.1"
45
46
  },
46
47
  "devDependencies": {
47
- "@synerise/ds-utils": "^0.24.16",
48
+ "@synerise/ds-utils": "^0.24.18",
48
49
  "@testing-library/react": "10.0.1",
49
50
  "@testing-library/user-event": "^10.3.1"
50
51
  },
51
- "gitHead": "f1f520c4c5ef9f90bacb5d5e0b2e778ceb8fdf79"
52
+ "gitHead": "8eb4a3e304406a8dbb9258803c48952461fc5a55"
52
53
  }