dfh-ui-library 1.0.0 → 1.0.2
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/dist/cjs/index.css +591 -0
- package/dist/cjs/index.js +0 -1
- package/dist/esm/index.css +591 -0
- package/dist/esm/index.js +0 -1
- package/package.json +1 -1
- package/dist/cjs/assets/output-N6vATm4l.css +0 -3
- package/dist/cjs/dist/style.css +0 -0
- package/dist/cjs/types/components/Button/Button.stories.d.ts +0 -11
- package/dist/cjs/types/components/Typhography/Typhography.stories.d.ts +0 -9
- package/dist/cjs/types/stories/Button.d.ts +0 -29
- package/dist/cjs/types/stories/Button.stories.d.ts +0 -8
- package/dist/cjs/types/stories/Header.d.ts +0 -13
- package/dist/cjs/types/stories/Header.stories.d.ts +0 -6
- package/dist/cjs/types/stories/Page.d.ts +0 -3
- package/dist/cjs/types/stories/Page.stories.d.ts +0 -13
- package/dist/esm/assets/output-N6vATm4l.css +0 -3
- package/dist/esm/dist/style.css +0 -0
- package/dist/esm/types/components/Button/Button.stories.d.ts +0 -11
- package/dist/esm/types/components/Typhography/Typhography.stories.d.ts +0 -9
- package/dist/esm/types/stories/Button.d.ts +0 -29
- package/dist/esm/types/stories/Button.stories.d.ts +0 -8
- package/dist/esm/types/stories/Header.d.ts +0 -13
- package/dist/esm/types/stories/Header.stories.d.ts +0 -6
- package/dist/esm/types/stories/Page.d.ts +0 -3
- package/dist/esm/types/stories/Page.stories.d.ts +0 -13
|
@@ -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
|
-
type Story = StoryObj<typeof meta>;
|
|
12
|
-
export declare const LoggedOut: Story;
|
|
13
|
-
export declare const LoggedIn: Story;
|
package/dist/esm/dist/style.css
DELETED
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Button from "./Button";
|
|
3
|
-
declare const meta: Meta<typeof Button>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Button>;
|
|
6
|
-
export declare const Primary: Story;
|
|
7
|
-
export declare const Secondary: Story;
|
|
8
|
-
export declare const Disabled: Story;
|
|
9
|
-
export declare const Small: Story;
|
|
10
|
-
export declare const Medium: Story;
|
|
11
|
-
export declare const Large: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Typhography from "./Typhography";
|
|
3
|
-
declare const meta: Meta<typeof Typhography>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Typhography>;
|
|
6
|
-
export declare const H1: Story;
|
|
7
|
-
export declare const H1Bold: Story;
|
|
8
|
-
export declare const H1ExtraBold: Story;
|
|
9
|
-
export declare const H10: Story;
|
|
@@ -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,8 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
declare const meta: any;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj<typeof meta>;
|
|
5
|
-
export declare const Primary: Story;
|
|
6
|
-
export declare const Secondary: Story;
|
|
7
|
-
export declare const Large: Story;
|
|
8
|
-
export declare const Small: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './header.css';
|
|
3
|
-
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,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
|
-
type Story = StoryObj<typeof meta>;
|
|
12
|
-
export declare const LoggedOut: Story;
|
|
13
|
-
export declare const LoggedIn: Story;
|