@camstack/ui-library 1.2.190 → 1.2.192

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.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * How long something lasted, the way this product says it.
3
+ *
4
+ * Promoted verbatim from `composites/cap-settings/RecordingPanel.tsx`, which
5
+ * had been the only place answering this question about MEDIA. It is now the
6
+ * only place, so a clip's length and a recording's retention read the same.
7
+ *
8
+ * Two other private formatters stay where they are, on purpose:
9
+ * `config-form-field.tsx` formats a config VALUE (sub-second `ms`, `—` for a
10
+ * value that is not a number), and `scene-monitor-copy.ts`'s `humanDuration`
11
+ * is deliberately single-unit and coarse for a sentence. Neither is a media
12
+ * length, and folding them in here would change what they say.
13
+ */
14
+ export declare function formatDurationMs(ms: number): string;
@@ -2,7 +2,7 @@ import { HTMLAttributes } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const badgeVariants: (props?: ({
4
4
  variant?: "info" | "success" | "default" | "danger" | "warning" | null | undefined;
5
- styleVariant?: "outline" | "solid" | null | undefined;
5
+ styleVariant?: "solid" | "outline" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'style'>, VariantProps<typeof badgeVariants> {
8
8
  style?: 'solid' | 'outline';
@@ -1,7 +1,7 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "danger" | "primary" | "secondary" | "ghost" | "outline" | null | undefined;
4
+ variant?: "danger" | "primary" | "outline" | "secondary" | "ghost" | null | undefined;
5
5
  size?: "sm" | "md" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -2,7 +2,7 @@ import { ButtonHTMLAttributes } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
  declare const iconButtonVariants: (props?: ({
5
- variant?: "danger" | "primary" | "secondary" | "ghost" | "outline" | null | undefined;
5
+ variant?: "danger" | "primary" | "outline" | "secondary" | "ghost" | null | undefined;
6
6
  size?: "sm" | "md" | "lg" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof iconButtonVariants> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.2.190",
3
+ "version": "1.2.192",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -1,4 +0,0 @@
1
- import { ClipSourceNotice } from './clip-source-state.js';
2
- export declare function ClipSilentSources({ silent }: {
3
- readonly silent: readonly ClipSourceNotice[];
4
- }): import("react").JSX.Element | null;
@@ -1,9 +0,0 @@
1
- import { ClipSourceNotice } from './clip-source-state.js';
2
- export interface ClipSourceRowProps {
3
- readonly notice: ClipSourceNotice;
4
- /** How old this source's catalog is, or null when it was read live. */
5
- readonly catalogAge: string | null;
6
- readonly checked: boolean;
7
- readonly onToggle: (source: string, next: boolean) => void;
8
- }
9
- export declare function ClipSourceRow({ notice, catalogAge, checked, onToggle }: ClipSourceRowProps): import("react").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface ClipsBrowserProps {
2
- readonly deviceId: number;
3
- }
4
- export declare function ClipsBrowser({ deviceId }: ClipsBrowserProps): import("react").JSX.Element;