@discuss-ds/ui 0.3.0 → 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 +12 -0
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 0.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#11](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/11) [`515842c`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/515842c8cb05412776f3fe76bc60623230aaec22) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `InlineEdit` question variant: on hover or focus the bottom border now uses the input border colour. Only a `selected` question (and the field while editing) takes the accent foreground colour.
|
|
14
|
+
|
|
3
15
|
## 0.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1583,7 +1583,7 @@ var InlineEdit = React24.forwardRef(
|
|
|
1583
1583
|
className: cn(
|
|
1584
1584
|
"w-full px-3 py-1 outline-none",
|
|
1585
1585
|
multiline && "field-sizing-content resize-none",
|
|
1586
|
-
question ? "rounded-none border-0 border-b-2 border-
|
|
1586
|
+
question ? "rounded-none border-0 border-b-2 border-accent-foreground bg-transparent" : cn("rounded-md focus-visible:border-input-accent", fieldSurfaceClasses("default")),
|
|
1587
1587
|
textClasses
|
|
1588
1588
|
),
|
|
1589
1589
|
onChange: (event) => {
|
|
@@ -1611,11 +1611,14 @@ 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
|
|
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
|
-
question ?
|
|
1617
|
-
|
|
1618
|
-
|
|
1616
|
+
question ? (
|
|
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",
|
|
1621
|
+
"enabled:hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",
|
|
1619
1622
|
textClasses
|
|
1620
1623
|
),
|
|
1621
1624
|
children: [
|