@allxsmith/bestax-bulma 5.67.11 → 5.67.12

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.
@@ -15,17 +15,19 @@ export interface NotificationProps extends React.HTMLAttributes<HTMLDivElement>,
15
15
  * notification renders unstyled; those log a console warning in development
16
16
  * and will be removed from this union in the next major version.
17
17
  *
18
- * `dark` takes the dark color's own text and background from bestax's
19
- * stylesheets, as a dark `Button` has. With Bulma's CSS alone, a dark
20
- * notification's text inherits the color around it, which on a light page
21
- * is one shade off its background.
18
+ * `dark` and `light` take their color's own text and background from
19
+ * bestax's stylesheets, as a dark or light `Button` has. With Bulma's CSS
20
+ * alone, their text inherits the color around it, which on a light page is
21
+ * one shade off a dark notification's background, and on a dark page is
22
+ * hard to read on a light one.
22
23
  */
23
24
  color?: (typeof validColors)[number];
24
25
  /** Text color helper. */
25
26
  textColor?: (typeof validColors)[number] | 'inherit' | 'current';
26
27
  /**
27
- * Use the light color variant. The dark color has none, so `color="dark"`
28
- * with `isLight` looks the same as without it, as a dark `Button` does.
28
+ * Use the light color variant. The light and dark colors have none, so
29
+ * `color="light"` or `color="dark"` with `isLight` looks the same as
30
+ * without it, as a light or dark `Button` does.
29
31
  */
30
32
  isLight?: boolean;
31
33
  /**
@@ -80,15 +82,17 @@ export interface NotificationOptions {
80
82
  * notification renders unstyled; those log a console warning in development
81
83
  * and will be removed from this union in the next major version.
82
84
  *
83
- * `dark` takes the dark color's own text and background from bestax's
84
- * stylesheets, as a dark `Button` has. With Bulma's CSS alone, a dark
85
- * notification's text inherits the color around it, which on a light page
86
- * is one shade off its background.
85
+ * `dark` and `light` take their color's own text and background from
86
+ * bestax's stylesheets, as a dark or light `Button` has. With Bulma's CSS
87
+ * alone, their text inherits the color around it, which on a light page is
88
+ * one shade off a dark notification's background, and on a dark page is
89
+ * hard to read on a light one.
87
90
  */
88
91
  color?: (typeof validColors)[number];
89
92
  /**
90
- * Use the light color variant. The dark color has none, so `color="dark"`
91
- * with `isLight` looks the same as without it, as a dark `Button` does.
93
+ * Use the light color variant. The light and dark colors have none, so
94
+ * `color="light"` or `color="dark"` with `isLight` looks the same as
95
+ * without it, as a light or dark `Button` does.
92
96
  */
93
97
  isLight?: boolean;
94
98
  /** Duration in ms before auto-close. Default 3000. */
@@ -16,11 +16,20 @@ export type TagSize = (typeof validTagSizes)[number];
16
16
  export interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'>, Omit<BulmaClassesProps, 'color'> {
17
17
  /** Additional CSS classes to apply. */
18
18
  className?: string;
19
- /** Bulma color modifier for the tag. */
19
+ /**
20
+ * Bulma color modifier for the tag.
21
+ *
22
+ * `light` takes the light color's own text from bestax's stylesheets. With
23
+ * Bulma's CSS alone, a light tag's text inherits the color around it, which
24
+ * on a dark page is hard to read.
25
+ */
20
26
  color?: TagColor;
21
27
  /** Tag size. */
22
28
  size?: TagSize;
23
- /** Use the light color variant. */
29
+ /**
30
+ * Use the light color variant. The light color has none, so
31
+ * `color="light"` with `isLight` looks the same as without it.
32
+ */
24
33
  isLight?: boolean;
25
34
  /** Renders a rounded tag. */
26
35
  isRounded?: boolean;
@@ -15,17 +15,19 @@ export interface NotificationProps extends React.HTMLAttributes<HTMLDivElement>,
15
15
  * notification renders unstyled; those log a console warning in development
16
16
  * and will be removed from this union in the next major version.
17
17
  *
18
- * `dark` takes the dark color's own text and background from bestax's
19
- * stylesheets, as a dark `Button` has. With Bulma's CSS alone, a dark
20
- * notification's text inherits the color around it, which on a light page
21
- * is one shade off its background.
18
+ * `dark` and `light` take their color's own text and background from
19
+ * bestax's stylesheets, as a dark or light `Button` has. With Bulma's CSS
20
+ * alone, their text inherits the color around it, which on a light page is
21
+ * one shade off a dark notification's background, and on a dark page is
22
+ * hard to read on a light one.
22
23
  */
23
24
  color?: (typeof validColors)[number];
24
25
  /** Text color helper. */
25
26
  textColor?: (typeof validColors)[number] | 'inherit' | 'current';
26
27
  /**
27
- * Use the light color variant. The dark color has none, so `color="dark"`
28
- * with `isLight` looks the same as without it, as a dark `Button` does.
28
+ * Use the light color variant. The light and dark colors have none, so
29
+ * `color="light"` or `color="dark"` with `isLight` looks the same as
30
+ * without it, as a light or dark `Button` does.
29
31
  */
30
32
  isLight?: boolean;
31
33
  /**
@@ -80,15 +82,17 @@ export interface NotificationOptions {
80
82
  * notification renders unstyled; those log a console warning in development
81
83
  * and will be removed from this union in the next major version.
82
84
  *
83
- * `dark` takes the dark color's own text and background from bestax's
84
- * stylesheets, as a dark `Button` has. With Bulma's CSS alone, a dark
85
- * notification's text inherits the color around it, which on a light page
86
- * is one shade off its background.
85
+ * `dark` and `light` take their color's own text and background from
86
+ * bestax's stylesheets, as a dark or light `Button` has. With Bulma's CSS
87
+ * alone, their text inherits the color around it, which on a light page is
88
+ * one shade off a dark notification's background, and on a dark page is
89
+ * hard to read on a light one.
87
90
  */
88
91
  color?: (typeof validColors)[number];
89
92
  /**
90
- * Use the light color variant. The dark color has none, so `color="dark"`
91
- * with `isLight` looks the same as without it, as a dark `Button` does.
93
+ * Use the light color variant. The light and dark colors have none, so
94
+ * `color="light"` or `color="dark"` with `isLight` looks the same as
95
+ * without it, as a light or dark `Button` does.
92
96
  */
93
97
  isLight?: boolean;
94
98
  /** Duration in ms before auto-close. Default 3000. */
@@ -16,11 +16,20 @@ export type TagSize = (typeof validTagSizes)[number];
16
16
  export interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'>, Omit<BulmaClassesProps, 'color'> {
17
17
  /** Additional CSS classes to apply. */
18
18
  className?: string;
19
- /** Bulma color modifier for the tag. */
19
+ /**
20
+ * Bulma color modifier for the tag.
21
+ *
22
+ * `light` takes the light color's own text from bestax's stylesheets. With
23
+ * Bulma's CSS alone, a light tag's text inherits the color around it, which
24
+ * on a dark page is hard to read.
25
+ */
20
26
  color?: TagColor;
21
27
  /** Tag size. */
22
28
  size?: TagSize;
23
- /** Use the light color variant. */
29
+ /**
30
+ * Use the light color variant. The light color has none, so
31
+ * `color="light"` with `isLight` looks the same as without it.
32
+ */
24
33
  isLight?: boolean;
25
34
  /** Renders a rounded tag. */
26
35
  isRounded?: boolean;