@mercurjs/vendor 2.1.0-canary.4 → 2.1.0-canary.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/{[id]-RKEN7EEY.js → [id]-KMRB5RAW.js} +3 -3
  2. package/dist/{[id]-2HRWUMSJ.js → [id]-WYIWRY5O.js} +2 -2
  3. package/dist/{add-BVR3LDPH.js → add-RDOKD6CX.js} +2 -2
  4. package/dist/{add-promotions-2DFXTDEJ.js → add-promotions-W57766OG.js} +3 -3
  5. package/dist/{address-RNB2WQPM.js → address-MQS4I2N6.js} +57 -69
  6. package/dist/{chunk-VTHSHOX4.js → chunk-5VBEGZ5W.js} +1 -1
  7. package/dist/{chunk-V4SZIX7Q.js → chunk-6HPF5UZA.js} +1 -1
  8. package/dist/{chunk-QDSNLU6X.js → chunk-FI2RBY7M.js} +1 -1
  9. package/dist/{chunk-HFW7IIO2.js → chunk-I4F7UYZE.js} +1 -1
  10. package/dist/chunk-JWB2HSCJ.js +30 -0
  11. package/dist/{chunk-ZCUUV464.js → chunk-NCQBAHWT.js} +1 -1
  12. package/dist/{chunk-2DUMXTKS.js → chunk-TRKJKAM6.js} +24 -16
  13. package/dist/{chunk-JKKRKFCS.js → chunk-YPSJN3XT.js} +29 -32
  14. package/dist/{create-2BPTTXLB.js → create-V3TFI4BJ.js} +3 -3
  15. package/dist/{edit-U5VL2UQY.js → edit-62WJ7SBJ.js} +26 -8
  16. package/dist/{edit-CZOV6HBW.js → edit-F4F6EQDZ.js} +1 -1
  17. package/dist/{edit-A5ZBINLU.js → edit-JGBH64CC.js} +1 -1
  18. package/dist/index.css +3 -3
  19. package/dist/index.js +21 -21
  20. package/dist/{login-JU7R2RNN.js → login-3U4XGDAD.js} +2 -1
  21. package/dist/{media-TXY3WBR3.js → media-O2GIGGFG.js} +2 -2
  22. package/dist/{onboarding-VF7EQAAA.js → onboarding-7XHOLSKH.js} +54 -4
  23. package/dist/pages/index.js +8 -7
  24. package/dist/{products-Z6MD665K.js → products-T2EMLRXQ.js} +3 -3
  25. package/dist/{promotions-PJABWGCP.js → promotions-ZEH4RHL3.js} +4 -4
  26. package/dist/register-4SX23YPM.js +210 -0
  27. package/dist/{reset-password-4RE5TXQ5.js → reset-password-4LWDUVMH.js} +1 -1
  28. package/dist/{store-HJGETE33.js → store-E4JEK2CQ.js} +15 -33
  29. package/dist/{store-select-XS2APMBI.js → store-select-XPC6NIV5.js} +30 -20
  30. package/package.json +3 -3
  31. package/dist/register-PSBM4NCS.js +0 -222
@@ -7,8 +7,8 @@ import {
7
7
  import {
8
8
  usePromotionTableColumns,
9
9
  usePromotionTableQuery
10
- } from "./chunk-ZCUUV464.js";
11
- import "./chunk-V4SZIX7Q.js";
10
+ } from "./chunk-NCQBAHWT.js";
11
+ import "./chunk-6HPF5UZA.js";
12
12
  import "./chunk-JHIMVLB2.js";
13
13
  import {
14
14
  usePromotionTableFilters
@@ -24,7 +24,7 @@ import {
24
24
  import "./chunk-LYUCDASZ.js";
25
25
  import "./chunk-KAZ5BYTQ.js";
26
26
  import "./chunk-3EF54XFY.js";
27
- import "./chunk-2DUMXTKS.js";
27
+ import "./chunk-TRKJKAM6.js";
28
28
  import {
29
29
  currencies
30
30
  } from "./chunk-IQPN4PZJ.js";
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-BWGPN6XV.js";
7
7
  import {
8
8
  StatusCell
9
- } from "./chunk-V4SZIX7Q.js";
9
+ } from "./chunk-6HPF5UZA.js";
10
10
  import "./chunk-FMFVTERD.js";
11
11
  import "./chunk-DB6ANJBO.js";
12
12
  import {
13
13
  NoRecords
14
14
  } from "./chunk-3EF54XFY.js";
15
- import "./chunk-2DUMXTKS.js";
15
+ import "./chunk-TRKJKAM6.js";
16
16
  import {
17
17
  TwoColumnPage
18
18
  } from "./chunk-RM5RSDYP.js";
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-I5K5USJM.js";
4
4
  import {
5
5
  ProductCreateOptionSchema
6
- } from "./chunk-VTHSHOX4.js";
6
+ } from "./chunk-5VBEGZ5W.js";
7
7
  import "./chunk-IZ5RG5XI.js";
8
8
  import "./chunk-SMQT3ZNO.js";
9
9
  import "./chunk-DLNNTQRY.js";
10
10
  import "./chunk-NCYTM57J.js";
11
11
  import "./chunk-YVCBMOJG.js";
12
12
  import "./chunk-VBRTC2VU.js";
13
- import "./chunk-2DUMXTKS.js";
13
+ import "./chunk-TRKJKAM6.js";
14
14
  import "./chunk-TKGWSUEI.js";
15
15
  import {
16
16
  KeyboundForm
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-ZCUUV464.js";
5
- import "./chunk-V4SZIX7Q.js";
4
+ } from "./chunk-NCQBAHWT.js";
5
+ import "./chunk-6HPF5UZA.js";
6
6
  import "./chunk-JHIMVLB2.js";
7
7
  import {
8
8
  usePromotionTableFilters
@@ -18,7 +18,7 @@ import {
18
18
  import "./chunk-LYUCDASZ.js";
19
19
  import "./chunk-KAZ5BYTQ.js";
20
20
  import "./chunk-3EF54XFY.js";
21
- import "./chunk-2DUMXTKS.js";
21
+ import "./chunk-TRKJKAM6.js";
22
22
  import "./chunk-TKGWSUEI.js";
23
23
  import {
24
24
  KeyboundForm
@@ -55,14 +55,13 @@ import { useTranslation } from "react-i18next";
55
55
  import * as zod from "zod";
56
56
  import { jsx, jsxs } from "react/jsx-runtime";
57
57
  var StoreAddressSchema = zod.object({
58
- first_name: zod.string().min(1),
59
- last_name: zod.string().min(1),
58
+ name: zod.string().min(1),
60
59
  address_1: zod.string().optional().or(zod.literal("")),
60
+ address_2: zod.string().optional().or(zod.literal("")),
61
61
  city: zod.string().optional().or(zod.literal("")),
62
62
  province: zod.string().optional().or(zod.literal("")),
63
- postal_code: zod.string().min(1),
64
- country_code: zod.string().min(2).max(2),
65
- phone: zod.string().min(1)
63
+ postal_code: zod.string().optional().or(zod.literal("")),
64
+ country_code: zod.string().min(2).max(2)
66
65
  });
67
66
  var StoreAddressForm = ({ seller }) => {
68
67
  const { t } = useTranslation();
@@ -70,14 +69,13 @@ var StoreAddressForm = ({ seller }) => {
70
69
  const address = seller.address;
71
70
  const form = useForm({
72
71
  defaultValues: {
73
- first_name: address?.first_name ?? "",
74
- last_name: address?.last_name ?? "",
72
+ name: address?.name ?? "",
75
73
  address_1: address?.address_1 ?? "",
74
+ address_2: address?.address_2 ?? "",
76
75
  city: address?.city ?? "",
77
76
  province: address?.province ?? "",
78
77
  postal_code: address?.postal_code ?? "",
79
- country_code: address?.country_code ?? "",
80
- phone: address?.phone ?? ""
78
+ country_code: address?.country_code ?? ""
81
79
  },
82
80
  resolver: zodResolver(StoreAddressSchema)
83
81
  });
@@ -85,14 +83,13 @@ var StoreAddressForm = ({ seller }) => {
85
83
  const handleSubmit = form.handleSubmit(async (values) => {
86
84
  await mutateAsync(
87
85
  {
88
- first_name: values.first_name,
89
- last_name: values.last_name,
86
+ name: values.name,
90
87
  address_1: values.address_1 || null,
88
+ address_2: values.address_2 || null,
91
89
  city: values.city || null,
92
90
  province: values.province || null,
93
- postal_code: values.postal_code,
94
- country_code: values.country_code,
95
- phone: values.phone
91
+ postal_code: values.postal_code || null,
92
+ country_code: values.country_code
96
93
  },
97
94
  {
98
95
  onSuccess: () => {
@@ -114,32 +111,37 @@ var StoreAddressForm = ({ seller }) => {
114
111
  className: "flex flex-1 flex-col overflow-hidden",
115
112
  children: [
116
113
  /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-col gap-y-4 overflow-y-auto", children: [
117
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
118
- /* @__PURE__ */ jsx(
119
- Form.Field,
120
- {
121
- control: form.control,
122
- name: "first_name",
123
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
124
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.firstName") }),
125
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
126
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
127
- ] })
128
- }
129
- ),
130
- /* @__PURE__ */ jsx(
131
- Form.Field,
132
- {
133
- control: form.control,
134
- name: "last_name",
135
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
136
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.lastName") }),
137
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
138
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
139
- ] })
140
- }
141
- )
142
- ] }),
114
+ /* @__PURE__ */ jsx(
115
+ Form.Field,
116
+ {
117
+ control: form.control,
118
+ name: "name",
119
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
120
+ /* @__PURE__ */ jsx(Form.Label, { children: t("store.address.nameLabel") }),
121
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
122
+ Input,
123
+ {
124
+ size: "small",
125
+ placeholder: t("store.address.namePlaceholder"),
126
+ ...field
127
+ }
128
+ ) }),
129
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
130
+ ] })
131
+ }
132
+ ),
133
+ /* @__PURE__ */ jsx(
134
+ Form.Field,
135
+ {
136
+ control: form.control,
137
+ name: "country_code",
138
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
139
+ /* @__PURE__ */ jsx(Form.Label, { children: t("fields.country") }),
140
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(CountrySelect, { ...field }) }),
141
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
142
+ ] })
143
+ }
144
+ ),
143
145
  /* @__PURE__ */ jsx(
144
146
  Form.Field,
145
147
  {
@@ -152,6 +154,18 @@ var StoreAddressForm = ({ seller }) => {
152
154
  ] })
153
155
  }
154
156
  ),
157
+ /* @__PURE__ */ jsx(
158
+ Form.Field,
159
+ {
160
+ control: form.control,
161
+ name: "address_2",
162
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
163
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.address2") }),
164
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
165
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
166
+ ] })
167
+ }
168
+ ),
155
169
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
156
170
  /* @__PURE__ */ jsx(
157
171
  Form.Field,
@@ -165,52 +179,26 @@ var StoreAddressForm = ({ seller }) => {
165
179
  ] })
166
180
  }
167
181
  ),
168
- /* @__PURE__ */ jsx(
169
- Form.Field,
170
- {
171
- control: form.control,
172
- name: "province",
173
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
174
- /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.state") }),
175
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
176
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
177
- ] })
178
- }
179
- )
180
- ] }),
181
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
182
182
  /* @__PURE__ */ jsx(
183
183
  Form.Field,
184
184
  {
185
185
  control: form.control,
186
186
  name: "postal_code",
187
187
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
188
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.postalCode") }),
188
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.postalCode") }),
189
189
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
190
190
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
191
191
  ] })
192
192
  }
193
- ),
194
- /* @__PURE__ */ jsx(
195
- Form.Field,
196
- {
197
- control: form.control,
198
- name: "country_code",
199
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
200
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.country") }),
201
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(CountrySelect, { ...field }) }),
202
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
203
- ] })
204
- }
205
193
  )
206
194
  ] }),
207
195
  /* @__PURE__ */ jsx(
208
196
  Form.Field,
209
197
  {
210
198
  control: form.control,
211
- name: "phone",
199
+ name: "province",
212
200
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
213
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.phone") }),
201
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.state") }),
214
202
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
215
203
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
216
204
  ] })
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-IZ5RG5XI.js";
5
5
  import {
6
6
  i18n
7
- } from "./chunk-2DUMXTKS.js";
7
+ } from "./chunk-TRKJKAM6.js";
8
8
 
9
9
  // src/pages/products/create/constants.ts
10
10
  import { z } from "zod";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-DB6ANJBO.js";
4
4
  import {
5
5
  i18n
6
- } from "./chunk-2DUMXTKS.js";
6
+ } from "./chunk-TRKJKAM6.js";
7
7
 
8
8
  // src/lib/promotions.ts
9
9
  var promotionStatusMap = {
@@ -26,7 +26,7 @@ import {
26
26
  PRODUCT_CREATE_FORM_DEFAULTS,
27
27
  ProductCreateSchema,
28
28
  decorateVariantsWithDefaultValues
29
- } from "./chunk-VTHSHOX4.js";
29
+ } from "./chunk-5VBEGZ5W.js";
30
30
  import {
31
31
  NumericInput
32
32
  } from "./chunk-DLNNTQRY.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-ZCUUV464.js";
4
+ } from "./chunk-NCQBAHWT.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
@@ -0,0 +1,30 @@
1
+ // src/components/layout/auth-layout/auth-layout.tsx
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ var AuthLayout = ({ children }) => {
4
+ return /* @__PURE__ */ jsxs("div", { className: "flex h-dvh w-dvw overflow-hidden", children: [
5
+ /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-base border-ui-border-base flex h-full w-full flex-col overflow-y-auto border-r lg:w-[584px] lg:shrink-0", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col p-8 lg:px-14 lg:py-12", children }) }),
6
+ /* @__PURE__ */ jsx(
7
+ "div",
8
+ {
9
+ className: "relative hidden flex-1 items-center justify-center overflow-hidden lg:flex",
10
+ style: {
11
+ backgroundImage: "url(/onboarding/bg.svg)",
12
+ backgroundSize: "cover",
13
+ backgroundPosition: "center"
14
+ },
15
+ children: /* @__PURE__ */ jsx(
16
+ "img",
17
+ {
18
+ src: "/onboarding/0.png",
19
+ alt: "",
20
+ className: "max-h-[75%] w-[75%] object-contain"
21
+ }
22
+ )
23
+ }
24
+ )
25
+ ] });
26
+ };
27
+
28
+ export {
29
+ AuthLayout
30
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StatusCell
3
- } from "./chunk-V4SZIX7Q.js";
3
+ } from "./chunk-6HPF5UZA.js";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -11458,6 +11458,7 @@ var en_default = {
11458
11458
  domain: "Seller",
11459
11459
  manageYourStoresDetails: "Manage your seller's details",
11460
11460
  editStore: "Edit seller",
11461
+ handleTooltip: "The handle becomes the URL slug for your store. Leave empty to auto-generate from the name.",
11461
11462
  profileCompletion: {
11462
11463
  title: "Complete store profile",
11463
11464
  steps: {
@@ -11518,6 +11519,9 @@ var en_default = {
11518
11519
  },
11519
11520
  address: {
11520
11521
  header: "Address",
11522
+ defaultName: "Headquarters",
11523
+ nameLabel: "Name",
11524
+ namePlaceholder: "Headquarters",
11521
11525
  empty: {
11522
11526
  title: "No address",
11523
11527
  message: "There are no records to show"
@@ -11561,7 +11565,7 @@ var en_default = {
11561
11565
  successToast: "Professional details updated"
11562
11566
  },
11563
11567
  fields: {
11564
- corporateName: "Corporate name",
11568
+ corporateName: "Company",
11565
11569
  registrationNumber: "Registration number",
11566
11570
  taxId: "Tax ID"
11567
11571
  }
@@ -11932,26 +11936,27 @@ var en_default = {
11932
11936
  }
11933
11937
  },
11934
11938
  storeSelect: {
11935
- title: "Choose a store",
11936
- subtitle: "These are all your available stores",
11937
- pendingApproval: "Pending approval",
11939
+ title: "Select a store",
11940
+ subtitle: "Choose a store to continue.",
11941
+ pendingApproval: "Pending",
11938
11942
  addNewStore: "Add new store",
11939
11943
  status: {
11940
- open: "Open",
11941
- pendingApproval: "Pending approval",
11942
- suspended: "Suspended",
11944
+ open: "Active",
11945
+ pendingApproval: "Pending",
11946
+ suspended: "Inactive",
11943
11947
  terminated: "Terminated"
11944
11948
  }
11945
11949
  },
11946
11950
  login: {
11947
- forgotPassword: "Forgot password? - <0>Reset</0>",
11948
- title: "Welcome to {{name}}",
11949
- hint: "Sign in to access the vendor hub",
11950
- notSellerYet: "Not a seller yet? - <0>Create an account</0>"
11951
+ forgotPassword: "Forgot password? <0>Reset</0>",
11952
+ title: "Welcome back!",
11953
+ hint: "Log in to your vendor account.",
11954
+ submit: "Log in",
11955
+ notSellerYet: "Not a seller yet? <0>Create an account</0>"
11951
11956
  },
11952
11957
  register: {
11953
- title: "Start selling on {{name}}",
11954
- hint: "Create account to get started",
11958
+ title: "Create your vendor account",
11959
+ hint: "Start selling on {{name}}.",
11955
11960
  companyName: "Company name",
11956
11961
  confirmPassword: "Confirm password",
11957
11962
  signUp: "Sign up",
@@ -11996,7 +12001,7 @@ var en_default = {
11996
12001
  professionalSubtitle: "Professional seller information",
11997
12002
  isProfessional: "Professional seller",
11998
12003
  isProfessionalDescription: "Register as a business entity",
11999
- corporateName: "Corporate name",
12004
+ corporateName: "Company",
12000
12005
  registrationNumber: "Registration number",
12001
12006
  taxId: "Tax ID",
12002
12007
  completeSetup: "Complete setup"
@@ -12020,6 +12025,7 @@ var en_default = {
12020
12025
  name: "Name",
12021
12026
  email: "Email",
12022
12027
  handle: "Handle",
12028
+ handleTooltip: "The handle becomes the URL slug for your store. Leave empty to auto-generate from the name.",
12023
12029
  handlePlaceholder: "my-store",
12024
12030
  currency: "Currency",
12025
12031
  selectCurrency: "Select",
@@ -12028,6 +12034,8 @@ var en_default = {
12028
12034
  skip: "Skip",
12029
12035
  address: {
12030
12036
  title: "Enter your address",
12037
+ name: "Name",
12038
+ namePlaceholder: "Headquarters",
12031
12039
  address: "Address",
12032
12040
  address2: "Apartment, suite, etc.",
12033
12041
  postalCode: "Postal Code",
@@ -12038,7 +12046,7 @@ var en_default = {
12038
12046
  company: {
12039
12047
  title: "Enter your company details",
12040
12048
  subtitle: "Professional seller information",
12041
- corporateName: "Corporate name",
12049
+ corporateName: "Company",
12042
12050
  registrationNumber: "Registration number",
12043
12051
  taxId: "Tax ID"
12044
12052
  },
@@ -12341,7 +12349,7 @@ var en_default = {
12341
12349
  company: "Company",
12342
12350
  phone: "Phone",
12343
12351
  metadata: "Metadata",
12344
- selectCountry: "Select country",
12352
+ selectCountry: "Select",
12345
12353
  products: "Products",
12346
12354
  variants: "Variants",
12347
12355
  orders: "Orders",
@@ -1,3 +1,6 @@
1
+ import {
2
+ AuthLayout
3
+ } from "./chunk-JWB2HSCJ.js";
1
4
  import {
2
5
  AvatarBox
3
6
  } from "./chunk-CP5IL4P6.js";
@@ -30,9 +33,9 @@ var LoginLogo = () => {
30
33
  };
31
34
  var LoginHeader = () => {
32
35
  const { t } = useTranslation();
33
- return /* @__PURE__ */ jsxs("div", { className: "mb-4 flex flex-col items-center", children: [
34
- /* @__PURE__ */ jsx(Heading, { children: t("login.title", { name: config.name ?? "Mercur" }) }),
35
- /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t("login.hint") })
36
+ return /* @__PURE__ */ jsxs("div", { className: "mb-6 flex flex-col", children: [
37
+ /* @__PURE__ */ jsx(Heading, { children: t("login.title") }),
38
+ /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("login.hint") })
36
39
  ] });
37
40
  };
38
41
  var LoginForm = () => {
@@ -85,24 +88,17 @@ var LoginForm = () => {
85
88
  });
86
89
  const serverError = form.formState.errors?.root?.serverError?.message || reasonMessage;
87
90
  const validationError = form.formState.errors.email?.message || form.formState.errors.password?.message;
88
- return /* @__PURE__ */ jsx("div", { className: "flex w-full flex-col gap-y-3", children: /* @__PURE__ */ jsx(Form, { ...form, children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "flex w-full flex-col gap-y-6", children: [
89
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-2", children: [
91
+ return /* @__PURE__ */ jsx(Form, { ...form, children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "flex w-full flex-col gap-y-6", children: [
92
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-4", children: [
90
93
  /* @__PURE__ */ jsx(
91
94
  Form.Field,
92
95
  {
93
96
  control: form.control,
94
97
  name: "email",
95
- render: ({ field }) => {
96
- return /* @__PURE__ */ jsx(Form.Item, { children: /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
97
- Input,
98
- {
99
- autoComplete: "email",
100
- ...field,
101
- className: "bg-ui-bg-field-component",
102
- placeholder: t("fields.email")
103
- }
104
- ) }) });
105
- }
98
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
99
+ /* @__PURE__ */ jsx(Form.Label, { children: t("fields.email") }),
100
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { autoComplete: "email", ...field }) })
101
+ ] })
106
102
  }
107
103
  ),
108
104
  /* @__PURE__ */ jsx(
@@ -110,21 +106,20 @@ var LoginForm = () => {
110
106
  {
111
107
  control: form.control,
112
108
  name: "password",
113
- render: ({ field }) => {
114
- return /* @__PURE__ */ jsx(Form.Item, { children: /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
109
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
110
+ /* @__PURE__ */ jsx(Form.Label, { children: t("fields.password") }),
111
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
115
112
  Input,
116
113
  {
117
114
  type: "password",
118
115
  autoComplete: "current-password",
119
- ...field,
120
- className: "bg-ui-bg-field-component",
121
- placeholder: t("fields.password")
116
+ ...field
122
117
  }
123
- ) }) });
124
- }
118
+ ) })
119
+ ] })
125
120
  }
126
121
  ),
127
- validationError && /* @__PURE__ */ jsx("div", { className: "mt-6 text-center", children: /* @__PURE__ */ jsx(Hint, { className: "inline-flex", variant: "error", children: validationError }) }),
122
+ validationError && /* @__PURE__ */ jsx(Hint, { className: "inline-flex", variant: "error", children: validationError }),
128
123
  serverError && /* @__PURE__ */ jsx(
129
124
  Alert,
130
125
  {
@@ -135,12 +130,12 @@ var LoginForm = () => {
135
130
  }
136
131
  )
137
132
  ] }),
138
- /* @__PURE__ */ jsx(Button, { className: "w-full", type: "submit", isLoading: isPending, children: "Sign In" })
139
- ] }) }) });
133
+ /* @__PURE__ */ jsx(Button, { className: "w-full", type: "submit", isLoading: isPending, children: t("login.submit") })
134
+ ] }) });
140
135
  };
141
136
  var LoginFooter = () => {
142
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
143
- /* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted txt-small my-6", children: /* @__PURE__ */ jsx(
137
+ return /* @__PURE__ */ jsxs("div", { className: "mt-auto flex flex-col gap-y-2", children: [
138
+ /* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted txt-small", children: /* @__PURE__ */ jsx(
144
139
  Trans,
145
140
  {
146
141
  i18nKey: "login.forgotPassword",
@@ -175,12 +170,14 @@ var LoginFooter = () => {
175
170
  ] });
176
171
  };
177
172
  var Root = ({ children }) => {
178
- return /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-subtle flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "m-4 flex w-full max-w-[280px] flex-col items-center", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
173
+ return /* @__PURE__ */ jsx(AuthLayout, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
179
174
  /* @__PURE__ */ jsx(LoginLogo, {}),
180
- /* @__PURE__ */ jsx(LoginHeader, {}),
181
- /* @__PURE__ */ jsx(LoginForm, {}),
175
+ /* @__PURE__ */ jsxs("div", { className: "mt-8", children: [
176
+ /* @__PURE__ */ jsx(LoginHeader, {}),
177
+ /* @__PURE__ */ jsx(LoginForm, {})
178
+ ] }),
182
179
  /* @__PURE__ */ jsx(LoginFooter, {})
183
- ] }) }) });
180
+ ] }) });
184
181
  };
185
182
  var LoginPage = Object.assign(Root, {
186
183
  Logo: LoginLogo,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ProductCreatePage
3
- } from "./chunk-QDSNLU6X.js";
3
+ } from "./chunk-FI2RBY7M.js";
4
4
  import "./chunk-TLE6YHGH.js";
5
5
  import "./chunk-WFE6CT6M.js";
6
6
  import "./chunk-TZTKHOEK.js";
@@ -17,7 +17,7 @@ import {
17
17
  ProductCreateBaseSchema,
18
18
  ProductCreateOptionSchema,
19
19
  ProductCreateSchema
20
- } from "./chunk-VTHSHOX4.js";
20
+ } from "./chunk-5VBEGZ5W.js";
21
21
  import "./chunk-IZ5RG5XI.js";
22
22
  import "./chunk-SMQT3ZNO.js";
23
23
  import "./chunk-DLNNTQRY.js";
@@ -25,7 +25,7 @@ import "./chunk-NCYTM57J.js";
25
25
  import "./chunk-YVCBMOJG.js";
26
26
  import "./chunk-VBRTC2VU.js";
27
27
  import "./chunk-LPOAVK6Y.js";
28
- import "./chunk-2DUMXTKS.js";
28
+ import "./chunk-TRKJKAM6.js";
29
29
  import "./chunk-5IWBNPZX.js";
30
30
  import "./chunk-IQPN4PZJ.js";
31
31
  import "./chunk-TKGWSUEI.js";