@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.
- package/dist/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +607 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +607 -160
- package/dist/index.esm.js.map +1 -1
- package/dist/types/form/Autocomplete.d.ts +6 -1
- package/dist/types/form/Checkboxes.d.ts +7 -0
- package/dist/types/form/DateInput.d.ts +22 -3
- package/dist/types/form/DateInputBase.d.ts +17 -3
- package/dist/types/form/DateTimeInput.d.ts +22 -3
- package/dist/types/form/DateTimeInputBase.d.ts +17 -3
- package/dist/types/form/File.d.ts +6 -0
- package/dist/types/form/FormContext.d.ts +86 -7
- package/dist/types/form/Input.d.ts +8 -2
- package/dist/types/form/Numberinput.d.ts +3 -0
- package/dist/types/form/Radios.d.ts +7 -0
- package/dist/types/form/Rate.d.ts +7 -0
- package/dist/types/form/Select.d.ts +8 -2
- package/dist/types/form/Slider.d.ts +7 -0
- package/dist/types/form/Taginput.d.ts +6 -0
- package/dist/types/form/TextArea.d.ts +8 -2
- package/dist/types/form/TimeInput.d.ts +22 -3
- package/dist/types/form/TimeInputBase.d.ts +16 -3
- package/dist/types/form/_pickerInternals/Calendar.d.ts +9 -3
- package/dist/types/form/_pickerInternals/dateUtils.d.ts +17 -0
- package/dist/types/form/controlLoading.d.ts +4 -0
- package/dist/types/helpers/useAnchoredPosition.d.ts +4 -1
- package/dist/types/helpers/useFocusTrap.d.ts +11 -4
- package/dist/types-cjs/form/Autocomplete.d.ts +6 -1
- package/dist/types-cjs/form/Checkboxes.d.ts +7 -0
- package/dist/types-cjs/form/DateInput.d.ts +22 -3
- package/dist/types-cjs/form/DateInputBase.d.ts +17 -3
- package/dist/types-cjs/form/DateTimeInput.d.ts +22 -3
- package/dist/types-cjs/form/DateTimeInputBase.d.ts +17 -3
- package/dist/types-cjs/form/File.d.ts +6 -0
- package/dist/types-cjs/form/FormContext.d.ts +86 -7
- package/dist/types-cjs/form/Input.d.ts +8 -2
- package/dist/types-cjs/form/Numberinput.d.ts +3 -0
- package/dist/types-cjs/form/Radios.d.ts +7 -0
- package/dist/types-cjs/form/Rate.d.ts +7 -0
- package/dist/types-cjs/form/Select.d.ts +8 -2
- package/dist/types-cjs/form/Slider.d.ts +7 -0
- package/dist/types-cjs/form/Taginput.d.ts +6 -0
- package/dist/types-cjs/form/TextArea.d.ts +8 -2
- package/dist/types-cjs/form/TimeInput.d.ts +22 -3
- package/dist/types-cjs/form/TimeInputBase.d.ts +16 -3
- package/dist/types-cjs/form/_pickerInternals/Calendar.d.ts +9 -3
- package/dist/types-cjs/form/_pickerInternals/dateUtils.d.ts +17 -0
- package/dist/types-cjs/form/controlLoading.d.ts +4 -0
- package/dist/types-cjs/helpers/useAnchoredPosition.d.ts +4 -1
- package/dist/types-cjs/helpers/useFocusTrap.d.ts +11 -4
- package/dist/versions/bestax-no-dark-mode.css +1 -1
- package/dist/versions/bestax-no-dark-mode.css.map +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
- package/dist/versions/bestax-no-helpers.css +1 -1
- package/dist/versions/bestax-no-helpers.css.map +1 -1
- package/dist/versions/bestax-prefixed.css +1 -1
- package/dist/versions/bestax-prefixed.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/form/_datetimeinput.scss +9 -0
- package/src/scss/form/_picker-popover.scss +12 -9
- package/src/scss/form/_rate.scss +3 -1
- package/src/scss/form/_taginput.scss +8 -0
- 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
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
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.
|