@lunejs/admin-ui 0.1.5 → 0.2.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 (115) hide show
  1. package/dist/_virtual/index10.js +5 -2
  2. package/dist/_virtual/index11.js +4 -0
  3. package/dist/_virtual/index6.js +3 -3
  4. package/dist/_virtual/index8.js +3 -5
  5. package/dist/lib/api/codegen/graphql.d.ts +1 -0
  6. package/dist/lib/api/codegen/graphql.js +8 -8
  7. package/dist/lib/collections/components/collection-details/cards/general-card.js +20 -14
  8. package/dist/lib/custom-fields/components/details/is-list/custom-field-is-list.js +6 -4
  9. package/dist/lib/custom-fields/components/details/use-form/form-schema.d.ts +1 -0
  10. package/dist/lib/custom-fields/components/details/use-form/form-schema.js +4 -3
  11. package/dist/lib/custom-fields/components/fields/color.js +3 -3
  12. package/dist/lib/custom-fields/components/fields/custom-field.js +44 -36
  13. package/dist/lib/custom-fields/components/fields/rich-text.d.ts +8 -0
  14. package/dist/lib/custom-fields/components/fields/rich-text.js +17 -0
  15. package/dist/lib/custom-fields/components/fields/shared/primitive.d.ts +2 -1
  16. package/dist/lib/custom-fields/components/fields/shared/primitive.js +67 -61
  17. package/dist/lib/custom-fields/utils/custom-field.utils.js +63 -51
  18. package/dist/lib/dashboard/pages/dashboard-page.js +5 -5
  19. package/dist/lib/product/components/product-details/cards/general-product-card.js +18 -12
  20. package/dist/lib/translate/components/form/translate-form-row-data.d.ts +2 -1
  21. package/dist/lib/translate/components/form/translate-form-row-data.js +51 -19
  22. package/dist/lib/translate/components/form/translate-rich-text.d.ts +8 -0
  23. package/dist/lib/translate/components/form/translate-rich-text.js +65 -0
  24. package/dist/lib/translate/components/product-form/custom-fields/translate-product-custom-fields.js +95 -63
  25. package/dist/lib/translate/components/product-form/translate-product-form.js +19 -18
  26. package/dist/node_modules/@tiptap/core/dist/index.js +3566 -0
  27. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +17 -0
  28. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +80 -0
  29. package/dist/node_modules/@tiptap/extension-document/dist/index.js +13 -0
  30. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +64 -0
  31. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +78 -0
  32. package/dist/node_modules/@tiptap/extension-link/dist/index.js +305 -0
  33. package/dist/node_modules/@tiptap/extension-list/dist/index.js +713 -0
  34. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +42 -0
  35. package/dist/node_modules/@tiptap/extension-table/dist/index.js +380 -0
  36. package/dist/node_modules/@tiptap/extension-text/dist/index.js +14 -0
  37. package/dist/node_modules/@tiptap/extension-text-style/dist/index.js +240 -0
  38. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +66 -0
  39. package/dist/node_modules/@tiptap/extensions/dist/index.js +288 -0
  40. package/dist/node_modules/@tiptap/react/dist/index.js +482 -0
  41. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +1 -1
  42. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +1 -1
  43. package/dist/node_modules/eventemitter3/index.js +1 -1
  44. package/dist/node_modules/eventemitter3/index2.js +1 -1
  45. package/dist/node_modules/fast-equals/dist/es/index.js +324 -0
  46. package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
  47. package/dist/node_modules/lucide-react/dist/esm/icons/baseline.js +10 -0
  48. package/dist/node_modules/lucide-react/dist/esm/icons/between-horizontal-end.js +10 -0
  49. package/dist/node_modules/lucide-react/dist/esm/icons/between-vertical-end.js +10 -0
  50. package/dist/node_modules/lucide-react/dist/esm/icons/bold.js +11 -0
  51. package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-plus.js +16 -0
  52. package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-x.js +16 -0
  53. package/dist/node_modules/lucide-react/dist/esm/icons/italic.js +10 -0
  54. package/dist/node_modules/lucide-react/dist/esm/icons/layout-list.js +13 -0
  55. package/dist/node_modules/lucide-react/dist/esm/icons/link.js +9 -0
  56. package/dist/node_modules/lucide-react/dist/esm/icons/list-ordered.js +13 -0
  57. package/dist/node_modules/lucide-react/dist/esm/icons/table-columns-split.js +18 -0
  58. package/dist/node_modules/lucide-react/dist/esm/icons/table-rows-split.js +18 -0
  59. package/dist/node_modules/lucide-react/dist/esm/icons/table.js +11 -0
  60. package/dist/node_modules/lucide-react/dist/esm/icons/underline.js +9 -0
  61. package/dist/node_modules/orderedmap/dist/index.js +103 -0
  62. package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
  63. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
  64. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
  65. package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
  66. package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
  67. package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
  68. package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
  69. package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
  70. package/dist/node_modules/prosemirror-tables/dist/index.js +1446 -0
  71. package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
  72. package/dist/node_modules/prosemirror-view/dist/index.js +3772 -0
  73. package/dist/node_modules/react-is/index.js +1 -1
  74. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  75. package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
  76. package/dist/node_modules/rope-sequence/dist/index.js +100 -0
  77. package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
  78. package/dist/node_modules/w3c-keyname/index.js +93 -0
  79. package/dist/packages/lune-ui/dist/_virtual/index3.js +2 -5
  80. package/dist/packages/lune-ui/dist/_virtual/index6.js +5 -2
  81. package/dist/packages/lune-ui/dist/components/popover.js +15 -11
  82. package/dist/packages/lune-ui/dist/components/select.js +6 -6
  83. package/dist/packages/lune-ui/dist/form/form-date-picker.js +2 -2
  84. package/dist/packages/lune-ui/dist/form/form.js +4 -4
  85. package/dist/packages/lune-ui/dist/node_modules/@radix-ui/react-popover/dist/index.js +39 -38
  86. package/dist/packages/lune-ui/dist/node_modules/prop-types/index.js +1 -1
  87. package/dist/packages/lune-ui/dist/packages/lune-ui/node_modules/recharts/es6/util/Events.js +1 -1
  88. package/dist/shared/components/color-picker/color-picker.d.ts +2 -1
  89. package/dist/shared/components/color-picker/color-picker.js +11 -11
  90. package/dist/shared/components/data-table/data-table-filter.js +4 -4
  91. package/dist/shared/components/rich-editor/rich-editor.d.ts +8 -0
  92. package/dist/shared/components/rich-editor/rich-editor.js +97 -0
  93. package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.d.ts +1 -0
  94. package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.js +66 -0
  95. package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.d.ts +1 -0
  96. package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.js +66 -0
  97. package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.d.ts +1 -0
  98. package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.js +115 -0
  99. package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.d.ts +1 -0
  100. package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.js +66 -0
  101. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.d.ts +2 -0
  102. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.js +103 -0
  103. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.d.ts +1 -0
  104. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.js +64 -0
  105. package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.d.ts +1 -0
  106. package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.js +66 -0
  107. package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.d.ts +1 -0
  108. package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.js +108 -0
  109. package/dist/shared/components/rich-editor/toolbar/toolbar.d.ts +1 -0
  110. package/dist/shared/components/rich-editor/toolbar/toolbar.js +64 -0
  111. package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.d.ts +1 -0
  112. package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.js +66 -0
  113. package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.d.ts +1 -0
  114. package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.js +66 -0
  115. package/package.json +6 -1
@@ -1,8 +1,8 @@
1
- import { jsx as i, Fragment as b } from "react/jsx-runtime";
2
- import { isLast as e, isFirst as f } from "../../../../../packages/lune-common/dist/index.js";
1
+ import { jsx as s, Fragment as V, jsxs as b } from "react/jsx-runtime";
2
+ import { isLast as r, isFirst as T } from "../../../../../packages/lune-common/dist/index.js";
3
3
  import "react";
4
4
  import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-accordion/dist/index.js";
5
- import { cn as a } from "../../../../../packages/lune-ui/dist/lib/utils.js";
5
+ import { cn as l } from "../../../../../packages/lune-ui/dist/lib/utils.js";
6
6
  import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js";
7
7
  import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-avatar/dist/index.js";
8
8
  import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-separator/dist/index.js";
@@ -32,88 +32,120 @@ import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-toggle
32
32
  import "../../../../../packages/lune-ui/dist/components/toggle-group.js";
33
33
  import "../../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-tooltip/dist/index.js";
34
34
  import "../../../../../packages/lune-ui/dist/form/form.js";
35
- import { useWatch as h } from "../../../../../node_modules/react-hook-form/dist/index.esm.js";
36
- import { CustomFieldType as V } from "../../../../api/codegen/graphql.js";
37
- import { isTranslatable as T } from "../../../../custom-fields/utils/custom-field.utils.js";
38
- import { TranslateFormRowData as u } from "../../form/translate-form-row-data.js";
39
- import { TranslateInput as c } from "../../form/translate-input.js";
40
- import { TranslateTextarea as v } from "../../form/translate-textarea.js";
41
- import { useTranslateProductFormContext as C } from "../use-form/use-translate-product-form.js";
42
- const pt = ({ product: d }) => {
43
- const o = C(), n = h({ defaultValue: o.formState.defaultValues }), s = d.customFieldEntries.filter(
44
- (t) => T(t.definition.type)
35
+ import { useWatch as f } from "../../../../../node_modules/react-hook-form/dist/index.esm.js";
36
+ import { CustomFieldType as m } from "../../../../api/codegen/graphql.js";
37
+ import { isTranslatable as v } from "../../../../custom-fields/utils/custom-field.utils.js";
38
+ import { TranslateFormRowData as d } from "../../form/translate-form-row-data.js";
39
+ import { TranslateInput as p } from "../../form/translate-input.js";
40
+ import { TranslateRichText as y } from "../../form/translate-rich-text.js";
41
+ import { TranslateTextarea as C } from "../../form/translate-textarea.js";
42
+ import { useTranslateProductFormContext as E } from "../use-form/use-translate-product-form.js";
43
+ const dt = ({ product: g }) => {
44
+ const i = E(), a = f({ defaultValue: i.formState.defaultValues }), n = g.customFieldEntries.filter(
45
+ (t) => v(t.definition.type)
45
46
  );
46
- return /* @__PURE__ */ i(b, { children: s.map(
47
- (t, l) => t.definition.isList ? t.value.map((m, r) => /* @__PURE__ */ i(
48
- u,
47
+ return /* @__PURE__ */ s(V, { children: n.map(
48
+ (t, u) => t.definition.isList ? t.value.map((o, e) => /* @__PURE__ */ s(
49
+ d,
49
50
  {
50
- field: f(r) ? t.definition.name : "",
51
- reference: m,
51
+ field: T(e) ? t.definition.name : "",
52
+ reference: o,
52
53
  className: {
53
- row: a(
54
- !e(r, t.value) && "border-0!",
55
- e(r, t.value) && e(l, s) && "border-0!"
54
+ row: l(
55
+ !r(e, t.value) && "border-0!",
56
+ r(e, t.value) && r(u, n) && "border-0!"
56
57
  ),
57
- referenceCell: a(!e(r, t.value) && "border-b")
58
+ referenceCell: l(!r(e, t.value) && "border-b")
58
59
  },
59
- children: /* @__PURE__ */ i(
60
- c,
60
+ children: /* @__PURE__ */ s(
61
+ p,
61
62
  {
62
- defaultValue: n.customFields?.[t.id][r],
63
- className: a(
64
- !e(r, t.value) && "border-b",
65
- e(r, t.value) && e(l, s) && "ring-0! lg:[&:has(input:focus-visible)]:ring-primary/50! lg:[&:has(input:focus-visible)]:ring-[1px]!"
63
+ defaultValue: a.customFields?.[t.id][e],
64
+ className: l(
65
+ !r(e, t.value) && "border-b",
66
+ r(e, t.value) && r(u, n) && "ring-0! lg:[&:has(input:focus-visible)]:ring-primary/50! lg:[&:has(input:focus-visible)]:ring-[1px]!"
66
67
  ),
67
68
  label: "English",
68
- onChange: (g) => {
69
- const F = g.target.value, p = o.getValues("customFields")[t.id];
70
- p[r] = F, o.setValue("customFields", {
71
- ...o.getValues("customFields"),
72
- [t.id]: p
69
+ onChange: (F) => {
70
+ const h = F.target.value, c = i.getValues("customFields")[t.id];
71
+ c[e] = h, i.setValue("customFields", {
72
+ ...i.getValues("customFields"),
73
+ [t.id]: c
73
74
  });
74
75
  }
75
76
  }
76
77
  )
77
78
  },
78
- t.definition.id + r
79
- )) : /* @__PURE__ */ i(
80
- u,
79
+ t.definition.id + e
80
+ )) : /* @__PURE__ */ b(
81
+ d,
81
82
  {
83
+ richText: t.definition.type === m.RichText,
82
84
  field: t.definition.name,
83
85
  reference: t.value,
84
- className: a(e(l, s) && "border-b-0"),
85
- children: t.definition.type === V.SingleLineText ? /* @__PURE__ */ i(
86
- c,
87
- {
88
- defaultValue: n.customFields?.[t.id],
89
- label: "English",
90
- onChange: (m) => {
91
- const r = m.target.value;
92
- o.setValue("customFields", {
93
- ...o.getValues("customFields"),
94
- [t.id]: r
95
- });
86
+ className: l(r(u, n) && "border-b-0"),
87
+ children: [
88
+ t.definition.type === m.SingleLineText && /* @__PURE__ */ s(
89
+ p,
90
+ {
91
+ defaultValue: a.customFields?.[t.id],
92
+ label: "English",
93
+ onChange: (o) => {
94
+ const e = o.target.value;
95
+ i.setValue("customFields", {
96
+ ...i.getValues("customFields"),
97
+ [t.id]: e
98
+ });
99
+ }
96
100
  }
97
- }
98
- ) : /* @__PURE__ */ i(
99
- v,
100
- {
101
- defaultValue: n.customFields?.[t.id],
102
- label: "English",
103
- onChange: (m) => {
104
- const r = m.target.value;
105
- o.setValue("customFields", {
106
- ...o.getValues("customFields"),
107
- [t.id]: r
108
- });
101
+ ),
102
+ t.definition.type === m.MultiLineText && /* @__PURE__ */ s(
103
+ C,
104
+ {
105
+ defaultValue: a.customFields?.[t.id],
106
+ label: "English",
107
+ onChange: (o) => {
108
+ const e = o.target.value;
109
+ i.setValue("customFields", {
110
+ ...i.getValues("customFields"),
111
+ [t.id]: e
112
+ });
113
+ }
109
114
  }
110
- }
111
- )
115
+ ),
116
+ t.definition.type === m.RichText && /* @__PURE__ */ s(
117
+ y,
118
+ {
119
+ defaultValue: a.customFields?.[t.id],
120
+ label: "English",
121
+ onChange: (o) => {
122
+ i.setValue("customFields", {
123
+ ...i.getValues("customFields"),
124
+ [t.id]: o
125
+ });
126
+ }
127
+ }
128
+ ),
129
+ t.definition.type === m.Url && /* @__PURE__ */ s(
130
+ p,
131
+ {
132
+ defaultValue: a.customFields?.[t.id],
133
+ label: "English",
134
+ onChange: (o) => {
135
+ const e = o.target.value;
136
+ i.setValue("customFields", {
137
+ ...i.getValues("customFields"),
138
+ [t.id]: e
139
+ });
140
+ }
141
+ }
142
+ )
143
+ ]
112
144
  },
113
145
  t.definition.id
114
146
  )
115
147
  ) });
116
148
  };
117
149
  export {
118
- pt as TranslateProductCustomField
150
+ dt as TranslateProductCustomField
119
151
  };
@@ -35,23 +35,23 @@ import "../../../../packages/lune-ui/dist/node_modules/@radix-ui/react-tooltip/d
35
35
  import { Form as b } from "../../../../packages/lune-ui/dist/form/form.js";
36
36
  import { H4 as x } from "../../../../packages/lune-ui/dist/typography/h4.js";
37
37
  import { isTranslatable as u } from "../../../custom-fields/utils/custom-field.utils.js";
38
- import { ImagePlaceholder as g } from "../../../../shared/components/placeholders/image-placeholder.js";
39
- import { TranslateFormHeader as T } from "../form/translate-form-header.js";
38
+ import { ImagePlaceholder as T } from "../../../../shared/components/placeholders/image-placeholder.js";
39
+ import { TranslateFormHeader as g } from "../form/translate-form-header.js";
40
40
  import { TranslateFormRowData as s } from "../form/translate-form-row-data.js";
41
41
  import { TranslateFormSeparator as a } from "../form/translate-form-separator.js";
42
42
  import { TranslateInput as N } from "../form/translate-input.js";
43
- import { TranslateTextarea as v } from "../form/translate-textarea.js";
44
- import { LocaleSelector as F } from "../locale-selector/locale-selector.js";
43
+ import { TranslateRichText as F } from "../form/translate-rich-text.js";
44
+ import { LocaleSelector as v } from "../locale-selector/locale-selector.js";
45
45
  import { TranslateProductCustomField as C } from "./custom-fields/translate-product-custom-fields.js";
46
46
  import { TranslateOptions as w } from "./options/translate-product-options.js";
47
47
  import { ReplaceProductSheet as S } from "./replace-product/replace-product-sheet.js";
48
48
  import { TranslateProductFormSubmitButton as j } from "./submit-button/translate-product-form-submit-button.js";
49
49
  import { useTranslateProductForm as P } from "./use-form/use-translate-product-form.js";
50
50
  const Ce = ({ product: r }) => {
51
- const o = P(r), i = !!r.options.length, l = !!r.customFieldEntries.filter(
52
- (m) => u(m.definition.type)
51
+ const i = P(r), m = !!r.options.length, l = !!r.customFieldEntries.filter(
52
+ (o) => u(o.definition.type)
53
53
  ).length;
54
- return /* @__PURE__ */ e(b, { ...o, children: /* @__PURE__ */ t("form", { onSubmit: o.onSubmit, className: "w-full border-l", children: [
54
+ return /* @__PURE__ */ e(b, { ...i, children: /* @__PURE__ */ t("form", { onSubmit: i.onSubmit, className: "w-full border-l", children: [
55
55
  /* @__PURE__ */ t("header", { className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between w-full p-4 border-b", children: [
56
56
  /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
57
57
  r.assets.items?.[0]?.source ? /* @__PURE__ */ e(
@@ -62,7 +62,7 @@ const Ce = ({ product: r }) => {
62
62
  className: "shrink-0 size-10 sm:size-9 rounded-sm object-cover"
63
63
  }
64
64
  ) : /* @__PURE__ */ e(
65
- g,
65
+ T,
66
66
  {
67
67
  className: "shrink-0 size-10 sm:size-9 rounded-sm object-cover",
68
68
  initial: r.name
@@ -72,40 +72,41 @@ const Ce = ({ product: r }) => {
72
72
  ] }),
73
73
  /* @__PURE__ */ t("div", { className: "flex flex-col sm:flex-row items-center gap-3", children: [
74
74
  /* @__PURE__ */ e(S, {}),
75
- /* @__PURE__ */ e(F, {}),
75
+ /* @__PURE__ */ e(v, {}),
76
76
  /* @__PURE__ */ e(j, { product: r })
77
77
  ] })
78
78
  ] }),
79
79
  /* @__PURE__ */ e("div", { className: "p-4 sm:h-[calc(100vh-69px-69px-32px)] overflow-y-auto", children: /* @__PURE__ */ t(p, { className: "pb-0", children: [
80
80
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between px-4", children: /* @__PURE__ */ e(c, { children: "General" }) }),
81
- /* @__PURE__ */ e(f, { className: "p-0 border-t lg:border-t-0", children: /* @__PURE__ */ t(d, { children: [
82
- /* @__PURE__ */ e(T, {}),
81
+ /* @__PURE__ */ e(f, { className: "p-0 border-t lg:border-t-0", children: /* @__PURE__ */ t(d, { className: "table-fixed", children: [
82
+ /* @__PURE__ */ e(g, {}),
83
83
  /* @__PURE__ */ t(h, { children: [
84
84
  /* @__PURE__ */ e(s, { field: "Name", reference: r.name, children: /* @__PURE__ */ e(
85
85
  N,
86
86
  {
87
87
  label: "English",
88
- ...o.register("name"),
89
- onChange: (m) => o.setValue("name", m.target.value)
88
+ ...i.register("name"),
89
+ onChange: (o) => i.setValue("name", o.target.value)
90
90
  }
91
91
  ) }),
92
92
  /* @__PURE__ */ e(
93
93
  s,
94
94
  {
95
+ richText: !0,
95
96
  field: "Description",
96
97
  reference: r.description,
97
- className: n(!i && "border-b-0"),
98
+ className: n(!m && "border-b-0"),
98
99
  children: /* @__PURE__ */ e(
99
- v,
100
+ F,
100
101
  {
101
102
  label: "English",
102
- ...o.register("description"),
103
- onChange: (m) => o.setValue("description", m.target.value)
103
+ ...i.register("description"),
104
+ onChange: (o) => i.setValue("description", o)
104
105
  }
105
106
  )
106
107
  }
107
108
  ),
108
- i && /* @__PURE__ */ e(a, { text: "Options" }),
109
+ m && /* @__PURE__ */ e(a, { text: "Options" }),
109
110
  /* @__PURE__ */ e(w, { product: r }),
110
111
  l && /* @__PURE__ */ e(a, { text: "Custom fields", className: "border-t!" }),
111
112
  /* @__PURE__ */ e(C, { product: r })