@petnow/ui 0.0.3 → 0.0.5
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/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +2350 -825
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/checkbox/Checkbox.d.ts +8 -0
- package/dist/src/components/checkbox/Checkbox.stories.d.ts +7 -0
- package/dist/src/components/input/LabeledAddressInput.d.ts +13 -0
- package/dist/src/components/input/LabeledAddressInput.stories.d.ts +7 -0
- package/dist/src/components/modal/Modal.d.ts +17 -0
- package/dist/src/components/modal/Modal.stories.d.ts +10 -0
- package/package.json +4 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
checked?: boolean;
|
|
3
|
+
label?: string;
|
|
4
|
+
onChange: (newValue: boolean) => void;
|
|
5
|
+
termImageUrl: string;
|
|
6
|
+
}
|
|
7
|
+
declare const Checkbox: ({ checked, label, onChange, termImageUrl }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Checkbox;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
label: string;
|
|
3
|
+
value: {
|
|
4
|
+
front: string | undefined;
|
|
5
|
+
back: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
onFrontChange: (newValue: string) => void;
|
|
8
|
+
onBackChange: (newValue: string) => void;
|
|
9
|
+
onPostalCodeChange?: (value: string) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const LabeledAddressInput: ({ label, value, onFrontChange, onBackChange, onPostalCodeChange, disabled }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default LabeledAddressInput;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as LabeledAddressInput } from './LabeledAddressInput.tsx';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof LabeledAddressInput>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof LabeledAddressInput>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
setIsOpen: (newState: boolean) => void;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
confirm: Confirm;
|
|
7
|
+
cancel?: Cancel;
|
|
8
|
+
}
|
|
9
|
+
interface Confirm {
|
|
10
|
+
text: string;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
}
|
|
13
|
+
interface Cancel {
|
|
14
|
+
text: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Modal: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Modal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Modal } from './Modal';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Modal>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Modal>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const OnlyTitle: Story;
|
|
9
|
+
export declare const OnlyConfirm: Story;
|
|
10
|
+
export declare const OnlyTitleAndConfirm: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petnow/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -12,9 +12,12 @@
|
|
|
12
12
|
"build-storybook": "storybook build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
+
"@headlessui/react": "^1.7.19",
|
|
15
16
|
"clsx": "^2.1.1",
|
|
16
17
|
"react": "^18.2.0",
|
|
18
|
+
"react-daum-postcode": "^3.1.3",
|
|
17
19
|
"react-dom": "^18.2.0",
|
|
20
|
+
"react-icons": "^5.1.0",
|
|
18
21
|
"tailwind-merge": "^2.3.0"
|
|
19
22
|
},
|
|
20
23
|
"devDependencies": {
|