@mailstep/design-system 0.1.4-beta.10 → 0.1.4-beta.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.1.4-beta.10",
3
+ "version": "0.1.4-beta.12",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -13,7 +13,7 @@
13
13
  "storybook": "storybook dev -p 6006",
14
14
  "build": "rm -rf ./build && rollup -c && cp package.json build",
15
15
  "build-storybook": "storybook build",
16
- "publish": "npm publish ./build",
16
+ "deploy": "npm run build && npm publish ./build",
17
17
  "dev": "yarn storybook",
18
18
  "test": "echo \"The tests are still waiting to be written, but it seems like they're really good at procrastinating!\""
19
19
  },
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type Props = {
2
+ export type AlertProps = {
3
3
  intent?: 'success' | 'info' | 'warning' | 'danger';
4
4
  inline?: boolean;
5
5
  onClick?: () => void;
@@ -14,5 +14,5 @@ export type Props = {
14
14
  [key: string]: any;
15
15
  };
16
16
  export interface IAlert {
17
- (props: Props): JSX.Element;
17
+ (props: AlertProps): JSX.Element;
18
18
  }
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { Props } from './types';
3
- declare const BorderedBox: ({ children, className, id, ...rest }: Props) => JSX.Element;
2
+ import { BorderedBoxProps } from './types';
3
+ declare const BorderedBox: ({ children, className, id, ...rest }: BorderedBoxProps) => JSX.Element;
4
4
  export default BorderedBox;
@@ -2,7 +2,7 @@
2
2
  import type { StoryObj } from '@storybook/react';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ children, className, id, ...rest }: import("../types").Props) => JSX.Element;
5
+ component: ({ children, className, id, ...rest }: import("../types").BorderedBoxProps) => JSX.Element;
6
6
  tags: string[];
7
7
  argTypes: {};
8
8
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type Props = {
2
+ export type BorderedBoxProps = {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  id?: string;
@@ -4,7 +4,7 @@ declare const meta: {
4
4
  title: string;
5
5
  component: ({ progress, status, errorMessage, noText, variant }: {
6
6
  progress?: number | undefined;
7
- status?: "loading" | "error" | "finished" | undefined;
7
+ status?: "error" | "loading" | "finished" | undefined;
8
8
  errorMessage?: string | undefined;
9
9
  noText?: boolean | undefined;
10
10
  variant?: "normal" | "thin" | undefined;
package/ui/dts/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import Card from './Elements/Card';
2
1
  import CornerDialog from './Blocks/CornerDialog';
3
2
  import ImageList from './Blocks/ImageList';
4
3
  import LightBox from './Blocks/LightBox';
@@ -9,6 +8,7 @@ import Avatar from './Elements/Avatar';
9
8
  import Badge from './Elements/Badge';
10
9
  import BorderedBox from './Elements/BorderedBox';
11
10
  import Button from './Elements/Button';
11
+ import Card from './Elements/Card';
12
12
  import Dropdown from './Elements/Dropdown';
13
13
  import ErrorMessage from './Elements/ErrorMessage';
14
14
  import Icon from './Elements/Icon';
package/ui/index.js CHANGED
@@ -1,4 +1,3 @@
1
- export { default as Card, CardBody, CardImage } from './Elements/Card/Card.js';
2
1
  export { CornerDialog } from './Blocks/CornerDialog/CornerDialog.js';
3
2
  export { ImageList } from './Blocks/ImageList/ImageList.js';
4
3
  export { LightBox } from './Blocks/LightBox/LightBox.js';
@@ -13,6 +12,7 @@ export { Avatar } from './Elements/Avatar/Avatar.js';
13
12
  export { default as Badge } from './Elements/Badge/Badge.js';
14
13
  export { default as BorderedBox } from './Elements/BorderedBox/BorderedBox.js';
15
14
  export { default as Button } from './Elements/Button/Button.js';
15
+ export { default as Card, CardBody, CardImage } from './Elements/Card/Card.js';
16
16
  export { default as Dropdown } from './Elements/Dropdown/Dropdown.js';
17
17
  export { default as ErrorMessage } from './Elements/ErrorMessage/ErrorMessage.js';
18
18
  export { default as Icon, iconDictionary } from './Elements/Icon/Icon.js';