@underverse-ui/underverse 1.0.134 → 1.0.136

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/dist/index.js CHANGED
@@ -9157,6 +9157,7 @@ var DatePicker = ({
9157
9157
  {
9158
9158
  ref: inputRef,
9159
9159
  type: "text",
9160
+ "aria-label": value ? formatDateDisplay(value) : placeholder || t("placeholder"),
9160
9161
  disabled,
9161
9162
  placeholder: placeholder || t("placeholder"),
9162
9163
  value: isFocused ? inputValue : value ? formatDateDisplay(value) : "",
@@ -9174,8 +9175,7 @@ var DatePicker = ({
9174
9175
  },
9175
9176
  className: "w-full bg-transparent border-none outline-none focus:outline-none p-0 text-foreground font-medium placeholder-muted-foreground/60 min-w-0"
9176
9177
  }
9177
- ),
9178
- /* @__PURE__ */ jsx35("span", { className: "sr-only", children: value ? formatDateDisplay(value) : placeholder || t("placeholder") })
9178
+ )
9179
9179
  ] }),
9180
9180
  /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-1 shrink-0", children: [
9181
9181
  value && /* @__PURE__ */ jsx35(
@@ -9905,6 +9905,7 @@ var DateRangePicker = ({
9905
9905
  {
9906
9906
  ref: inputRef,
9907
9907
  type: "text",
9908
+ "aria-label": tempStart ? displayLabel : placeholder,
9908
9909
  disabled,
9909
9910
  placeholder,
9910
9911
  value: isFocused ? inputValue : tempStart ? displayLabel : "",
@@ -9922,8 +9923,7 @@ var DateRangePicker = ({
9922
9923
  },
9923
9924
  className: "w-full bg-transparent border-none outline-none focus:outline-none p-0 text-foreground font-medium placeholder-muted-foreground/60 min-w-0"
9924
9925
  }
9925
- ),
9926
- /* @__PURE__ */ jsx35("span", { className: "sr-only", children: tempStart ? displayLabel : placeholder })
9926
+ )
9927
9927
  ] }),
9928
9928
  /* @__PURE__ */ jsx35("span", { className: cn("transition-all duration-300 text-muted-foreground group-hover:text-foreground", isOpen && "rotate-180 text-primary"), children: /* @__PURE__ */ jsx35("svg", { className: cn(sizeStyles8[size].navIcon), fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, children: /* @__PURE__ */ jsx35("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) }) })
9929
9929
  ]
@@ -10601,12 +10601,12 @@ function MonthYearPicker({
10601
10601
  className
10602
10602
  ),
10603
10603
  children: [
10604
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2.5", children: [
10604
+ /* @__PURE__ */ jsxs25("div", { className: "flex min-w-0 flex-1 items-center gap-2.5", children: [
10605
10605
  /* @__PURE__ */ jsx36(
10606
10606
  "div",
10607
10607
  {
10608
10608
  className: cn(
10609
- "flex items-center justify-center transition-colors duration-300",
10609
+ "flex shrink-0 items-center justify-center transition-colors duration-300",
10610
10610
  effectiveError ? "text-destructive" : success ? "text-success" : open ? "text-primary" : "text-muted-foreground group-hover:text-primary"
10611
10611
  ),
10612
10612
  children: /* @__PURE__ */ jsx36(Calendar2, { className: cn(sz.icon, "transition-transform duration-300", open && "rotate-12") })
@@ -10615,12 +10615,12 @@ function MonthYearPicker({
10615
10615
  /* @__PURE__ */ jsx36(
10616
10616
  "span",
10617
10617
  {
10618
- className: cn("truncate font-medium transition-colors duration-200", !hasValue && "text-muted-foreground", hasValue && "text-foreground"),
10618
+ className: cn("min-w-0 truncate font-medium transition-colors duration-200", !hasValue && "text-muted-foreground", hasValue && "text-foreground"),
10619
10619
  children: hasValue ? display : placeholder
10620
10620
  }
10621
10621
  )
10622
10622
  ] }),
10623
- /* @__PURE__ */ jsx36("span", { className: cn("ml-2 transition-all duration-300 text-muted-foreground group-hover:text-foreground", open && "rotate-180 text-primary"), children: /* @__PURE__ */ jsx36(ChevronDown2, { className: sz.icon }) })
10623
+ /* @__PURE__ */ jsx36("span", { className: cn("ml-2 shrink-0 transition-all duration-300 text-muted-foreground group-hover:text-foreground", open && "rotate-180 text-primary"), children: /* @__PURE__ */ jsx36(ChevronDown2, { className: sz.icon }) })
10624
10624
  ]
10625
10625
  }
10626
10626
  );
@@ -12306,12 +12306,12 @@ function TimePicker({
12306
12306
  className
12307
12307
  ),
12308
12308
  children: [
12309
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2.5", children: [
12309
+ /* @__PURE__ */ jsxs27("div", { className: "flex min-w-0 flex-1 items-center gap-2.5", children: [
12310
12310
  /* @__PURE__ */ jsx38(
12311
12311
  "div",
12312
12312
  {
12313
12313
  className: cn(
12314
- "flex items-center justify-center transition-colors duration-300",
12314
+ "flex shrink-0 items-center justify-center transition-colors duration-300",
12315
12315
  effectiveError ? "text-destructive" : success ? "text-success" : open ? "text-primary" : "text-muted-foreground group-hover:text-primary"
12316
12316
  ),
12317
12317
  children: /* @__PURE__ */ jsx38(Clock2, { className: cn(sz.icon, "transition-transform duration-300", open && "rotate-12") })
@@ -12321,7 +12321,7 @@ function TimePicker({
12321
12321
  "span",
12322
12322
  {
12323
12323
  className: cn(
12324
- "truncate font-medium transition-colors duration-200",
12324
+ "min-w-0 truncate font-medium transition-colors duration-200",
12325
12325
  !hasCommittedValue && "text-muted-foreground",
12326
12326
  hasCommittedValue ? "text-foreground" : ""
12327
12327
  ),
@@ -12329,7 +12329,7 @@ function TimePicker({
12329
12329
  }
12330
12330
  )
12331
12331
  ] }),
12332
- /* @__PURE__ */ jsx38("span", { className: cn("ml-2 transition-all duration-300 text-muted-foreground group-hover:text-foreground", open && "rotate-180 text-primary"), children: /* @__PURE__ */ jsx38("svg", { className: sz.icon, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, children: /* @__PURE__ */ jsx38("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) }) })
12332
+ /* @__PURE__ */ jsx38("span", { className: cn("ml-2 shrink-0 transition-all duration-300 text-muted-foreground group-hover:text-foreground", open && "rotate-180 text-primary"), children: /* @__PURE__ */ jsx38("svg", { className: sz.icon, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2.5, children: /* @__PURE__ */ jsx38("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) }) })
12333
12333
  ]
12334
12334
  }
12335
12335
  );
@@ -12959,8 +12959,8 @@ var DateTimePicker = ({
12959
12959
  effectiveError && "border-destructive/60 bg-destructive/5"
12960
12960
  ),
12961
12961
  children: [
12962
- /* @__PURE__ */ jsx39("span", { className: "truncate", children: displayValue || placeholder || "Select date & time" }),
12963
- /* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
12962
+ /* @__PURE__ */ jsx39("span", { className: "min-w-0 flex-1 truncate text-left", children: displayValue || placeholder || "Select date & time" }),
12963
+ /* @__PURE__ */ jsxs28("div", { className: "flex shrink-0 items-center gap-2 text-muted-foreground", children: [
12964
12964
  value && /* @__PURE__ */ jsx39(
12965
12965
  "span",
12966
12966
  {
@@ -25350,6 +25350,7 @@ var letter_spacing_default = LetterSpacing;
25350
25350
 
25351
25351
  // src/components/UEditor/table-align.ts
25352
25352
  import { Table as Table3 } from "@tiptap/extension-table";
25353
+ import { Plugin as Plugin3 } from "@tiptap/pm/state";
25353
25354
 
25354
25355
  // src/components/UEditor/table-align-utils.ts
25355
25356
  function findTableNodeInfoAtResolvedPos($pos) {
@@ -25477,6 +25478,24 @@ var UEditorTable = Table3.extend({
25477
25478
  return true;
25478
25479
  }
25479
25480
  };
25481
+ },
25482
+ addProseMirrorPlugins() {
25483
+ return [
25484
+ new Plugin3({
25485
+ appendTransaction(_transactions, _oldState, newState) {
25486
+ const { doc, schema } = newState;
25487
+ const paragraphType = schema.nodes.paragraph;
25488
+ if (!paragraphType) return null;
25489
+ const needsLeading = doc.firstChild?.type.name === "table";
25490
+ const needsTrailing = doc.lastChild?.type.name === "table";
25491
+ if (!needsLeading && !needsTrailing) return null;
25492
+ const tr = newState.tr;
25493
+ if (needsTrailing) tr.insert(doc.content.size, paragraphType.create());
25494
+ if (needsLeading) tr.insert(0, paragraphType.create());
25495
+ return tr;
25496
+ }
25497
+ })
25498
+ ];
25480
25499
  }
25481
25500
  });
25482
25501
  var table_align_default = UEditorTable;