@petnow/ui 1.7.7 → 2.0.0
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 +2 -2
- package/dist/index.d.ts +12 -10
- package/dist/index.es.js +8200 -6282
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +45 -17
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/mobile/checkbox/Checkbox.d.ts +9 -0
- package/dist/src/components/{checkbox → mobile/checkbox}/Checkbox.stories.d.ts +1 -1
- package/dist/src/components/mobile/chip/Chip.d.ts +9 -0
- package/dist/src/components/mobile/chip/Chip.stories.d.ts +6 -0
- package/dist/src/components/{modal/Modal.d.ts → mobile/popup/Popup.d.ts} +8 -2
- package/dist/src/components/{modal/Modal.stories.d.ts → mobile/popup/Popup.stories.d.ts} +3 -4
- package/dist/src/components/{radio → mobile/radio}/Radio.d.ts +2 -2
- package/dist/src/components/mobile/tab/Tab.d.ts +21 -0
- package/dist/src/components/mobile/tab/Tab.stories.d.ts +7 -0
- package/dist/src/components/mobile/toggle/Toggle.d.ts +10 -0
- package/dist/src/components/mobile/toggle/Toggle.stories.d.ts +6 -0
- package/dist/src/components/pc/checkbox/LabeledCheckbox.d.ts +8 -0
- package/dist/src/components/pc/checkbox/LabeledCheckbox.stories.d.ts +6 -0
- package/dist/test/LabeledCheckbox.test.d.ts +1 -0
- package/dist/test/Toggle.test.d.ts +1 -0
- package/package.json +5 -2
- package/dist/src/components/button/CtaButton.d.ts +0 -8
- package/dist/src/components/button/CtaButton.stories.d.ts +0 -8
- package/dist/src/components/checkbox/Checkbox.d.ts +0 -8
- package/dist/src/components/tab/Tabs.d.ts +0 -10
- package/dist/src/components/tab/Tabs.stories.d.ts +0 -8
- /package/dist/src/components/{radio → mobile/radio}/Radio.stories.d.ts +0 -0
- /package/dist/src/components/{autocomplete → pc/autocomplete}/LabeledAutocomplete.d.ts +0 -0
- /package/dist/src/components/{autocomplete → pc/autocomplete}/LabeledAutocomplete.stories.d.ts +0 -0
- /package/dist/src/components/{card → pc/card}/AccordionCard.d.ts +0 -0
- /package/dist/src/components/{card → pc/card}/AccordionCard.stories.d.ts +0 -0
- /package/dist/src/components/{datepicker → pc/datepicker}/LabeledDatepicker.d.ts +0 -0
- /package/dist/src/components/{datepicker → pc/datepicker}/LabeledDatepicker.stories.d.ts +0 -0
- /package/dist/src/components/{input → pc/input}/LabeledAddressInput.d.ts +0 -0
- /package/dist/src/components/{input → pc/input}/LabeledAddressInput.stories.d.ts +0 -0
- /package/dist/src/components/{select → pc/select}/LabeledSelect.d.ts +0 -0
- /package/dist/src/components/{select → pc/select}/LabeledSelect.stories.d.ts +0 -0
- /package/dist/test/{CtaButton.test.d.ts → Chip.test.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
className?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
onChange: (newValue: boolean) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
isChecked?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Checkbox: ({ className, id, onChange, disabled, isChecked }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Checkbox;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
className?: string;
|
|
3
|
+
text: string;
|
|
4
|
+
isSelected: boolean;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Chip: ({ className, text, isSelected, onClick, disabled }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Chip;
|
|
@@ -6,6 +6,12 @@ interface Props {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
confirm: Confirm;
|
|
8
8
|
cancel?: Cancel;
|
|
9
|
+
className?: {
|
|
10
|
+
popup?: string;
|
|
11
|
+
image?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
};
|
|
9
15
|
}
|
|
10
16
|
interface Image {
|
|
11
17
|
url: string;
|
|
@@ -18,5 +24,5 @@ interface Confirm {
|
|
|
18
24
|
interface Cancel {
|
|
19
25
|
text: string;
|
|
20
26
|
}
|
|
21
|
-
declare const
|
|
22
|
-
export default
|
|
27
|
+
declare const Popup: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default Popup;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import { default as Popup } from './Popup';
|
|
3
|
+
declare const meta: Meta<typeof Popup>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
5
|
+
type Story = StoryObj<typeof Popup>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
-
export declare const Japanese: Story;
|
|
8
7
|
export declare const OnlyTitle: Story;
|
|
9
8
|
export declare const OnlyConfirm: Story;
|
|
10
9
|
export declare const OnlyTitleAndConfirm: Story;
|
|
@@ -4,7 +4,7 @@ interface Props {
|
|
|
4
4
|
name?: string;
|
|
5
5
|
onChange: () => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
|
|
7
|
+
isChecked?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const Radio: ({ className, id, name, onChange, disabled,
|
|
9
|
+
declare const Radio: ({ className, id, name, onChange, disabled, isChecked }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default Radio;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface TabItem {
|
|
3
|
+
readonly displayName: string;
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly content: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
interface Props<T extends TabItem> {
|
|
8
|
+
tabList: Readonly<T[]>;
|
|
9
|
+
isCuratedcontent?: true;
|
|
10
|
+
unswipeableContent?: JSX.Element;
|
|
11
|
+
defaultIndex?: number;
|
|
12
|
+
onTabChange?: (index: number) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
className?: {
|
|
15
|
+
Tab: string;
|
|
16
|
+
tabTitle: string;
|
|
17
|
+
underline: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare const Tab: <T extends TabItem>({ className, tabList, isCuratedcontent, unswipeableContent, defaultIndex, onTabChange, disabled, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default Tab;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Tab } from './Tab';
|
|
3
|
+
declare const meta: Meta<typeof Tab>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Tab>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ThreeTabWithCuratedContent: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
className?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
onChange: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isChecked?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Toggle: ({ className, id, name, onChange, disabled, isChecked }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Toggle;
|
|
@@ -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 LabeledCheckbox: ({ checked, label, onChange, termImageUrl }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default LabeledCheckbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petnow/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -16,13 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@headlessui/react": "^2.2.2",
|
|
19
|
+
"@types/react-swipeable-views": "^0.13.6",
|
|
19
20
|
"clsx": "^2.1.1",
|
|
20
21
|
"date-fns": "^4.1.0",
|
|
22
|
+
"keen-slider": "^6.8.6",
|
|
21
23
|
"react": "^18.2.0",
|
|
22
24
|
"react-datepicker": "^8.3.0",
|
|
23
25
|
"react-daum-postcode": "^3.2.0",
|
|
24
26
|
"react-dom": "^18.2.0",
|
|
25
27
|
"react-icons": "^5.5.0",
|
|
28
|
+
"react-swipeable-views": "^0.14.0",
|
|
26
29
|
"tailwind-merge": "^3.2.0"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
@@ -55,7 +58,7 @@
|
|
|
55
58
|
"jest": "^29.7.0",
|
|
56
59
|
"jest-environment-jsdom": "^29.7.0",
|
|
57
60
|
"jest-transformer-svg": "^2.0.2",
|
|
58
|
-
"postcss": "^8.5.
|
|
61
|
+
"postcss": "^8.5.4",
|
|
59
62
|
"prettier": "^3.5.3",
|
|
60
63
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
61
64
|
"storybook": "^8.5.3",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as CtaButton } from './CtaButton.tsx';
|
|
3
|
-
declare const meta: Meta<typeof CtaButton>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CtaButton>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Disabled: Story;
|
|
8
|
-
export declare const AdditionalClassName: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface TabItem {
|
|
2
|
-
readonly displayName: string;
|
|
3
|
-
readonly key: string;
|
|
4
|
-
}
|
|
5
|
-
interface Props<T extends TabItem> {
|
|
6
|
-
tabList: Readonly<T[]>;
|
|
7
|
-
onTabChange: (newValue: Readonly<T>) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const Tabs: <T extends TabItem>({ tabList, onTabChange }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Tabs;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as Tabs } from './Tabs.tsx';
|
|
3
|
-
declare const meta: Meta<typeof Tabs>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Tabs>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Three: Story;
|
|
8
|
-
export declare const Four: Story;
|
|
File without changes
|
|
File without changes
|
/package/dist/src/components/{autocomplete → pc/autocomplete}/LabeledAutocomplete.stories.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|