@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.
Files changed (242) hide show
  1. package/README.md +131 -0
  2. package/dist/__tests__/helpers/assert-contract.d.ts +9 -0
  3. package/dist/__tests__/helpers/assert-contract.d.ts.map +1 -0
  4. package/dist/__tests__/helpers/contract-helpers.d.ts +45 -0
  5. package/dist/__tests__/helpers/contract-helpers.d.ts.map +1 -0
  6. package/dist/__tests__/setup.d.ts +1 -0
  7. package/dist/__tests__/setup.d.ts.map +1 -0
  8. package/dist/components/elements/Alert.vue.d.ts +14 -36
  9. package/dist/components/elements/Alert.vue.d.ts.map +1 -1
  10. package/dist/components/elements/Button.vue.d.ts +13 -41
  11. package/dist/components/elements/Button.vue.d.ts.map +1 -1
  12. package/dist/components/elements/CheckBox.vue.d.ts +11 -60
  13. package/dist/components/elements/CheckBox.vue.d.ts.map +1 -1
  14. package/dist/components/elements/ComboBox.vue.d.ts +34 -116
  15. package/dist/components/elements/ComboBox.vue.d.ts.map +1 -1
  16. package/dist/components/elements/DescriptionList.vue.d.ts +12 -27
  17. package/dist/components/elements/DescriptionList.vue.d.ts.map +1 -1
  18. package/dist/components/elements/Divider.vue.d.ts +3 -27
  19. package/dist/components/elements/Divider.vue.d.ts.map +1 -1
  20. package/dist/components/elements/Html.vue.d.ts +2 -32
  21. package/dist/components/elements/Html.vue.d.ts.map +1 -1
  22. package/dist/components/elements/Icon.vue.d.ts +4 -28
  23. package/dist/components/elements/Icon.vue.d.ts.map +1 -1
  24. package/dist/components/elements/Image.vue.d.ts +19 -43
  25. package/dist/components/elements/Image.vue.d.ts.map +1 -1
  26. package/dist/components/elements/Label.vue.d.ts +13 -33
  27. package/dist/components/elements/Label.vue.d.ts.map +1 -1
  28. package/dist/components/elements/PasswordField.vue.d.ts +13 -151
  29. package/dist/components/elements/PasswordField.vue.d.ts.map +1 -1
  30. package/dist/components/elements/Progress.vue.d.ts +3 -31
  31. package/dist/components/elements/Progress.vue.d.ts.map +1 -1
  32. package/dist/components/elements/RadioButton.vue.d.ts +17 -28
  33. package/dist/components/elements/RadioButton.vue.d.ts.map +1 -1
  34. package/dist/components/elements/RadioButtonGroup.vue.d.ts +26 -75
  35. package/dist/components/elements/RadioButtonGroup.vue.d.ts.map +1 -1
  36. package/dist/components/elements/SelectBox.vue.d.ts +30 -121
  37. package/dist/components/elements/SelectBox.vue.d.ts.map +1 -1
  38. package/dist/components/elements/SkeletonLoader.vue.d.ts +2 -24
  39. package/dist/components/elements/SkeletonLoader.vue.d.ts.map +1 -1
  40. package/dist/components/elements/SpinButton.vue.d.ts +23 -52
  41. package/dist/components/elements/SpinButton.vue.d.ts.map +1 -1
  42. package/dist/components/elements/Spinner.vue.d.ts +3 -27
  43. package/dist/components/elements/Spinner.vue.d.ts.map +1 -1
  44. package/dist/components/elements/Text.vue.d.ts +12 -34
  45. package/dist/components/elements/Text.vue.d.ts.map +1 -1
  46. package/dist/components/elements/TextField.vue.d.ts +23 -146
  47. package/dist/components/elements/TextField.vue.d.ts.map +1 -1
  48. package/dist/components/elements/ToolChip.vue.d.ts +11 -33
  49. package/dist/components/elements/ToolChip.vue.d.ts.map +1 -1
  50. package/dist/components/features/AnnounceBar.vue.d.ts +11 -29
  51. package/dist/components/features/AnnounceBar.vue.d.ts.map +1 -1
  52. package/dist/components/features/AnnounceBarCollection.vue.d.ts +10 -34
  53. package/dist/components/features/AnnounceBarCollection.vue.d.ts.map +1 -1
  54. package/dist/components/features/Banner.vue.d.ts +22 -0
  55. package/dist/components/features/Banner.vue.d.ts.map +1 -0
  56. package/dist/components/features/BrandLogo.vue.d.ts +2 -24
  57. package/dist/components/features/BrandLogo.vue.d.ts.map +1 -1
  58. package/dist/components/features/CategoryBanner.vue.d.ts +3 -30
  59. package/dist/components/features/CategoryBanner.vue.d.ts.map +1 -1
  60. package/dist/components/features/FloatingBanner.vue.d.ts +3 -21
  61. package/dist/components/features/FloatingBanner.vue.d.ts.map +1 -1
  62. package/dist/components/features/Hero.vue.d.ts +32 -52
  63. package/dist/components/features/Hero.vue.d.ts.map +1 -1
  64. package/dist/components/features/ImageGrid.vue.d.ts +3 -30
  65. package/dist/components/features/ImageGrid.vue.d.ts.map +1 -1
  66. package/dist/components/features/LinkList.vue.d.ts +3 -28
  67. package/dist/components/features/LinkList.vue.d.ts.map +1 -1
  68. package/dist/components/features/Marquee.vue.d.ts +19 -49
  69. package/dist/components/features/Marquee.vue.d.ts.map +1 -1
  70. package/dist/components/features/MediaContent.vue.d.ts +14 -36
  71. package/dist/components/features/MediaContent.vue.d.ts.map +1 -1
  72. package/dist/components/features/ProductLabels.vue.d.ts +1 -19
  73. package/dist/components/features/ProductLabels.vue.d.ts.map +1 -1
  74. package/dist/components/features/ProductList.vue.d.ts +63 -88
  75. package/dist/components/features/ProductList.vue.d.ts.map +1 -1
  76. package/dist/components/features/ProductListItem.vue.d.ts +7 -35
  77. package/dist/components/features/ProductListItem.vue.d.ts.map +1 -1
  78. package/dist/components/features/ProductPurchase.vue.d.ts +12 -43
  79. package/dist/components/features/ProductPurchase.vue.d.ts.map +1 -1
  80. package/dist/components/features/Schedule.vue.d.ts +11 -29
  81. package/dist/components/features/Schedule.vue.d.ts.map +1 -1
  82. package/dist/components/features/ScheduleDateItem.vue.d.ts +2 -26
  83. package/dist/components/features/ScheduleDateItem.vue.d.ts.map +1 -1
  84. package/dist/components/features/ScheduleDelivery.vue.d.ts +10 -26
  85. package/dist/components/features/ScheduleDelivery.vue.d.ts.map +1 -1
  86. package/dist/components/features/ScheduleDeliveryItem.vue.d.ts +2 -24
  87. package/dist/components/features/ScheduleDeliveryItem.vue.d.ts.map +1 -1
  88. package/dist/components/features/SchedulePeriod.vue.d.ts +2 -26
  89. package/dist/components/features/SchedulePeriod.vue.d.ts.map +1 -1
  90. package/dist/components/features/SchedulePickup.vue.d.ts +10 -26
  91. package/dist/components/features/SchedulePickup.vue.d.ts.map +1 -1
  92. package/dist/components/features/SchedulePickupItem.vue.d.ts +2 -24
  93. package/dist/components/features/SchedulePickupItem.vue.d.ts.map +1 -1
  94. package/dist/components/features/Schedules.vue.d.ts +10 -22
  95. package/dist/components/features/Schedules.vue.d.ts.map +1 -1
  96. package/dist/components/features/SnsLink.vue.d.ts +3 -29
  97. package/dist/components/features/SnsLink.vue.d.ts.map +1 -1
  98. package/dist/components/foundation/AppBar.vue.d.ts +15 -40
  99. package/dist/components/foundation/AppBar.vue.d.ts.map +1 -1
  100. package/dist/components/foundation/AppBody.vue.d.ts +9 -4
  101. package/dist/components/foundation/AppBody.vue.d.ts.map +1 -1
  102. package/dist/components/foundation/AppFooter.vue.d.ts +13 -35
  103. package/dist/components/foundation/AppFooter.vue.d.ts.map +1 -1
  104. package/dist/components/foundation/AppFrame.vue.d.ts +10 -5
  105. package/dist/components/foundation/AppFrame.vue.d.ts.map +1 -1
  106. package/dist/components/interactive/Dialog.vue.d.ts +18 -40
  107. package/dist/components/interactive/Dialog.vue.d.ts.map +1 -1
  108. package/dist/components/interactive/Disclosure.vue.d.ts +22 -37
  109. package/dist/components/interactive/Disclosure.vue.d.ts.map +1 -1
  110. package/dist/components/interactive/DropDown.vue.d.ts +20 -34
  111. package/dist/components/interactive/DropDown.vue.d.ts.map +1 -1
  112. package/dist/components/interactive/Gallery.vue.d.ts +2 -34
  113. package/dist/components/interactive/Gallery.vue.d.ts.map +1 -1
  114. package/dist/components/interactive/Lightbox.vue.d.ts +32 -0
  115. package/dist/components/interactive/Lightbox.vue.d.ts.map +1 -0
  116. package/dist/components/interactive/Modal.vue.d.ts +15 -33
  117. package/dist/components/interactive/Modal.vue.d.ts.map +1 -1
  118. package/dist/components/interactive/Notification.vue.d.ts +5 -35
  119. package/dist/components/interactive/Notification.vue.d.ts.map +1 -1
  120. package/dist/components/interactive/Slider.vue.d.ts +32 -28
  121. package/dist/components/interactive/Slider.vue.d.ts.map +1 -1
  122. package/dist/components/interactive/Tab.vue.d.ts +17 -25
  123. package/dist/components/interactive/Tab.vue.d.ts.map +1 -1
  124. package/dist/components/interactive/TabGroup.vue.d.ts +25 -0
  125. package/dist/components/interactive/TabGroup.vue.d.ts.map +1 -0
  126. package/dist/components/interactive/TabPanel.vue.d.ts +9 -3
  127. package/dist/components/interactive/TabPanel.vue.d.ts.map +1 -1
  128. package/dist/components/interactive/TabPanels.vue.d.ts +27 -32
  129. package/dist/components/interactive/TabPanels.vue.d.ts.map +1 -1
  130. package/dist/components/interactive/Tabs.vue.d.ts +31 -31
  131. package/dist/components/interactive/Tabs.vue.d.ts.map +1 -1
  132. package/dist/components/layouts/Card.vue.d.ts +12 -30
  133. package/dist/components/layouts/Card.vue.d.ts.map +1 -1
  134. package/dist/components/layouts/Grid.vue.d.ts +11 -32
  135. package/dist/components/layouts/Grid.vue.d.ts.map +1 -1
  136. package/dist/components/layouts/List.vue.d.ts +28 -42
  137. package/dist/components/layouts/List.vue.d.ts.map +1 -1
  138. package/dist/components/layouts/Page.vue.d.ts +33 -62
  139. package/dist/components/layouts/Page.vue.d.ts.map +1 -1
  140. package/dist/components/layouts/Section.vue.d.ts +22 -41
  141. package/dist/components/layouts/Section.vue.d.ts.map +1 -1
  142. package/dist/components/layouts/Stack.vue.d.ts +12 -40
  143. package/dist/components/layouts/Stack.vue.d.ts.map +1 -1
  144. package/dist/components/navigation/BottomBar.vue.d.ts +10 -26
  145. package/dist/components/navigation/BottomBar.vue.d.ts.map +1 -1
  146. package/dist/components/navigation/Drawer.vue.d.ts +14 -32
  147. package/dist/components/navigation/Drawer.vue.d.ts.map +1 -1
  148. package/dist/components/renderless/DataProvider.vue.d.ts +19 -42
  149. package/dist/components/renderless/DataProvider.vue.d.ts.map +1 -1
  150. package/dist/components/renderless/Form.vue.d.ts +22 -43
  151. package/dist/components/renderless/Form.vue.d.ts.map +1 -1
  152. package/dist/components/renderless/OptionGroupSwitchController.vue.d.ts +20 -43
  153. package/dist/components/renderless/OptionGroupSwitchController.vue.d.ts.map +1 -1
  154. package/dist/composable/useAppNotifications.d.ts +0 -1
  155. package/dist/composable/useToolChip.d.ts +0 -1
  156. package/dist/composables.d.ts +0 -1
  157. package/dist/composables.es.js +5 -6
  158. package/dist/contexts/tabGroup.d.ts +17 -0
  159. package/dist/contexts/tabGroup.d.ts.map +1 -0
  160. package/dist/directives/auto-scale.d.ts +0 -1
  161. package/dist/directives/glitch.d.ts +0 -1
  162. package/dist/{index-a725a791.js → index-D7ldGb8i.js} +18 -30
  163. package/dist/index.d.ts +8 -11
  164. package/dist/index.d.ts.map +1 -1
  165. package/dist/index.es.js +6795 -6735
  166. package/dist/script.es.js +8571 -8506
  167. package/dist/script.umd.js +28 -28
  168. package/dist/style.css +1 -1
  169. package/dist/types.d.ts +0 -1
  170. package/dist/{composables-93778bb4.js → useAppDialogGuidance-Bs1h3YmP.js} +1060 -1044
  171. package/dist/utils.d.ts +46 -1
  172. package/dist/utils.d.ts.map +1 -1
  173. package/dist/validation.d.ts +0 -1
  174. package/dist/valueObjects/CurrencyValue.d.ts +0 -1
  175. package/dist/valueObjects/NumberValue.d.ts +0 -1
  176. package/dist/{valueObjects-e0ea7f1b.js → valueObjects-CvF0zaqR.js} +1 -1
  177. package/dist/valueObjects.es.js +1 -1
  178. package/package.json +29 -28
  179. package/src/stories/Alert.stories.ts +1 -1
  180. package/src/stories/AnnounceBar.stories.ts +1 -1
  181. package/src/stories/AnnounceBarCollection.stories.ts +135 -0
  182. package/src/stories/AppBar.stories.ts +6 -2
  183. package/src/stories/AppFooter.stories.ts +1 -1
  184. package/src/stories/AppFrame.stories.ts +1 -1
  185. package/src/stories/AppLayout.stories.ts +5 -16
  186. package/src/stories/Banner.stories.ts +235 -0
  187. package/src/stories/Button.stories.ts +1 -1
  188. package/src/stories/Card.stories.ts +1 -1
  189. package/src/stories/CheckBox.stories.ts +84 -22
  190. package/src/stories/ComboBox.stories.ts +62 -2
  191. package/src/stories/Dialog.stories.ts +1 -1
  192. package/src/stories/Disclosure.stories.ts +1 -1
  193. package/src/stories/Divider.stories.ts +1 -1
  194. package/src/stories/Drawer.stories.ts +1 -1
  195. package/src/stories/DropDown.stories.ts +1 -1
  196. package/src/stories/FloatingBanner.stories.ts +1 -1
  197. package/src/stories/Form.stories.ts +96 -1
  198. package/src/stories/Gallery.stories.ts +1 -1
  199. package/src/stories/Grid.stories.ts +1 -1
  200. package/src/stories/Hero.stories.ts +175 -26
  201. package/src/stories/Html.stories.ts +69 -1
  202. package/src/stories/Icon.stories.ts +1 -1
  203. package/src/stories/Image.stories.ts +1 -1
  204. package/src/stories/Label.stories.ts +97 -4
  205. package/src/stories/Lightbox.stories.ts +231 -0
  206. package/src/stories/List.stories.ts +62 -15
  207. package/src/stories/Modal.stories.ts +1 -1
  208. package/src/stories/Notification.stories.ts +1 -1
  209. package/src/stories/Page.stories.ts +36 -1
  210. package/src/stories/PasswordField.stories.ts +1 -1
  211. package/src/stories/ProductList.stories.ts +65 -3
  212. package/src/stories/ProductPurchase.stories.ts +2 -2
  213. package/src/stories/Progress.stories.ts +1 -1
  214. package/src/stories/Radio.stories.ts +130 -12
  215. package/src/stories/Section.stories.ts +29 -4
  216. package/src/stories/SelectBox.stories.ts +56 -1
  217. package/src/stories/SkeletonLoader.stories.ts +1 -1
  218. package/src/stories/Slider.stories.ts +365 -7
  219. package/src/stories/SnsLink.stories.ts +1 -1
  220. package/src/stories/SpinButton.stories.ts +1 -1
  221. package/src/stories/Spinner.stories.ts +1 -1
  222. package/src/stories/Stack.stories.ts +1 -1
  223. package/src/stories/Switch.stories.ts +1 -1
  224. package/src/stories/Tab.stories.ts +28 -11
  225. package/src/stories/TabGroup.stories.ts +290 -0
  226. package/src/stories/TabPanels.stories.ts +1 -1
  227. package/src/stories/Tabs.stories.ts +104 -3
  228. package/src/stories/Text.stories.ts +24 -1
  229. package/src/stories/TextArea.stories.ts +78 -1
  230. package/src/stories/TextField.stories.ts +75 -2
  231. package/src/stories/ToolChip.stories.ts +1 -1
  232. package/src/stories/compositions/EventPage.stories.ts +184 -0
  233. package/src/stories/compositions/FormPage.stories.ts +222 -0
  234. package/src/stories/compositions/TopPage.stories.ts +164 -0
  235. package/dist/components/features/CarouselBanner.vue.d.ts +0 -36
  236. package/dist/components/features/CarouselBanner.vue.d.ts.map +0 -1
  237. package/dist/components/features/VariationSelector.vue.d.ts +0 -39
  238. package/dist/components/features/VariationSelector.vue.d.ts.map +0 -1
  239. package/src/stories/Carousel.stories.ts +0 -62
  240. package/src/stories/CarouselBanner.stories.ts +0 -103
  241. package/src/stories/ProductLabels.stories.ts +0 -65
  242. package/src/stories/SoldStacker.stories.ts +0 -68
package/dist/utils.d.ts CHANGED
@@ -1,10 +1,54 @@
1
1
  import { App } from 'vue';
2
2
  import { ValidationConfig } from './validation';
3
-
4
3
  export interface ResponsiveValue<T> {
5
4
  pc?: T;
6
5
  sp?: T;
7
6
  }
7
+ export interface ReniOneUISemanticTokens {
8
+ radius?: {
9
+ container?: string;
10
+ control?: string;
11
+ element?: string;
12
+ pill?: string;
13
+ };
14
+ bg?: {
15
+ default?: string;
16
+ light?: string;
17
+ muted?: string;
18
+ disabled?: string;
19
+ subtle?: string;
20
+ white?: string;
21
+ black?: string;
22
+ primary?: string;
23
+ error?: string;
24
+ warning?: string;
25
+ success?: string;
26
+ info?: string;
27
+ };
28
+ text?: {
29
+ primary?: string;
30
+ secondary?: string;
31
+ tertiary?: string;
32
+ error?: string;
33
+ disabled?: string;
34
+ white?: string;
35
+ link?: string;
36
+ };
37
+ line?: {
38
+ default?: string;
39
+ dark?: string;
40
+ strong?: string;
41
+ };
42
+ border?: {
43
+ width?: string;
44
+ };
45
+ overlay?: {
46
+ opacity?: string;
47
+ };
48
+ opacity?: {
49
+ disabled?: string;
50
+ };
51
+ }
8
52
  export interface ReniOneUITheme {
9
53
  mode?: 'light' | 'dark';
10
54
  styles?: 'natural' | 'solid';
@@ -66,6 +110,7 @@ export interface ReniOneUITheme {
66
110
  xl?: string;
67
111
  [key: string]: string | undefined;
68
112
  };
113
+ semantic?: ReniOneUISemanticTokens;
69
114
  }
70
115
  export interface ReniOneUIOptions {
71
116
  themes?: ReniOneUITheme;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AA6FzB,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEzE,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,EAAE,CAAC,EAAE,CAAC,CAAA;IACN,EAAE,CAAC,EAAE,CAAC,CAAA;CACP;AAGD,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAClC,CAAA;IACD,MAAM,CAAC,EAAE;QACP,EAAE,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;QAC5B,EAAE,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;QAC5B,EAAE,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;QAC5B,EAAE,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;QAC5B,EAAE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E,CAAC,EAAE,MAAM,CAAA;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAClC,CAAA;IACD,QAAQ,CAAC,EAAE,uBAAuB,CAAA;CACnC;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,UAAU,CAAC,EAAE,gBAAgB,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,cAAc,EACrB,UAAU,CAAC,EAAE,gBAAgB,GAC5B,MAAM,CA0NR;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAiB7D;AAED,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,gBAAgB;mBAKlC,GAAG;EA4F1B"}
@@ -1,5 +1,4 @@
1
1
  import { RuleExpression } from 'vee-validate';
2
-
3
2
  export type ValidationRules = RuleExpression<any>;
4
3
  export interface ValidationConfig {
5
4
  locale?: 'ja' | 'en';
@@ -1,5 +1,4 @@
1
1
  import { Value, ValueObject } from './ValueObject';
2
-
3
2
  export declare class CurrencyValue extends ValueObject<number> {
4
3
  locale: string;
5
4
  currency: string;
@@ -1,5 +1,4 @@
1
1
  import { Value, ValueObject } from './ValueObject';
2
-
3
2
  export declare class NumberValue extends ValueObject<number> {
4
3
  locale: string;
5
4
  constructor(value: Value<number>, { locale }?: {
@@ -1,6 +1,6 @@
1
1
  var l = Object.defineProperty;
2
2
  var i = (e, r, t) => r in e ? l(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
- var n = (e, r, t) => (i(e, typeof r != "symbol" ? r + "" : r, t), t);
3
+ var n = (e, r, t) => i(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  class u {
5
5
  constructor(r) {
6
6
  n(this, "_value");
@@ -1,4 +1,4 @@
1
- import { C as a, N as u } from "./valueObjects-e0ea7f1b.js";
1
+ import { C as a, N as u } from "./valueObjects-CvF0zaqR.js";
2
2
  export {
3
3
  a as CurrencyValue,
4
4
  u as NumberValue
package/package.json CHANGED
@@ -1,31 +1,27 @@
1
1
  {
2
2
  "name": "@reni-corp/reni-2c-ui",
3
- "version": "0.3.291",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/reni-corp/reni-2C-ui.git"
8
- },
9
5
  "main": "./dist/script.umd.js",
10
6
  "module": "./dist/index.es.js",
11
7
  "types": "./dist/index.d.ts",
12
8
  "exports": {
13
9
  ".": {
10
+ "types": "./dist/index.d.ts",
14
11
  "import": "./dist/index.es.js",
15
- "require": "./dist/script.umd.js",
16
- "types": "./dist/index.d.ts"
12
+ "require": "./dist/script.umd.js"
17
13
  },
18
14
  "./valueObjects": {
19
- "import": "./dist/valueObjects.es.js",
20
- "types": "./dist/valueObjects.d.ts"
15
+ "types": "./dist/valueObjects.d.ts",
16
+ "import": "./dist/valueObjects.es.js"
21
17
  },
22
18
  "./constants": {
23
- "import": "./dist/constants.es.js",
24
- "types": "./dist/constants.d.ts"
19
+ "types": "./dist/constants.d.ts",
20
+ "import": "./dist/constants.es.js"
25
21
  },
26
22
  "./types": {
27
- "import": "./dist/types.es.js",
28
- "types": "./dist/types.d.ts"
23
+ "types": "./dist/types.d.ts",
24
+ "import": "./dist/types.es.js"
29
25
  },
30
26
  "./dist/index.d.ts": "./dist/index.d.ts",
31
27
  "./dist/style.css": "./dist/style.css"
@@ -52,7 +48,10 @@
52
48
  "format": "prettier --write .",
53
49
  "stylelint": "stylelint \"**/*.{vue,scss,css}\"",
54
50
  "stylelint:fix": "stylelint \"**/*.{vue,scss,css}\" --fix",
55
- "typecheck": "tsc --noEmit --skipLibCheck"
51
+ "typecheck": "tsc --noEmit --skipLibCheck",
52
+ "test": "vitest run",
53
+ "test:watch": "vitest",
54
+ "test:vrt": "playwright test --config playwright.config.ts"
56
55
  },
57
56
  "dependencies": {
58
57
  "@awesome.me/kit-37f9c6ad08": "^1.0.24",
@@ -62,6 +61,7 @@
62
61
  "@fortawesome/free-solid-svg-icons": "^6.7.2",
63
62
  "@fortawesome/pro-regular-svg-icons": "^6.7.2",
64
63
  "@fortawesome/vue-fontawesome": "^3.0.8",
64
+ "@reni-corp/mani-editor": "^0.1.6",
65
65
  "@vee-validate/i18n": "^4.15.1",
66
66
  "@vee-validate/rules": "^4.11.3",
67
67
  "@vueuse/components": "^10.5.0",
@@ -69,6 +69,7 @@
69
69
  "dayjs": "^1.11.13",
70
70
  "dompurify": "^3.0.11",
71
71
  "floating-vue": "patch:floating-vue@npm%3A2.0.0#./.yarn/patches/floating-vue-npm-2.0.0-b4308359d7.patch",
72
+ "lz-string": "^1.5.0",
72
73
  "swiper": "^11.1.15",
73
74
  "vee-validate": "^4.11.3",
74
75
  "vue": "^3.5.25"
@@ -85,24 +86,24 @@
85
86
  "devDependencies": {
86
87
  "@eslint/eslintrc": "^3.3.1",
87
88
  "@eslint/js": "^9.36.0",
88
- "@storybook/addon-essentials": "^7.6.20",
89
- "@storybook/addon-interactions": "^7.6.20",
90
- "@storybook/addon-links": "^7.6.20",
91
- "@storybook/blocks": "^7.6.20",
92
- "@storybook/manager-api": "^7.6.20",
93
- "@storybook/testing-library": "^0.2.0",
94
- "@storybook/theming": "^7.6.20",
95
- "@storybook/vue3": "^7.6.20",
96
- "@storybook/vue3-vite": "^7.6.20",
89
+ "@playwright/test": "^1.58.2",
90
+ "@storybook/addon-docs": "^10.2.10",
91
+ "@storybook/addon-links": "^10.2.10",
92
+ "@storybook/vue3-vite": "^10.2.10",
93
+ "@testing-library/jest-dom": "^6.9.1",
94
+ "@testing-library/vue": "^8.1.0",
97
95
  "@types/dompurify": "^3.0.5",
96
+ "@types/lz-string": "^1.5.0",
98
97
  "@typescript-eslint/eslint-plugin": "^8.8.1",
99
98
  "@typescript-eslint/parser": "^8.8.1",
100
- "@vitejs/plugin-vue": "^4.2.3",
99
+ "@vitejs/plugin-vue": "^5.2.4",
101
100
  "@vue/babel-plugin-jsx": "^1.1.5",
101
+ "@vue/test-utils": "^2.4.6",
102
102
  "eslint": "^9.12.0",
103
103
  "eslint-config-prettier": "^9.1.0",
104
104
  "eslint-formatter-compact": "^8.40.0",
105
105
  "eslint-plugin-prettier": "^5.2.1",
106
+ "eslint-plugin-storybook": "^10.2.10",
106
107
  "eslint-plugin-vue": "^9.29.0",
107
108
  "globals": "^15.12.0",
108
109
  "happy-dom": "^20.0.0",
@@ -115,8 +116,7 @@
115
116
  "react-dom": "^18.2.0",
116
117
  "rollup-plugin-visualizer": "^5.11.0",
117
118
  "sass": "^1.66.1",
118
- "storybook": "^7.6.21",
119
- "storybook-addon-vue-slots": "^0.9.21",
119
+ "storybook": "^10.2.10",
120
120
  "stylelint": "^16.9.0",
121
121
  "stylelint-config-prettier-scss": "^1.0.0",
122
122
  "stylelint-config-recommended-scss": "^14.1.0",
@@ -125,8 +125,9 @@
125
125
  "stylelint-config-standard-scss": "^13.1.0",
126
126
  "stylelint-scss": "^6.11.1",
127
127
  "typescript": "^5.0.2",
128
- "vite": "^4.4.5",
129
- "vite-plugin-dts": "^3.5.3",
128
+ "vite": "^5.4.21",
129
+ "vite-plugin-dts": "^4.5.4",
130
+ "vitest": "^4.0.18",
130
131
  "vue-eslint-parser": "^10.2.0",
131
132
  "vue-tsc": "^1.8.5"
132
133
  }
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite'
2
2
  import Alert, { type AlertProps } from '@/components/elements/Alert.vue'
3
3
  import Button from '@/components/elements/Button.vue'
4
4
  import {
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite'
2
2
  import AnnounceBar, {
3
3
  type AnnounceBarProps,
4
4
  } from '@/components/features/AnnounceBar.vue'
@@ -0,0 +1,135 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite'
2
+ import AnnounceBarCollection from '@/components/features/AnnounceBarCollection.vue'
3
+ import AnnounceBar from '@/components/features/AnnounceBar.vue'
4
+
5
+ const meta: Meta<typeof AnnounceBarCollection> = {
6
+ title: 'Features/AnnounceBarCollection',
7
+ component: AnnounceBarCollection,
8
+ tags: ['autodocs'],
9
+ argTypes: {
10
+ variant: {
11
+ control: 'select',
12
+ options: ['stack', 'slide'],
13
+ },
14
+ slideDelay: { control: 'number' },
15
+ themeColor: { control: 'color' },
16
+ showNavigation: { control: 'boolean' },
17
+ showSeparator: { control: 'boolean' },
18
+ },
19
+ args: {
20
+ variant: 'stack',
21
+ slideDelay: 6300,
22
+ themeColor: '#ffffff',
23
+ showNavigation: true,
24
+ showSeparator: true,
25
+ },
26
+ }
27
+
28
+ export default meta
29
+ type Story = StoryObj<typeof meta>
30
+
31
+ export const スタック: Story = {
32
+ render: (args) => ({
33
+ components: {
34
+ 'rn-announce-bar-collection': AnnounceBarCollection,
35
+ 'rn-announce-bar': AnnounceBar,
36
+ },
37
+ setup() {
38
+ return { args }
39
+ },
40
+ template: `
41
+ <rn-announce-bar-collection v-bind="args">
42
+ <rn-announce-bar title="送料無料キャンペーン実施中" subtitle="期間限定" color="primary" />
43
+ <rn-announce-bar title="新商品入荷しました" subtitle="NEW" color="success" />
44
+ <rn-announce-bar title="メンテナンスのお知らせ" subtitle="重要" color="warning" />
45
+ </rn-announce-bar-collection>
46
+ `,
47
+ }),
48
+ }
49
+
50
+ export const スライド: Story = {
51
+ args: {
52
+ variant: 'slide',
53
+ },
54
+ render: (args) => ({
55
+ components: {
56
+ 'rn-announce-bar-collection': AnnounceBarCollection,
57
+ 'rn-announce-bar': AnnounceBar,
58
+ },
59
+ setup() {
60
+ return { args }
61
+ },
62
+ template: `
63
+ <rn-announce-bar-collection v-bind="args">
64
+ <rn-announce-bar title="送料無料キャンペーン実施中" subtitle="期間限定" color="primary" />
65
+ <rn-announce-bar title="新商品入荷しました" subtitle="NEW" color="success" />
66
+ <rn-announce-bar title="メンテナンスのお知らせ" subtitle="重要" color="warning" />
67
+ </rn-announce-bar-collection>
68
+ `,
69
+ }),
70
+ }
71
+
72
+ export const スライド_ナビゲーション非表示: Story = {
73
+ args: {
74
+ variant: 'slide',
75
+ showNavigation: false,
76
+ },
77
+ render: (args) => ({
78
+ components: {
79
+ 'rn-announce-bar-collection': AnnounceBarCollection,
80
+ 'rn-announce-bar': AnnounceBar,
81
+ },
82
+ setup() {
83
+ return { args }
84
+ },
85
+ template: `
86
+ <rn-announce-bar-collection v-bind="args">
87
+ <rn-announce-bar title="送料無料キャンペーン実施中" subtitle="期間限定" color="primary" />
88
+ <rn-announce-bar title="新商品入荷しました" subtitle="NEW" color="success" />
89
+ <rn-announce-bar title="メンテナンスのお知らせ" subtitle="重要" color="warning" />
90
+ </rn-announce-bar-collection>
91
+ `,
92
+ }),
93
+ }
94
+
95
+ export const スタック_セパレーター非表示: Story = {
96
+ args: {
97
+ variant: 'stack',
98
+ showSeparator: false,
99
+ },
100
+ render: (args) => ({
101
+ components: {
102
+ 'rn-announce-bar-collection': AnnounceBarCollection,
103
+ 'rn-announce-bar': AnnounceBar,
104
+ },
105
+ setup() {
106
+ return { args }
107
+ },
108
+ template: `
109
+ <rn-announce-bar-collection v-bind="args">
110
+ <rn-announce-bar title="送料無料キャンペーン実施中" subtitle="期間限定" color="primary" />
111
+ <rn-announce-bar title="新商品入荷しました" subtitle="NEW" color="success" />
112
+ <rn-announce-bar title="メンテナンスのお知らせ" subtitle="重要" color="warning" />
113
+ </rn-announce-bar-collection>
114
+ `,
115
+ }),
116
+ }
117
+
118
+ export const グラデーションスタイル: Story = {
119
+ render: (args) => ({
120
+ components: {
121
+ 'rn-announce-bar-collection': AnnounceBarCollection,
122
+ 'rn-announce-bar': AnnounceBar,
123
+ },
124
+ setup() {
125
+ return { args }
126
+ },
127
+ template: `
128
+ <rn-announce-bar-collection v-bind="args">
129
+ <rn-announce-bar title="送料無料キャンペーン実施中" subtitle="期間限定" color="primary" colorStyle="gradient" />
130
+ <rn-announce-bar title="新商品入荷しました" subtitle="NEW" color="success" colorStyle="gradient" />
131
+ <rn-announce-bar title="メンテナンスのお知らせ" subtitle="重要" color="warning" colorStyle="gradient" />
132
+ </rn-announce-bar-collection>
133
+ `,
134
+ }),
135
+ }
@@ -7,7 +7,7 @@ import AppBar, {
7
7
  AppBarMenuItem,
8
8
  } from '@/components/foundation/AppBar.vue'
9
9
  import Stack from '@/components/layouts/Stack.vue'
10
- import type { Meta, StoryObj } from '@storybook/vue3'
10
+ import type { Meta, StoryObj } from '@storybook/vue3-vite'
11
11
  import { ref } from 'vue'
12
12
  import './assets/css/style.css'
13
13
 
@@ -73,7 +73,11 @@ const sampleMenu: AppBarMenuItem[] = [
73
73
 
74
74
  // サンプルアクション
75
75
  const sampleActions: AppBarAction[] = [
76
- { title: '検索', icon: ['far', 'magnifying-glass'], action: () => alert('検索') },
76
+ {
77
+ title: '検索',
78
+ icon: ['far', 'magnifying-glass'],
79
+ action: () => alert('検索'),
80
+ },
77
81
  { title: 'アカウント', icon: ['far', 'user'], url: '/account' },
78
82
  { title: 'カート', icon: ['far', 'cart-shopping'], url: '/cart' },
79
83
  ]
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite'
2
2
  import AppFooter, {
3
3
  AppFooterProps,
4
4
  SnsLinkItem,
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite'
2
2
  import AppFrame from '@/components/foundation/AppFrame.vue'
3
3
 
4
4
  const meta: Meta<typeof AppFrame> = {
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite'
2
2
  import { ref, computed } from 'vue'
3
3
  import AppFrame from '@/components/foundation/AppFrame.vue'
4
4
  import AppBar, {
@@ -25,7 +25,6 @@ import AnnounceBar from '@/components/features/AnnounceBar.vue'
25
25
  import BrandLogo from '@/components/features/BrandLogo.vue'
26
26
  import SnsLink from '@/components/features/SnsLink.vue'
27
27
  import ProductList from '@/components/features/ProductList.vue'
28
- import VariationSelector from '@/components/features/VariationSelector.vue'
29
28
  import Image from '@/components/elements/Image.vue'
30
29
  import Spinner from '@/components/elements/Spinner.vue'
31
30
  import Card from '@/components/layouts/Card.vue'
@@ -208,7 +207,6 @@ export const 商品詳細ページ: Story = {
208
207
  'rn-gallery': Gallery,
209
208
  'rn-announce-bar': AnnounceBar,
210
209
  'rn-product-list': ProductList,
211
- 'rn-variation-selector': VariationSelector,
212
210
  },
213
211
  setup() {
214
212
  const variation = ref('m')
@@ -284,15 +282,6 @@ export const 商品詳細ページ: Story = {
284
282
  </rn-text>
285
283
  </rn-stack>
286
284
 
287
- <!-- バリエーション選択 -->
288
- <rn-stack direction="vertical">
289
- <rn-text>サイズを選択</rn-text>
290
- <rn-variation-selector
291
- v-model="variation"
292
- :options="variationOptions"
293
- />
294
- </rn-stack>
295
-
296
285
  <!-- 数量選択 -->
297
286
  <rn-stack direction="vertical">
298
287
  <rn-text>数量</rn-text>
@@ -552,8 +541,8 @@ export const カートページ: Story = {
552
541
  const productSubtotal = computed(() =>
553
542
  cartItems.value.reduce(
554
543
  (sum, item) => sum + item.unit_price * item.quantity,
555
- 0
556
- )
544
+ 0,
545
+ ),
557
546
  )
558
547
 
559
548
  // 手数料(固定値)
@@ -565,7 +554,7 @@ export const カートページ: Story = {
565
554
  // 数量変更
566
555
  const handleQuantityChange = (item: CartItem, newQuantity: number) => {
567
556
  const target = cartItems.value.find(
568
- (i) => i.product_sku_id === item.product_sku_id
557
+ (i) => i.product_sku_id === item.product_sku_id,
569
558
  )
570
559
  if (target) {
571
560
  target.quantity = newQuantity
@@ -575,7 +564,7 @@ export const カートページ: Story = {
575
564
  // 削除
576
565
  const deleteCartListItemHandle = (item: CartItem) => {
577
566
  cartItems.value = cartItems.value.filter(
578
- (i) => i.product_sku_id !== item.product_sku_id
567
+ (i) => i.product_sku_id !== item.product_sku_id,
579
568
  )
580
569
  }
581
570