@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.
- package/dist/esm/components/Dropdown.js +8 -3
- package/dist/esm/components/Dropdown.js.map +1 -1
- package/dist/esm/components/Loading.js +5 -4
- package/dist/esm/components/Loading.js.map +1 -1
- package/dist/esm/components/Modal.js +11 -4
- package/dist/esm/components/Modal.js.map +1 -1
- package/dist/esm/components/Sidebar.js +5 -4
- package/dist/esm/components/Sidebar.js.map +1 -1
- package/dist/esm/components/Toast.js +7 -5
- package/dist/esm/components/Toast.js.map +1 -1
- package/dist/esm/form/Autocomplete.js +17 -2
- package/dist/esm/form/Autocomplete.js.map +1 -1
- package/dist/esm/form/Taginput.js +4 -0
- package/dist/esm/form/Taginput.js.map +1 -1
- package/dist/esm/form/_pickerInternals/PickerPopover.js +11 -3
- package/dist/esm/form/_pickerInternals/PickerPopover.js.map +1 -1
- package/dist/index.cjs +67 -25
- package/dist/index.cjs.map +1 -1
- package/dist/types/components/Loading.d.ts +5 -1
- package/dist/types/components/Modal.d.ts +4 -1
- package/dist/types/components/Sidebar.d.ts +5 -1
- package/dist/types/components/Toast.d.ts +4 -1
- package/dist/types/form/Autocomplete.d.ts +13 -2
- package/dist/types-cjs/components/Loading.d.ts +5 -1
- package/dist/types-cjs/components/Modal.d.ts +4 -1
- package/dist/types-cjs/components/Sidebar.d.ts +5 -1
- package/dist/types-cjs/components/Toast.d.ts +4 -1
- package/dist/types-cjs/form/Autocomplete.d.ts +13 -2
- package/package.json +1 -1
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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.
|
|
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",
|