@allxsmith/bestax-bulma 5.57.4 → 5.58.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.
Files changed (65) hide show
  1. package/dist/bestax.css +1 -1
  2. package/dist/bestax.css.map +1 -1
  3. package/dist/esm/components/Avatars.js +2 -2
  4. package/dist/esm/components/Avatars.js.map +1 -1
  5. package/dist/esm/components/Badge.js +2 -2
  6. package/dist/esm/components/Badge.js.map +1 -1
  7. package/dist/esm/components/Pagination.js +2 -2
  8. package/dist/esm/components/Pagination.js.map +1 -1
  9. package/dist/esm/components/Steps.js +2 -2
  10. package/dist/esm/components/Steps.js.map +1 -1
  11. package/dist/esm/components/TreeView.js +7 -5
  12. package/dist/esm/components/TreeView.js.map +1 -1
  13. package/dist/esm/components/useDataTable.js +2 -2
  14. package/dist/esm/components/useDataTable.js.map +1 -1
  15. package/dist/esm/elements/NumberFormatter.js +42 -0
  16. package/dist/esm/elements/NumberFormatter.js.map +1 -0
  17. package/dist/esm/elements/RingProgress.js +2 -2
  18. package/dist/esm/elements/RingProgress.js.map +1 -1
  19. package/dist/esm/form/Dropzone.js +2 -2
  20. package/dist/esm/form/Dropzone.js.map +1 -1
  21. package/dist/esm/form/File.js +2 -2
  22. package/dist/esm/form/File.js.map +1 -1
  23. package/dist/esm/form/Rate.js +2 -2
  24. package/dist/esm/form/Rate.js.map +1 -1
  25. package/dist/esm/form/Slider.js +2 -2
  26. package/dist/esm/form/Slider.js.map +1 -1
  27. package/dist/esm/form/Taginput.js +2 -2
  28. package/dist/esm/form/Taginput.js.map +1 -1
  29. package/dist/esm/form/_colorInternals/pickerState.js +2 -2
  30. package/dist/esm/form/_colorInternals/pickerState.js.map +1 -1
  31. package/dist/esm/helpers/LocaleProvider.js +13 -6
  32. package/dist/esm/helpers/LocaleProvider.js.map +1 -1
  33. package/dist/esm/helpers/localeFormat.js +196 -36
  34. package/dist/esm/helpers/localeFormat.js.map +1 -1
  35. package/dist/esm/helpers/useTreeView.js +54 -20
  36. package/dist/esm/helpers/useTreeView.js.map +1 -1
  37. package/dist/extras.css +1 -1
  38. package/dist/extras.css.map +1 -1
  39. package/dist/index.cjs +312 -76
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.esm.js +2 -0
  42. package/dist/index.esm.js.map +1 -1
  43. package/dist/types/components/TreeView.d.ts +20 -11
  44. package/dist/types/elements/NumberFormatter.d.ts +62 -0
  45. package/dist/types/helpers/LocaleProvider.d.ts +7 -0
  46. package/dist/types/helpers/localeFormat.d.ts +30 -8
  47. package/dist/types/helpers/useTreeView.d.ts +12 -6
  48. package/dist/types/index.d.ts +3 -0
  49. package/dist/types-cjs/components/TreeView.d.ts +20 -11
  50. package/dist/types-cjs/elements/NumberFormatter.d.ts +62 -0
  51. package/dist/types-cjs/helpers/LocaleProvider.d.ts +7 -0
  52. package/dist/types-cjs/helpers/localeFormat.d.ts +30 -8
  53. package/dist/types-cjs/helpers/useTreeView.d.ts +12 -6
  54. package/dist/types-cjs/index.d.ts +3 -0
  55. package/dist/versions/bestax-no-dark-mode.css +1 -1
  56. package/dist/versions/bestax-no-dark-mode.css.map +1 -1
  57. package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
  58. package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
  59. package/dist/versions/bestax-no-helpers.css +1 -1
  60. package/dist/versions/bestax-no-helpers.css.map +1 -1
  61. package/dist/versions/bestax-prefixed.css +1 -1
  62. package/dist/versions/bestax-prefixed.css.map +1 -1
  63. package/package.json +1 -1
  64. package/src/scss/form/_field.scss +40 -0
  65. package/src/scss/form/_index.scss +1 -0
@@ -0,0 +1,40 @@
1
+ // Field styles
2
+ // Extends Bulma's own field (`bulma/sass/form/tools`): a horizontal field's
3
+ // message goes under its control.
4
+
5
+ @use "bulma/sass/utilities/initial-variables" as iv;
6
+
7
+ // A horizontal `Field` wraps its children in `.field-body`, which Bulma makes
8
+ // a flex row from tablet up. A form component that renders a Field of its own
9
+ // (`Input`, `Checkboxes`, `Rate` and the rest, with `horizontal` and
10
+ // `message`) hands that body its control and its message, a `.help`, side by
11
+ // side, so the message sat beside the control. Bulma's own markup nests the
12
+ // two in an inner `.field`, where the message is under the control already.
13
+ //
14
+ // Here the body wraps when it holds a message of its own, and the message
15
+ // takes a whole line, so it sits under the control and the control keeps the
16
+ // width it has without one. A body with no message straight in it is left
17
+ // as Bulma lays it out. Below tablet the body is a block, the message is
18
+ // under the control there anyway, and neither rule changes anything. Both
19
+ // rules hang on the same `:has()`, so a browser without it leaves the body as
20
+ // Bulma lays it out; a full-width message in a row that doesn't wrap would
21
+ // squeeze the control instead.
22
+ .#{iv.$class-prefix}field-body:has(> .#{iv.$class-prefix}help) {
23
+ flex-wrap: wrap;
24
+ }
25
+
26
+ .#{iv.$class-prefix}field-body:has(> .#{iv.$class-prefix}help)
27
+ > .#{iv.$class-prefix}help {
28
+ flex-basis: 100%;
29
+ }
30
+
31
+ // Bulma spaces a field in the body from the one beside it with an end
32
+ // margin on every field but the last, and a message after it made the field
33
+ // not the last. With the message on a line of its own there is nothing
34
+ // beside it to keep apart, so the field (`Numberinput`'s, for one) keeps the
35
+ // width it has without a message. It outranks Bulma's rule rather than
36
+ // following it, so the order of the two stylesheets doesn't matter.
37
+ .#{iv.$class-prefix}field-body:has(> .#{iv.$class-prefix}help)
38
+ > .#{iv.$class-prefix}field:has(+ .#{iv.$class-prefix}help) {
39
+ margin-inline-end: 0;
40
+ }
@@ -24,3 +24,4 @@
24
24
  @use 'colorpicker';
25
25
  @use 'colorinput';
26
26
  @use 'fieldset';
27
+ @use 'field';