@discuss-ds/ui 0.3.0 → 0.3.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +6 -4
- 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 +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @discuss-ds/ui
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
3
9
|
## 0.3.0
|
|
4
10
|
|
|
5
11
|
### 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) => {
|
|
@@ -1613,9 +1613,11 @@ var InlineEdit = React24.forwardRef(
|
|
|
1613
1613
|
className: cn(
|
|
1614
1614
|
"group inline-flex min-w-0 max-w-full items-center gap-2 px-3 py-1 text-left outline-none",
|
|
1615
1615
|
fill && "w-full",
|
|
1616
|
-
question ?
|
|
1617
|
-
|
|
1618
|
-
|
|
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",
|
|
1620
|
+
"enabled:hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",
|
|
1619
1621
|
textClasses
|
|
1620
1622
|
),
|
|
1621
1623
|
children: [
|