@allxsmith/bestax-bulma 5.44.0 → 5.45.1
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/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/esm/components/Carousel.js +2 -2
- package/dist/esm/components/Carousel.js.map +1 -1
- package/dist/esm/components/Modal.js +20 -7
- package/dist/esm/components/Modal.js.map +1 -1
- package/dist/esm/form/Checkbox.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +21 -8
- package/dist/index.cjs.map +1 -1
- package/dist/types/components/Carousel.d.ts +29 -3
- package/dist/types/components/Modal.d.ts +10 -1
- package/dist/types/form/Checkbox.d.ts +8 -6
- package/dist/types-cjs/components/Carousel.d.ts +29 -3
- package/dist/types-cjs/components/Modal.d.ts +10 -1
- package/dist/types-cjs/form/Checkbox.d.ts +8 -6
- package/dist/versions/bestax-no-dark-mode.css +1 -1
- package/dist/versions/bestax-no-dark-mode.css.map +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
- package/dist/versions/bestax-no-helpers.css +1 -1
- package/dist/versions/bestax-no-helpers.css.map +1 -1
- package/dist/versions/bestax-prefixed.css +1 -1
- package/dist/versions/bestax-prefixed.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/components/_carousel.scss +31 -13
|
@@ -134,9 +134,31 @@ export interface CarouselProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
134
134
|
* a carousel inside a form is not submitted by picking a slide.
|
|
135
135
|
*/
|
|
136
136
|
indicator?: boolean;
|
|
137
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* Puts the indicators over the slides instead of below them, at the edge
|
|
139
|
+
* `indicatorPosition` names. It also turns on the overlay look unless
|
|
140
|
+
* `overlayControls` says otherwise, so on its own it gives the look made
|
|
141
|
+
* for photos: light arrows, and light indicators on a dark gradient band.
|
|
142
|
+
*/
|
|
138
143
|
indicatorInside?: boolean;
|
|
139
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* The overlay look, made for photos. The arrows take the
|
|
146
|
+
* `--bulma-carousel-overlay-arrow-*` colors, and indicators over the
|
|
147
|
+
* slides take the `--bulma-carousel-overlay-indicator-*` colors on a dark
|
|
148
|
+
* gradient band. Indicators below the slides keep their plain colors,
|
|
149
|
+
* since they sit on the page. It follows `indicatorInside` unless you set
|
|
150
|
+
* it, so `overlayControls={false}` puts the indicators over the slides
|
|
151
|
+
* with the plain look, and `overlayControls` alone gives the arrows the
|
|
152
|
+
* overlay look with the indicators below. While it's on, `arrowColor`
|
|
153
|
+
* doesn't apply.
|
|
154
|
+
* @defaultValue indicatorInside
|
|
155
|
+
*/
|
|
156
|
+
overlayControls?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* The edge of the slides `indicatorInside` puts the indicators on.
|
|
159
|
+
* Default: 'bottom'. Without `indicatorInside` they sit below the slides
|
|
160
|
+
* whatever this says, so leave it unset there.
|
|
161
|
+
*/
|
|
140
162
|
indicatorPosition?: 'bottom' | 'top';
|
|
141
163
|
/** Indicator style. Default: 'dots'. */
|
|
142
164
|
indicatorStyle?: 'circles' | 'dots' | 'lines' | 'bars';
|
|
@@ -154,7 +176,11 @@ export interface CarouselProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
154
176
|
iconFeatures?: string | string[];
|
|
155
177
|
/** Show semi-transparent background on arrow buttons. Set to `false` for icon-only arrows. */
|
|
156
178
|
arrowBackground?: boolean;
|
|
157
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Color theme for navigation arrows. Not applied while the overlay look is
|
|
181
|
+
* on (see `overlayControls`, which `indicatorInside` turns on), whose
|
|
182
|
+
* arrows take `--bulma-carousel-overlay-arrow-color`.
|
|
183
|
+
*/
|
|
158
184
|
arrowColor?: 'light' | 'dark';
|
|
159
185
|
/** Accessible label for the carousel region. Default: 'Image carousel'. */
|
|
160
186
|
ariaLabel?: string;
|
|
@@ -9,7 +9,14 @@ export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
9
9
|
active?: boolean;
|
|
10
10
|
/** Alias for `active`. Whether the modal is open/visible. */
|
|
11
11
|
isActive?: boolean;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Called to ask for the modal to close. The props form calls it from the
|
|
14
|
+
* background and the close button it renders. In the compound form,
|
|
15
|
+
* `Modal.Close` calls it unless you give it an `onClick` of your own, and
|
|
16
|
+
* `Modal.Background` doesn't call it on its own: pass it
|
|
17
|
+
* `onClick={onClose}` for a click on the background to close the modal.
|
|
18
|
+
* Escape calls it in both forms unless `closeOnEscape` is `false`.
|
|
19
|
+
*/
|
|
13
20
|
onClose?: () => void;
|
|
14
21
|
/** Additional CSS classes for the modal. */
|
|
15
22
|
className?: string;
|
|
@@ -61,6 +68,7 @@ export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* Props for Modal.Background component.
|
|
71
|
+
* @extraProp {React.MouseEventHandler<HTMLDivElement>} [onClick] - Called when the background is clicked. The background doesn't call the modal's `onClose` on its own, so pass `onClick={onClose}` for a click on it to close the modal.
|
|
64
72
|
*/
|
|
65
73
|
export interface ModalBackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
66
74
|
/** Additional CSS classes. */
|
|
@@ -112,6 +120,7 @@ export interface ModalCardFootProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
112
120
|
* Props for Modal.Close component.
|
|
113
121
|
* @extraProp {'button' | 'submit' | 'reset'} [type='button'] - Button type. Defaults to `'button'`, so a close button inside a form does not submit it. Pass `'submit'` or `'reset'` and yours is used; any other value, or a spread carrying `type: undefined`, renders `'button'`.
|
|
114
122
|
* @extraProp {string} [aria-label='close'] - Accessible name. Pass your own to replace it. An empty one, or a spread carrying `'aria-label': undefined`, keeps the default rather than leaving the button unnamed.
|
|
123
|
+
* @extraProp {React.MouseEventHandler<HTMLButtonElement>} [onClick] - Called when the button is clicked. Without one, the button calls the `onClose` of the `Modal` around it. Yours replaces that rather than running before it, so call `onClose` from it if the button should still close the modal.
|
|
115
124
|
*/
|
|
116
125
|
export interface ModalCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
117
126
|
/** Additional CSS classes. */
|
|
@@ -47,12 +47,14 @@ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
47
47
|
/**
|
|
48
48
|
* Shows the mixed state, as in a "Select all" box when some of what it
|
|
49
49
|
* covers is checked. It's a look and an announcement only: `checked` is
|
|
50
|
-
* still the value, and a click still toggles `checked`.
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
50
|
+
* still the value, and a click still toggles `checked`. Set to `true` or
|
|
51
|
+
* `false`, it's controlled: a browser clears the mixed state on a click,
|
|
52
|
+
* so the component sets it again from this prop after every click and
|
|
53
|
+
* every render. Unset isn't `false`. The component leaves the input's own
|
|
54
|
+
* `indeterminate` property alone, so a ref can set it, and going from set
|
|
55
|
+
* to unset clears it once and hands it back. It has no HTML attribute, so
|
|
56
|
+
* server-rendered markup can't carry it, and a mixed box renders unmixed
|
|
57
|
+
* until hydration.
|
|
56
58
|
*/
|
|
57
59
|
indeterminate?: boolean;
|
|
58
60
|
/**
|
|
@@ -134,9 +134,31 @@ export interface CarouselProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
134
134
|
* a carousel inside a form is not submitted by picking a slide.
|
|
135
135
|
*/
|
|
136
136
|
indicator?: boolean;
|
|
137
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* Puts the indicators over the slides instead of below them, at the edge
|
|
139
|
+
* `indicatorPosition` names. It also turns on the overlay look unless
|
|
140
|
+
* `overlayControls` says otherwise, so on its own it gives the look made
|
|
141
|
+
* for photos: light arrows, and light indicators on a dark gradient band.
|
|
142
|
+
*/
|
|
138
143
|
indicatorInside?: boolean;
|
|
139
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* The overlay look, made for photos. The arrows take the
|
|
146
|
+
* `--bulma-carousel-overlay-arrow-*` colors, and indicators over the
|
|
147
|
+
* slides take the `--bulma-carousel-overlay-indicator-*` colors on a dark
|
|
148
|
+
* gradient band. Indicators below the slides keep their plain colors,
|
|
149
|
+
* since they sit on the page. It follows `indicatorInside` unless you set
|
|
150
|
+
* it, so `overlayControls={false}` puts the indicators over the slides
|
|
151
|
+
* with the plain look, and `overlayControls` alone gives the arrows the
|
|
152
|
+
* overlay look with the indicators below. While it's on, `arrowColor`
|
|
153
|
+
* doesn't apply.
|
|
154
|
+
* @defaultValue indicatorInside
|
|
155
|
+
*/
|
|
156
|
+
overlayControls?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* The edge of the slides `indicatorInside` puts the indicators on.
|
|
159
|
+
* Default: 'bottom'. Without `indicatorInside` they sit below the slides
|
|
160
|
+
* whatever this says, so leave it unset there.
|
|
161
|
+
*/
|
|
140
162
|
indicatorPosition?: 'bottom' | 'top';
|
|
141
163
|
/** Indicator style. Default: 'dots'. */
|
|
142
164
|
indicatorStyle?: 'circles' | 'dots' | 'lines' | 'bars';
|
|
@@ -154,7 +176,11 @@ export interface CarouselProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
154
176
|
iconFeatures?: string | string[];
|
|
155
177
|
/** Show semi-transparent background on arrow buttons. Set to `false` for icon-only arrows. */
|
|
156
178
|
arrowBackground?: boolean;
|
|
157
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Color theme for navigation arrows. Not applied while the overlay look is
|
|
181
|
+
* on (see `overlayControls`, which `indicatorInside` turns on), whose
|
|
182
|
+
* arrows take `--bulma-carousel-overlay-arrow-color`.
|
|
183
|
+
*/
|
|
158
184
|
arrowColor?: 'light' | 'dark';
|
|
159
185
|
/** Accessible label for the carousel region. Default: 'Image carousel'. */
|
|
160
186
|
ariaLabel?: string;
|
|
@@ -9,7 +9,14 @@ export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
9
9
|
active?: boolean;
|
|
10
10
|
/** Alias for `active`. Whether the modal is open/visible. */
|
|
11
11
|
isActive?: boolean;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Called to ask for the modal to close. The props form calls it from the
|
|
14
|
+
* background and the close button it renders. In the compound form,
|
|
15
|
+
* `Modal.Close` calls it unless you give it an `onClick` of your own, and
|
|
16
|
+
* `Modal.Background` doesn't call it on its own: pass it
|
|
17
|
+
* `onClick={onClose}` for a click on the background to close the modal.
|
|
18
|
+
* Escape calls it in both forms unless `closeOnEscape` is `false`.
|
|
19
|
+
*/
|
|
13
20
|
onClose?: () => void;
|
|
14
21
|
/** Additional CSS classes for the modal. */
|
|
15
22
|
className?: string;
|
|
@@ -61,6 +68,7 @@ export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* Props for Modal.Background component.
|
|
71
|
+
* @extraProp {React.MouseEventHandler<HTMLDivElement>} [onClick] - Called when the background is clicked. The background doesn't call the modal's `onClose` on its own, so pass `onClick={onClose}` for a click on it to close the modal.
|
|
64
72
|
*/
|
|
65
73
|
export interface ModalBackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
66
74
|
/** Additional CSS classes. */
|
|
@@ -112,6 +120,7 @@ export interface ModalCardFootProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
112
120
|
* Props for Modal.Close component.
|
|
113
121
|
* @extraProp {'button' | 'submit' | 'reset'} [type='button'] - Button type. Defaults to `'button'`, so a close button inside a form does not submit it. Pass `'submit'` or `'reset'` and yours is used; any other value, or a spread carrying `type: undefined`, renders `'button'`.
|
|
114
122
|
* @extraProp {string} [aria-label='close'] - Accessible name. Pass your own to replace it. An empty one, or a spread carrying `'aria-label': undefined`, keeps the default rather than leaving the button unnamed.
|
|
123
|
+
* @extraProp {React.MouseEventHandler<HTMLButtonElement>} [onClick] - Called when the button is clicked. Without one, the button calls the `onClose` of the `Modal` around it. Yours replaces that rather than running before it, so call `onClose` from it if the button should still close the modal.
|
|
115
124
|
*/
|
|
116
125
|
export interface ModalCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
117
126
|
/** Additional CSS classes. */
|
|
@@ -47,12 +47,14 @@ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
47
47
|
/**
|
|
48
48
|
* Shows the mixed state, as in a "Select all" box when some of what it
|
|
49
49
|
* covers is checked. It's a look and an announcement only: `checked` is
|
|
50
|
-
* still the value, and a click still toggles `checked`.
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
50
|
+
* still the value, and a click still toggles `checked`. Set to `true` or
|
|
51
|
+
* `false`, it's controlled: a browser clears the mixed state on a click,
|
|
52
|
+
* so the component sets it again from this prop after every click and
|
|
53
|
+
* every render. Unset isn't `false`. The component leaves the input's own
|
|
54
|
+
* `indeterminate` property alone, so a ref can set it, and going from set
|
|
55
|
+
* to unset clears it once and hands it back. It has no HTML attribute, so
|
|
56
|
+
* server-rendered markup can't carry it, and a mixed box renders unmixed
|
|
57
|
+
* until hydration.
|
|
56
58
|
*/
|
|
57
59
|
indeterminate?: boolean;
|
|
58
60
|
/**
|