@rileybathurst/paddle 0.0.8 → 0.0.10

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/README.md CHANGED
@@ -1 +1 @@
1
- # Paddle UI
1
+ # Paddle
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -12,6 +12,7 @@
12
12
  "build-storybook": "storybook build"
13
13
  },
14
14
  "dependencies": {
15
+ "color-cards": "^1.0.13",
15
16
  "react": "^18.2.0",
16
17
  "react-dom": "^18.2.0"
17
18
  },
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./PaddleBookNow";
@@ -0,0 +1,18 @@
1
+ // this is the Name.stories.tsx file
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import { fn } from '@storybook/test';
4
+ import { Colors } from './Colors';
5
+
6
+ const meta = {
7
+ component: Colors,
8
+ args: { onClick: fn() },
9
+ } satisfies Meta<typeof Colors>;
10
+
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+
14
+ export const Primary: Story = {
15
+ args: {
16
+ primary: true,
17
+ },
18
+ };
@@ -0,0 +1,26 @@
1
+ // this is the Name.tsx file
2
+ import React from 'react';
3
+ import { ColorCards } from 'color-cards';
4
+
5
+ interface ColorsProps {
6
+ primary?: boolean;
7
+ onClick?: () => void;
8
+ }
9
+
10
+ export const Colors = ({
11
+ primary = false,
12
+ ...props
13
+ }: ColorsProps) => {
14
+
15
+ return (
16
+ <main
17
+ {...props}
18
+ >
19
+ {primary ? 'primary' : 'secondary'}
20
+ <ColorCards
21
+ color="red"
22
+ variables={[100, 200]}
23
+ />
24
+ </main>
25
+ );
26
+ };
@@ -2,7 +2,6 @@
2
2
 
3
3
  // import { Button } from './Button';
4
4
  import './header.css';
5
- import { Button } from '@rileybathurst/puddle';
6
5
 
7
6
  type User = {
8
7
  name: string;
package/src/index.tsx DELETED
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
-
3
- // Export Button component
4
- export * from "./Button";
5
- export * from "./PaddleBookNow";