@allxsmith/bestax-bulma 5.67.7 → 5.67.9

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/components/DataTable.js +2 -1
  4. package/dist/esm/components/DataTable.js.map +1 -1
  5. package/dist/esm/form/ColorInput.js.map +1 -1
  6. package/dist/esm/form/ColorInputBase.js +6 -3
  7. package/dist/esm/form/ColorInputBase.js.map +1 -1
  8. package/dist/esm/form/DateInputBase.js +6 -3
  9. package/dist/esm/form/DateInputBase.js.map +1 -1
  10. package/dist/esm/form/DateRangeInputBase.js +9 -5
  11. package/dist/esm/form/DateRangeInputBase.js.map +1 -1
  12. package/dist/esm/form/DateTimeInputBase.js +6 -3
  13. package/dist/esm/form/DateTimeInputBase.js.map +1 -1
  14. package/dist/esm/form/PasswordInput.js.map +1 -1
  15. package/dist/esm/form/PasswordInputBase.js +7 -5
  16. package/dist/esm/form/PasswordInputBase.js.map +1 -1
  17. package/dist/esm/form/TimeInputBase.js +6 -3
  18. package/dist/esm/form/TimeInputBase.js.map +1 -1
  19. package/dist/esm/helpers/useFieldHelperClasses.js +60 -0
  20. package/dist/esm/helpers/useFieldHelperClasses.js.map +1 -0
  21. package/dist/extras.css +1 -1
  22. package/dist/extras.css.map +1 -1
  23. package/dist/index.cjs +90 -17
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/types/components/DataTable.d.ts +2 -1
  26. package/dist/types/form/ColorInput.d.ts +4 -1
  27. package/dist/types/form/ColorInputBase.d.ts +4 -1
  28. package/dist/types/form/DateInputBase.d.ts +7 -0
  29. package/dist/types/form/DateRangeInputBase.d.ts +7 -0
  30. package/dist/types/form/DateTimeInputBase.d.ts +7 -0
  31. package/dist/types/form/PasswordInput.d.ts +3 -1
  32. package/dist/types/form/PasswordInputBase.d.ts +3 -1
  33. package/dist/types/form/TimeInputBase.d.ts +7 -0
  34. package/dist/types/helpers/useFieldHelperClasses.d.ts +26 -0
  35. package/dist/types-cjs/components/DataTable.d.ts +2 -1
  36. package/dist/types-cjs/form/ColorInput.d.ts +4 -1
  37. package/dist/types-cjs/form/ColorInputBase.d.ts +4 -1
  38. package/dist/types-cjs/form/DateInputBase.d.ts +7 -0
  39. package/dist/types-cjs/form/DateRangeInputBase.d.ts +7 -0
  40. package/dist/types-cjs/form/DateTimeInputBase.d.ts +7 -0
  41. package/dist/types-cjs/form/PasswordInput.d.ts +3 -1
  42. package/dist/types-cjs/form/PasswordInputBase.d.ts +3 -1
  43. package/dist/types-cjs/form/TimeInputBase.d.ts +7 -0
  44. package/dist/types-cjs/helpers/useFieldHelperClasses.d.ts +26 -0
  45. package/dist/versions/bestax-no-dark-mode.css +1 -1
  46. package/dist/versions/bestax-no-dark-mode.css.map +1 -1
  47. package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
  48. package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
  49. package/dist/versions/bestax-no-helpers.css +1 -1
  50. package/dist/versions/bestax-no-helpers.css.map +1 -1
  51. package/dist/versions/bestax-prefixed.css +1 -1
  52. package/dist/versions/bestax-prefixed.css.map +1 -1
  53. package/package.json +1 -1
  54. package/src/scss/components/_datatable.scss +14 -2
  55. package/src/scss/form/_field.scss +16 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allxsmith/bestax-bulma",
3
- "version": "5.67.7",
3
+ "version": "5.67.9",
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",
@@ -1,8 +1,9 @@
1
1
  // Bestax Extras - DataTable Styles
2
2
  // DataTable renders Bulma's own table, checkboxes and pager, which Bulma and
3
3
  // the Checkbox partial style. This adds what Bulma has no class for: the
4
- // toolbar above the table, the button a sortable header holds, and the
5
- // indicator that shows which way it sorts.
4
+ // toolbar above the table, the button a sortable header holds, the
5
+ // indicator that shows which way it sorts, and the height of a loading
6
+ // row's skeleton lines.
6
7
  //
7
8
  // The sort button is styled on its own class rather than inside
8
9
  // `.data-table`, so a table built from `useDataTable`'s props, with no
@@ -119,6 +120,17 @@ $-descending: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'
119
120
  }
120
121
  }
121
122
 
123
+ // While `loading`, each cell holds one skeleton line. Bulma draws a skeleton
124
+ // line half a line of text tall, which left a loading row shorter than the
125
+ // row that replaces it, so the table jumped when the data came. This one is
126
+ // a line of the cell's text tall, as Stat's loading Skeleton is a line of its
127
+ // figure. The extra class outranks Bulma's rule whichever sheet loads first,
128
+ // and a browser without `lh` keeps Bulma's height.
129
+ .#{iv.$class-prefix}data-table-skeleton.#{iv.$class-prefix}skeleton-lines
130
+ > div {
131
+ height: 1lh;
132
+ }
133
+
122
134
  // The sorted header says which way in `aria-sort`, so the indicator reads it
123
135
  // from there, and markup built from `useDataTable`'s props shows it too.
124
136
  th[aria-sort='ascending'] > .#{iv.$class-prefix}data-table-sort::after {
@@ -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
+ }