@allxsmith/bestax-bulma 5.23.0 → 5.25.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.
- package/dist/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/constants.cjs +30 -0
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +18 -0
- package/dist/constants.esm.js +30 -1
- package/dist/constants.esm.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +6801 -5897
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +6797 -5899
- package/dist/index.esm.js.map +1 -1
- package/dist/types/columns/Columns.d.ts +10 -2
- package/dist/types/components/Popover.d.ts +166 -0
- package/dist/types/form/DateInput.d.ts +1 -1
- package/dist/types/form/DateInputBase.d.ts +33 -3
- package/dist/types/form/_pickerInternals/Calendar.d.ts +11 -1
- package/dist/types/form/_pickerInternals/dateUtils.d.ts +36 -1
- package/dist/types/form/_pickerInternals/formatters.d.ts +2 -0
- package/dist/types/form/_pickerInternals/nativeInputSupport.d.ts +11 -0
- package/dist/types/form/_pickerInternals/pickerTypes.d.ts +10 -0
- package/dist/types/form/_pickerInternals/useSegmentedEntry.d.ts +9 -1
- package/dist/types/grid/Grid.d.ts +16 -8
- package/dist/types/helpers/Theme.d.ts +1 -1
- package/dist/types/helpers/bulmaClassHelpers.d.ts +18 -0
- package/dist/types/helpers/useAnchoredPosition.d.ts +59 -0
- package/dist/types/helpers/useBulmaClasses.d.ts +3 -3
- package/dist/types/helpers/useClientLayoutEffect.d.ts +7 -0
- package/dist/types/helpers/useFocusTrap.d.ts +13 -3
- package/dist/types/helpers/useSpacingClasses.d.ts +34 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types-cjs/columns/Columns.d.ts +10 -2
- package/dist/types-cjs/components/Popover.d.ts +166 -0
- package/dist/types-cjs/form/DateInput.d.ts +1 -1
- package/dist/types-cjs/form/DateInputBase.d.ts +33 -3
- package/dist/types-cjs/form/_pickerInternals/Calendar.d.ts +11 -1
- package/dist/types-cjs/form/_pickerInternals/dateUtils.d.ts +36 -1
- package/dist/types-cjs/form/_pickerInternals/formatters.d.ts +2 -0
- package/dist/types-cjs/form/_pickerInternals/nativeInputSupport.d.ts +11 -0
- package/dist/types-cjs/form/_pickerInternals/pickerTypes.d.ts +10 -0
- package/dist/types-cjs/form/_pickerInternals/useSegmentedEntry.d.ts +9 -1
- package/dist/types-cjs/grid/Grid.d.ts +16 -8
- package/dist/types-cjs/helpers/Theme.d.ts +1 -1
- package/dist/types-cjs/helpers/bulmaClassHelpers.d.ts +18 -0
- package/dist/types-cjs/helpers/useAnchoredPosition.d.ts +59 -0
- package/dist/types-cjs/helpers/useBulmaClasses.d.ts +3 -3
- package/dist/types-cjs/helpers/useClientLayoutEffect.d.ts +7 -0
- package/dist/types-cjs/helpers/useFocusTrap.d.ts +13 -3
- package/dist/types-cjs/helpers/useSpacingClasses.d.ts +34 -3
- package/dist/types-cjs/index.d.ts +1 -0
- 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/components/_index.scss +1 -0
- package/src/scss/components/_popover.scss +144 -0
- package/src/scss/form/_dateinput.scss +20 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { validSizes } from './bulmaClassHelpers.js';
|
|
1
|
+
import { validSizes, type BulmaGapStep } from './bulmaClassHelpers.js';
|
|
2
2
|
/**
|
|
3
|
-
* Props for applying Bulma margin and
|
|
3
|
+
* Props for applying Bulma margin, padding and gap helper classes.
|
|
4
4
|
*/
|
|
5
5
|
export interface BulmaSpacingProps {
|
|
6
6
|
/** Margin (e.g., '0', '1'). */
|
|
@@ -31,9 +31,40 @@ export interface BulmaSpacingProps {
|
|
|
31
31
|
px?: (typeof validSizes)[number];
|
|
32
32
|
/** Padding vertical (top and bottom). */
|
|
33
33
|
py?: (typeof validSizes)[number];
|
|
34
|
+
/**
|
|
35
|
+
* Space between the children of a flex or grid container (`is-gap-<value>`),
|
|
36
|
+
* on Bulma's gap scale: each whole step is 0.5rem, so `gap="2"` is 1rem, with
|
|
37
|
+
* half steps such as `"1.5"` between them. Also takes the step as a number.
|
|
38
|
+
*
|
|
39
|
+
* It sets the CSS `gap`, which does nothing unless the element lays its
|
|
40
|
+
* children out as flex or grid, so pair it with `display="flex"` on most
|
|
41
|
+
* components. The scale is not the margin scale: `m="2"` is 0.5rem.
|
|
42
|
+
*
|
|
43
|
+
* `Grid` and `Columns` declare their own `gap`. `Grid`'s renders the same
|
|
44
|
+
* class; `Columns`' is the columns gutter (`is-<value>`) and takes whole
|
|
45
|
+
* steps only.
|
|
46
|
+
*/
|
|
47
|
+
gap?: BulmaGapStep;
|
|
48
|
+
/**
|
|
49
|
+
* Space between columns only (`is-column-gap-<value>`), on the same scale as
|
|
50
|
+
* `gap`. Beside `gap` or `gapless`, it wins on its own axis.
|
|
51
|
+
*/
|
|
52
|
+
columnGap?: BulmaGapStep;
|
|
53
|
+
/**
|
|
54
|
+
* Space between rows only (`is-row-gap-<value>`), on the same scale as
|
|
55
|
+
* `gap`. Beside `gap` or `gapless`, it wins on its own axis.
|
|
56
|
+
*/
|
|
57
|
+
rowGap?: BulmaGapStep;
|
|
58
|
+
/**
|
|
59
|
+
* Removes the gap between children (`is-gapless`), the shortcut for
|
|
60
|
+
* `gap="0"`; a valid `gap` wins when both are set. `Columns` is the
|
|
61
|
+
* exception: its `gap` is its gutter, and there `gapless` is Bulma's gapless
|
|
62
|
+
* columns modifier, the same as `isGapless`.
|
|
63
|
+
*/
|
|
64
|
+
gapless?: boolean;
|
|
34
65
|
}
|
|
35
66
|
/**
|
|
36
|
-
* A hook that generates Bulma margin and
|
|
67
|
+
* A hook that generates Bulma margin, padding and gap helper classes.
|
|
37
68
|
*
|
|
38
69
|
* @function useSpacingClasses
|
|
39
70
|
* @param props - Spacing-related Bulma helper props.
|
|
@@ -17,6 +17,7 @@ export * from './components/Loading.js';
|
|
|
17
17
|
export * from './components/Collapse.js';
|
|
18
18
|
export * from './components/Collapses.js';
|
|
19
19
|
export * from './components/Tooltip.js';
|
|
20
|
+
export * from './components/Popover.js';
|
|
20
21
|
export * from './components/Steps.js';
|
|
21
22
|
export * from './components/Sidebar.js';
|
|
22
23
|
export * from './components/Toast.js';
|