@discuss-ds/ui 0.3.1 → 0.3.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @discuss-ds/ui
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#13](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/13) [`ca22046`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/ca22046f7e2616ef952f1252183bfe25f734ce03) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `InlineEdit` question variant: the bottom border is now 1px on hover and focus. Only a `selected` question gets the bolder 2px accent border. Bottom padding compensates so the text and the card height do not move between states.
8
+
3
9
  ## 0.3.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1611,12 +1611,13 @@ var InlineEdit = React24.forwardRef(
1611
1611
  "aria-label": `${ariaLabel}: ${value || placeholder}. Edit`,
1612
1612
  onClick: start,
1613
1613
  className: cn(
1614
- "group inline-flex min-w-0 max-w-full items-center gap-2 px-3 py-1 text-left outline-none",
1614
+ "group inline-flex min-w-0 max-w-full items-center gap-2 px-3 text-left outline-none",
1615
1615
  fill && "w-full",
1616
1616
  question ? (
1617
- // Hover and focus use the input border colour; only a selected question takes the accent.
1618
- cn("rounded-none border-b-2", selected ? "border-accent-foreground" : "border-transparent enabled:hover:border-input enabled:focus-visible:border-input")
1619
- ) : "rounded-md border border-transparent enabled:focus-visible:border-input-accent",
1617
+ // Hover and focus show a 1px bottom border in the input colour; only a selected question gets the 2px accent
1618
+ // one. The extra 1px of bottom padding keeps the height identical so the text never jumps.
1619
+ selected ? "rounded-none border-b-2 border-accent-foreground py-1" : "rounded-none border-b border-transparent pb-1.25 pt-1 enabled:hover:border-input enabled:focus-visible:border-input"
1620
+ ) : "rounded-md border border-transparent py-1 enabled:focus-visible:border-input-accent",
1620
1621
  "enabled:hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",
1621
1622
  textClasses
1622
1623
  ),