@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.
Files changed (63) hide show
  1. package/dist/bestax.css +1 -1
  2. package/dist/bestax.css.map +1 -1
  3. package/dist/constants.cjs +30 -0
  4. package/dist/constants.cjs.map +1 -1
  5. package/dist/constants.d.cts +18 -0
  6. package/dist/constants.esm.js +30 -1
  7. package/dist/constants.esm.js.map +1 -1
  8. package/dist/extras.css +1 -1
  9. package/dist/extras.css.map +1 -1
  10. package/dist/index.cjs +6801 -5897
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.esm.js +6797 -5899
  13. package/dist/index.esm.js.map +1 -1
  14. package/dist/types/columns/Columns.d.ts +10 -2
  15. package/dist/types/components/Popover.d.ts +166 -0
  16. package/dist/types/form/DateInput.d.ts +1 -1
  17. package/dist/types/form/DateInputBase.d.ts +33 -3
  18. package/dist/types/form/_pickerInternals/Calendar.d.ts +11 -1
  19. package/dist/types/form/_pickerInternals/dateUtils.d.ts +36 -1
  20. package/dist/types/form/_pickerInternals/formatters.d.ts +2 -0
  21. package/dist/types/form/_pickerInternals/nativeInputSupport.d.ts +11 -0
  22. package/dist/types/form/_pickerInternals/pickerTypes.d.ts +10 -0
  23. package/dist/types/form/_pickerInternals/useSegmentedEntry.d.ts +9 -1
  24. package/dist/types/grid/Grid.d.ts +16 -8
  25. package/dist/types/helpers/Theme.d.ts +1 -1
  26. package/dist/types/helpers/bulmaClassHelpers.d.ts +18 -0
  27. package/dist/types/helpers/useAnchoredPosition.d.ts +59 -0
  28. package/dist/types/helpers/useBulmaClasses.d.ts +3 -3
  29. package/dist/types/helpers/useClientLayoutEffect.d.ts +7 -0
  30. package/dist/types/helpers/useFocusTrap.d.ts +13 -3
  31. package/dist/types/helpers/useSpacingClasses.d.ts +34 -3
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types-cjs/columns/Columns.d.ts +10 -2
  34. package/dist/types-cjs/components/Popover.d.ts +166 -0
  35. package/dist/types-cjs/form/DateInput.d.ts +1 -1
  36. package/dist/types-cjs/form/DateInputBase.d.ts +33 -3
  37. package/dist/types-cjs/form/_pickerInternals/Calendar.d.ts +11 -1
  38. package/dist/types-cjs/form/_pickerInternals/dateUtils.d.ts +36 -1
  39. package/dist/types-cjs/form/_pickerInternals/formatters.d.ts +2 -0
  40. package/dist/types-cjs/form/_pickerInternals/nativeInputSupport.d.ts +11 -0
  41. package/dist/types-cjs/form/_pickerInternals/pickerTypes.d.ts +10 -0
  42. package/dist/types-cjs/form/_pickerInternals/useSegmentedEntry.d.ts +9 -1
  43. package/dist/types-cjs/grid/Grid.d.ts +16 -8
  44. package/dist/types-cjs/helpers/Theme.d.ts +1 -1
  45. package/dist/types-cjs/helpers/bulmaClassHelpers.d.ts +18 -0
  46. package/dist/types-cjs/helpers/useAnchoredPosition.d.ts +59 -0
  47. package/dist/types-cjs/helpers/useBulmaClasses.d.ts +3 -3
  48. package/dist/types-cjs/helpers/useClientLayoutEffect.d.ts +7 -0
  49. package/dist/types-cjs/helpers/useFocusTrap.d.ts +13 -3
  50. package/dist/types-cjs/helpers/useSpacingClasses.d.ts +34 -3
  51. package/dist/types-cjs/index.d.ts +1 -0
  52. package/dist/versions/bestax-no-dark-mode.css +1 -1
  53. package/dist/versions/bestax-no-dark-mode.css.map +1 -1
  54. package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
  55. package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
  56. package/dist/versions/bestax-no-helpers.css +1 -1
  57. package/dist/versions/bestax-no-helpers.css.map +1 -1
  58. package/dist/versions/bestax-prefixed.css +1 -1
  59. package/dist/versions/bestax-prefixed.css.map +1 -1
  60. package/package.json +1 -1
  61. package/src/scss/components/_index.scss +1 -0
  62. package/src/scss/components/_popover.scss +144 -0
  63. 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 padding helper classes.
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 padding helper classes.
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';