@webority/ui-react 0.8.6 → 0.8.8

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.
@@ -17,11 +17,12 @@
17
17
  * @param {string} [props.imageAlt] Alt text for the custom image.
18
18
  * @param {"md"|"sm"} [props.size="md"] `sm` is a compact single line with tone-coloured text.
19
19
  * @param {boolean} [props.bordered=true] Draw the soft ring and thick tone-coloured left edge. `false` keeps only the tint fill.
20
+ * @param {import('react').ReactNode} [props.action] A trailing action pinned to the right — usually an `AppButton`.
20
21
  * @param {boolean} [props.dismissible=false] Show a × on the right that removes the callout.
21
22
  * @param {() => void} [props.onDismiss] Called after the callout is dismissed.
22
23
  * @param {string} [props.className]
23
24
  */
24
- export default function AppCallout({ children, tone, title, icon, image, imageAlt, size, bordered, dismissible, onDismiss, className, ...rest }: {
25
+ export default function AppCallout({ children, tone, title, icon, image, imageAlt, size, bordered, action, dismissible, onDismiss, className, ...rest }: {
25
26
  children: import('react').ReactNode;
26
27
  tone?: "info" | "success" | "warning" | "danger";
27
28
  title?: import('react').ReactNode;
@@ -30,6 +31,7 @@ export default function AppCallout({ children, tone, title, icon, image, imageAl
30
31
  imageAlt?: string;
31
32
  size?: "md" | "sm";
32
33
  bordered?: boolean;
34
+ action?: import('react').ReactNode;
33
35
  dismissible?: boolean;
34
36
  onDismiss?: () => void;
35
37
  className?: string;
@@ -1,4 +1,4 @@
1
- export default function AppChoiceChip({ multiple, label, name, value, checked, onChange, children, count, className, ...rest }: {
1
+ export default function AppChoiceChip({ multiple, label, name, value, checked, onChange, children, count, size, className, ...rest }: {
2
2
  [x: string]: any;
3
3
  checked: any;
4
4
  children: any;
@@ -8,5 +8,6 @@ export default function AppChoiceChip({ multiple, label, name, value, checked, o
8
8
  multiple?: boolean;
9
9
  name: any;
10
10
  onChange: any;
11
+ size?: string;
11
12
  value: any;
12
13
  }): import("react").JSX.Element;
@@ -3,7 +3,7 @@ fallback, // node shown when there's no image (e.g. initials)
3
3
  name, onPick, // (file) => void — receives a validated File
4
4
  onRemove, // () => void — clears the current logo
5
5
  loading, // show a spinner + block interaction while the pick is uploading
6
- disabled, accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, label, hint, error, required, variant, size, shape, className, ...rest }: {
6
+ disabled, accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, label, hint, error, layout, title, subtitle, required, variant, size, shape, className, ...rest }: {
7
7
  [x: string]: any;
8
8
  accept?: string;
9
9
  ariaLabel?: string;
@@ -13,6 +13,7 @@ disabled, accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, label, hint,
13
13
  fallback: any;
14
14
  hint: any;
15
15
  label: any;
16
+ layout?: string;
16
17
  loading?: boolean;
17
18
  maxSizeMb?: number;
18
19
  name: any;
@@ -23,6 +24,8 @@ disabled, accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, label, hint,
23
24
  required?: boolean;
24
25
  shape?: string;
25
26
  size?: string;
27
+ subtitle: any;
28
+ title: any;
26
29
  value: any;
27
30
  variant?: string;
28
31
  }): import("react").JSX.Element;
@@ -25,13 +25,16 @@
25
25
  * `status` drives the dot + rail in the progress variant; `description` is a
26
26
  * plain inline subtext under the title (distinct from the boxed `note`).
27
27
  * @param {'feed'|'progress'} [props.variant] Layout mode. Defaults to `feed`.
28
+ * @param {'vertical'|'horizontal'} [props.orientation] Rail direction — vertical (default) stacks
29
+ * items top-to-bottom; horizontal lays dots in a row with the body beneath each. Orthogonal to
30
+ * `variant`, so both feed and progress can run horizontally.
28
31
  * @param {number} [props.size] Dot diameter in px (default 24). The rail, halo
29
32
  * and glyph scale from it, so the whole timeline grows/shrinks in proportion.
30
33
  * @param {string} [props.className]
31
34
  * @param {import('react').CSSProperties} [props.style] Inline style on the list;
32
35
  * the `size` var is merged into it.
33
36
  */
34
- export default function AppTimeline({ items, variant, size, className, style, ...rest }: {
37
+ export default function AppTimeline({ items, variant, orientation, size, className, style, ...rest }: {
35
38
  items: {
36
39
  key?: string;
37
40
  icon?: string;
@@ -44,6 +47,7 @@ export default function AppTimeline({ items, variant, size, className, style, ..
44
47
  note?: string;
45
48
  }[];
46
49
  variant?: 'feed' | 'progress';
50
+ orientation?: 'vertical' | 'horizontal';
47
51
  size?: number;
48
52
  className?: string;
49
53
  style?: import('react').CSSProperties;