@discuss-ds/ui 0.23.0 → 0.24.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 +12 -0
- package/dist/index.cjs +5 -2
- 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 +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -937,7 +937,7 @@ interface TableCellTwoLinesProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
937
937
|
declare function TableCellTwoLines({ primary, secondary, avatar, className, ...props }: TableCellTwoLinesProps): React.JSX.Element;
|
|
938
938
|
|
|
939
939
|
declare const statCardVariants: (props?: ({
|
|
940
|
-
variant?: "default" | "subtle" | "warning" | null | undefined;
|
|
940
|
+
variant?: "default" | "subtle" | "destructive" | "success" | "warning" | null | undefined;
|
|
941
941
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
942
942
|
interface StatCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof statCardVariants> {
|
|
943
943
|
label: React.ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -937,7 +937,7 @@ interface TableCellTwoLinesProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
937
937
|
declare function TableCellTwoLines({ primary, secondary, avatar, className, ...props }: TableCellTwoLinesProps): React.JSX.Element;
|
|
938
938
|
|
|
939
939
|
declare const statCardVariants: (props?: ({
|
|
940
|
-
variant?: "default" | "subtle" | "warning" | null | undefined;
|
|
940
|
+
variant?: "default" | "subtle" | "destructive" | "success" | "warning" | null | undefined;
|
|
941
941
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
942
942
|
interface StatCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof statCardVariants> {
|
|
943
943
|
label: React.ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -1545,7 +1545,8 @@ var InlineEdit = React24.forwardRef(
|
|
|
1545
1545
|
// one. The extra 1px of bottom padding keeps the height identical so the text never jumps.
|
|
1546
1546
|
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-muted enabled:focus-visible:border-input-muted"
|
|
1547
1547
|
) : "rounded-md border border-transparent py-1 enabled:focus-visible:border-input-accent",
|
|
1548
|
-
|
|
1548
|
+
// The text is editable in place, so hovering it shows the text cursor.
|
|
1549
|
+
"enabled:cursor-text enabled:hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",
|
|
1549
1550
|
textClasses
|
|
1550
1551
|
),
|
|
1551
1552
|
children: [
|
|
@@ -3423,7 +3424,9 @@ var statCardVariants = cva6("flex min-w-0 flex-col gap-2 rounded-md border p-3",
|
|
|
3423
3424
|
default: "border-border bg-transparent",
|
|
3424
3425
|
// A card tinted with the secondary background and no border, for stats on a white panel.
|
|
3425
3426
|
subtle: "border-transparent bg-secondary",
|
|
3426
|
-
warning: "border-warning-soft-border bg-warning-soft"
|
|
3427
|
+
warning: "border-warning-soft-border bg-warning-soft",
|
|
3428
|
+
success: "border-success-soft-border bg-success-soft",
|
|
3429
|
+
destructive: "border-destructive-soft-border bg-destructive-soft"
|
|
3427
3430
|
}
|
|
3428
3431
|
},
|
|
3429
3432
|
defaultVariants: { variant: "default" }
|