@webority/ui-react 0.89.0 → 0.91.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.
@@ -2,7 +2,7 @@
2
2
  "format": "webority-guidance/1",
3
3
  "package": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.89.0"
5
+ "version": "0.91.0"
6
6
  },
7
7
  "components": [
8
8
  {
@@ -21,6 +21,7 @@ import "@webority/ui-elements/elements/context-menu";
21
21
  * @param {import('react').ReactNode} [props.children] The region to attach to, when `target` is not used.
22
22
  * @param {string} [props.ariaLabel]
23
23
  * @param {boolean} [props.disabled]
24
+ * @param {boolean} [props.open] Shows the menu open at the top-left corner of its region, for a design preview or a controlled caller.
24
25
  * @param {(detail: { region: Element, origin: Element, x: number, y: number }) => void} [props.onOpen]
25
26
  * Called as the menu opens. `region` is the matched target, `origin` the element the user acted on inside it.
26
27
  * @param {string} [props.menuClassName]
@@ -55,6 +56,8 @@ export default function AppContextMenu(props: {
55
56
  * @default false
56
57
  */
57
58
  disabled?: boolean;
59
+ /** Shows the panel open, for a design preview or a controlled caller. */
60
+ open?: boolean;
58
61
  onOpen?: (detail: {
59
62
  region: Element;
60
63
  origin: Element;
@@ -35,7 +35,7 @@ export default function AppDescriptions(props: {
35
35
  */
36
36
  size?: "sm" | "md";
37
37
  /**
38
- * Adds horizontal dividing lines between rows.
38
+ * Draws a rule between rows, across every column.
39
39
  * @default false
40
40
  */
41
41
  bordered?: boolean;
@@ -1,7 +1,7 @@
1
1
  import "@webority/ui-elements/file-viewer";
2
2
  declare const AppFileViewer: import("react").ForwardRefExoticComponent<{
3
3
  /** The file's URL. Changing it opens the new file. Without one the viewer draws its frame with a "No file to show." message. */
4
- src: string;
4
+ src?: string;
5
5
  /** The name shown in the toolbar and used for printing and download. Defaults to the last part of src. */
6
6
  name?: string;
7
7
  /** The file's MIME type. Defaults to a guess from the extension of name or src. */
@@ -12,6 +12,7 @@ import "@webority/ui-elements/elements/hover-card";
12
12
  * @param {import('react').ReactNode} props.trigger
13
13
  * @param {import('react').ReactNode} [props.children] The card's content. The card is phrasing content, so it can
14
14
  * sit on a name inside a sentence; there, build the content from spans (a `<div>` cannot be inside a `<p>`).
15
+ * @param {boolean} [props.open] Shows the panel open, for a design preview or a controlled caller.
15
16
  * @param {boolean} [props.loading]
16
17
  * @param {string} [props.loadingLabel]
17
18
  * @param {string} [props.label]
@@ -24,6 +25,8 @@ export default function AppHoverCard(props: {
24
25
  /** The name or link the card belongs to. Make it a link or button so keyboard users can focus it. */
25
26
  trigger: import('react').ReactNode;
26
27
  children?: import('react').ReactNode;
28
+ /** Shows the panel open, for a design preview or a controlled caller. */
29
+ open?: boolean;
27
30
  /**
28
31
  * Shows a spinner and the loading label in place of the children while the preview is fetched; start the fetch when the card opens.
29
32
  * @default false
@@ -14,6 +14,7 @@ import "@webority/ui-elements/elements/lightbox";
14
14
  * @param {{ src: string, thumb?: string, alt?: string, caption?: string, name?: string, key?: string }[]} props.items
15
15
  * @param {boolean} [props.download]
16
16
  * @param {string} [props.label]
17
+ * @param {number} [props.openIndex] Opens the viewer on this image, counted from 0.
17
18
  * @param {(index: number) => void} [props.onChange] Called with the position (from 0) of the
18
19
  * image shown, when the view opens and each time it changes.
19
20
  * @param {() => void} [props.onClose] Called when the full-screen view closes.
@@ -39,6 +40,8 @@ export default function AppLightbox(props: {
39
40
  * @default "Image viewer"
40
41
  */
41
42
  label?: string;
43
+ /** Opens the viewer on this image, counted from 0. */
44
+ openIndex?: number;
42
45
  onChange?: (index: number) => void;
43
46
  onClose?: () => void;
44
47
  /** Extra classes on the gallery. */
@@ -12,10 +12,11 @@
12
12
  * @param {'auto'|'top'|'bottom'|'start'|'end'} [props.placement]
13
13
  * @param {'default'|'dark'|'primary'|'success'|'warning'|'danger'} [props.tone]
14
14
  * @param {'sm'|'md'|'lg'} [props.size]
15
+ * @param {boolean} [props.open] Shows the panel open, for a design preview or a controlled caller.
15
16
  * @param {string} [props.shortcut]
16
17
  * @param {string} [props.className]
17
18
  */
18
- export default function AppTooltip({ content, children, placement, tone, size, shortcut, className, ...rest }: {
19
+ export default function AppTooltip(props: {
19
20
  /** The tooltip text or node. */
20
21
  content: import('react').ReactNode;
21
22
  children: import('react').ReactElement;
@@ -34,6 +35,8 @@ export default function AppTooltip({ content, children, placement, tone, size, s
34
35
  * @default "md"
35
36
  */
36
37
  size?: 'sm' | 'md' | 'lg';
38
+ /** Shows the panel open, for a design preview or a controlled caller. */
39
+ open?: boolean;
37
40
  /** The key that runs the action ("A", "E", "/"), drawn as a key chip after the text ("Approve A"). One character is written in upper case. */
38
41
  shortcut?: string;
39
42
  /**
@@ -85,6 +85,7 @@ export declare const GLYPHS: {
85
85
  files: string;
86
86
  filter: string;
87
87
  flag: string;
88
+ flame: string;
88
89
  flash: string;
89
90
  folder: string;
90
91
  "folder-2": string;
@@ -86,6 +86,7 @@ export declare const VARIANT_GLYPHS: {
86
86
  files: string;
87
87
  filter: string;
88
88
  flag: string;
89
+ flame: string;
89
90
  flash: string;
90
91
  folder: string;
91
92
  "folder-2": string;
@@ -299,6 +300,7 @@ export declare const VARIANT_GLYPHS: {
299
300
  files: string;
300
301
  filter: string;
301
302
  flag: string;
303
+ flame: string;
302
304
  flash: string;
303
305
  folder: string;
304
306
  "folder-2": string;
@@ -512,6 +514,7 @@ export declare const VARIANT_GLYPHS: {
512
514
  files: string;
513
515
  filter: string;
514
516
  flag: string;
517
+ flame: string;
515
518
  flash: string;
516
519
  folder: string;
517
520
  "folder-2": string;
@@ -725,6 +728,7 @@ export declare const VARIANT_GLYPHS: {
725
728
  files: string;
726
729
  filter: string;
727
730
  flag: string;
731
+ flame: string;
728
732
  flash: string;
729
733
  folder: string;
730
734
  "folder-2": string;
@@ -938,6 +942,7 @@ export declare const VARIANT_GLYPHS: {
938
942
  files: string;
939
943
  filter: string;
940
944
  flag: string;
945
+ flame: string;
941
946
  flash: string;
942
947
  folder: string;
943
948
  "folder-2": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.89.0",
3
+ "version": "0.91.0",
4
4
  "description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@webority/ui-elements": "0.89.0",
33
- "@webority/theme": "0.89.0"
32
+ "@webority/ui-elements": "0.91.0",
33
+ "@webority/theme": "0.91.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@webority/analytics": "^0.26.0",
@@ -56,8 +56,8 @@
56
56
  "typescript": "^7.0.2",
57
57
  "vite": "^8.0.12",
58
58
  "vitest": "5.0.1",
59
- "@webority/canvas-kit": "0.89.0",
60
- "@webority/tokens": "0.89.0"
59
+ "@webority/tokens": "0.91.0",
60
+ "@webority/canvas-kit": "0.91.0"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "vite build && tsc -p tsconfig.json && node ../../scripts/inject-meta-docs.mjs && node ../canvas-kit/dist/cli.js build --config canvas-kit.json --out dist/canvas-kit && node ../canvas-kit/dist/cli.js guidance --config canvas-kit.json --out dist/guidance.json && node ../../scripts/sync-rcl-assets.mjs analytics",