@molecule/app-currency-display-vue 0.0.0-stage → 0.0.1-stage

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/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,204 @@
1
- # Temporary Holding Version
1
+ <!--
2
+ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
+ Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
+ Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
+ To change this document, edit the module-level JSDoc in src/index.ts.
6
+ Generated: 2026-11-15T09:56:30.309Z
7
+ -->
2
8
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
9
+ # @molecule/app-currency-display-vue
10
+
11
+ Vue currency display and formatting utilities.
12
+
13
+ Exports:
14
+
15
+ - `formatCurrency(amount, currency?, locale?)` — plain string via `Intl.NumberFormat`.
16
+ - `formatCurrencyCompact(amount, currency?, locale?)` — compact notation (`$12.3K`).
17
+ - `<CurrencyDisplay>` — rendered amount with optional strikethrough original price + savings chip.
18
+
19
+ > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
20
+ > It is written to be read by coding agents as much as by people, and is generated from this
21
+ > package's source — edit `src/index.ts` JSDoc, not this file.
22
+
23
+ ## Quick Start
24
+
25
+ ```ts
26
+ import { defineComponent, h } from 'vue'
27
+ import { CurrencyDisplay, formatCurrency } from '@molecule/app-currency-display-vue'
28
+
29
+ const Price = defineComponent({
30
+ setup() {
31
+ // Basic amount
32
+ return () => h(CurrencyDisplay, { amount: 49.99, currency: 'USD', size: 'lg' })
33
+ },
34
+ })
35
+
36
+ // With original price and savings chip
37
+ h(CurrencyDisplay, { amount: 29.99, originalAmount: 49.99, currency: 'USD', showSavings: true })
38
+
39
+ // Compact notation: "$29.99K"
40
+ h(CurrencyDisplay, { amount: 29990, currency: 'USD', compact: true, size: 'xl' })
41
+
42
+ // Plain string utility
43
+ const label = formatCurrency(1234.56, 'EUR', 'de-DE') // "1.234,56 €"
44
+ ```
45
+
46
+ ## Type
47
+
48
+ `feature`
49
+
50
+ ## Installation
51
+
52
+ ```bash
53
+ npm install @molecule/app-currency-display-vue @molecule/app-ui @molecule/app-ui-vue @molecule/app-vue vue
54
+ ```
55
+
56
+ ## API
57
+
58
+ ### Interfaces
59
+
60
+ #### `CurrencyDisplayProps`
61
+
62
+ Props for {@link CurrencyDisplay}.
63
+
64
+ ```typescript
65
+ interface CurrencyDisplayProps {
66
+ /** Current amount in major units. */
67
+ amount: number
68
+ /** Optional original amount — rendered strikethrough to show a discount. */
69
+ originalAmount?: number
70
+ /** ISO 4217 currency code. */
71
+ currency?: string
72
+ /** Locale override. */
73
+ locale?: string
74
+ /** Display size. */
75
+ size?: 'sm' | 'md' | 'lg' | 'xl'
76
+ /** Compact notation (`$12.3K`) instead of full. */
77
+ compact?: boolean
78
+ /** Show a savings chip when `originalAmount > amount`. */
79
+ showSavings?: boolean
80
+ /** Custom savings label renderer. */
81
+ savingsLabel?: (saved: number, pct: number) => string
82
+ /** Extra classes. */
83
+ className?: string
84
+ }
85
+ ```
86
+
87
+ ### Functions
88
+
89
+ #### `formatCurrency(amount, currency, locale)`
90
+
91
+ Formats a numeric amount as currency using `Intl.NumberFormat`.
92
+
93
+ ```typescript
94
+ function formatCurrency(amount: number, currency?: string, locale?: string): string
95
+ ```
96
+
97
+ - `amount` — Amount in major units (e.g. dollars, not cents). Pass `amount / 100` if your stored value is in cents.
98
+ - `currency` — ISO 4217 currency code. Defaults to `"USD"`.
99
+ - `locale` — BCP 47 locale tag. Defaults to the runtime default (`undefined`).
100
+
101
+ **Returns:** Formatted currency string.
102
+
103
+ #### `formatCurrencyCompact(amount, currency, locale)`
104
+
105
+ Formats a numeric amount as currency in a compact form (e.g. "$12.3K").
106
+ Uses `Intl.NumberFormat` with `notation: 'compact'` when supported.
107
+
108
+ ```typescript
109
+ function formatCurrencyCompact(amount: number, currency?: string, locale?: string): string
110
+ ```
111
+
112
+ - `amount` — Amount in major units.
113
+ - `currency` — ISO 4217 currency code. Defaults to `"USD"`.
114
+ - `locale` — BCP 47 locale tag. Defaults to the runtime default (`undefined`).
115
+
116
+ **Returns:** Formatted compact currency string.
117
+
118
+ ### Constants
119
+
120
+ #### `CurrencyDisplay`
121
+
122
+ Display a monetary amount with optional original price (strikethrough)
123
+ and a "saved X%" chip. Uses `Intl.NumberFormat` under the hood.
124
+
125
+ Use the `formatCurrency` / `formatCurrencyCompact` utilities directly
126
+ when you just need a string without rendering chrome.
127
+
128
+ ```typescript
129
+ const CurrencyDisplay: DefineComponent<
130
+ ExtractPropTypes<{
131
+ amount: { type: NumberConstructor; required: true }
132
+ originalAmount: NumberConstructor
133
+ currency: { type: StringConstructor; default: string }
134
+ locale: StringConstructor
135
+ size: { type: PropType<CurrencyDisplayProps['size']>; default: string }
136
+ compact: BooleanConstructor
137
+ showSavings: { type: BooleanConstructor; default: boolean }
138
+ savingsLabel: { type: PropType<(saved: number, pct: number) => string> }
139
+ className: StringConstructor
140
+ }>,
141
+ () => VNode,
142
+ {},
143
+ {},
144
+ {},
145
+ ComponentOptionsMixin,
146
+ ComponentOptionsMixin,
147
+ {},
148
+ string,
149
+ PublicProps,
150
+ Readonly<
151
+ ExtractPropTypes<{
152
+ amount: { type: NumberConstructor; required: true }
153
+ originalAmount: NumberConstructor
154
+ currency: { type: StringConstructor; default: string }
155
+ locale: StringConstructor
156
+ size: { type: PropType<CurrencyDisplayProps['size']>; default: string }
157
+ compact: BooleanConstructor
158
+ showSavings: { type: BooleanConstructor; default: boolean }
159
+ savingsLabel: { type: PropType<(saved: number, pct: number) => string> }
160
+ className: StringConstructor
161
+ }>
162
+ > &
163
+ Readonly<{}>,
164
+ {
165
+ size: 'sm' | 'md' | 'lg' | 'xl' | undefined
166
+ compact: boolean
167
+ currency: string
168
+ showSavings: boolean
169
+ },
170
+ {},
171
+ {},
172
+ {},
173
+ string,
174
+ ComponentProvideOptions,
175
+ true,
176
+ {},
177
+ any
178
+ >
179
+ ```
180
+
181
+ ## Injection Notes
182
+
183
+ ### Requirements
184
+
185
+ Peer dependencies:
186
+
187
+ - `@molecule/app-ui` ^1.0.1
188
+ - `@molecule/app-ui-vue` ^1.1.0
189
+ - `@molecule/app-vue` ^3.5.0
190
+ - `vue` ^3.4.0
191
+
192
+ ### Runtime Dependencies
193
+
194
+ - `@molecule/app-ui`
195
+ - `@molecule/app-ui-vue`
196
+ - `@molecule/app-vue`
197
+ - `vue`
198
+
199
+ Amounts are in MAJOR units (dollars, not cents) — divide stored cents by
200
+ 100 first. `showSavings` defaults to true, so a savings chip appears
201
+ whenever `originalAmount > amount`; pass `showSavings: false` for plain
202
+ was/now price display. Formatting is `Intl.NumberFormat` (locale-aware,
203
+ no i18n keys needed); `savingsLabel(saved, pct)` lets you localize the
204
+ chip text.
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Vue currency display: an amount, an optional strikethrough original price and
3
+ * a "saved X%" chip.
4
+ *
5
+ * Counterpart of `@molecule/app-currency-display-react`'s `CurrencyDisplay` —
6
+ * the same props (React names), the same DOM for the same input.
7
+ *
8
+ * @module
9
+ */
10
+ import { type PropType, type VNode } from 'vue';
11
+ import type { CurrencyDisplayProps } from './types.js';
12
+ /**
13
+ * Display a monetary amount with optional original price (strikethrough)
14
+ * and a "saved X%" chip. Uses `Intl.NumberFormat` under the hood.
15
+ *
16
+ * Use the `formatCurrency` / `formatCurrencyCompact` utilities directly
17
+ * when you just need a string without rendering chrome.
18
+ */
19
+ export declare const CurrencyDisplay: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
20
+ amount: {
21
+ type: NumberConstructor;
22
+ required: true;
23
+ };
24
+ originalAmount: NumberConstructor;
25
+ currency: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ locale: StringConstructor;
30
+ size: {
31
+ type: PropType<CurrencyDisplayProps["size"]>;
32
+ default: string;
33
+ };
34
+ compact: BooleanConstructor;
35
+ showSavings: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ savingsLabel: {
40
+ type: PropType<(saved: number, pct: number) => string>;
41
+ };
42
+ className: StringConstructor;
43
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
+ amount: {
45
+ type: NumberConstructor;
46
+ required: true;
47
+ };
48
+ originalAmount: NumberConstructor;
49
+ currency: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ locale: StringConstructor;
54
+ size: {
55
+ type: PropType<CurrencyDisplayProps["size"]>;
56
+ default: string;
57
+ };
58
+ compact: BooleanConstructor;
59
+ showSavings: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ savingsLabel: {
64
+ type: PropType<(saved: number, pct: number) => string>;
65
+ };
66
+ className: StringConstructor;
67
+ }>> & Readonly<{}>, {
68
+ currency: string;
69
+ compact: boolean;
70
+ size: "sm" | "md" | "lg" | "xl" | undefined;
71
+ showSavings: boolean;
72
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
73
+ //# sourceMappingURL=CurrencyDisplay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyDisplay.d.ts","sourceRoot":"","sources":["../src/CurrencyDisplay.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAmB,MAAM,KAAK,CAAA;AAKpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AA8CtD;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;cAOA,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;;;;;;;;;cAI1C,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;;;UAIlD,KAAK;;;;;;;;;;;;cARC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;;;;;;;;;cAI1C,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;;;;;;;;4EA8CtE,CAAA"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Vue currency display: an amount, an optional strikethrough original price and
3
+ * a "saved X%" chip.
4
+ *
5
+ * Counterpart of `@molecule/app-currency-display-react`'s `CurrencyDisplay` —
6
+ * the same props (React names), the same DOM for the same input.
7
+ *
8
+ * @module
9
+ */
10
+ import { defineComponent, h } from 'vue';
11
+ import { getClassMap } from '@molecule/app-ui';
12
+ import { formatCurrency, formatCurrencyCompact } from './formatCurrency.js';
13
+ /** The text-size token each React `size` value resolves to. */
14
+ const SIZE_CLASS = {
15
+ sm: 'sm',
16
+ md: 'base',
17
+ lg: 'xl',
18
+ xl: '3xl',
19
+ };
20
+ /**
21
+ * The text-size token for a `size` prop (React's default is `'md'`).
22
+ *
23
+ * @param size - The `size` prop value.
24
+ * @returns The ClassMap text-size token.
25
+ */
26
+ const sizeClass = (size) => SIZE_CLASS[size ?? 'md'];
27
+ /**
28
+ * The discount to render, when the original amount is above the current one
29
+ * (React's condition: `originalAmount !== undefined && originalAmount > amount`).
30
+ *
31
+ * @param amount - The current amount.
32
+ * @param originalAmount - The original amount, when given.
33
+ * @returns The discount, or undefined when there is none.
34
+ */
35
+ const discountOf = (amount, originalAmount) => {
36
+ if (originalAmount === undefined || originalAmount <= amount)
37
+ return undefined;
38
+ const saved = originalAmount - amount;
39
+ return {
40
+ original: originalAmount,
41
+ saved,
42
+ pct: originalAmount > 0 ? Math.round((saved / originalAmount) * 100) : 0,
43
+ };
44
+ };
45
+ /**
46
+ * Display a monetary amount with optional original price (strikethrough)
47
+ * and a "saved X%" chip. Uses `Intl.NumberFormat` under the hood.
48
+ *
49
+ * Use the `formatCurrency` / `formatCurrencyCompact` utilities directly
50
+ * when you just need a string without rendering chrome.
51
+ */
52
+ export const CurrencyDisplay = defineComponent({
53
+ name: 'CurrencyDisplay',
54
+ props: {
55
+ amount: { type: Number, required: true },
56
+ originalAmount: Number,
57
+ currency: { type: String, default: 'USD' },
58
+ locale: String,
59
+ size: { type: String, default: 'md' },
60
+ compact: Boolean,
61
+ showSavings: { type: Boolean, default: true },
62
+ savingsLabel: {
63
+ type: Function,
64
+ },
65
+ className: String,
66
+ },
67
+ setup(props) {
68
+ const cm = getClassMap();
69
+ return () => {
70
+ const fmt = props.compact ? formatCurrencyCompact : formatCurrency;
71
+ const discount = discountOf(props.amount, props.originalAmount);
72
+ const children = [
73
+ h('span', { class: cm.cn(cm.textSize(sizeClass(props.size)), cm.fontWeight('bold')) }, fmt(props.amount, props.currency, props.locale)),
74
+ ];
75
+ if (discount) {
76
+ children.push(h('span', {
77
+ class: cm.cn(cm.textSize('sm')),
78
+ style: { textDecoration: 'line-through' },
79
+ }, fmt(discount.original, props.currency, props.locale)));
80
+ if (props.showSavings) {
81
+ children.push(h('span', { class: cm.cn(cm.textSize('xs'), cm.fontWeight('semibold')) }, props.savingsLabel
82
+ ? props.savingsLabel(discount.saved, discount.pct)
83
+ : `−${discount.pct}%`));
84
+ }
85
+ }
86
+ return h('span', { class: cm.cn(cm.flex({ align: 'baseline', gap: 'sm' }), props.className) }, children);
87
+ };
88
+ },
89
+ });
90
+ //# sourceMappingURL=CurrencyDisplay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyDisplay.js","sourceRoot":"","sources":["../src/CurrencyDisplay.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC,EAA8C,MAAM,KAAK,CAAA;AAEpF,OAAO,EAAE,WAAW,EAAkB,MAAM,kBAAkB,CAAA;AAE9D,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,+DAA+D;AAC/D,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,KAAK;CACD,CAAA;AAYV;;;;;GAKG;AACH,MAAM,SAAS,GAAG,CAAC,IAAkC,EAAa,EAAE,CAAC,UAAU,CAAC,IAAI,IAAI,IAAI,CAAC,CAAA;AAE7F;;;;;;;GAOG;AACH,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,cAAuB,EAAwB,EAAE;IACnF,IAAI,cAAc,KAAK,SAAS,IAAI,cAAc,IAAI,MAAM;QAAE,OAAO,SAAS,CAAA;IAC9E,MAAM,KAAK,GAAG,cAAc,GAAG,MAAM,CAAA;IACrC,OAAO;QACL,QAAQ,EAAE,cAAc;QACxB,KAAK;QACL,GAAG,EAAE,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,cAAc,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;KACzE,CAAA;AACH,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;IAC7C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE;QACL,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,cAAc,EAAE,MAAM;QACtB,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QAC1C,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,EAAE,IAAI,EAAE,MAAgD,EAAE,OAAO,EAAE,IAAI,EAAE;QAC/E,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;QAC7C,YAAY,EAAE;YACZ,IAAI,EAAE,QAA4D;SACnE;QACD,SAAS,EAAE,MAAM;KAClB;IACD,KAAK,CAAC,KAAK;QACT,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;QACxB,OAAO,GAAU,EAAE;YACjB,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,cAAc,CAAA;YAClE,MAAM,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;YAC/D,MAAM,QAAQ,GAAiB;gBAC7B,CAAC,CACC,MAAM,EACN,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,EAC3E,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAChD;aACF,CAAA;YACD,IAAI,QAAQ,EAAE,CAAC;gBACb,QAAQ,CAAC,IAAI,CACX,CAAC,CACC,MAAM,EACN;oBACE,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;oBAC/B,KAAK,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE;iBAC1C,EACD,GAAG,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CACrD,CACF,CAAA;gBACD,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;oBACtB,QAAQ,CAAC,IAAI,CACX,CAAC,CACC,MAAM,EACN,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,EAAE,EAC9D,KAAK,CAAC,YAAY;wBAChB,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;wBAClD,CAAC,CAAC,IAAI,QAAQ,CAAC,GAAG,GAAG,CACxB,CACF,CAAA;gBACH,CAAC;YACH,CAAC;YACD,OAAO,CAAC,CACN,MAAM,EACN,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,EAC5E,QAAQ,CACT,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Formats a numeric amount as currency using `Intl.NumberFormat`.
3
+ *
4
+ * @param amount - Amount in major units (e.g. dollars, not cents). Pass `amount / 100` if your stored value is in cents.
5
+ * @param currency - ISO 4217 currency code. Defaults to `"USD"`.
6
+ * @param locale - BCP 47 locale tag. Defaults to the runtime default (`undefined`).
7
+ * @returns Formatted currency string.
8
+ */
9
+ export declare function formatCurrency(amount: number, currency?: string, locale?: string): string;
10
+ /**
11
+ * Formats a numeric amount as currency in a compact form (e.g. "$12.3K").
12
+ * Uses `Intl.NumberFormat` with `notation: 'compact'` when supported.
13
+ * @param amount - Amount in major units.
14
+ * @param currency - ISO 4217 currency code. Defaults to `"USD"`.
15
+ * @param locale - BCP 47 locale tag. Defaults to the runtime default (`undefined`).
16
+ * @returns Formatted compact currency string.
17
+ */
18
+ export declare function formatCurrencyCompact(amount: number, currency?: string, locale?: string): string;
19
+ //# sourceMappingURL=formatCurrency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatCurrency.d.ts","sourceRoot":"","sources":["../src/formatCurrency.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAc,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhG;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,MAAc,EACxB,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAqBR"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Formats a numeric amount as currency using `Intl.NumberFormat`.
3
+ *
4
+ * @param amount - Amount in major units (e.g. dollars, not cents). Pass `amount / 100` if your stored value is in cents.
5
+ * @param currency - ISO 4217 currency code. Defaults to `"USD"`.
6
+ * @param locale - BCP 47 locale tag. Defaults to the runtime default (`undefined`).
7
+ * @returns Formatted currency string.
8
+ */
9
+ export function formatCurrency(amount, currency = 'USD', locale) {
10
+ return new Intl.NumberFormat(locale, { style: 'currency', currency }).format(amount);
11
+ }
12
+ /**
13
+ * Formats a numeric amount as currency in a compact form (e.g. "$12.3K").
14
+ * Uses `Intl.NumberFormat` with `notation: 'compact'` when supported.
15
+ * @param amount - Amount in major units.
16
+ * @param currency - ISO 4217 currency code. Defaults to `"USD"`.
17
+ * @param locale - BCP 47 locale tag. Defaults to the runtime default (`undefined`).
18
+ * @returns Formatted compact currency string.
19
+ */
20
+ export function formatCurrencyCompact(amount, currency = 'USD', locale) {
21
+ try {
22
+ return new Intl.NumberFormat(locale, {
23
+ style: 'currency',
24
+ currency,
25
+ notation: 'compact',
26
+ // minimumFractionDigits is NOT redundant next to the maximum. Without it,
27
+ // ICU versions before ~Node 24 pad compact output to the maximum, so a
28
+ // whole amount rendered as "$99.0" / "$0.0" there and "$99" / "$0" on
29
+ // newer runtimes — a visible difference for anyone on Node 22 or an older
30
+ // browser, and a test that passed locally while failing in CI. Pinning the
31
+ // minimum to 0 makes the output identical across ICU versions ("$12.3K" is
32
+ // unaffected either way). Verified on Node 22.23.2 and 25.9.0.
33
+ minimumFractionDigits: 0,
34
+ maximumFractionDigits: 1,
35
+ }).format(amount);
36
+ }
37
+ catch (_error) {
38
+ // `notation: 'compact'` is not supported in all environments (e.g. older Safari / Node).
39
+ // Falling back to the standard formatter is safe and recovers correctly.
40
+ return formatCurrency(amount, currency, locale);
41
+ }
42
+ }
43
+ //# sourceMappingURL=formatCurrency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatCurrency.js","sourceRoot":"","sources":["../src/formatCurrency.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,MAAc,EAAE,WAAmB,KAAK,EAAE,MAAe;IACtF,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AACtF,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,MAAc,EACd,WAAmB,KAAK,EACxB,MAAe;IAEf,IAAI,CAAC;QACH,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;YACnC,KAAK,EAAE,UAAU;YACjB,QAAQ;YACR,QAAQ,EAAE,SAAS;YACnB,0EAA0E;YAC1E,uEAAuE;YACvE,sEAAsE;YACtE,0EAA0E;YAC1E,2EAA2E;YAC3E,2EAA2E;YAC3E,+DAA+D;YAC/D,qBAAqB,EAAE,CAAC;YACxB,qBAAqB,EAAE,CAAC;SACzB,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACnB,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QAChB,yFAAyF;QACzF,yEAAyE;QACzE,OAAO,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;IACjD,CAAC;AACH,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Vue currency display and formatting utilities.
3
+ *
4
+ * Exports:
5
+ * - `formatCurrency(amount, currency?, locale?)` — plain string via `Intl.NumberFormat`.
6
+ * - `formatCurrencyCompact(amount, currency?, locale?)` — compact notation (`$12.3K`).
7
+ * - `<CurrencyDisplay>` — rendered amount with optional strikethrough original price + savings chip.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { defineComponent, h } from 'vue'
12
+ * import { CurrencyDisplay, formatCurrency } from '@molecule/app-currency-display-vue'
13
+ *
14
+ * const Price = defineComponent({
15
+ * setup() {
16
+ * // Basic amount
17
+ * return () => h(CurrencyDisplay, { amount: 49.99, currency: 'USD', size: 'lg' })
18
+ * },
19
+ * })
20
+ *
21
+ * // With original price and savings chip
22
+ * h(CurrencyDisplay, { amount: 29.99, originalAmount: 49.99, currency: 'USD', showSavings: true })
23
+ *
24
+ * // Compact notation: "$29.99K"
25
+ * h(CurrencyDisplay, { amount: 29990, currency: 'USD', compact: true, size: 'xl' })
26
+ *
27
+ * // Plain string utility
28
+ * const label = formatCurrency(1234.56, 'EUR', 'de-DE') // "1.234,56 €"
29
+ * ```
30
+ *
31
+ * @remarks
32
+ * Amounts are in MAJOR units (dollars, not cents) — divide stored cents by
33
+ * 100 first. `showSavings` defaults to true, so a savings chip appears
34
+ * whenever `originalAmount > amount`; pass `showSavings: false` for plain
35
+ * was/now price display. Formatting is `Intl.NumberFormat` (locale-aware,
36
+ * no i18n keys needed); `savingsLabel(saved, pct)` lets you localize the
37
+ * chip text.
38
+ *
39
+ * @module
40
+ */
41
+ export * from './CurrencyDisplay.js';
42
+ export * from './formatCurrency.js';
43
+ export * from './types.js';
44
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Vue currency display and formatting utilities.
3
+ *
4
+ * Exports:
5
+ * - `formatCurrency(amount, currency?, locale?)` — plain string via `Intl.NumberFormat`.
6
+ * - `formatCurrencyCompact(amount, currency?, locale?)` — compact notation (`$12.3K`).
7
+ * - `<CurrencyDisplay>` — rendered amount with optional strikethrough original price + savings chip.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { defineComponent, h } from 'vue'
12
+ * import { CurrencyDisplay, formatCurrency } from '@molecule/app-currency-display-vue'
13
+ *
14
+ * const Price = defineComponent({
15
+ * setup() {
16
+ * // Basic amount
17
+ * return () => h(CurrencyDisplay, { amount: 49.99, currency: 'USD', size: 'lg' })
18
+ * },
19
+ * })
20
+ *
21
+ * // With original price and savings chip
22
+ * h(CurrencyDisplay, { amount: 29.99, originalAmount: 49.99, currency: 'USD', showSavings: true })
23
+ *
24
+ * // Compact notation: "$29.99K"
25
+ * h(CurrencyDisplay, { amount: 29990, currency: 'USD', compact: true, size: 'xl' })
26
+ *
27
+ * // Plain string utility
28
+ * const label = formatCurrency(1234.56, 'EUR', 'de-DE') // "1.234,56 €"
29
+ * ```
30
+ *
31
+ * @remarks
32
+ * Amounts are in MAJOR units (dollars, not cents) — divide stored cents by
33
+ * 100 first. `showSavings` defaults to true, so a savings chip appears
34
+ * whenever `originalAmount > amount`; pass `showSavings: false` for plain
35
+ * was/now price display. Formatting is `Intl.NumberFormat` (locale-aware,
36
+ * no i18n keys needed); `savingsLabel(saved, pct)` lets you localize the
37
+ * chip text.
38
+ *
39
+ * @module
40
+ */
41
+ export * from './CurrencyDisplay.js';
42
+ export * from './formatCurrency.js';
43
+ export * from './types.js';
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Props of the Vue `CurrencyDisplay` — the same props (React names)
3
+ * `@molecule/app-currency-display-react` accepts.
4
+ *
5
+ * @module
6
+ */
7
+ /** Props for {@link CurrencyDisplay}. */
8
+ export interface CurrencyDisplayProps {
9
+ /** Current amount in major units. */
10
+ amount: number;
11
+ /** Optional original amount — rendered strikethrough to show a discount. */
12
+ originalAmount?: number;
13
+ /** ISO 4217 currency code. */
14
+ currency?: string;
15
+ /** Locale override. */
16
+ locale?: string;
17
+ /** Display size. */
18
+ size?: 'sm' | 'md' | 'lg' | 'xl';
19
+ /** Compact notation (`$12.3K`) instead of full. */
20
+ compact?: boolean;
21
+ /** Show a savings chip when `originalAmount > amount`. */
22
+ showSavings?: boolean;
23
+ /** Custom savings label renderer. */
24
+ savingsLabel?: (saved: number, pct: number) => string;
25
+ /** Extra classes. */
26
+ className?: string;
27
+ }
28
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAA;IACd,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oBAAoB;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IAChC,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qCAAqC;IACrC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;IACrD,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Props of the Vue `CurrencyDisplay` — the same props (React names)
3
+ * `@molecule/app-currency-display-react` accepts.
4
+ *
5
+ * @module
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
package/package.json CHANGED
@@ -1,6 +1,65 @@
1
1
  {
2
2
  "name": "@molecule/app-currency-display-vue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1-stage",
4
+ "description": "Currency amount formatting + CurrencyDisplay with optional original price + savings badge",
5
+ "homepage": "https://www.molecule.dev/packages/app-currency-display-vue",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsc",
21
+ "dev": "vue-tsc --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest"
24
+ },
25
+ "keywords": [
26
+ "molecule",
27
+ "currency-display",
28
+ "vue"
29
+ ],
30
+ "author": "Molecule Dev, Inc. (https://molecule.dev)",
31
+ "license": "Apache-2.0",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/molecule-dev/molecule.git",
35
+ "directory": "packages/app/features/currency-display-vue"
36
+ },
37
+ "engines": {
38
+ "node": ">=20"
39
+ },
40
+ "bugs": "https://github.com/molecule-dev/molecule/issues",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "peerDependencies": {
45
+ "@molecule/app-ui": "^1.0.1",
46
+ "@molecule/app-ui-vue": "^1.1.0",
47
+ "@molecule/app-vue": "^3.5.0",
48
+ "vue": "^3.4.0"
49
+ },
50
+ "devDependencies": {
51
+ "@molecule/app-framework-conformance": "0.0.0",
52
+ "@molecule/app-i18n": "1.2.1",
53
+ "@molecule/app-icons": "1.0.4",
54
+ "@molecule/app-ui": "1.3.11",
55
+ "@molecule/app-ui-vue": "1.1.2",
56
+ "@molecule/app-vue": "3.6.0",
57
+ "@types/node": "26.6.5",
58
+ "jsdom": "30.1.3",
59
+ "typescript": "6.0.3",
60
+ "vite": "8.3.5",
61
+ "vitest": "4.1.12",
62
+ "vue": "3.5.44",
63
+ "vue-tsc": "3.3.13"
64
+ }
65
+ }