@allxsmith/bestax-bulma 5.26.3 → 5.26.5

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 (68) hide show
  1. package/dist/bestax.css +1 -1
  2. package/dist/bestax.css.map +1 -1
  3. package/dist/extras.css +1 -1
  4. package/dist/extras.css.map +1 -1
  5. package/dist/index.cjs +607 -160
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.esm.js +607 -160
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/types/form/Autocomplete.d.ts +6 -1
  10. package/dist/types/form/Checkboxes.d.ts +7 -0
  11. package/dist/types/form/DateInput.d.ts +22 -3
  12. package/dist/types/form/DateInputBase.d.ts +17 -3
  13. package/dist/types/form/DateTimeInput.d.ts +22 -3
  14. package/dist/types/form/DateTimeInputBase.d.ts +17 -3
  15. package/dist/types/form/File.d.ts +6 -0
  16. package/dist/types/form/FormContext.d.ts +86 -7
  17. package/dist/types/form/Input.d.ts +8 -2
  18. package/dist/types/form/Numberinput.d.ts +3 -0
  19. package/dist/types/form/Radios.d.ts +7 -0
  20. package/dist/types/form/Rate.d.ts +7 -0
  21. package/dist/types/form/Select.d.ts +8 -2
  22. package/dist/types/form/Slider.d.ts +7 -0
  23. package/dist/types/form/Taginput.d.ts +6 -0
  24. package/dist/types/form/TextArea.d.ts +8 -2
  25. package/dist/types/form/TimeInput.d.ts +22 -3
  26. package/dist/types/form/TimeInputBase.d.ts +16 -3
  27. package/dist/types/form/_pickerInternals/Calendar.d.ts +9 -3
  28. package/dist/types/form/_pickerInternals/dateUtils.d.ts +17 -0
  29. package/dist/types/form/controlLoading.d.ts +4 -0
  30. package/dist/types/helpers/useAnchoredPosition.d.ts +4 -1
  31. package/dist/types/helpers/useFocusTrap.d.ts +11 -4
  32. package/dist/types-cjs/form/Autocomplete.d.ts +6 -1
  33. package/dist/types-cjs/form/Checkboxes.d.ts +7 -0
  34. package/dist/types-cjs/form/DateInput.d.ts +22 -3
  35. package/dist/types-cjs/form/DateInputBase.d.ts +17 -3
  36. package/dist/types-cjs/form/DateTimeInput.d.ts +22 -3
  37. package/dist/types-cjs/form/DateTimeInputBase.d.ts +17 -3
  38. package/dist/types-cjs/form/File.d.ts +6 -0
  39. package/dist/types-cjs/form/FormContext.d.ts +86 -7
  40. package/dist/types-cjs/form/Input.d.ts +8 -2
  41. package/dist/types-cjs/form/Numberinput.d.ts +3 -0
  42. package/dist/types-cjs/form/Radios.d.ts +7 -0
  43. package/dist/types-cjs/form/Rate.d.ts +7 -0
  44. package/dist/types-cjs/form/Select.d.ts +8 -2
  45. package/dist/types-cjs/form/Slider.d.ts +7 -0
  46. package/dist/types-cjs/form/Taginput.d.ts +6 -0
  47. package/dist/types-cjs/form/TextArea.d.ts +8 -2
  48. package/dist/types-cjs/form/TimeInput.d.ts +22 -3
  49. package/dist/types-cjs/form/TimeInputBase.d.ts +16 -3
  50. package/dist/types-cjs/form/_pickerInternals/Calendar.d.ts +9 -3
  51. package/dist/types-cjs/form/_pickerInternals/dateUtils.d.ts +17 -0
  52. package/dist/types-cjs/form/controlLoading.d.ts +4 -0
  53. package/dist/types-cjs/helpers/useAnchoredPosition.d.ts +4 -1
  54. package/dist/types-cjs/helpers/useFocusTrap.d.ts +11 -4
  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/_datetimeinput.scss +9 -0
  65. package/src/scss/form/_picker-popover.scss +12 -9
  66. package/src/scss/form/_rate.scss +3 -1
  67. package/src/scss/form/_taginput.scss +8 -0
  68. package/src/scss/form/_timeinput.scss +5 -0
@@ -28,7 +28,10 @@ export interface UseAnchoredPositionOptions {
28
28
  /**
29
29
  * The gap between the anchor and the panel, in pixels, that the hook puts
30
30
  * there itself: added to the fixed coordinates and to the room `auto` asks
31
- * for below the anchor.
31
+ * for below the anchor. Popover and the pickers' popover pass `0` and take
32
+ * their gap from a margin in their stylesheet, read through `styledGap`, so
33
+ * a theme's offset moves the panel and `auto` alike. A new panel should do
34
+ * the same rather than rely on this default, which no stylesheet sees.
32
35
  * @defaultValue 4
33
36
  */
34
37
  offset?: number;
@@ -64,10 +64,17 @@ export interface UseFocusTrapOptions {
64
64
  * container, or give them a trap of their own. To trap content a `Portal`
65
65
  * renders, pass a ref to the element inside the `Portal` as `containerRef`.
66
66
  *
67
- * The container has to be in the DOM when the trap turns on. The trap waits
68
- * for hydration, so a container that only appears once the page has
69
- * hydrated, the way portaled content does, still has it attach in the commit
70
- * where the container appears.
67
+ * The trap looks at `containerRef` again each time the component calling it
68
+ * renders. A container that mounts after the trap turns on, such as a panel
69
+ * waiting for a `Portal` target held in state, has it attach once that
70
+ * component renders with the container in the DOM. When the container leaves
71
+ * or is replaced, the trap lets go of it as it would turning off, handing
72
+ * focus back, and attaches to the next one.
73
+ * A child that mounts the container in a render of its own (from its own
74
+ * state, or as a `Suspense` boundary resolves) goes unseen until the
75
+ * component calling the hook renders again. The trap waits for hydration, so
76
+ * that component renders again when the page hydrates, and portaled content,
77
+ * which first appears then, is found.
71
78
  *
72
79
  * @function useFocusTrap
73
80
  * @param containerRef - Ref to the element focus stays inside.