@allxsmith/bestax-bulma 5.67.6 → 5.67.8

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.
Files changed (55) hide show
  1. package/dist/bestax.css +1 -1
  2. package/dist/bestax.css.map +1 -1
  3. package/dist/esm/form/ColorInput.js.map +1 -1
  4. package/dist/esm/form/ColorInputBase.js +6 -3
  5. package/dist/esm/form/ColorInputBase.js.map +1 -1
  6. package/dist/esm/form/DateInputBase.js +6 -3
  7. package/dist/esm/form/DateInputBase.js.map +1 -1
  8. package/dist/esm/form/DateRangeInputBase.js +9 -5
  9. package/dist/esm/form/DateRangeInputBase.js.map +1 -1
  10. package/dist/esm/form/DateTimeInputBase.js +6 -3
  11. package/dist/esm/form/DateTimeInputBase.js.map +1 -1
  12. package/dist/esm/form/PasswordInput.js.map +1 -1
  13. package/dist/esm/form/PasswordInputBase.js +7 -5
  14. package/dist/esm/form/PasswordInputBase.js.map +1 -1
  15. package/dist/esm/form/TimeInputBase.js +6 -3
  16. package/dist/esm/form/TimeInputBase.js.map +1 -1
  17. package/dist/esm/helpers/useFieldHelperClasses.js +60 -0
  18. package/dist/esm/helpers/useFieldHelperClasses.js.map +1 -0
  19. package/dist/extras.css +1 -1
  20. package/dist/extras.css.map +1 -1
  21. package/dist/index.cjs +88 -16
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/types/form/ColorInput.d.ts +4 -1
  24. package/dist/types/form/ColorInputBase.d.ts +4 -1
  25. package/dist/types/form/DateInputBase.d.ts +7 -0
  26. package/dist/types/form/DateRangeInputBase.d.ts +7 -0
  27. package/dist/types/form/DateTimeInputBase.d.ts +7 -0
  28. package/dist/types/form/PasswordInput.d.ts +3 -1
  29. package/dist/types/form/PasswordInputBase.d.ts +3 -1
  30. package/dist/types/form/TimeInputBase.d.ts +7 -0
  31. package/dist/types/helpers/useFieldHelperClasses.d.ts +26 -0
  32. package/dist/types-cjs/form/ColorInput.d.ts +4 -1
  33. package/dist/types-cjs/form/ColorInputBase.d.ts +4 -1
  34. package/dist/types-cjs/form/DateInputBase.d.ts +7 -0
  35. package/dist/types-cjs/form/DateRangeInputBase.d.ts +7 -0
  36. package/dist/types-cjs/form/DateTimeInputBase.d.ts +7 -0
  37. package/dist/types-cjs/form/PasswordInput.d.ts +3 -1
  38. package/dist/types-cjs/form/PasswordInputBase.d.ts +3 -1
  39. package/dist/types-cjs/form/TimeInputBase.d.ts +7 -0
  40. package/dist/types-cjs/helpers/useFieldHelperClasses.d.ts +26 -0
  41. package/dist/versions/bestax-no-dark-mode.css +1 -1
  42. package/dist/versions/bestax-no-dark-mode.css.map +1 -1
  43. package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
  44. package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
  45. package/dist/versions/bestax-no-helpers.css +1 -1
  46. package/dist/versions/bestax-no-helpers.css.map +1 -1
  47. package/dist/versions/bestax-prefixed.css +1 -1
  48. package/dist/versions/bestax-prefixed.css.map +1 -1
  49. package/package.json +1 -1
  50. package/src/scss/components/_carousel.scss +3 -2
  51. package/src/scss/components/_sidebar.scss +5 -2
  52. package/src/scss/components/_steps.scss +4 -2
  53. package/src/scss/components/_tabs.scss +25 -17
  54. package/src/scss/form/_field.scss +16 -1
  55. package/src/scss/form/_timeinput.scss +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allxsmith/bestax-bulma",
3
- "version": "5.67.6",
3
+ "version": "5.67.8",
4
4
  "description": "Component library based on React, Bulma, with Agent Skills and MCP",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.esm.js",
@@ -619,8 +619,9 @@ $carousel-indicator-line-radius: cv.getVar("radius-small") !default;
619
619
  }
620
620
  }
621
621
 
622
- // Responsive adjustments
623
- @media screen and (max-width: 768px) {
622
+ // Responsive adjustments, below Bulma's tablet breakpoint, so a build that
623
+ // moves `$tablet` moves them too
624
+ @include mx.mobile {
624
625
  .#{iv.$class-prefix}carousel {
625
626
  .#{iv.$class-prefix}carousel-arrow {
626
627
  width: cv.getVar("carousel-arrow-size-mobile");
@@ -3,6 +3,7 @@
3
3
 
4
4
  @use "bulma/sass/utilities/initial-variables" as iv;
5
5
  @use "bulma/sass/utilities/css-variables" as cv;
6
+ @use "bulma/sass/utilities/mixins" as mx;
6
7
  @use '../variables' as *;
7
8
  @use '../mixins' as *;
8
9
 
@@ -283,8 +284,10 @@ $sidebar-static-border-color: cv.getVar("border") !default;
283
284
  }
284
285
  }
285
286
 
286
- // Responsive breakpoints
287
- @include extras-tablet {
287
+ // Responsive breakpoints, from Bulma's tablet breakpoint, so a build that
288
+ // moves `$tablet` moves them too. Screens only, as before: Bulma's own tablet
289
+ // mixin also reaches print.
290
+ @include mx.from(iv.$tablet) {
288
291
  .#{iv.$class-prefix}sidebar {
289
292
  @include cv.register-vars(("sidebar-width": #{$sidebar-width-tablet}));
290
293
  }
@@ -3,6 +3,7 @@
3
3
 
4
4
  @use "bulma/sass/utilities/initial-variables" as iv;
5
5
  @use "bulma/sass/utilities/css-variables" as cv;
6
+ @use "bulma/sass/utilities/mixins" as mx;
6
7
  @use '../variables' as *;
7
8
  @use '../mixins' as *;
8
9
 
@@ -451,8 +452,9 @@ button.#{iv.$class-prefix}steps-link {
451
452
  margin-top: cv.getVar("steps-navigation-margin-top");
452
453
  }
453
454
 
454
- // Mobile modes
455
- @include extras-mobile {
455
+ // Mobile modes, below Bulma's tablet breakpoint, so a build that moves
456
+ // `$tablet` moves them too
457
+ @include mx.mobile {
456
458
  .#{iv.$class-prefix}steps.#{iv.$class-prefix}is-minimal {
457
459
  .#{iv.$class-prefix}steps-content {
458
460
  display: none;
@@ -4,6 +4,7 @@
4
4
 
5
5
  @use "bulma/sass/utilities/initial-variables" as iv;
6
6
  @use "bulma/sass/utilities/css-variables" as cv;
7
+ @use "bulma/sass/utilities/mixins" as mx;
7
8
  @use '../variables' as *;
8
9
  @use '../mixins' as *;
9
10
 
@@ -130,23 +131,28 @@ $tabs-content-padding: 1rem !default;
130
131
  }
131
132
 
132
133
  // Right side variant — reverse the flex direction, so the tabs sit at the
133
- // end of the row and the edge moves to their start
134
- &.#{iv.$class-prefix}is-right {
135
- flex-direction: row-reverse;
134
+ // end of the row and the edge moves to their start. From tablet up only,
135
+ // where the tabs sit beside the panel: these rules name one class more than
136
+ // the phone fallback below, so on a phone they would keep the row and the
137
+ // side edge.
138
+ @include mx.tablet {
139
+ &.#{iv.$class-prefix}is-right {
140
+ flex-direction: row-reverse;
141
+
142
+ > .#{iv.$class-prefix}tabs > ul {
143
+ border-inline-end: none;
144
+ border-inline-start: cv.getVar("tabs-vertical-border-width") solid cv.getVar("tabs-vertical-border-color");
136
145
 
137
- > .#{iv.$class-prefix}tabs > ul {
138
- border-inline-end: none;
139
- border-inline-start: cv.getVar("tabs-vertical-border-width") solid cv.getVar("tabs-vertical-border-color");
140
-
141
- > li {
142
- a {
143
- border-inline-end: none;
144
- border-inline-start: 2px solid transparent;
145
- }
146
+ > li {
147
+ a {
148
+ border-inline-end: none;
149
+ border-inline-start: 2px solid transparent;
150
+ }
146
151
 
147
- &.#{iv.$class-prefix}is-active a {
148
- border-inline-start-color: cv.getVar("link");
149
- border-inline-end-color: transparent;
152
+ &.#{iv.$class-prefix}is-active a {
153
+ border-inline-start-color: cv.getVar("link");
154
+ border-inline-end-color: transparent;
155
+ }
150
156
  }
151
157
  }
152
158
  }
@@ -160,8 +166,10 @@ $tabs-content-padding: 1rem !default;
160
166
  }
161
167
  }
162
168
 
163
- // Mobile fallback — vertical tabs stack to horizontal
164
- @include extras-mobile {
169
+ // Mobile fallback — vertical tabs stack to horizontal. Bulma's mobile query,
170
+ // which ends where its tablet query above starts, whatever `$tablet` a build
171
+ // configures, so a width gets one layout or the other.
172
+ @include mx.mobile {
165
173
  .#{iv.$class-prefix}tabs-root.#{iv.$class-prefix}is-vertical {
166
174
  flex-direction: column;
167
175
 
@@ -1,8 +1,10 @@
1
1
  // Field styles
2
2
  // Extends Bulma's own field (`bulma/sass/form/tools`): a horizontal field's
3
- // message goes under its control.
3
+ // message goes under its control, and its label's text sits against the
4
+ // control on a right-to-left page.
4
5
 
5
6
  @use "bulma/sass/utilities/initial-variables" as iv;
7
+ @use "bulma/sass/utilities/mixins" as mx;
6
8
 
7
9
  // A horizontal `Field` wraps its children in `.field-body`, which Bulma makes
8
10
  // a flex row from tablet up. A form component that renders a Field of its own
@@ -38,3 +40,16 @@
38
40
  > .#{iv.$class-prefix}field:has(+ .#{iv.$class-prefix}help) {
39
41
  margin-inline-end: 0;
40
42
  }
43
+
44
+ // From tablet up, Bulma sets a horizontal field's label beside its control
45
+ // and aligns its text `right`, against the control. On a right-to-left page
46
+ // the label sits to the control's right, so `right` pushed its text to the
47
+ // far edge. `end` is `right` left to right, so nothing moves there. The
48
+ // doubled class outranks Bulma's rule whichever stylesheet loads first, and
49
+ // the breakpoint is Bulma's, so a phone's label above its control keeps its
50
+ // start alignment.
51
+ @include mx.tablet {
52
+ .#{iv.$class-prefix}field-label.#{iv.$class-prefix}field-label {
53
+ text-align: end;
54
+ }
55
+ }
@@ -285,6 +285,8 @@ $timeinput-footer-padding: 0.5rem 0 0 !default;
285
285
  // feel. Item *height* is set inline by JS, and made taller on small viewports by
286
286
  // the component; the rules below adjust everything that's CSS-only (font size,
287
287
  // wheel width, gap, separator, mask intensity).
288
+ // Fixed at 768px rather than Bulma's `$tablet`: it must match
289
+ // `smallViewportMaxPx` in `useNativeMobilePicker`, which sets the item height.
288
290
  @media (max-width: 768px) {
289
291
  // Registered through `cv.register-vars` like the defaults above, so the
290
292
  // overrides land on the names the rules read.