app-studio 0.1.21 → 0.1.22

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.
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { CSSProperties } from 'styled-components';
3
3
  import { ElementProps } from './Element';
4
4
  import { ImageStyleProps } from '../types/style';
5
5
  export interface ImageProps extends Omit<ImageStyleProps, 'children' | 'style' | 'pointerEvents'>, Omit<Partial<HTMLImageElement>, 'width' | 'height' | 'children' | 'translate' | 'target' | 'border' | 'draggable'>, CSSProperties, ElementProps {
6
6
  }
7
- export declare const Image: (props: ImageProps) => React.JSX.Element;
7
+ export declare const Image: (props: ImageProps) => JSX.Element;
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { CSSProperties } from 'styled-components';
3
3
  import { ElementProps } from './Element';
4
4
  import { TextStyleProps } from '../types/style';
5
5
  export interface TextProps extends Omit<TextStyleProps, 'children' | 'style' | 'pointerEvents'>, CSSProperties, ElementProps {
6
6
  toUpperCase?: boolean;
7
7
  }
8
- export declare const Text: (props: TextProps) => React.JSX.Element;
8
+ export declare const Text: (props: TextProps) => JSX.Element;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.21",
2
+ "version": "0.1.22",
3
3
  "name": "app-studio",
4
4
  "description": "App Studio is a responsive and themeable framework to build cross platform applications",
5
5
  "repository": "git@github.com:rize-network/app-studio.git",
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import './button.css';
3
- interface ButtonProps {
4
- /**
5
- * Is this the principal call to action on the page?
6
- */
7
- primary?: boolean;
8
- /**
9
- * What background color to use
10
- */
11
- backgroundColor?: string;
12
- /**
13
- * How large should the button be?
14
- */
15
- size?: 'small' | 'medium' | 'large';
16
- /**
17
- * Button contents
18
- */
19
- label: string;
20
- /**
21
- * Optional click handler
22
- */
23
- onClick?: () => void;
24
- }
25
- /**
26
- * Primary UI component for user interaction
27
- */
28
- export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => React.JSX.Element;
29
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import './header.css';
3
- declare type User = {
4
- name: string;
5
- };
6
- interface HeaderProps {
7
- user?: User;
8
- onLogin: () => void;
9
- onLogout: () => void;
10
- onCreateAccount: () => void;
11
- }
12
- export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => React.JSX.Element;
13
- export {};
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import './page.css';
3
- export declare const Page: React.FC;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from '@storybook/react';
3
- declare const meta: {
4
- title: string;
5
- component: import("react").FC<{}>;
6
- parameters: {
7
- layout: string;
8
- };
9
- };
10
- export default meta;
11
- declare type Story = StoryObj<typeof meta>;
12
- export declare const LoggedOut: Story;
13
- export declare const LoggedIn: Story;