@discuss-ds/ui 0.9.1 → 0.10.0
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 +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -693,7 +693,7 @@ interface QuestionHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
693
693
|
}
|
|
694
694
|
declare const QuestionHeader: React.ForwardRefExoticComponent<QuestionHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
695
695
|
|
|
696
|
-
type QuestionType = 'select-one' | 'select-multiple' | 'ranking' | 'upload' | 'rating' | 'open-end';
|
|
696
|
+
type QuestionType = 'select-one' | 'select-multiple' | 'ranking' | 'upload' | 'rating' | 'open-end' | 'screen-recording';
|
|
697
697
|
interface QuestionTypeIconProps extends Omit<IconProps, 'weight'> {
|
|
698
698
|
type: QuestionType;
|
|
699
699
|
}
|
|
@@ -784,7 +784,7 @@ interface RatingScaleProps extends Omit<React.ComponentPropsWithoutRef<typeof To
|
|
|
784
784
|
declare const RatingScale: React.ForwardRefExoticComponent<RatingScaleProps & React.RefAttributes<HTMLDivElement>>;
|
|
785
785
|
|
|
786
786
|
interface StimulusCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
787
|
-
/** Image shown in the
|
|
787
|
+
/** Image shown in the square thumbnail (92-240px, as tall as the text). Without one the thumbnail shows `icon` on a neutral fill. */
|
|
788
788
|
thumbnail?: string;
|
|
789
789
|
/** Alt text for `thumbnail`. Leave empty when the caption already describes the image. */
|
|
790
790
|
thumbnailAlt?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -693,7 +693,7 @@ interface QuestionHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
693
693
|
}
|
|
694
694
|
declare const QuestionHeader: React.ForwardRefExoticComponent<QuestionHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
695
695
|
|
|
696
|
-
type QuestionType = 'select-one' | 'select-multiple' | 'ranking' | 'upload' | 'rating' | 'open-end';
|
|
696
|
+
type QuestionType = 'select-one' | 'select-multiple' | 'ranking' | 'upload' | 'rating' | 'open-end' | 'screen-recording';
|
|
697
697
|
interface QuestionTypeIconProps extends Omit<IconProps, 'weight'> {
|
|
698
698
|
type: QuestionType;
|
|
699
699
|
}
|
|
@@ -784,7 +784,7 @@ interface RatingScaleProps extends Omit<React.ComponentPropsWithoutRef<typeof To
|
|
|
784
784
|
declare const RatingScale: React.ForwardRefExoticComponent<RatingScaleProps & React.RefAttributes<HTMLDivElement>>;
|
|
785
785
|
|
|
786
786
|
interface StimulusCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
787
|
-
/** Image shown in the
|
|
787
|
+
/** Image shown in the square thumbnail (92-240px, as tall as the text). Without one the thumbnail shows `icon` on a neutral fill. */
|
|
788
788
|
thumbnail?: string;
|
|
789
789
|
/** Alt text for `thumbnail`. Leave empty when the caption already describes the image. */
|
|
790
790
|
thumbnailAlt?: string;
|
package/dist/index.js
CHANGED
|
@@ -2738,7 +2738,7 @@ import { Slot as Slot3 } from "radix-ui";
|
|
|
2738
2738
|
|
|
2739
2739
|
// src/components/Question Types/QuestionTypeIcon.tsx
|
|
2740
2740
|
import "react";
|
|
2741
|
-
import { ChatsCircle, CheckSquare, FileArrowUp, ListNumbers, RadioButton, StarHalf } from "@phosphor-icons/react";
|
|
2741
|
+
import { ChatsCircle, CheckSquare, FileArrowUp, ListNumbers, MonitorPlay, RadioButton, StarHalf } from "@phosphor-icons/react";
|
|
2742
2742
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2743
2743
|
var icons = {
|
|
2744
2744
|
"select-one": RadioButton,
|
|
@@ -2746,7 +2746,8 @@ var icons = {
|
|
|
2746
2746
|
ranking: ListNumbers,
|
|
2747
2747
|
upload: FileArrowUp,
|
|
2748
2748
|
rating: StarHalf,
|
|
2749
|
-
"open-end": ChatsCircle
|
|
2749
|
+
"open-end": ChatsCircle,
|
|
2750
|
+
"screen-recording": MonitorPlay
|
|
2750
2751
|
};
|
|
2751
2752
|
function QuestionTypeIcon({ type, size = 22.5, className, ...props }) {
|
|
2752
2753
|
const Icon = icons[type];
|
|
@@ -3062,7 +3063,7 @@ RatingScale.displayName = "RatingScale";
|
|
|
3062
3063
|
import * as React47 from "react";
|
|
3063
3064
|
import { Image as ImageIcon2, ImageBroken, Trash as Trash5 } from "@phosphor-icons/react";
|
|
3064
3065
|
import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3065
|
-
var MIN_THUMBNAIL =
|
|
3066
|
+
var MIN_THUMBNAIL = 92;
|
|
3066
3067
|
var MAX_THUMBNAIL = 240;
|
|
3067
3068
|
var StimulusCard = React47.forwardRef(
|
|
3068
3069
|
({
|
|
@@ -3102,7 +3103,7 @@ var StimulusCard = React47.forwardRef(
|
|
|
3102
3103
|
{
|
|
3103
3104
|
ref,
|
|
3104
3105
|
"data-status": error ? "error" : "default",
|
|
3105
|
-
className: cn("flex min-h-
|
|
3106
|
+
className: cn("flex min-h-24.5 w-full items-center gap-4 rounded-md border border-border p-0.5 pr-4", className),
|
|
3106
3107
|
...props,
|
|
3107
3108
|
children: [
|
|
3108
3109
|
/* @__PURE__ */ jsxs34("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
|