@allxsmith/bestax-bulma 5.44.0 → 5.45.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.
@@ -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
- /** Position indicators inside carousel. */
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
- /** Indicator position. Default: 'bottom'. */
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
- /** Color theme for navigation arrows. */
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;
@@ -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`. A browser clears
51
- * the mixed state on a click, so the component sets it again from this
52
- * prop after every click and every render. Left unset, the component
53
- * doesn't touch it, and once it has set it, going back to unset clears it
54
- * once and hands it back. It has no HTML attribute, so server-rendered
55
- * markup can't carry it, and a mixed box renders unmixed until hydration.
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
- /** Position indicators inside carousel. */
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
- /** Indicator position. Default: 'bottom'. */
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
- /** Color theme for navigation arrows. */
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;
@@ -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`. A browser clears
51
- * the mixed state on a click, so the component sets it again from this
52
- * prop after every click and every render. Left unset, the component
53
- * doesn't touch it, and once it has set it, going back to unset clears it
54
- * once and hands it back. It has no HTML attribute, so server-rendered
55
- * markup can't carry it, and a mixed box renders unmixed until hydration.
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
  /**