@reni-corp/reni-2c-ui 0.3.291 → 0.4.1
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 +131 -0
- package/dist/__tests__/helpers/assert-contract.d.ts +9 -0
- package/dist/__tests__/helpers/assert-contract.d.ts.map +1 -0
- package/dist/__tests__/helpers/contract-helpers.d.ts +45 -0
- package/dist/__tests__/helpers/contract-helpers.d.ts.map +1 -0
- package/dist/__tests__/setup.d.ts +1 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/components/elements/Alert.vue.d.ts +14 -36
- package/dist/components/elements/Alert.vue.d.ts.map +1 -1
- package/dist/components/elements/Button.vue.d.ts +13 -41
- package/dist/components/elements/Button.vue.d.ts.map +1 -1
- package/dist/components/elements/CheckBox.vue.d.ts +11 -60
- package/dist/components/elements/CheckBox.vue.d.ts.map +1 -1
- package/dist/components/elements/ComboBox.vue.d.ts +34 -116
- package/dist/components/elements/ComboBox.vue.d.ts.map +1 -1
- package/dist/components/elements/DescriptionList.vue.d.ts +12 -27
- package/dist/components/elements/DescriptionList.vue.d.ts.map +1 -1
- package/dist/components/elements/Divider.vue.d.ts +3 -27
- package/dist/components/elements/Divider.vue.d.ts.map +1 -1
- package/dist/components/elements/Html.vue.d.ts +2 -32
- package/dist/components/elements/Html.vue.d.ts.map +1 -1
- package/dist/components/elements/Icon.vue.d.ts +4 -28
- package/dist/components/elements/Icon.vue.d.ts.map +1 -1
- package/dist/components/elements/Image.vue.d.ts +19 -43
- package/dist/components/elements/Image.vue.d.ts.map +1 -1
- package/dist/components/elements/Label.vue.d.ts +13 -33
- package/dist/components/elements/Label.vue.d.ts.map +1 -1
- package/dist/components/elements/PasswordField.vue.d.ts +13 -151
- package/dist/components/elements/PasswordField.vue.d.ts.map +1 -1
- package/dist/components/elements/Progress.vue.d.ts +3 -31
- package/dist/components/elements/Progress.vue.d.ts.map +1 -1
- package/dist/components/elements/RadioButton.vue.d.ts +17 -28
- package/dist/components/elements/RadioButton.vue.d.ts.map +1 -1
- package/dist/components/elements/RadioButtonGroup.vue.d.ts +26 -75
- package/dist/components/elements/RadioButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/elements/SelectBox.vue.d.ts +30 -121
- package/dist/components/elements/SelectBox.vue.d.ts.map +1 -1
- package/dist/components/elements/SkeletonLoader.vue.d.ts +2 -24
- package/dist/components/elements/SkeletonLoader.vue.d.ts.map +1 -1
- package/dist/components/elements/SpinButton.vue.d.ts +23 -52
- package/dist/components/elements/SpinButton.vue.d.ts.map +1 -1
- package/dist/components/elements/Spinner.vue.d.ts +3 -27
- package/dist/components/elements/Spinner.vue.d.ts.map +1 -1
- package/dist/components/elements/Text.vue.d.ts +12 -34
- package/dist/components/elements/Text.vue.d.ts.map +1 -1
- package/dist/components/elements/TextField.vue.d.ts +23 -146
- package/dist/components/elements/TextField.vue.d.ts.map +1 -1
- package/dist/components/elements/ToolChip.vue.d.ts +11 -33
- package/dist/components/elements/ToolChip.vue.d.ts.map +1 -1
- package/dist/components/features/AnnounceBar.vue.d.ts +11 -29
- package/dist/components/features/AnnounceBar.vue.d.ts.map +1 -1
- package/dist/components/features/AnnounceBarCollection.vue.d.ts +10 -34
- package/dist/components/features/AnnounceBarCollection.vue.d.ts.map +1 -1
- package/dist/components/features/Banner.vue.d.ts +22 -0
- package/dist/components/features/Banner.vue.d.ts.map +1 -0
- package/dist/components/features/BrandLogo.vue.d.ts +2 -24
- package/dist/components/features/BrandLogo.vue.d.ts.map +1 -1
- package/dist/components/features/CategoryBanner.vue.d.ts +3 -30
- package/dist/components/features/CategoryBanner.vue.d.ts.map +1 -1
- package/dist/components/features/FloatingBanner.vue.d.ts +3 -21
- package/dist/components/features/FloatingBanner.vue.d.ts.map +1 -1
- package/dist/components/features/Hero.vue.d.ts +32 -52
- package/dist/components/features/Hero.vue.d.ts.map +1 -1
- package/dist/components/features/ImageGrid.vue.d.ts +3 -30
- package/dist/components/features/ImageGrid.vue.d.ts.map +1 -1
- package/dist/components/features/LinkList.vue.d.ts +3 -28
- package/dist/components/features/LinkList.vue.d.ts.map +1 -1
- package/dist/components/features/Marquee.vue.d.ts +19 -49
- package/dist/components/features/Marquee.vue.d.ts.map +1 -1
- package/dist/components/features/MediaContent.vue.d.ts +14 -36
- package/dist/components/features/MediaContent.vue.d.ts.map +1 -1
- package/dist/components/features/ProductLabels.vue.d.ts +1 -19
- package/dist/components/features/ProductLabels.vue.d.ts.map +1 -1
- package/dist/components/features/ProductList.vue.d.ts +63 -88
- package/dist/components/features/ProductList.vue.d.ts.map +1 -1
- package/dist/components/features/ProductListItem.vue.d.ts +7 -35
- package/dist/components/features/ProductListItem.vue.d.ts.map +1 -1
- package/dist/components/features/ProductPurchase.vue.d.ts +12 -43
- package/dist/components/features/ProductPurchase.vue.d.ts.map +1 -1
- package/dist/components/features/Schedule.vue.d.ts +11 -29
- package/dist/components/features/Schedule.vue.d.ts.map +1 -1
- package/dist/components/features/ScheduleDateItem.vue.d.ts +2 -26
- package/dist/components/features/ScheduleDateItem.vue.d.ts.map +1 -1
- package/dist/components/features/ScheduleDelivery.vue.d.ts +10 -26
- package/dist/components/features/ScheduleDelivery.vue.d.ts.map +1 -1
- package/dist/components/features/ScheduleDeliveryItem.vue.d.ts +2 -24
- package/dist/components/features/ScheduleDeliveryItem.vue.d.ts.map +1 -1
- package/dist/components/features/SchedulePeriod.vue.d.ts +2 -26
- package/dist/components/features/SchedulePeriod.vue.d.ts.map +1 -1
- package/dist/components/features/SchedulePickup.vue.d.ts +10 -26
- package/dist/components/features/SchedulePickup.vue.d.ts.map +1 -1
- package/dist/components/features/SchedulePickupItem.vue.d.ts +2 -24
- package/dist/components/features/SchedulePickupItem.vue.d.ts.map +1 -1
- package/dist/components/features/Schedules.vue.d.ts +10 -22
- package/dist/components/features/Schedules.vue.d.ts.map +1 -1
- package/dist/components/features/SnsLink.vue.d.ts +3 -29
- package/dist/components/features/SnsLink.vue.d.ts.map +1 -1
- package/dist/components/foundation/AppBar.vue.d.ts +15 -40
- package/dist/components/foundation/AppBar.vue.d.ts.map +1 -1
- package/dist/components/foundation/AppBody.vue.d.ts +9 -4
- package/dist/components/foundation/AppBody.vue.d.ts.map +1 -1
- package/dist/components/foundation/AppFooter.vue.d.ts +13 -35
- package/dist/components/foundation/AppFooter.vue.d.ts.map +1 -1
- package/dist/components/foundation/AppFrame.vue.d.ts +10 -5
- package/dist/components/foundation/AppFrame.vue.d.ts.map +1 -1
- package/dist/components/interactive/Dialog.vue.d.ts +18 -40
- package/dist/components/interactive/Dialog.vue.d.ts.map +1 -1
- package/dist/components/interactive/Disclosure.vue.d.ts +22 -37
- package/dist/components/interactive/Disclosure.vue.d.ts.map +1 -1
- package/dist/components/interactive/DropDown.vue.d.ts +20 -34
- package/dist/components/interactive/DropDown.vue.d.ts.map +1 -1
- package/dist/components/interactive/Gallery.vue.d.ts +2 -34
- package/dist/components/interactive/Gallery.vue.d.ts.map +1 -1
- package/dist/components/interactive/Lightbox.vue.d.ts +32 -0
- package/dist/components/interactive/Lightbox.vue.d.ts.map +1 -0
- package/dist/components/interactive/Modal.vue.d.ts +15 -33
- package/dist/components/interactive/Modal.vue.d.ts.map +1 -1
- package/dist/components/interactive/Notification.vue.d.ts +5 -35
- package/dist/components/interactive/Notification.vue.d.ts.map +1 -1
- package/dist/components/interactive/Slider.vue.d.ts +32 -28
- package/dist/components/interactive/Slider.vue.d.ts.map +1 -1
- package/dist/components/interactive/Tab.vue.d.ts +17 -25
- package/dist/components/interactive/Tab.vue.d.ts.map +1 -1
- package/dist/components/interactive/TabGroup.vue.d.ts +25 -0
- package/dist/components/interactive/TabGroup.vue.d.ts.map +1 -0
- package/dist/components/interactive/TabPanel.vue.d.ts +9 -3
- package/dist/components/interactive/TabPanel.vue.d.ts.map +1 -1
- package/dist/components/interactive/TabPanels.vue.d.ts +27 -32
- package/dist/components/interactive/TabPanels.vue.d.ts.map +1 -1
- package/dist/components/interactive/Tabs.vue.d.ts +31 -31
- package/dist/components/interactive/Tabs.vue.d.ts.map +1 -1
- package/dist/components/layouts/Card.vue.d.ts +12 -30
- package/dist/components/layouts/Card.vue.d.ts.map +1 -1
- package/dist/components/layouts/Grid.vue.d.ts +11 -32
- package/dist/components/layouts/Grid.vue.d.ts.map +1 -1
- package/dist/components/layouts/List.vue.d.ts +28 -42
- package/dist/components/layouts/List.vue.d.ts.map +1 -1
- package/dist/components/layouts/Page.vue.d.ts +33 -62
- package/dist/components/layouts/Page.vue.d.ts.map +1 -1
- package/dist/components/layouts/Section.vue.d.ts +22 -41
- package/dist/components/layouts/Section.vue.d.ts.map +1 -1
- package/dist/components/layouts/Stack.vue.d.ts +12 -40
- package/dist/components/layouts/Stack.vue.d.ts.map +1 -1
- package/dist/components/navigation/BottomBar.vue.d.ts +10 -26
- package/dist/components/navigation/BottomBar.vue.d.ts.map +1 -1
- package/dist/components/navigation/Drawer.vue.d.ts +14 -32
- package/dist/components/navigation/Drawer.vue.d.ts.map +1 -1
- package/dist/components/renderless/DataProvider.vue.d.ts +19 -42
- package/dist/components/renderless/DataProvider.vue.d.ts.map +1 -1
- package/dist/components/renderless/Form.vue.d.ts +22 -43
- package/dist/components/renderless/Form.vue.d.ts.map +1 -1
- package/dist/components/renderless/OptionGroupSwitchController.vue.d.ts +20 -43
- package/dist/components/renderless/OptionGroupSwitchController.vue.d.ts.map +1 -1
- package/dist/composable/useAppNotifications.d.ts +0 -1
- package/dist/composable/useToolChip.d.ts +0 -1
- package/dist/composables.d.ts +0 -1
- package/dist/composables.es.js +5 -6
- package/dist/contexts/tabGroup.d.ts +17 -0
- package/dist/contexts/tabGroup.d.ts.map +1 -0
- package/dist/directives/auto-scale.d.ts +0 -1
- package/dist/directives/glitch.d.ts +0 -1
- package/dist/{index-a725a791.js → index-D7ldGb8i.js} +18 -30
- package/dist/index.d.ts +8 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +6795 -6735
- package/dist/script.es.js +8571 -8506
- package/dist/script.umd.js +28 -28
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/{composables-93778bb4.js → useAppDialogGuidance-Bs1h3YmP.js} +1060 -1044
- package/dist/utils.d.ts +46 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/validation.d.ts +0 -1
- package/dist/valueObjects/CurrencyValue.d.ts +0 -1
- package/dist/valueObjects/NumberValue.d.ts +0 -1
- package/dist/{valueObjects-e0ea7f1b.js → valueObjects-CvF0zaqR.js} +1 -1
- package/dist/valueObjects.es.js +1 -1
- package/package.json +29 -28
- package/src/stories/Alert.stories.ts +1 -1
- package/src/stories/AnnounceBar.stories.ts +1 -1
- package/src/stories/AnnounceBarCollection.stories.ts +135 -0
- package/src/stories/AppBar.stories.ts +6 -2
- package/src/stories/AppFooter.stories.ts +1 -1
- package/src/stories/AppFrame.stories.ts +1 -1
- package/src/stories/AppLayout.stories.ts +5 -16
- package/src/stories/Banner.stories.ts +235 -0
- package/src/stories/Button.stories.ts +1 -1
- package/src/stories/Card.stories.ts +1 -1
- package/src/stories/CheckBox.stories.ts +84 -22
- package/src/stories/ComboBox.stories.ts +62 -2
- package/src/stories/Dialog.stories.ts +1 -1
- package/src/stories/Disclosure.stories.ts +1 -1
- package/src/stories/Divider.stories.ts +1 -1
- package/src/stories/Drawer.stories.ts +1 -1
- package/src/stories/DropDown.stories.ts +1 -1
- package/src/stories/FloatingBanner.stories.ts +1 -1
- package/src/stories/Form.stories.ts +96 -1
- package/src/stories/Gallery.stories.ts +1 -1
- package/src/stories/Grid.stories.ts +1 -1
- package/src/stories/Hero.stories.ts +175 -26
- package/src/stories/Html.stories.ts +69 -1
- package/src/stories/Icon.stories.ts +1 -1
- package/src/stories/Image.stories.ts +1 -1
- package/src/stories/Label.stories.ts +97 -4
- package/src/stories/Lightbox.stories.ts +231 -0
- package/src/stories/List.stories.ts +62 -15
- package/src/stories/Modal.stories.ts +1 -1
- package/src/stories/Notification.stories.ts +1 -1
- package/src/stories/Page.stories.ts +36 -1
- package/src/stories/PasswordField.stories.ts +1 -1
- package/src/stories/ProductList.stories.ts +65 -3
- package/src/stories/ProductPurchase.stories.ts +2 -2
- package/src/stories/Progress.stories.ts +1 -1
- package/src/stories/Radio.stories.ts +130 -12
- package/src/stories/Section.stories.ts +29 -4
- package/src/stories/SelectBox.stories.ts +56 -1
- package/src/stories/SkeletonLoader.stories.ts +1 -1
- package/src/stories/Slider.stories.ts +365 -7
- package/src/stories/SnsLink.stories.ts +1 -1
- package/src/stories/SpinButton.stories.ts +1 -1
- package/src/stories/Spinner.stories.ts +1 -1
- package/src/stories/Stack.stories.ts +1 -1
- package/src/stories/Switch.stories.ts +1 -1
- package/src/stories/Tab.stories.ts +28 -11
- package/src/stories/TabGroup.stories.ts +290 -0
- package/src/stories/TabPanels.stories.ts +1 -1
- package/src/stories/Tabs.stories.ts +104 -3
- package/src/stories/Text.stories.ts +24 -1
- package/src/stories/TextArea.stories.ts +78 -1
- package/src/stories/TextField.stories.ts +75 -2
- package/src/stories/ToolChip.stories.ts +1 -1
- package/src/stories/compositions/EventPage.stories.ts +184 -0
- package/src/stories/compositions/FormPage.stories.ts +222 -0
- package/src/stories/compositions/TopPage.stories.ts +164 -0
- package/dist/components/features/CarouselBanner.vue.d.ts +0 -36
- package/dist/components/features/CarouselBanner.vue.d.ts.map +0 -1
- package/dist/components/features/VariationSelector.vue.d.ts +0 -39
- package/dist/components/features/VariationSelector.vue.d.ts.map +0 -1
- package/src/stories/Carousel.stories.ts +0 -62
- package/src/stories/CarouselBanner.stories.ts +0 -103
- package/src/stories/ProductLabels.stories.ts +0 -65
- package/src/stories/SoldStacker.stories.ts +0 -68
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import Carousel from '@/components/interactive/Carousel.vue'
|
|
3
|
-
import CarouselItem from '@/components/interactive/CarouselItem.vue'
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof Carousel> = {
|
|
6
|
-
title: 'Interactive/Carousel',
|
|
7
|
-
component: Carousel,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default meta
|
|
12
|
-
type Story = StoryObj<typeof Carousel>
|
|
13
|
-
|
|
14
|
-
export const 基本: Story = {
|
|
15
|
-
render: () => ({
|
|
16
|
-
components: {
|
|
17
|
-
'rn-carousel': Carousel,
|
|
18
|
-
'rn-carousel-item': CarouselItem,
|
|
19
|
-
},
|
|
20
|
-
setup() {
|
|
21
|
-
console.log('Carousel story setup called')
|
|
22
|
-
return {}
|
|
23
|
-
},
|
|
24
|
-
template: `
|
|
25
|
-
<div style="padding: 20px; width: 100%; height: 600px;">
|
|
26
|
-
<h3>カルーセルテスト</h3>
|
|
27
|
-
<rn-carousel
|
|
28
|
-
:slides-per-view="1.2"
|
|
29
|
-
:sp-slides-per-view="1.2"
|
|
30
|
-
:pc-slides-per-view="1.2"
|
|
31
|
-
background="transparent"
|
|
32
|
-
>
|
|
33
|
-
<rn-carousel-item>
|
|
34
|
-
<div style="width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; border-radius: 8px;">
|
|
35
|
-
<img src="https://placehold.jp/700x400.png" />
|
|
36
|
-
</div>
|
|
37
|
-
</rn-carousel-item>
|
|
38
|
-
<rn-carousel-item>
|
|
39
|
-
<div style="width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; border-radius: 8px;">
|
|
40
|
-
<img src="https://placehold.jp/700x400.png" />
|
|
41
|
-
</div>
|
|
42
|
-
</rn-carousel-item>
|
|
43
|
-
<rn-carousel-item>
|
|
44
|
-
<div style="width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; border-radius: 8px;">
|
|
45
|
-
<img src="https://placehold.jp/700x400.png" />
|
|
46
|
-
</div>
|
|
47
|
-
</rn-carousel-item>
|
|
48
|
-
<rn-carousel-item>
|
|
49
|
-
<div style="width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; border-radius: 8px;">
|
|
50
|
-
<img src="https://placehold.jp/700x400.png" />
|
|
51
|
-
</div>
|
|
52
|
-
</rn-carousel-item>
|
|
53
|
-
<rn-carousel-item>
|
|
54
|
-
<div style="width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; border-radius: 8px;">
|
|
55
|
-
<img src="https://placehold.jp/700x400.png" />
|
|
56
|
-
</div>
|
|
57
|
-
</rn-carousel-item>
|
|
58
|
-
</rn-carousel>
|
|
59
|
-
</div>
|
|
60
|
-
`,
|
|
61
|
-
}),
|
|
62
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import CarouselBanner, {
|
|
3
|
-
type CarouselBannerProps,
|
|
4
|
-
} from '@/components/features/CarouselBanner.vue'
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof CarouselBanner> = {
|
|
7
|
-
title: 'Features/CarouselBanner',
|
|
8
|
-
component: CarouselBanner,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
parameters: {
|
|
11
|
-
docs: {
|
|
12
|
-
description: {
|
|
13
|
-
component: 'カルーセル用コンポーネント',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
argTypes: {
|
|
18
|
-
variant: {
|
|
19
|
-
control: 'select',
|
|
20
|
-
options: ['default', 'overlay'],
|
|
21
|
-
},
|
|
22
|
-
banners: [
|
|
23
|
-
{
|
|
24
|
-
title: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
},
|
|
27
|
-
description: {
|
|
28
|
-
control: 'text',
|
|
29
|
-
},
|
|
30
|
-
imageUrl: {
|
|
31
|
-
control: 'text',
|
|
32
|
-
},
|
|
33
|
-
linkUrl: {
|
|
34
|
-
control: 'text',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
args: {
|
|
40
|
-
variant: 'default',
|
|
41
|
-
banners: [
|
|
42
|
-
{
|
|
43
|
-
title: 'title1',
|
|
44
|
-
description: 'description',
|
|
45
|
-
imageUrl:
|
|
46
|
-
'https://reni-ec-pro.s3-ap-northeast-1.amazonaws.com/banner/63/d1270251298665d51cf9f298a3343257dd4559e4_sp.jpg',
|
|
47
|
-
linkUrl: '',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
title: 'title2',
|
|
51
|
-
description: 'description',
|
|
52
|
-
imageUrl:
|
|
53
|
-
'https://reni-ec-pro.s3-ap-northeast-1.amazonaws.com/banner/63/d1270251298665d51cf9f298a3343257dd4559e4_sp.jpg',
|
|
54
|
-
linkUrl: '',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
title: 'title3',
|
|
58
|
-
description: 'description',
|
|
59
|
-
imageUrl:
|
|
60
|
-
'https://reni-ec-pro.s3-ap-northeast-1.amazonaws.com/banner/63/d1270251298665d51cf9f298a3343257dd4559e4_sp.jpg',
|
|
61
|
-
linkUrl: '',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
title: 'title4',
|
|
65
|
-
description: 'description',
|
|
66
|
-
imageUrl:
|
|
67
|
-
'https://reni-ec-pro.s3-ap-northeast-1.amazonaws.com/banner/63/d1270251298665d51cf9f298a3343257dd4559e4_sp.jpg',
|
|
68
|
-
linkUrl: '',
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
render: (args) => ({
|
|
73
|
-
components: { 'rn-carousel-banner': CarouselBanner },
|
|
74
|
-
setup() {
|
|
75
|
-
return { args }
|
|
76
|
-
},
|
|
77
|
-
template: /* html */ `
|
|
78
|
-
<div class='sb-canvas'>
|
|
79
|
-
<rn-carousel-banner
|
|
80
|
-
:variant=args.variant
|
|
81
|
-
:banners=args.banners
|
|
82
|
-
>
|
|
83
|
-
</rn-carousel-banner>
|
|
84
|
-
</div>
|
|
85
|
-
`,
|
|
86
|
-
}),
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export default meta
|
|
90
|
-
type StoryArgs = CarouselBannerProps & { slotText: string }
|
|
91
|
-
type Story = StoryObj<StoryArgs>
|
|
92
|
-
type OverridesStory = Omit<Story, 'argTypes'> & {
|
|
93
|
-
argTypes?: Record<string, any>
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export const 基本: OverridesStory = {
|
|
97
|
-
args: {
|
|
98
|
-
slotText: 'CarouselBanner',
|
|
99
|
-
},
|
|
100
|
-
argTypes: {
|
|
101
|
-
default: { table: { disable: true } },
|
|
102
|
-
},
|
|
103
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import ProductLabels, {
|
|
3
|
-
type ProductLabelsProps,
|
|
4
|
-
} from '@/components/features/ProductLabels.vue'
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof ProductLabels> = {
|
|
7
|
-
title: 'Features/ProductLabels',
|
|
8
|
-
component: ProductLabels,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
parameters: {
|
|
11
|
-
docs: {
|
|
12
|
-
description: {
|
|
13
|
-
component: 'プロダクトラベル用コンポーネント',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
argTypes: {
|
|
18
|
-
labelUrls: [
|
|
19
|
-
{
|
|
20
|
-
control: 'text',
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
soldLabelUrl: {
|
|
24
|
-
control: 'text',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
args: {
|
|
28
|
-
labelUrls: [
|
|
29
|
-
'https://reni-ec-pro.s3-ap-northeast-1.amazonaws.com/banner/63/d1270251298665d51cf9f298a3343257dd4559e4_sp.jpg',
|
|
30
|
-
'https://reni-ec-pro.s3-ap-northeast-1.amazonaws.com/banner/63/d1270251298665d51cf9f298a3343257dd4559e4_sp.jpg',
|
|
31
|
-
],
|
|
32
|
-
soldLabelUrl:
|
|
33
|
-
'https://reni-ec-pro.s3-ap-northeast-1.amazonaws.com/banner/63/d1270251298665d51cf9f298a3343257dd4559e4_sp.jpg',
|
|
34
|
-
},
|
|
35
|
-
render: (args) => ({
|
|
36
|
-
components: { 'rn-product-labels': ProductLabels },
|
|
37
|
-
setup() {
|
|
38
|
-
return { args }
|
|
39
|
-
},
|
|
40
|
-
template: /* html */ `
|
|
41
|
-
<div class='sb-canvas'>
|
|
42
|
-
<div style='height: 100px'>
|
|
43
|
-
<rn-product-labels
|
|
44
|
-
:labelUrls=args.labelUrls
|
|
45
|
-
:soldLabelUrl=args.soldLabelUrl
|
|
46
|
-
/>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
`,
|
|
50
|
-
}),
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export default meta
|
|
54
|
-
type StoryArgs = ProductLabelsProps
|
|
55
|
-
type Story = StoryObj<StoryArgs>
|
|
56
|
-
type OverridesStory = Omit<Story, 'argTypes'> & {
|
|
57
|
-
argTypes?: Record<string, any>
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export const 基本: OverridesStory = {
|
|
61
|
-
args: {},
|
|
62
|
-
argTypes: {
|
|
63
|
-
default: { table: { disable: true } },
|
|
64
|
-
},
|
|
65
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
-
import SoldStacker, {
|
|
3
|
-
type SoldStackerProps,
|
|
4
|
-
} from '@/components/features/SoldStacker.vue'
|
|
5
|
-
import { StatusColorOptions } from '@/constants'
|
|
6
|
-
import { StatusColor } from '@/types'
|
|
7
|
-
|
|
8
|
-
const meta: Meta<typeof SoldStacker> = {
|
|
9
|
-
title: 'Features/SoldStacker',
|
|
10
|
-
component: SoldStacker,
|
|
11
|
-
tags: ['autodocs'],
|
|
12
|
-
parameters: {
|
|
13
|
-
docs: {
|
|
14
|
-
description: {
|
|
15
|
-
component: 'SoldStackerコンポーネント',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
argTypes: {
|
|
20
|
-
color: {
|
|
21
|
-
control: 'select',
|
|
22
|
-
options: Object.keys(StatusColorOptions) as StatusColor[],
|
|
23
|
-
},
|
|
24
|
-
title: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
},
|
|
27
|
-
variant: {
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: ['label', 'overlay'],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
args: {
|
|
33
|
-
color: 'default',
|
|
34
|
-
title: 'title',
|
|
35
|
-
variant: 'label',
|
|
36
|
-
},
|
|
37
|
-
render: (args) => ({
|
|
38
|
-
components: { 'rn-sold-stacker': SoldStacker },
|
|
39
|
-
setup() {
|
|
40
|
-
return { args }
|
|
41
|
-
},
|
|
42
|
-
template: /* html */ `
|
|
43
|
-
<div class='sb-canvas'>
|
|
44
|
-
<div style='width: 100px; height: 100px; background: #999; position: relative;'>
|
|
45
|
-
<rn-sold-stacker
|
|
46
|
-
:color=args.color
|
|
47
|
-
:title=args.title
|
|
48
|
-
:variant=args.variant
|
|
49
|
-
/>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
`,
|
|
53
|
-
}),
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export default meta
|
|
57
|
-
type StoryArgs = SoldStackerProps
|
|
58
|
-
type Story = StoryObj<StoryArgs>
|
|
59
|
-
type OverridesStory = Omit<Story, 'argTypes'> & {
|
|
60
|
-
argTypes?: Record<string, any>
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export const 基本: OverridesStory = {
|
|
64
|
-
args: {},
|
|
65
|
-
argTypes: {
|
|
66
|
-
default: { table: { disable: true } },
|
|
67
|
-
},
|
|
68
|
-
}
|