@allxsmith/bestax-bulma 5.34.1 → 5.34.2

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.
@@ -22,7 +22,11 @@ export interface LoadingProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
22
22
  size?: 'small' | 'medium' | 'large';
23
23
  /** Color variant for the spinner. Default is light grey. */
24
24
  color?: LoadingColor;
25
- /** Show a cancel button and allow closing. */
25
+ /**
26
+ * Show a cancel button and allow closing, by a click on the overlay or by
27
+ * Escape. An Escape a popup on the page closed on, by calling
28
+ * `preventDefault()`, doesn't cancel.
29
+ */
26
30
  canCancel?: boolean;
27
31
  /** Callback when cancel is triggered. */
28
32
  onCancel?: () => void;
@@ -30,7 +30,10 @@ export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
30
30
  children?: React.ReactNode;
31
31
  /**
32
32
  * Close the modal when the Escape key is pressed (calls `onClose`). Only the
33
- * topmost open modal responds, so Escape closes one layer at a time.
33
+ * topmost open modal responds, so Escape closes one layer at a time. A popup
34
+ * inside it, such as a Dropdown's menu or a date picker's calendar, takes
35
+ * its own Escape first, and so does content that calls `preventDefault()`
36
+ * on it.
34
37
  * @defaultValue true
35
38
  */
36
39
  closeOnEscape?: boolean;
@@ -24,7 +24,11 @@ export interface SidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'c
24
24
  overlay?: boolean;
25
25
  /** Close sidebar when overlay is clicked. Default: true. */
26
26
  overlayClose?: boolean;
27
- /** Close sidebar on Escape key. Default: true. */
27
+ /**
28
+ * Close sidebar on Escape key. A popup inside it, such as a Dropdown's menu
29
+ * or a date picker's calendar, takes its own Escape first, and so does
30
+ * content that calls `preventDefault()` on it. Default: true.
31
+ */
28
32
  escapeClose?: boolean;
29
33
  /** Allow closing the sidebar. Default: true. */
30
34
  canCancel?: boolean;
@@ -34,7 +34,10 @@ export interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
34
34
  rounded?: boolean;
35
35
  /** Pause auto-close timer on hover. Default: false. */
36
36
  pauseOnHover?: boolean;
37
- /** Whether the toast can be dismissed with Escape. Default: true. */
37
+ /**
38
+ * Whether the toast can be dismissed with Escape. An Escape a popup on the
39
+ * page closed on, by calling `preventDefault()`, leaves it up. Default: true.
40
+ */
38
41
  cancelable?: boolean;
39
42
  /** Text for an action button (e.g. "Undo"). */
40
43
  actionText?: string;
@@ -31,7 +31,12 @@ export interface AutocompleteProps extends Omit<React.HTMLAttributes<HTMLDivElem
31
31
  data: AutocompleteItem[] | string[];
32
32
  /** The current input value (controlled). */
33
33
  value?: string;
34
- /** The selected item (controlled). */
34
+ /**
35
+ * Does nothing: Autocomplete doesn't read it.
36
+ *
37
+ * @deprecated Nothing reads it, and `onSelect` is what reports a pick. It
38
+ * will be removed in the next major version.
39
+ */
35
40
  selected?: AutocompleteItem | string | null;
36
41
  /** Placeholder text for the input. */
37
42
  placeholder?: string;
@@ -54,7 +59,13 @@ export interface AutocompleteProps extends Omit<React.HTMLAttributes<HTMLDivElem
54
59
  selectOnClickOutside?: boolean;
55
60
  /** Maximum dropdown height in pixels. */
56
61
  maxHeight?: number;
57
- /** Render as dropdown style. */
62
+ /**
63
+ * Does nothing: Autocomplete doesn't read it, and always shows its
64
+ * suggestions in a dropdown.
65
+ *
66
+ * @deprecated It will be removed in the next major version, with nothing
67
+ * in its place.
68
+ */
58
69
  dropdown?: boolean;
59
70
  /**
60
71
  * Show a loading spinner in the input.
@@ -22,7 +22,11 @@ export interface LoadingProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
22
22
  size?: 'small' | 'medium' | 'large';
23
23
  /** Color variant for the spinner. Default is light grey. */
24
24
  color?: LoadingColor;
25
- /** Show a cancel button and allow closing. */
25
+ /**
26
+ * Show a cancel button and allow closing, by a click on the overlay or by
27
+ * Escape. An Escape a popup on the page closed on, by calling
28
+ * `preventDefault()`, doesn't cancel.
29
+ */
26
30
  canCancel?: boolean;
27
31
  /** Callback when cancel is triggered. */
28
32
  onCancel?: () => void;
@@ -30,7 +30,10 @@ export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
30
30
  children?: React.ReactNode;
31
31
  /**
32
32
  * Close the modal when the Escape key is pressed (calls `onClose`). Only the
33
- * topmost open modal responds, so Escape closes one layer at a time.
33
+ * topmost open modal responds, so Escape closes one layer at a time. A popup
34
+ * inside it, such as a Dropdown's menu or a date picker's calendar, takes
35
+ * its own Escape first, and so does content that calls `preventDefault()`
36
+ * on it.
34
37
  * @defaultValue true
35
38
  */
36
39
  closeOnEscape?: boolean;
@@ -24,7 +24,11 @@ export interface SidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'c
24
24
  overlay?: boolean;
25
25
  /** Close sidebar when overlay is clicked. Default: true. */
26
26
  overlayClose?: boolean;
27
- /** Close sidebar on Escape key. Default: true. */
27
+ /**
28
+ * Close sidebar on Escape key. A popup inside it, such as a Dropdown's menu
29
+ * or a date picker's calendar, takes its own Escape first, and so does
30
+ * content that calls `preventDefault()` on it. Default: true.
31
+ */
28
32
  escapeClose?: boolean;
29
33
  /** Allow closing the sidebar. Default: true. */
30
34
  canCancel?: boolean;
@@ -34,7 +34,10 @@ export interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
34
34
  rounded?: boolean;
35
35
  /** Pause auto-close timer on hover. Default: false. */
36
36
  pauseOnHover?: boolean;
37
- /** Whether the toast can be dismissed with Escape. Default: true. */
37
+ /**
38
+ * Whether the toast can be dismissed with Escape. An Escape a popup on the
39
+ * page closed on, by calling `preventDefault()`, leaves it up. Default: true.
40
+ */
38
41
  cancelable?: boolean;
39
42
  /** Text for an action button (e.g. "Undo"). */
40
43
  actionText?: string;
@@ -31,7 +31,12 @@ export interface AutocompleteProps extends Omit<React.HTMLAttributes<HTMLDivElem
31
31
  data: AutocompleteItem[] | string[];
32
32
  /** The current input value (controlled). */
33
33
  value?: string;
34
- /** The selected item (controlled). */
34
+ /**
35
+ * Does nothing: Autocomplete doesn't read it.
36
+ *
37
+ * @deprecated Nothing reads it, and `onSelect` is what reports a pick. It
38
+ * will be removed in the next major version.
39
+ */
35
40
  selected?: AutocompleteItem | string | null;
36
41
  /** Placeholder text for the input. */
37
42
  placeholder?: string;
@@ -54,7 +59,13 @@ export interface AutocompleteProps extends Omit<React.HTMLAttributes<HTMLDivElem
54
59
  selectOnClickOutside?: boolean;
55
60
  /** Maximum dropdown height in pixels. */
56
61
  maxHeight?: number;
57
- /** Render as dropdown style. */
62
+ /**
63
+ * Does nothing: Autocomplete doesn't read it, and always shows its
64
+ * suggestions in a dropdown.
65
+ *
66
+ * @deprecated It will be removed in the next major version, with nothing
67
+ * in its place.
68
+ */
58
69
  dropdown?: boolean;
59
70
  /**
60
71
  * Show a loading spinner in the input.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allxsmith/bestax-bulma",
3
- "version": "5.34.1",
3
+ "version": "5.34.2",
4
4
  "description": "A fully-typed React component library for the Bulma CSS framework. Build modern UIs quickly with reusable, accessible, and customizable Bulma-based React components.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.esm.js",