@underverse-ui/underverse 2.0.8 → 2.0.10

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Modal_default
4
- } from "./chunk-JINSMREP.js";
4
+ } from "./chunk-7V65PWQN.js";
5
5
  import {
6
6
  DEFAULT_TABLE_ROW_HEIGHT,
7
7
  DEFAULT_UEDITOR_IMAGE_MAX_FILE_SIZE,
@@ -21,11 +21,11 @@ import {
21
21
  sanitizeUEditorUrl,
22
22
  useDropdownMenuClose,
23
23
  useSharedEditorUiRenderState
24
- } from "./chunk-TETMVVUP.js";
24
+ } from "./chunk-VDIAFUIE.js";
25
25
  import {
26
26
  cn,
27
27
  useSmartTranslations
28
- } from "./chunk-PLHJWXCW.js";
28
+ } from "./chunk-CKG2QLQL.js";
29
29
  import "./chunk-NSBPE2FW.js";
30
30
 
31
31
  // src/components/UEditor/menu-bar.tsx
@@ -944,4 +944,4 @@ var MenuBar = ({
944
944
  export {
945
945
  MenuBar
946
946
  };
947
- //# sourceMappingURL=menu-bar-NFEW4FOJ.js.map
947
+ //# sourceMappingURL=menu-bar-R5ZFI2ST.js.map
package/dist/ueditor.cjs CHANGED
@@ -3860,6 +3860,16 @@ var init_emojis = __esm({
3860
3860
  }
3861
3861
  });
3862
3862
 
3863
+ // src/constants/form-control-size.ts
3864
+ var formControlOutlineClass, formControlGroupOutlineClass;
3865
+ var init_form_control_size = __esm({
3866
+ "src/constants/form-control-size.ts"() {
3867
+ "use strict";
3868
+ formControlOutlineClass = "border border-input hover:border-primary/40 focus-visible:outline-none focus-visible:border-ring";
3869
+ formControlGroupOutlineClass = "border border-input hover:border-primary/40 focus-within:border-ring";
3870
+ }
3871
+ });
3872
+
3863
3873
  // src/components/EmojiPicker.tsx
3864
3874
  var EmojiPicker_exports = {};
3865
3875
  __export(EmojiPicker_exports, {
@@ -3878,6 +3888,7 @@ var init_EmojiPicker = __esm({
3878
3888
  init_emoji_ui();
3879
3889
  init_Tooltip();
3880
3890
  init_emojis();
3891
+ init_form_control_size();
3881
3892
  import_jsx_runtime9 = require("react/jsx-runtime");
3882
3893
  CATEGORY_ICONS = {
3883
3894
  smileys_people: import_lucide_react.Smile,
@@ -4017,8 +4028,9 @@ var init_EmojiPicker = __esm({
4017
4028
  value: search,
4018
4029
  onChange: (e) => setSearch(e.target.value),
4019
4030
  className: cn(
4020
- "w-full rounded-2xl border border-border/10 bg-muted/20 py-2 pl-9.5 pr-9 text-sm transition-all duration-300",
4021
- "placeholder:text-muted-foreground/60 focus:outline-none focus:ring-2 focus:ring-primary/15 focus:border-primary/20",
4031
+ "w-full rounded-2xl bg-muted/20 py-2 pl-9.5 pr-9 text-sm transition-all duration-300",
4032
+ formControlOutlineClass,
4033
+ "placeholder:text-muted-foreground/60",
4022
4034
  "focus:bg-background/90 focus:shadow-[0_0_12px_rgba(var(--color-primary-rgb),0.04)]"
4023
4035
  )
4024
4036
  }
@@ -6428,6 +6440,7 @@ var init_inputs = __esm({
6428
6440
  init_useSmartTranslations();
6429
6441
  import_lucide_react12 = require("lucide-react");
6430
6442
  init_url_safety();
6443
+ init_form_control_size();
6431
6444
  import_jsx_runtime24 = require("react/jsx-runtime");
6432
6445
  LinkInput = ({
6433
6446
  onSubmit,
@@ -6468,7 +6481,7 @@ var init_inputs = __esm({
6468
6481
  placeholder: t("linkInput.placeholder"),
6469
6482
  "aria-invalid": Boolean(error),
6470
6483
  "aria-describedby": error ? errorId : void 0,
6471
- className: "flex-1 px-3 py-2 text-sm bg-muted/50 border-0 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20 aria-invalid:ring-2 aria-invalid:ring-destructive/40"
6484
+ className: `flex-1 rounded-lg bg-muted/50 px-3 py-2 text-sm ${formControlOutlineClass} aria-invalid:border-destructive`
6472
6485
  }
6473
6486
  ),
6474
6487
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { type: "submit", className: "p-2 rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react12.Check, { className: "w-4 h-4" }) }),
@@ -6503,7 +6516,7 @@ var init_inputs = __esm({
6503
6516
  value: url,
6504
6517
  onChange: (e) => setUrl(e.target.value),
6505
6518
  placeholder: t("imageInput.urlPlaceholder"),
6506
- className: "w-full mt-1 px-3 py-2 text-sm bg-muted/50 border-0 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20"
6519
+ className: `mt-1 w-full rounded-lg bg-muted/50 px-3 py-2 text-sm ${formControlOutlineClass}`
6507
6520
  }
6508
6521
  )
6509
6522
  ] }),
@@ -6516,7 +6529,7 @@ var init_inputs = __esm({
6516
6529
  value: alt,
6517
6530
  onChange: (e) => setAlt(e.target.value),
6518
6531
  placeholder: t("imageInput.altPlaceholder"),
6519
- className: "w-full mt-1 px-3 py-2 text-sm bg-muted/50 border-0 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20"
6532
+ className: `mt-1 w-full rounded-lg bg-muted/50 px-3 py-2 text-sm ${formControlOutlineClass}`
6520
6533
  }
6521
6534
  )
6522
6535
  ] }),
@@ -10030,6 +10043,7 @@ init_cn();
10030
10043
  init_Popover();
10031
10044
  var import_lucide_react5 = require("lucide-react");
10032
10045
  init_useSmartTranslations();
10046
+ init_form_control_size();
10033
10047
  var import_jsx_runtime15 = require("react/jsx-runtime");
10034
10048
  var FormRadioView = ({ node, updateAttributes, editor, selected }) => {
10035
10049
  const t = useSmartTranslations("UEditor");
@@ -10102,7 +10116,7 @@ var FormRadioView = ({ node, updateAttributes, editor, selected }) => {
10102
10116
  type: "text",
10103
10117
  value: groupName,
10104
10118
  onChange: (e) => updateAttributes({ name: e.target.value }),
10105
- className: "w-full text-sm px-2 py-1.5 border border-border/60 rounded-lg bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary"
10119
+ className: `w-full rounded-lg bg-background px-2 py-1.5 text-sm text-foreground ${formControlOutlineClass}`
10106
10120
  }
10107
10121
  )
10108
10122
  ] })
@@ -14338,6 +14352,7 @@ var import_react_dom3 = require("react-dom");
14338
14352
  init_useSmartTranslations();
14339
14353
  var import_lucide_react14 = require("lucide-react");
14340
14354
  init_cn();
14355
+ init_form_control_size();
14341
14356
  init_toolbar();
14342
14357
  init_inputs();
14343
14358
  init_link_commands();
@@ -15093,7 +15108,7 @@ var BubbleMenuContent = ({
15093
15108
  }
15094
15109
  )
15095
15110
  ] }),
15096
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex h-9 items-center overflow-hidden rounded-md border border-border/60 bg-muted/40", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
15111
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cn("flex h-9 items-center overflow-hidden rounded-md bg-muted/40", formControlGroupOutlineClass), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
15097
15112
  "input",
15098
15113
  {
15099
15114
  value: formulaDraft,
@@ -15191,7 +15206,7 @@ var BubbleMenuContent = ({
15191
15206
  /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "space-y-2", children: [
15192
15207
  /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
15193
15208
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "mb-1 px-1 text-[11px] font-medium text-muted-foreground", children: t("toolbar.fontSize") }),
15194
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex h-9 items-center overflow-hidden rounded-md border border-border/60 bg-muted/40", children: [
15209
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cn("flex h-9 items-center overflow-hidden rounded-md bg-muted/40", formControlGroupOutlineClass), children: [
15195
15210
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
15196
15211
  "input",
15197
15212
  {
@@ -23146,6 +23161,7 @@ var import_react42 = require("@tiptap/react");
23146
23161
  var import_lucide_react19 = require("lucide-react");
23147
23162
  init_useSmartTranslations();
23148
23163
  init_table_dom_utils();
23164
+ init_form_control_size();
23149
23165
  var import_jsx_runtime34 = require("react/jsx-runtime");
23150
23166
  function TableFormulaBar({ editor }) {
23151
23167
  const t = useSmartTranslations("UEditor");
@@ -23244,7 +23260,7 @@ function TableFormulaBar({ editor }) {
23244
23260
  }
23245
23261
  },
23246
23262
  "aria-label": t("tableMenu.editFormula"),
23247
- className: "h-7 min-w-0 flex-1 rounded-md border border-border/60 bg-background px-2 font-mono text-sm text-foreground outline-none focus:border-primary/40 focus:ring-2 focus:ring-primary/15"
23263
+ className: `h-7 min-w-0 flex-1 rounded-md bg-background px-2 font-mono text-sm text-foreground ${formControlOutlineClass}`
23248
23264
  }
23249
23265
  ),
23250
23266
  selectedCell.formulaState === "error" && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(