@discuss-ds/ui 0.4.0 → 0.4.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 +5 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -735,10 +735,10 @@ interface QuestionOptionEditorProps {
|
|
|
735
735
|
onAdd?: () => void;
|
|
736
736
|
className?: string;
|
|
737
737
|
/**
|
|
738
|
-
* Answer type. When set the row is quiet at rest:
|
|
739
|
-
* and the remove/add buttons hidden but still taking their space, so the row is the same width in every state.
|
|
740
|
-
* On hover or keyboard focus it becomes the editor:
|
|
741
|
-
*
|
|
738
|
+
* Answer type. When set the row is quiet at rest: its normal border, the radio or checkbox indicator in front of the
|
|
739
|
+
* label, and the remove/add buttons hidden but still taking their space, so the row is the same width in every state.
|
|
740
|
+
* On hover or keyboard focus it becomes the editor: the shadow lifts, the drag handle replaces the indicator and the
|
|
741
|
+
* buttons appear. The border colour does not change. Omit it for an always-on editor row.
|
|
742
742
|
*/
|
|
743
743
|
kind?: 'radio' | 'checkbox';
|
|
744
744
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -735,10 +735,10 @@ interface QuestionOptionEditorProps {
|
|
|
735
735
|
onAdd?: () => void;
|
|
736
736
|
className?: string;
|
|
737
737
|
/**
|
|
738
|
-
* Answer type. When set the row is quiet at rest:
|
|
739
|
-
* and the remove/add buttons hidden but still taking their space, so the row is the same width in every state.
|
|
740
|
-
* On hover or keyboard focus it becomes the editor:
|
|
741
|
-
*
|
|
738
|
+
* Answer type. When set the row is quiet at rest: its normal border, the radio or checkbox indicator in front of the
|
|
739
|
+
* label, and the remove/add buttons hidden but still taking their space, so the row is the same width in every state.
|
|
740
|
+
* On hover or keyboard focus it becomes the editor: the shadow lifts, the drag handle replaces the indicator and the
|
|
741
|
+
* buttons appear. The border colour does not change. Omit it for an always-on editor row.
|
|
742
742
|
*/
|
|
743
743
|
kind?: 'radio' | 'checkbox';
|
|
744
744
|
}
|
package/dist/index.js
CHANGED
|
@@ -2840,11 +2840,10 @@ function QuestionOptionEditor({ label, onLabelChange, onRemove, onAdd, className
|
|
|
2840
2840
|
{
|
|
2841
2841
|
className: cn(
|
|
2842
2842
|
"flex h-11.5 min-w-0 flex-1 items-center gap-2 rounded-md border bg-surface px-4 py-2 focus-within:border-input-accent",
|
|
2843
|
-
reveal ?
|
|
2844
|
-
//
|
|
2845
|
-
"border-
|
|
2846
|
-
|
|
2847
|
-
] : "border-border hover:border-input hover:shadow-md"
|
|
2843
|
+
reveal ? (
|
|
2844
|
+
// The border is always visible and does not change on hover; only the shadow lifts the row. The field being edited keeps the accent.
|
|
2845
|
+
"border-border group-hover/option:shadow-md group-focus-within/option:shadow-md"
|
|
2846
|
+
) : "border-border hover:border-input hover:shadow-md"
|
|
2848
2847
|
),
|
|
2849
2848
|
children: [
|
|
2850
2849
|
reveal ? /* @__PURE__ */ jsxs31("span", { "aria-hidden": "true", className: "relative flex size-5 shrink-0 items-center justify-center", children: [
|
|
@@ -3253,7 +3252,7 @@ var ActivityStructure = React51.forwardRef(
|
|
|
3253
3252
|
"section",
|
|
3254
3253
|
{
|
|
3255
3254
|
ref,
|
|
3256
|
-
className: cn("flex w-full max-w-96.5 flex-col gap-4 rounded-2xl
|
|
3255
|
+
className: cn("flex w-full max-w-96.5 flex-col gap-4 rounded-2xl bg-surface p-4", className),
|
|
3257
3256
|
...props,
|
|
3258
3257
|
children: [
|
|
3259
3258
|
/* @__PURE__ */ jsx52("h3", { className: "text-heading-h3 text-surface-foreground", children: title }),
|